The display vxlan tunnel command displays all VXLAN tunnel information, including the configuration, status, and packet statistics.
The display vxlan tunnel static command displays information about statically established VXLAN tunnels.
The display vxlan tunnel dynamic command displays information about dynamically established VXLAN tunnels.
display vxlan tunnel [ [ vni vni-id ] [ peer ip-address ] [ verbose ] ]
display vxlan tunnel static [ vni vni-id ] [ verbose ]
display vxlan tunnel dynamic [ verbose ]
| Parameter | Description | Value |
|---|---|---|
| vni vni-id | Specifies a VNI. | The specified VNI must already exist. |
| peer ip-address | Specifies the IP address of the peer VTEP. | - |
| verbose | Display detailed information about a VXLAN tunnel. | - |
After a VXLAN tunnel is established, you can run the display vxlan tunnel command to view the tunnel information. Based on such information, you can determine whether the configuration is correct or locate faults.
# Display information about a VXLAN tunnel with a specified VNI.
<sysname> system-view [sysname] display vxlan tunnel vni 4097 Tunnel-ID Source Destination state -------------------------------------------------- 101 192.168.1.2 192.168.10.1 up 102 192.168.1.2 192.168.10.2 up 103 192.168.1.2 192.168.10.3 up [sysname]
# Display information about a VXLAN tunnel with a specified peer IP address.
<sysname> system-view [sysname] display vxlan tunnel peer 192.168.2.2 Tunnel-ID Source Destination state -------------------------------------------------- 201 192.168.1.2 192.168.2.2 down [sysname]
# Display information about a VXLAN tunnel with a specified peer IP address.
<sysname> system-view [sysname] display vxlan tunnel peer 192.168.2.2 verbose Tunnel ID :22 Source :192.168.1.2 Destination :192.168.2.2 State :up Input/Output packets :0/0 Input/Output bytes :0/0
# Display tunnel information of a statically established VXLAN.
<sysname> system-view [sysname] display vxlan tunnel static Current total number of vxlan tunnel: 1 Tunnel-ID Source Destination State Type --------------------------------------------------------------- 65536 10.2.2.2 10.1.1.1 DOWN static
Item |
Description |
|---|---|
Tunnel ID |
ID of a VXLAN tunnel. The ID is automatically assigned after the VXLAN tunnel is successfully established. |
Source |
Source IP address of the VXLAN tunnel. |
Destination |
Destination IP address of the VXLAN tunnel. |
State |
State of the VXLAN tunnel:
|
Type |
Tunnel type, which can be:
|
Input/Output packets |
Number of packets entering/leaving the tunnel. |
Input/Output bytes |
Number of bytes entering/leaving the tunnel. |