FD.io VPP  v16.09
Vector Packet Processing
VXLAN CLI

create vxlan tunnel

Summary/usage

create vxlan tunnel src <local-vtep-addr> dst <remote-vtep-addr> vni <nn> [encap-vrf-id <nn>] [decap-next [l2|ip4|ip6]] [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 decap-next l2
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:589)

Implementation: vxlan_add_del_tunnel_command_fn.

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] 10.0.3.1 (src) 10.0.3.3 (dst) vni 13 encap_fib_index 1 decap_next l2

Declaration and implementation

Declaration: show_vxlan_tunnel_command (vnet/vnet/vxlan/vxlan.c:627)

Implementation: show_vxlan_tunnel_command_fn.