Virtual Extensible LAN (VXLAN) Tunnel
VXLAN is a simple tunneling mechanism that allows overlaying a Layer 2 (L2) network over a Layer 3 (L3) underlay with the use of any IP routing protocol. It uses MAC Address-in-User Datagram Protocol (MAC-in-UDP) encapsulation. For details about the VXLAN tunnels, refer to the "About Virtual Extensible LAN (VXLAN) Tunnels" section in the GigaVUE Fabric Management Guide.
Configure VXLAN Tunnel for Encapsulation
Create a VXLAN tunnel for encapsulation using the tunnel command, which has the following syntax:
tunnel alias <alias> encap vxlan
comment <description>
attach <ip-interface-name>
ipdst <destination IP address>
l4srcport <layer4 source leader in a bidirectional clock relationship (formerly master) port number>
exit
The following table describes the arguments for the VXLAN tunnel for encapsulation using the tunnel command:
Argument |
Description |
tunnel alias <alias> encap vxlan |
Specifies an alias for the VXLAN tunnel. The alias must be unique and can contain up to 128 characters. Aliases are case-sensitive. For example: (config) # tunnel alias <alias> encap vxlan |
comment <description> |
Specifies a description for the vxlan tunnel. For example: (config) tunnel alias <alias> encap vxlan) # comment <description> |
attach <ip-interface-name> |
Specifies the IP interface to which you have attached the circuit port you have configured on the device. For example: (config tunnel alias <alias> encap vxlan) # attach <ip-interface-name> |
ipdst <destination IP address> |
Specifies the IP address of the destination device of the tunnel. For example: (config tunnel alias <alias> encap l2gre) # ipdst <destination IP address> |
l4srcport <layer4 source port number> |
Specifies the layer 4 source port number For example: (config tunnel alias <alias> encap vxlan) # l4srcport <layer4 source port number> |
exit |
Exits the VXLAN tunnel configuration. For example: (config tunnel alias <alias> encap vxlan) # exit |
Note: Use this encap tunnel in the map configuration to encapsulate the traffic with VXLAN ID and send the traffic to the required destination device, where the traffic will be decapsulated.
Configure VXLAN Tunnel for Decapsulation
Create a VXLAN tunnel for decapsulation using the tunnel command, which has the following syntax:
tunnel alias <alias> decap vxlan
comment <description>
attach <ip-interface-name>
exit
The following table describes the arguments for the VXLAN tunnel for decapsulation using the tunnel command:
Argument |
Description |
tunnel alias <alias> decap vxlan |
Specifies an alias for the VXLAN tunnel. The alias must be unique and can contain up to 128 characters. Aliases are case-sensitive. For example: (config) # tunnel alias <alias> decap vxlan |
comment <description> |
Specifies a description for the VXLAN tunnel. For example: (config tunnel alias <alias> decap vxlan) # comment <description> |
attach <ip-interface-name> |
Specifies the IP interface to which you have attached the circuit port you have configured on the device. For example: (config tunnel alias <alias> decap vxlan) # attach <ip-interface-name> |
exit |
Exits the VXLAN tunnel configuration. For example: (config tunnel alias <alias> decap vxlan) # exit |
Note: Use this decap tunnel in the map configuration to decapsulate the traffic with VXLAN tunnel and send the traffic to the required tool ports of the map.
Configure VXLAN Group
Create a VXLAN group using the tunnel command, which has the following syntax:
tunnel vxlan [box-id <id|all>] vxlan-group alias <vxlan-group-name>
add <vxlan-id-list>
comment <description>
delete <vxlan-id-list>
exit
The following table describes the arguments for configuring the VXLAN group using the tunnel command:
Argument |
Description |
tunnel vxlan [box-id <id|all>] vxlan-group alias<vxlan-group-name> |
Specifies the box identifier in which the VXLAN IDs will be added. Also, specifies an alias for the VXLAN group. The alias must be unique and can contain up to 128 characters. Aliases are case-sensitive. For example: (config) # [no] tunnel vxlan [box-id <id|all>] vxlan-group alias <vxlan-group-name> |
add <vxlan-id-list> |
Adds the VXLAN IDs for the device. The range is 1 to 4294967295. For example: (config tunnel vxlan [box-id <id|all>] vxlan-group alias <vxlan-group-name>) #add <vxlan-id-list> |
comment <description> |
Specifies the description for the VXLAN group. For example: (config tunnel vxlan [box-id <id|all>] vxlan-group alias <vxlan-group-name>) #comment <description> |
delete <vxlan-id-list> |
Deletes the specific VXLAN group. For example: (config tunnel vxlan [box-id <id|all>] vxlan-group alias <vxlan-group-name>) #delete <vxlan-id-list> |
exit |
Exits the VXLAN group configuration. For example: (config tunnel vxlan [box-id <id|all>] vxlan-group alias <vxlan-group-name>) #exit |
Configure VXLAN ID
The VXLAN ID that you have added in the VXLAN group created for a specific device must be configured either at the chassis-level or at the network port-level. The ID that you configure for the network port overrides the ID configured for the chassis. The VXLAN IDs help to identify the respective tunnels.
Configure VXLAN ID for a chassis using the tunnel command, which has the following syntax:
tunnel vxlan box-id <id> global-encap-id <vxlan ID>
exit
The following table describes the arguments for configuring the VXLAN ID at the chassis-level using the tunnel command:
Argument |
Description |
tunnel vxlan box-id <id> global-encap-id <vxlan ID> |
Specifies the box identifier for which the VXLAN ID will be added. Also, specifies the VXLAN ID that will be configured for the chassis. For example: (config) # tunnel vxlan box-id <id> global-encap-id <vxlan ID> |
exit |
Exits the VXLAN ID configuration. For example: (config) # tunnel vxlan box-id <id> global-encap-id <l2gre ID> #exit |
Note: To configure VXLAN ID for a network port, refer toport.
The following table summarizes other commands related to the tunnel command:
Task |
Command |
Displays all circuit tunnels. |
(config) # show tunnel |
Displays the specific tunnel alias. |
(config) # show tunnel <alias> |
Displays statistics specific to the given tunnel alias. |
(config) # show tunnel stats <alias> |
Displays the statistics data of all the encapsulation tunnels configured for the device. |
(config) # show tunnel stats all |
Displays the L2GRE ID statistics data. |
(config) # show tunnel l2gre [ box-id <box-id | all>] [l2gre-group alias <group-name> | all ] |
Displays the VXLAN ID statistics data. |
(config) # show tunnel vxlan [ box-id <box-id | all>] [alias <group-name> | all ] |
Displays the L2GRE ID configured for the chassis. |
(config) # show tunnel l2gre global-encap-id |
Displays the VXLAN ID configured for the chassis. |
(config) # show tunnel vxlan global-encap-id |
Clears all the L2GRE statistics data. |
(config) # clear tunnel l2gre l2gre-group stats all |
Clears all the VXLAN statistics data. |
(config) # clear tunnel vxlan vxlan-group stats all |
Clears the statistics data of the L2GRE tunnels. |
(config) # clear tunnel l2gre stats all |
Clears the statistics data of the VXLAN tunnels. |
(config) # clear tunnel vxlan stats all |
Clears the statistics data for the specified encapsulation tunnel. |
(config) # clear tunnel stats alias <tunnel alias> |
Clears the statistics data for all the encapsulation tunnels configured for the device. |
(config) # clear tunnel stats all |
Deletes a specified circuit tunnel by the alias. If the circuit tunnel is associated with a map, it cannot be deleted. |
(config) # no tunnel alias <alias> |
Deletes all circuit tunnels. If the circuit tunnel is associated with a map, it cannot be deleted. |
(config) # no tunnel all |
Removes the L2GRE ID that is configured for the chassis. |
(config) # no tunnel l2gre box-id <box-id> global-encap-id |
Removes the VXLAN ID that is configured for the chassis. |
(config) # no tunnel vxlan box-id <box-id> global-encap-id |