Configuration Example

The following example assumes that one VTEP is on the generic switch and the other VTEP is on a Pluribus Networks switch. Also, 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 netmask vlan 10

3. Create the tunnel:

CLI (server-switch)>tunnel-create name vx-tunnel scope local local-ip remote-ip next-hop 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.

VXLAN Head End Replication Counters

This feature introduces support for collecting statistics (stats) for head end replication (HER) packets to tunnels, on VXLAN VLANs and enhances the tunnel stats output to display counter for head replicated packets. When Broadcast/UnknownUnicast/UnknownMcast traffic is flooded on VXLAN VLANs, the traffic is head end replicated to tunnels which are part of the VXLAN. Currently, Netvisor OS uses vxlan-loopback-trunk port stats counters for HER packets statistics. Although all tunnels use the same vxlan-loopback-trunk ports, this provides a very cumulative view of the system. This feature provides additional counters for HER packets per tunnel.

Statistical objects and flexible counters are attached to multicast VPs created for head end replication for each tunnel. Packet (pkt) and byte counts for HER statistics are per tunnel. Two new fields are added to tunnel-stats-show output as HER-pkts, HER-bytes and provides flood packet counters per tunnel. Tunnel updates are local to each node and therefore there is no impact to High Availability (HA).

CLI (network-admin@Spine1) > tunnel-stats-show show-diff-interval 1 format all