07-MPLS Command Reference

HomeSupportSwitchesS5590-EI SeriesReference GuidesCommand ReferencesH3C S5590-HI[S5590-EI][S5500V3-HI] Switch Series Command References-R8307Pxx-6W10007-MPLS Command Reference
04-Tunnel policy commands
Title Size Download
04-Tunnel policy commands 71.00 KB

Tunnel policy commands

Only advanced and expert modes support tunnel policies. For more information about system operating modes, see device management in Fundamentals Configuration Guide.

Layer 3 aggregate interfaces do not support tunnel policies. The device does not support MPLS forwarding for tunnel packets.

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 }

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.

Examples

# Display information about all tunnels.

<Sysname> display mpls tunnel all

Destination      Type     Tunnel/NHLFE      VPN Instance

2.2.2.2          LSP      NHLFE1024         -

Table 1 Command output

Field

Description

Destination

Tunnel destination address.

Type

Tunnel type: LSP

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

SRLSP:     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 tunnels.

SRLSP

This field is not supported in the current software version.

Number of 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 all tunnel policies.

<Sysname> display tunnel-policy

Tunnel policy name   : policy1

Preferred paths      :

  Interface  : not configured

  Tunnel type: not configured

Select-Seq           : LSP

Load balance number  : 8

Strict               : no

# 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 : 1

Strict              : no

Table 3 Command output

Field

Description

Preferred paths

Preferred tunnels information.

Interface

Tunnel interface name of the preferred tunnel.

Tunnel type

This field is not supported in the current software version.

Type of the preferred tunnel:

TE.

Select-Seq

Tunnel selection order. The tunnel types are displayed in descending order of priority in tunnel selection.

Load balance number

Number of tunnels for load balancing.

Strict

Whether the strict method is used to select tunnels for load balancing:

·     no—The tunnel policy can use a hybrid of the specified types of tunnels for load balancing.

·     yes—The tunnel policy uses only one type of tunnels for load balancing.

select-seq load-balance-number

Use select-seq load-balance-number to configure the tunnel selection order and set the number of tunnels for load balancing.

Use undo select-seq to restore the default.

Syntax

select-seq [ strict ] 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

strict: Uses the same type of tunnels for load balancing. If you do not specify this keyword, the device can use a hybrid of the specified types of tunnels for load balancing.

lsp: Uses LSP tunnels.

load-balance-number number: Specifies the number of tunnels for load balancing, in the range of 1 to 16.

Usage guidelines

A tunnel type closer to the select-seq keyword has a higher priority, and only the tunnel types specified in this command can be used.

For example, the select-seq lsp cr-lsp load-balance-number 3 command specifies three tunnels for load balancing and gives LSP tunnels higher priority over CRLSP tunnels.

·     If you do not specify the strict keyword, VPN can use CRLSP tunnels to remedy the deficiency of LSP tunnels.

·     If you specify the strict keyword, VPN uses only one type of tunnels. It uses CRLSP tunnels only if no LSP tunnels are available.

Tunnels selected by this method are not fixed, making it hard to plan VPN traffic. As a best practice, do not use this method.

When you configure both the select-seq load-balance-number and preferred-path commands for a tunnel policy, the tunnel policy selects tunnels in the following steps:

1.     If the destination address of the preferred tunnel identifies a peer PE, the tunnel policy uses the preferred tunnel to forward traffic destined for the peer PE.

2.     If not, the tunnel policy selects tunnels as configured by the select-seq load-balance-number command.

Examples

# Configure tunnel policy policy1 to use only LSP tunnels, and set the load balancing number to 2.

<Sysname> system-view

[Sysname] tunnel-policy policy1

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

Related commands

preferred-path

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 Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网