User Tools

Site Tools


nettmus:vxlan_config_example

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

nettmus:vxlan_config_example [2019/02/07 13:01] – created 8a1a1133-76ab-498f-a12b-735b77fa7973nettmus:vxlan_config_example [2019/02/07 14:46] (current) 8a1a1133-76ab-498f-a12b-735b77fa7973
Line 1: Line 1:
 ====== Vxlan config example ====== ====== Vxlan config example ======
 +
 The following recipe may configurs a vxlan tunnel between a linux host and an Aruba switch. The following recipe may configurs a vxlan tunnel between a linux host and an Aruba switch.
  
 ===== On Ubuntu linux host ===== ===== On Ubuntu linux host =====
   * ([[ https://joejulian.name/post/how-to-configure-linux-vxlans-with-multiple-unicast-endpoints/| Example source ]])   * ([[ https://joejulian.name/post/how-to-configure-linux-vxlans-with-multiple-unicast-endpoints/| Example source ]])
-  * Create vxlan device ''vxlan0'' with vxlan network identifier ''42'' and default port 4789: <code>sudo ip link add vxlan0 type vxlan id 42 dev eth1 dstport 0</code> + 
-  * +  * Create vxlan device ''vxlan0'' with vxlan network identifier ''42'', remote tunnel host ip and (defaultport 4789: <code> 
 +sudo ip link add vxlan0 type vxlan id 42 dev eth1 remote 158.38.153.170 dstport 4789 
 +</code> 
 + 
 +  * Assign ip vtep address and turn up interface: <code> 
 +ip addr add 192.168.0.1/24 dev vxlan0   
 +ip link set up dev vxlan0 
 +</code>
  
  
 ===== On Aruba 2930F switch ===== ===== On Aruba 2930F switch =====
-  * Enter configuration: <code># configure</code>+  * Prerequisits 
 +    * Need vlan with static IP, i.e. vlan 2 for port 2 with IP <code> 
 +(config)# interface 2 untagged vlan 2 
 +(config)# vlan 2 ip address 158.38.153.141 
 +</code>     
 +    * (The IP set above cannot be on a the same subnet as other IP's set in the switch.) 
 + 
 +  * Enter configuration and enable vxlan tunnels: <code> 
 +# configure 
 +(config)# vxlan enable 
 +</code>
  
-  * Enable vxlan tunnels: <code>(config)# vxlan enable</code> +  * Create virtual network an associate network id 42 and Vlan 2 <code> 
-  * +(config)# virtual-network 42 2 "Vxlan-net1" 
 +</code> 
 +  * Untested example commands from [[ https://community.arubanetworks.com/aruba/attachments/aruba/CampusSwitching/3934/3/HPE_VXLAN_between_12900_and_5400R_TCG_v1.1_Mar2016.pdf | hp document]] <code> 
 +vxlan enable 
 +virtual-network 200 50 "vni200" 
 +interface tunnel 13 
 +  tunnel name "VXLAN_Tunnel02" 
 +  tunnel mode vxlan 
 +  tunnel source 10.2.10.2 
 +  tunnel destination 10.220.0.2 
 +  exit 
 +vxlan tunnel 13 overlay-vlan 50 
 +</code>
nettmus/vxlan_config_example.txt · Last modified: 2019/02/07 14:46 by 8a1a1133-76ab-498f-a12b-735b77fa7973