Parameter | Description | Value |
---|---|---|
all |
Displays information about all tunnels. |
- |
tunnel-id |
Specifies a tunnel ID. |
The value is a string of 1 to 20 characters. This parameter consists of an 8-byte VPN index, a 2-byte tunnel type, and an 8-byte tunnel ID. For example, the parameter is set to 0x000000000300000001. If the ID of a nonexistent tunnel is specified, no command output is displayed. |
tunnel-id |
Indicates the tunnel ID. |
- |
Usage Scenario
To view information about the tunnels that are already set up, including the tunnel IDs, tunnel types, and destination IP addresses, run the display tunnel-info all command.
To view detailed information about a specific tunnel, run the display tunnel-info tunnel-id command.The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> display tunnel-info all
Tunnel ID Type Destination Status
----------------------------------------------------------------------
0x000000000300000001 te 3.3.3.3 up
0x000000000300000002 te 2.2.2.2 down
0x000000000300000003 te 192.168.2.0 up
<HUAWEI> display tunnel-info 0x000000003300000001
Tunnel ID: 0x000000003300000001
Type: srtepolicygroup
Name: policy1
Destination: 1.1.1.1
Instance ID: 0
Cost: 0
Status: UP
Color: 100
Group: 1
<HUAWEI> display tunnel-info 0x0300000001
Tunnel ID: 1
Type: te
Name: Tunnel10
Destination: 2.2.2.2
Instance ID: 0
Cost: 300
Status: UP
Out Interface: Tunnel10
NextHop: 0.0.0.0
Item | Description |
---|---|
Tunnel ID |
Tunnel ID. Tunnel IDs identify tunnels with the same instance ID and same tunnel type. |
Instance ID |
ID of the VPN instance (0 indicates that the tunnel is a public network tunnel). |
Type |
Tunnel type:
The output of the display tunnel-info tunnel-id command varies according to tunnel types. |
Destination |
Destination IP address of the tunnel. |
Status |
Tunnel status. |
Out Interface |
Outbound Interface. |
Name |
Name of the tunnel. |
Cost |
Tunnel cost. |
Color |
Tunnel Color. |
Group |
Tunnel group. |
NextHop |
Next-hop address. |