display tunnel-info

Function

The display tunnel-info command displays information about tunnels.

Format

display tunnel-info all

display tunnel-info [ tunnel-id ] tunnel-id

Parameters

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.

-

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
tunnel read

Usage Guidelines

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.

Example

The actual command output varies according to the device. The command output here is only an example.

# Display information about all tunnels.
<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
				
# Display information about a SR-TE Policy Group tunnel.
<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
				
# Display information about a tunnel.
<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
				
Table 1 Description of the display tunnel-info command output
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:

  • ldp.
  • te.
  • 6to4.
  • 6over4.
  • sr-te.
  • srtepolicy.
  • srv6tepolicy.
  • flex-algo-lsp

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.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >