06-MPLS Command Reference

HomeSupportSwitchesS9820 SeriesReference GuidesCommand ReferencesH3C S9820-8C Switch Command References-Release 66xx-6W10306-MPLS Command Reference
04-Tunnel policy commands
Title Size Download
04-Tunnel policy commands 52.60 KB

Tunnel policy commands

display mpls tunnel

Use display mpls tunnel to display tunnel information.

Syntax

display mpls tunnel { all | statistics | [ vpn-instance vpn-instance-name ] destination { ipv4-address | ipv6-address } }

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

all: Displays all tunnels.

statistics: Displays tunnel statistics.

vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. If you do not specify a VPN instance, this command displays tunnel information for the public network.

destination: Displays the tunnel destined for the specified address.

ipv4-address: Specifies the tunnel destination IPv4 address.

ipv6-address: Specifies the tunnel destination IPv6 address.

Examples

# Display information about all tunnels.

<Sysname> display mpls tunnel all

Destination      Type     Tunnel/NHLFE      VPN Instance

2.2.2.2          LSP      NHLFE1024         -

3.3.3.3          LSP      NHLFE1026         -

Table 1 Command output

Field

Description

Destination

Tunnel destination address.

Type

Tunnel type.

Tunnel/NHLFE

Tunnel or NHLFE entry.

NHLFEnumber represents the ingress LSP that matches the NHLFE entry with NID of number.

VPN Instance

VPN instance name. If the tunnel belongs to the public network, this field displays a hyphen (-).

 

# Display tunnel statistics.

<Sysname> display mpls tunnel statistics

LSP  :     1

GRE  :     0

CRLSP:     0

Table 2 Command output

Field

Description

LSP

Number of LSP tunnels.

GRE

This field is not supported in the current software version.

Number of GRE tunnels.

CRLSP

This field is not supported in the current software version.

Number of CRLSP and SRLSP tunnels.

 

display tunnel-policy

Use display tunnel-policy to display tunnel policy information.

Syntax

display tunnel-policy [ tunnel-policy-name ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

tunnel-policy-name: Specifies a tunnel policy by its name, a case-sensitive string of 1 to 19 characters. If you do not specify a tunnel policy, this command displays information about all tunnel policies.

Examples

# Display information about tunnel policy policy1.

<Sysname> display tunnel-policy policy1

Tunnel policy name  : policy1

Preferred paths      :

  Interface  : Not Configured

  Tunnel type: Not Configured

Select-Seq           : LSP

Load balance number  : 5

Table 3 Command output

Field

Description

Preferred paths

This field is not supported in the current software version.

Preferred tunnels information.

Interface

This field is not supported in the current software version.

Tunnel interface name of the preferred tunnel.

Tunnel type

This field is not supported in the current software version.

Type of the preferred tunnel.

Select-Seq

Tunnel selection order. Only the LSP tunnel type is supported in this software version.

Load balance number

Number of tunnels for load balancing.

select-seq load-balance-number

Use select-seq load-balance-number to set the number of LSP tunnels for load balancing.

Use undo select-seq to restore the default.

Syntax

select-seq lsp load-balance-number number

undo select-seq

Default

The device selects only one tunnel.

Views

Tunnel policy view

Predefined user roles

network-admin

Parameters

load-balance-number number: Specifies the number of tunnels for load balancing. The value range for the number argument depends on the ECMP mode set by the ecmp mode command.

Table 4 Value ranges for the number argument in different ECMP modes

ECMP mode

Value range for number

Normal mode or enhanced mode

1 to 128

Compressed mode

1 to 32

Other modes

1 to 64

 

Examples

# Configure tunnel policy policy1 to use two LSP tunnels for load balancing.

<Sysname> system-view

[Sysname] tunnel-policy policy1

[Sysname-tunnel-policy-policy1] select-seq lsp load-balance-number 2

tunnel-policy (system view)

Use tunnel-policy to create a tunnel policy and enter its view, or enter the view of an existing tunnel policy.

Use undo tunnel-policy to delete a tunnel policy.

Syntax

tunnel-policy tunnel-policy-name

undo tunnel-policy tunnel-policy-name

Default

No tunnel policies exist.

Views

System view

Predefined user roles

network-admin

Parameters

tunnel-policy-name: Specifies a name for the tunnel policy, a case-sensitive string of 1 to 19 characters.

Examples

# Create tunnel policy policy1 and enter its view.

<Sysname> system-view

[Sysname] tunnel-policy policy1

[Sysname-tunnel-policy-policy1]

 

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网