FD.io VPP  v17.01-9-ge7dcee4
Vector Packet Processing
VXLAN CLI

create vxlan tunnel

Summary/usage

create vxlan tunnel src <local-vtep-addr> {dst <remote-vtep-addr>|group <mcast-vtep-addr> <intf-name>} vni <nn> [encap-vrf-id <nn>] [decap-next [l2|node <name>]] [del].

Description

Add or delete a VXLAN Tunnel.

VXLAN provides the features needed to allow L2 bridge domains (BDs) to span multiple servers. This is done by building an L2 overlay on top of an L3 network underlay using VXLAN tunnels.

This makes it possible for servers to be co-located in the same data center or be separated geographically as long as they are reachable through the underlay L3 network.

You can refer to this kind of L2 overlay bridge domain as a VXLAN (Virtual eXtensible VLAN) segment.

Example usage
Example of how to create a VXLAN Tunnel:
vpp# create vxlan tunnel src 10.0.3.1 dst 10.0.3.3 vni 13 encap-vrf-id 7
Example of how to delete a VXLAN Tunnel:
vpp# create vxlan tunnel src 10.0.3.1 dst 10.0.3.3 vni 13 del

Declaration and implementation

Declaration: create_vxlan_tunnel_command (vnet/vnet/vxlan/vxlan.c line 831)

Implementation: vxlan_add_del_tunnel_command_fn.

set interface ip vxlan-bypass

Summary/usage

set interface ip vxlan-bypass <interface> [del].

Description

This command adds the 'ip4-vxlan-bypass' graph node for a given interface. By adding the IPv4 vxlan-bypass graph node to an interface, the node checks for and validate input vxlan packet and bypass ip4-lookup, ip4-local, ip4-udp-lookup nodes to speedup vxlan packet forwarding. This node will cause extra overhead to for non-vxlan packets which is kept at a minimum.

Example usage

Example of graph node before ip4-vxlan-bypass is enabled:

vpp# show vlib graph ip4-vxlan-bypass

           Name                      Next                    Previous
ip4-vxlan-bypass                error-drop [0]
                               vxlan4-input [1]
                                ip4-lookup [2]      

Example of how to enable ip4-vxlan-bypass on an interface:

vpp# set interface ip vxlan-bypass GigabitEthernet2/0/0

Example of graph node after ip4-vxlan-bypass is enabled:

vpp# show vlib graph ip4-vxlan-bypass

           Name                      Next                    Previous         
ip4-vxlan-bypass                error-drop [0]               ip4-input        
                               vxlan4-input [1]        ip4-input-no-checksum  
                                ip4-lookup [2]      

Example of how to display the feature enabed on an interface:

vpp# show ip interface features GigabitEthernet2/0/0

IP feature paths configured on GigabitEthernet2/0/0...

ipv4 unicast:
  ip4-vxlan-bypass
  ip4-lookup

ipv4 multicast:
  ip4-lookup-multicast

ipv4 multicast:
  interface-output

ipv6 unicast:
  ip6-lookup

ipv6 multicast:
  ip6-lookup

ipv6 multicast:
  interface-output

Example of how to disable unicast source checking on an interface:

vpp# set interface ip vxlan-bypass GigabitEthernet2/0/0 del

Declaration and implementation

Declaration: set_interface_ip_vxlan_bypass_command (vnet/vnet/vxlan/decap.c line 1120)

Implementation: set_ip_vxlan_bypass.

show vxlan tunnel

Summary/usage

show vxlan tunnel.

Description

Display all the VXLAN Tunnel entries.

Example usage
Example of how to display the VXLAN Tunnel entries:
vpp# show vxlan tunnel
[0] src 10.0.3.1 dst 10.0.3.3 vni 13 encap_fib_index 0 sw_if_index 5 decap_next l2

Declaration and implementation

Declaration: show_vxlan_tunnel_command (vnet/vnet/vxlan/vxlan.c line 870)

Implementation: show_vxlan_tunnel_command_fn.