Configuring VXLANs > About VXLANs > Configuring VXLANs
Was this helpful?
Configuring VXLANs
1. Configure underlay vRouter interfaces:
a. Add vRouter and add vRouter interfaces for each VTEP.
CLI network-admin@switch > vrouter-create name <vr-name> vnet <vnet-name> router-type hardware hw-vrrp-id <id>
CLI network-admin@switch > vrouter-interface-add vrouter-name <vr-name> ip <network/netmask> vlan <y> if data mtu <mtu>
b. Configure VIP for redundant VTEPs.
CLI network-admin@switch > vrouter-interface-add vrouter-name <vr-name> ip <network/netmask> vlan <y> if data vrrp-id <id> vrrp-primary <ethz.y> mtu <mtu>
2. Optionally, add ports to vxlan-loopback-trunk:
CLI network-admin@switch > trunk-modify name vxlan-loopback-trunk ports <list of ports>
3. Configure tunnels:
On non-redundant switches, configure a tunnel with scope local and on redundant switch, create a tunnel using scope cluster.
CLI network-admin@switch > tunnel-create name <tunnel-name> local-ip <ip1> remote-ip <ip2> scope local vrouter-name <vr-name>
CLI network-admin@switch > tunnel-create name <tunnel-name> local-ip <ip1> remote-ip <ip2> scope cluster vrouter-name <vr-name> peer-vrouter-name <peer-vr-name>
4. Configure overlay:
Create mapping between VXLAN VNID and VLANs on respective switches
CLI network-admin@switch > vlan-create id <vlan-id> scope <scope> vxlan <vnid>
5. Add VNIDs to tunnels:
The mapping allows configured VLAN VNIDs to be carried over VXLAN tunnel.
CLI network-admin@switch > tunnel-vxlan-add name <tunnel-name> vxlan <vnid>
In order to carry Layer 2 broadcast, unicast, and multicast (BUM) traffic over VXLAN tunnels on Netvisor ONE switches, you must configure one physical port to recirculate the packet and do head-end replication. Based on the hardware architecture of the switch, configure a front panel port. Depending on the amount of BUM traffic, you can use either a 10G port or a 40G port.
For monitoring VXLAN specific states and statistics, use the following commands:
l vlan-show — displays the VXLAN ID associated with the VLAN ID.
l tunnel-show — displays the configured tunnel and the state
l trunk-show — displays the port used for BUM traffic recirculation
l ports-stats-show — displays statistics for each port
l tunnel-stats-show — displays statistics for each tunnel
l vxlan-stats-show — displays statistics for each VXLAN ID