Configuration Example


The following example assumes that one VTEP is on the generic switch and the other VTEP is on a Pluribus Networks switch.


The nodes are connected on a L3 IP network, and the tunnel is formed between the generic switch and the Pluribus Networks switch.





Figure 5 - VTEP Generic Switch-VTEP Pluribus Networks Switch


The example also includes VLAN 10 and port 47 on Host2 as well as the VNET fab-global.


1. Create the vRouter using the vrouter-create command:


CLI (server-switch) > vrouter-create name vx-vrouter vnet fab-global router-type hardware


2. Add the vRouter interface:


CLI (server-switch) > vrouter-interface-add vrouter-name vx-vrouter ip 192.168.0.1 netmask 255.255.255.0 vlan 10


3. Create the tunnel:


CLI (server-switch) > tunnel-create name vx-tunnel scope local local-ip 192.168.0.1 remote-ip 192.168.5.1 next-hop 192.168.0.2 next-hop-mac 00:01:02:03:04:05 router-if vx-router.eth0


4. Create the VXLAN:


CLI (server-switch) > vxlan-create vnid 14593470 scope local name vxlan1 vlan 10


If VLAN 10 does not exist, then the vxlan-create command creates it on the switch, but you may need to add local ports to the VLAN.


5. Add port 47 to the VXLAN:


CLI (server-switch) > vxlan-port-add vxlan-name vxlan1 ports 47


This associates all packets from port 47 on VLAN 10 with the VXLAN ID, 14593470.


6. Add the tunnel to the VXLAN:


CLI (server-switch) > vxlan-tunnel-add vxlan-name vxlan1 tunnel-name vx-tunnel


To display the configuration, use the vxlan-show command.


You cannot configure different VLANs for the tunnel and the local hosts, and you cannot associate different VLANs on different ports for the same VXLAN.