No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Command Reference

S7700 and S9700 V200R011C10

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
VPLS Configuration Commands

VPLS Configuration Commands

Command Support

For details about command support, see the description of each command. If no command support information is provided, all switch models support the command by default.

admin-vsi

Function

The admin-vsi command configures the current service VSI as the management VSI (mVSI).

The undo admin-vsi command configures the current mVSI as the service VSI.

By default, no mVSI is configured.

Format

admin-vsi

undo admin-vsi

Parameters

None

Views

VSI view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

On the enterprise network, VRRP is adopted to determine whether an SPE is the master or slave and control the master/slave switchover. The mVSI created on the UPE is dedicated to transmitting packets for detecting the master and slave status between SPEs.

Prerequisites

The following operations have been performed before this command is used:
  1. The VSI in the static member discovery mode has been created using the vsi vsi-name static command.
  2. The LDP VSI has been configured using the pwsignal ldp command.
  3. The ID of the VSI has been configured using the vsi-id vsi-id command.

Precautions

You cannot run the shutdown command in the mVSI view.

Compared with the service VSI, the mVSI becomes Up on different conditions as follows:

  • mVSI: requires an Up PW or an Up AC in the VSI.

  • Service VSI: requires two or more Up AC interfaces, or an Up AC interface and an Up PW.

After the mVSI receives a gratuitous ARP packet, the MAC addresses of the relevant service VSIs are cleared. The mVSI checks whether the number of bound service VSIs reaches the threshold.

  • If the number of bound service VSIs reaches the threshold, the MAC addresses of all the VSIs are cleared and a log is generated.

  • If the number of bound service VSIs does not reach the threshold, the MAC address of a VSI is cleared and a log is generated.

Example

# Configure V100 as an mVSI.

<HUAWEI> system-view
[HUAWEI] mpls l2vpn 
[HUAWEI-l2vpn] quit
[HUAWEI] vsi v100 static
[HUAWEI-vsi-v100] pwsignal ldp
[HUAWEI-vsi-v100-ldp] vsi-id 100
[HUAWEI-vsi-v100-ldp] quit
[HUAWEI-vsi-v100] admin-vsi

broadcast-suppression cir cbs (VSI view)

Function

The broadcast-suppression cir cbs command enables the broadcast traffic suppression function in a VSI.

The undo broadcast-suppression command disables the broadcast traffic suppression function in the VSI.

By default, the broadcast traffic suppression function is disabled in a VSI.

Format

broadcast-suppression cir cir-value cbs cbs-value

undo broadcast-suppression

Parameters

Parameter

Description

Value

cir cir-value

Specifies the Committed Information Rate (CIR), that is, the allowed rate at which traffic can pass through.

The value is an integer that ranges from 0 to 10000000, in kbit/s.

cbs cbs-value

Specifies the Committed Burst Size (CBS), that is, the traffic that can pass instantly, or the depth of the first token bucket.

The value is an integer that ranges from 10000 to 4294967295, in bytes.

Views

VSI view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

On a VPLS network, broadcast packets, multicast packets, and unknown unicast packets are transmitted in broadcast mode and copied to neighboring ACs and PWs. If a large number of broadcast packets are sent to the access device on the network, the device has to make a lot of copies of these broadcast packets, which wastes bandwidth and resources, and degrades the performance of the system. You can run the broadcast-suppression cir cbs command to suppress the broadcast traffic in the VSI. The rate of broadcast traffic on the VPLS network is limited.

Prerequisites

A VSI has been created using the vsi vsi-name [ auto | static ] command.

Example

# Set the CIR to 100 kbit/s and the CBS to 18800 bytes for the broadcast traffic that can pass in VSI1.

<HUAWEI> system-view
[HUAWEI] vsi VSI1
[HUAWEI-vsi-VSI1] broadcast-suppression cir 100 cbs 18800

bfd bind peer-ip default-ip vsi

Function

The bfd bind peer-ip default-ip vsi command creates a BFD session based on the VSI PW.

The undo bfd command deletes a specified BFD session and the created BFD binding.

By default, no BFD session based on the VSI PW is created.

Format

bfd cfg-name bind peer-ip default-ip vsi vsi-name peer peer-address [ vc-id vc-id ]

undo bfd cfg-name

Parameters

Parameter Description Value
cfg-name

Specifies the BFD configuration name.

The value is a string of 1 to 15 case-insensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
peer-ip default-ip

Indicates the default multicast IP address that is bound to a BFD session.

-
vsi vsi-name

Specifies the name of a specified VSI.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
peer peer-address

Specifies the peer IP address of the PW in a VSI.

The address is in dotted decimal notation.
vc-id vc-id

Specifies the ID of a VC, which uniquely identifies the VC. Generally, this parameter is specified when the two ends with different VSI IDs need to interconnect.

The value of the parameter vc-id must be different from the VSI ID configured for another local VSI and other VSI IDs specified locally by the negotiate-vc-id command. That is, the specified VC ID must be an unused one. The VSI ID is a decimal integer that ranges from 1 to 4294967295.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To configure VPLS convergence on the device, use the bfd bind peer-ip default-ip vsi command on the PE to bind the BFD session to the VSI PW when BFD is enabled between the UPE and SPE.

Prerequisites

The following operations have been performed before this command is used:

  1. BFD has been enabled globally using the bfd command.
  2. The VSI in the static member discovery mode has been created using the vsi vsi-name static command.
  3. The LDP VSI has been configured using the pwsignal ldp command.
  4. The ID of the VSI has been configured using the vsi-id vsi-id command.
  5. The peer of the VSI has been configured using the peer peer-address command.
  6. The PW has been configured using the peer peer-address [ negotiation-vc-id vc-id ] pw pw-name command.

Precautions

After the binding between the BFD and the VSI PW is configured on the UPE, you must run the bfd for vsi-pw enable command to make the BFD take effect.

After the BFD session based on the VSI PW is created, BFD packets between devices are forwarded through the VSI.

Example

# Create a BFD session based on VSI v100.

<HUAWEI> system-view
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi v100 static
[HUAWEI-vsi-v100] pwsignal ldp
[HUAWEI-vsi-v100-ldp] vsi-id 100
[HUAWEI-vsi-v100-ldp] peer 3.3.3.3
[HUAWEI-vsi-v100-ldp] peer 3.3.3.3 pw pw1
[HUAWEI-vsi-v100-ldp-pw-pw1] quit
[HUAWEI-vsi-v100-ldp] quit
[HUAWEI] bfd
[HUAWEI-bfd] quit
[HUAWEI] bfd bfd1 bind peer-ip default-ip vsi v100 peer 3.3.3.3

bfd bind pw vsi

Function

The bfd bind pw vsi command configures a BFD session on a non-SPE node to detect a PW.

The undo bfd command deletes the specified BFD session.

By default, no BFD session is configured to detect the PW.

Format

bfd cfg-name bind pw vsi vsi-name peer peer-address [ vc-id vc-id ] [ remote-peer remote-peer-address pw-ttl { auto-calculate | ttl-number }]

undo bfd cfg-name

Parameters

Parameter Description Value
cfg-name Specifies the name of a BFD session. The value is a string of 1 to 15 case-insensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
vsi vsi-name Specifies the name of a VSI. The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
peer peer-address Specifies the destination IP address of the VPLS PW, which is usually the LSR ID. The value is in dotted decimal notation.
vc-id vc-id Specifies the ID of a Layer 2 VC. The value is an integer ranging from 1 to 4294967295.
remote-peer remote-peer-address Specifies the IP address used as the destination address of the PW to be detected by a BFD session, which is usually the LSR ID. The value is in dotted decimal notation. It cannot be in the format of 127.X.X.X.
pw-ttl Indicates the the BFD session detects the PW in TTL mode. -
auto-calculate Indicates that the number of hops along a PW is counted automatically. -
ttl-number Specifies the number of hops along the PW to be detected. The value is an integer ranging from 1 to 255.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

BFD sessions can rapidly detect links on the network. You can run the bfd bind pw vsi command to detect a single-hop VPLS PW or a multi-hop PW formed by connecting a VPLS PW to a VLL PW. The bfd bind pw vsi command detects the VPLS PW in unicast mode and specifies the VPLS PW to be detected through the parameter peer peer-address.
  • If the configured BFD session is used to detect an end-to-end single-hop VPLS PW, the value of peer peer-address and the value of remote-peer remote-peer-address are identical. In this case, you can run the bfd cfg-name bindpw vsi vsi-name peer peer-address command only. The TTL value is 255.

  • If the BFD session is used to detect a multi-hop PW formed by connecting a VPLS PW to a VLL PW, you need to specify the destination IP address of the VPLS PW through peer peer-address and the destination IP address of the multi-hop PW through remote-peer remote-peer-address.
    • If auto-calculate is specified, the system automatically counts the number of hops along the PW to be detected based on remote-peer remote-peer-address.

    • If ttl ttl-number is specified, the number of hops along the PW to be detected is manually set.

NOTE:

When running the bfd bind pw vsi command to detect a multi-hop PW, ensure that the first-hop PW is the VPLS PW, which must be configured on a non-SPE node.

When running the bfd bind pw vsi command to detect a single-hop VPLS PW, ensure that the single-hop VPLS PW is configured on a non-SPE node.

If VPLS forwards data through TE tunnels, PW detection using a BFD session is not supported.

Prerequisites

The PW to be detected must exist. The BFD session must be established between the source and destination of the PW.

Before running the bfd bind pw vsi command, ensure that the following configuration operations have been performed:
  • The BFD function has been enabled globally through the bfd command.

  • A single-hop VPLS PW or multi-hop PW formed by connecting a VPLS PW to a VLL PW has been created.

Precautions

This command is used to configure a BFD session to detect a VPLS PW only in TTL mode.

Example

# Configure a BFD session on a non-SPE node to detect the VPLS PW in TTL mode.

<HUAWEI> system-view
[HUAWEI] bfd
[HUAWEI-bfd] quit
[HUAWEI] bfd vplspw bind pw vsi vsi1 peer 2.2.2.2 vc-id 123 remote-peer 36.6.6.6 pw-ttl auto-calculate

bfd for vsi-pw enable

Function

The bfd for vsi-pw enable command enables the device to send BFD for VSI-PW packets to the protocol stack.

The undo bfd for vsi-pw enable command disables the device from sending BFD for VSI-PW packets to the protocol stack.

By default, the device does not send BFD for VSI-PW packets to the protocol stack, but discards or forwards the packets.

Format

bfd for vsi-pw enable

undo bfd for vsi-pw enable

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When performing BFD for VSI PW, the device needs to send BFD for VSI-PW packets to the protocol stack. Therefore, the bfd for vsi-pw enable command must be run.

Precautions

If you run the undo bfd for vsi-pw enable command to disable the device from sending BFD for VSI-PW packets to the protocol stack, the BFD for VSI-PW packets are discarded or forwarded. The bfd for vsi-pw enable command and other BFD commands can be run in any sequence.

After the bfd for vsi-pw enable command is run in the system view, the BFD for VSI-PW packets are sent to the protocol stack. If this command is not run, the BFD for VSI PW packets are discarded or forwarded, and the BFD for VSI PW function does not take effect.

Example

# Enable the device to send BFD for VSI-PW packets to the protocol stack.

<HUAWEI> system-view
[HUAWEI] bfd for vsi-pw enable

# Disable the device from sending BFD for VSI-PW packets to the protocol stack.

<HUAWEI> system-view
[HUAWEI] undo bfd for vsi-pw enable

bgp-ad

Function

The bgp-ad command displays the BGP-AD view.

Format

bgp-ad

Parameters

None

Views

VSI view

Default Level

2: Configuration level

Usage Guidelines

To establish the BGP-AD VSI, you need to run the bgp-ad command in the VSI view to display the BGP-AD view. In the BGP-AD view, you can configure parameters such as VPLS-ID and VPN-Target.

Example

# Enter the BGP-AD view.

<HUAWEI> system-view
[HUAWEI] vsi v100
[HUAWEI-vsi-v100] bgp-ad
[HUAWEI-vsi-v100-bgpad]

description (VSI view)

Function

The description command configures the description of a Virtual Switch Instance (VSI).

The undo description command deletes the description of a VSI.

By default, no description of the VSI is configured.

Format

description description

undo description

Parameters

Parameter Description Value
description

Specifies the description of a VSI.

The value is a string of 1 to 64 case-sensitive characters with spaces.

Views

VSI view

Default Level

2: Configuration level

Usage Guidelines

The description command can be used to identify different VSIs or describe the functions of VSIs.

Example

# Configure the description of the current VSI.

<HUAWEI> system-view
[HUAWEI] vsi v100
[HUAWEI-vsi-v100] description vsi for company1
Related Topics

display admin-vsi binding

Function

The display admin-vsi binding command displays the binding relationships between an mVSI and service VSIs.

Format

display admin-vsi binding [ admin-vsi vsi-name ]

Parameters

Parameter

Description

Value

admin-vsi vsi-name

Specifies the name of an mVSI.

The value is an existing mVSI.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

You can run the display admin-vsi binding command to view the binding relationships between an mVSI and service VSIs on the local device.

Precautions

If you do not specify the name of the mVSI when running the display admin-vsi binding command, all the binding relationships between the mVSIs and service VSIs are displayed.

Example

# Display the binding relationships between the specified mVSI v100 and the service VSIs.

[HUAWEI] display admin-vsi binding admin-vsi v100
  Admin-vsi                 Service-vsi
  --------------------------------------------
  V100                      V2
  V100                      V3

# Display all the binding relationships between the mVSIs and service VSIs.

[HUAWEI] display admin-vsi binding
  Admin-vsi                 Service-vsi
  --------------------------------------------
  V100                      V2
  V100                      V3
  V4                        V5
  V4                        V6
Table 10-72  Description of the display admin-vsi binding command output

Item

Description

Admin-vsi

Name of the mVSI.

To set the value, run the admin-vsi command.

Service-vsi

Name of the service VSI.

display bgp l2vpn-ad routing-table

Function

The display bgp l2vpn-ad routing-table command displays BGP L2VPN-AD routes.

Format

display bgp l2vpn-ad [ route-distinguisher route-distinguisher ] routing-table [ vpls-ad ] [ ipv4-address | statistics ]

display bgp l2vpn-ad routing-table peer ipv4-address advertised-routes [ vpls-ad ] [ ipv4-address | statistics ]

display bgp l2vpn-ad routing-table peer ipv4-address received-routes [ active ] [ statistics ]

display bgp l2vpn-ad routing-table vpws route-distinguisher route-distinguisher [ ce-id ce-id [ label-offset label-offset ] ]

display bgp l2vpn-ad routing-table { vpws | vpls | all } [ statistics ]

display bgp l2vpn-ad routing-table peer ipv4-address advertised-routes vpls-ad ipv4-address

display bgp l2vpn-ad routing-table peer ipv4-address received-routes vpls-ad [ active ] [ statistics ]

display bgp l2vpn-ad routing-table vpls route-distinguisher route-distinguisher [ site-id site-id [ label-offset label-offset ] ]

display bgp l2vpn-ad routing-table peer ipv4-address received-routes { vpws | vpls | all } [ statistics ]

display bgp l2vpn-ad routing-table peer ipv4-address advertised-routes vpws [ statistics | route-distinguisher route-distinguisher ce-id ce-id label-offset label-offset ]

display bgp l2vpn-ad routing-table peer ipv4-address advertised-routes vpls [ statistics | route-distinguisher route-distinguisher site-id site-id label-offset label-offset ]

display bgp l2vpn-ad routing-table peer ipv4-address advertised-routes all [ statistics ]

display bgp l2vpn-ad routing-table peer ipv4-address received-routes vpls-ad network

display bgp l2vpn-ad routing-table peer ipv4-address received-routes vpws route-distinguisher route-distinguisher ce-id ce-id label-offset label-offset

display bgp l2vpn-ad routing-table peer ipv4-address received-routes vpls route-distinguisher route-distinguisher site-id site-id label-offset label-offset

Parameters

Parameter Description Value
route-distinguisher route-distinguisher Displays BGP L2VPN-AD routing information of the specified RD. -
ipv4-address Specifies the IPv4 network address. -
statistics Display the statistics of the BGP L2VPN-AD routes. -
peer Displays the routing information for the specified BGP peer. -
advertised-routes Displays the routes advertised to the specified peer. -
received-routes Displays the routes received from the specified peer. -
active Displays the active routes received from the specified peer. -
network Specifies the IPv4 network address. -
vpls-ad Displays VPLS-AD route information. -
vpws Displays VPWS route information. -
vpls Displays VPLS route information. -
all Displays information about all types of routes. -
ce-id ce-id Specifies the CE ID. The value is a decimal integer ranging from 0 to 65535.
site-id site-id Specifies the site ID of a VSI. The value is a decimal integer ranging from 0 to 65535.
label-offset label-offset Specifies the offset of a label. The value is a decimal integer ranging from 0 to 65535.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can specify different parameters to view the specific routing information.

Example

# Display all the BGP L2VPN-AD routing information.

<HUAWEI> display bgp l2vpn-ad routing-table
                                                                                
                                                                                
 Local AS number : 100                                                          
                                                                                
 BGP Local router ID is 10.1.150.122                                           
 Status codes: * - valid, > - best, d - damped,                                 
               h - history,  i - internal, s - suppressed, S - Stale            
               Origin : i - IGP, e - EGP, ? - incomplete                        
                                                                                
                                                                                
                                                                                
 Total number of routes from all PE: 2                                          
 Route Distinguisher: 1:1                                                       
                                                                                
                                                                                
      Network            NextHop        MED        LocPrf    PrefVal Path/Ogn   
                                                                                
 *>   1.1.1.9/32         0.0.0.0                               0      ?         
 *>i  3.3.3.9/32         3.3.3.9                    100        0      ?         

# Display the detailed routing information of an specified route.

<HUAWEI> display bgp l2vpn-ad routing-table 3.3.3.9
                                                                                
                                                                                
 BGP local router ID : 10.1.150.122                                            
 Local AS number : 100                                                          
                                                                                
 Total routes of Route Distinguisher(1:1): 1                                    
 BGP routing table entry information of 3.3.3.9/32:                             
 From: 3.3.3.9 (192.2.2.2)                                                  
 Route Duration: 00h02m09s                                                      
 Relay IP Nexthop: 172.1.1.1                                                    
 Relay IP Out-Interface: Vlanif30                                               
 Original nexthop: 3.3.3.9                                                      
 Qos information : 0x0                                                          
 Ext-Community:RT <100 : 1>, Layer2 Info <1 : 1>                                
 AS-path Nil, origin incomplete, localpref 100, pref-val 0, valid, internal, bes
t, select, pre 255, IGP cost 1                                                  
 Not advertised to any peer yet                                                 
# Display VPLS route information.
<HUAWEI> display bgp l2vpn-ad routing-table vpls

 BGP Local router ID is 10.1.0.3
 Status codes: * - valid, > - best, d - damped,
               h - history,  i - internal, s - suppressed, S - Stale


 Total Number of Routes: 2
      Network(RD/Site-ID/LabelOffset)        NextHop

 *>i  100:1/1/0                              1.1.1.1
 *>   100:2/2/0                              0.0.0.0
# Display information about VPLS routes received from 1.1.1.1.
<HUAWEI> display bgp l2vpn-ad routing-table peer 1.1.1.1 received-routes vpls

 BGP Local router ID is 10.1.0.3
 Status codes: * - valid, > - best, d - damped,
               h - history,  i - internal, s - suppressed, S - Stale


 Total Number of Routes: 1
      Network(RD/Site-ID/LabelOffset)        NextHop

 *>i  100:1/1/0                              1.1.1.1
Table 10-73  Description of the display bgp l2vpn-ad routing-table command output

Item

Description

Network

Network address in the BGP routing table

NextHop

Next Hop address through which the packet has to be sent

MED

Multi-Exit discriminator

LocPrf

Local preference

PrefVal

Value preferred by the protocol

Path/Ogn

AS-Path number and the attributes of Origin

BGP Local router ID ID of the local BGP device. The ID is in the same format as an IPv4 address.
Local AS number Local AS number.
Total routes of Route Distinguisher Total number of L2VPN-AD routes with a specified RD.
BGP routing table entry information of x.x.x.x/x The following information is about a specified BGP routing entry.
From IP address of the route originator.
Route Duration Route duration.
Relay IP Nexthop Iterated next hop IP address.
Relay IP Out-Interface Iterated outbound interface.
Original nexthop Original next hop.
Qos information

QoS information.

  • 0x20000000: indicates that the apply behavior command has been run.
  • 0x40000001–0x40000FFF: indicates that the apply qos-local-id qos-local-id command has been run and the qos-local-id varies from 1 to 4095.
  • 0x80000001–0x80000007: indicates that the apply ip-precedence precedence command has been run and the precedence varies from 1 to 7.
  • 0x0: indicates that the preceding QoS configurations are not performed.
Ext-Community Extended community attribute of BGP.
AS-path AS_Path attribute.

Nil indicates that the attribute value is null.

origin Origin attribute of the BGP route.
  • IGP: The routes imported into the BGP routing table by using the network command.
  • EGP: The routes are obtained by EGP.
  • Incomplete: The origin of the routes cannot be determined, for example, the routes imported into the BGP routing table by using the import-route command.
localpref Local preference of the BGP route.
pref-val Preferred value.
valid Valid BGP route.
internal Internal BGP route.
best The BGP route is the optimal route.
select The BGP route is a preferred route.
pre 255 The preference of the BGP route is 255.

IGP cost 1

Indicates the IGP cost is 1.

Not advertised to any peer yet The BGP route has not been advertised to any peer.
# Display detailed information about the specified invalid VPLS-AD routes.
<HUAWEI> display bgp l2vpn-ad routing-table 1.1.1.1
 BGP local router ID : 10.1.1.2
 Local AS number : 100

 Total routes of Route Distinguisher(1:1): 1
 BGP routing table entry information of 1.1.1.1/32:
 From: 1.1.1.1 (10.1.1.1)
 Route Duration: 00h00m30s  
 Relay IP Nexthop: 10.1.1.1
 Relay IP Out-Interface: GigabitEthernet0/0/0
 Original nexthop: 1.1.1.1
 Qos information : 0x0
 Ext-Community:RT <100 : 1>, Layer2 Info <1 : 1>

 AS-path Nil, origin incomplete, localpref 100, pref-val 0, internal, select, pre 255, invalid for route-policy not pass
 Not advertised to any peer yet
Table 10-74  Description of the display bgp l2vpn-ad routing-table command output

Item

Description

BGP local router ID

ID of the local BGP router. The format is the same as the IPv4 address.

Local AS number

Local AS number.

Total routes of Route Distinguisher(1:1)

The total number of routes with the RD of 1:1.

BGP routing table entry information of 1.1.1.1/32

The following information is about 1.1.1.1/32 routing entries.

From

IP address of the router that sends the route. 10.1.1.1 is the IP address of the source interface of the peer with which the BGP connection is established, and 1.1.1.1 is the Router ID of the peer.

Route Duration

Duration of routes.

Relay IP Nexthop

IP iterated next hop.

Relay IP Out-Interface

IP iterated outbound interface.

Original nexthop

Original next hop.

Qos information

QoS information.

  • 0x20000000: indicates that the apply behavior command has been run.
  • 0x40000001–0x40000FFF: indicates that the apply qos-local-id qos-local-id command has been run and the qos-local-id varies from 1 to 4095.
  • 0x80000001–0x80000007: indicates that the apply ip-precedence precedence command has been run and the precedence varies from 1 to 7.
  • 0x0: indicates that the preceding QoS configurations are not performed.

Ext-Community

Extended community attribute.

AS-path Nil

AS_Path attribute, with Nil indicating that the attribute value is null.

origin incomplete

Well-known mandatory property. This property defines the origin of a path and records how a route turns to a BGP route. The property has the following three values:
  • IGP: The priority of this value is the highest. The origin property of the routes that are added to the BGP routing table by using the network (BGP) command is IGP.

  • EGP: The priority of this value is second to that of IGP. The origin property of the routes imported from EGP is EGP.

  • Incomplete: The priority of this value is the lowest. The value indicates the origin of a route is unknown. The origin property of the routes that are added to the BGP routing table by using the import-route (BGP) command is Incomplete.

localpref

Local priority.

pref-val

Value preferred by the protocol.

internal

The BGP route is an internal route.

select

The BGP route is a preferred route.

pre 255

The priority of the BGP route is 255.

invalid for route-policy not pass

Reason why a route is invalid:

  • invalid for route-policy not pass: The route does not match the route-policy.

  • invalid for supernet route: The route is a supernet route.

  • invalid for IP unreachable: The route fails to be iterated to another route.

  • invalid for supernet route not advertise: No supernet routes are advertised.

  • invalid for supernet label route not advertise: No supernet labeled routes are advertised.

  • invalid for next-hop unreachable: The next-hop IP address is unreachable.

  • invalid for tunnel unreachable: The route fails to be iterated to a tunnel.

Not advertised to any peer yet

The BGP route has not been advertised to any peer yet.

display bgp vpls

Function

The display bgp vpls command displays information about VPLS in the BGP routing table.

Format

display bgp vpls { all | route-distinguisher route-distinguisher [ site-id site-id [ label-offset label-offset ] ] }

Parameters

Parameter Description Value
all

Displays all VPLS information in the BGP VPLS address family.

-
route-distinguisher route-distinguisher
Displays the VSI information about the specified Route Distinguisher (RD).The formats of an RD are as follows:
  • 16-bit AS number:32-bit user-defined number: for example, 101:3. An AS number ranges from 0 to 65535, and a user-defined number ranges from 0 to 4294967295. The AS number and user-defined number cannot be both 0. That is, a VPLS ID cannot be 0:0.
  • Integral 4-byte AS number:2-byte user-defined number, for example, 65537:3. An AS number ranges from 65536 to 4294967295. A user-defined number ranges from 0 to 65535. The AS number and user-defined number cannot be both 0s. That is, a VPLS ID cannot be 0:0.

  • 4-byte AS number in dotted notation:2-byte user-defined number, for example, 0.0:3 or 0.1:0. A 4-byte AS number in dotted notation is in the format of x.y, where x and y are integers that range from 1 to 65535 and from 0 to 65535, respectively. A user-defined number ranges from 0 to 65535. The AS number and user-defined number cannot be both 0s. That is, a VPLS ID cannot be 0.0:0.

  • 32-bit IP address:16-bit user-defined number: for example, 192.168.122.15:1. An IPv4 address ranges from 0.0.0.0 to 255.255.255.255, and a user-defined number ranges from 0 to 65535.
-
site-id site-id

Displays the VSI of the specified site ID.

The value is an integer that ranges from 0 to 65534.
label-offset label-offset

Displays the VSI information about the specified label offset.

The value is an integer that ranges from 0 to 65535.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can specify the parameter values of the command to view required VPLS.

When the output information is excessive, you can run the display bgp vpls peer command to view information about the BGP peer in the VPLS, and run the display bgp vpls group command to view information about the BGP peer group in the VPLS.

Example

# Display the VPLS with the VSI of the BGP RD as 1.1.1.2:1.

<HUAWEI> display bgp vpls route-distinguisher 1.1.1.2:1
BGP Local Router ID : 10.1.1.1, Local AS Number : 100
Status codes : * - active, > - best

--------------------------------------------------------------------------------
Route Distinguisher: 1.1.1.2:1
   SiteID Offset NextHop         Range LabBase TunnelID   FromPeer        MHPref
--------------------------------------------------------------------------------
>  1      0      0.0.0.0         3     35840   0x0        0.0.0.0         0
Table 10-75  Description of the display bgp vpls route-distinguisher command output

Item

Description

BGP Local Router ID

ID of the BGP local router.

To set the value, run the router-id command.

Local AS Number

Local AS number.

To set the value, run the bgp command.

Status codes

Route status.

  • *: active route
  • >: best route

Route Distinguisher

RD of the VPN instance.

To set the value, run the route-distinguisher command.

SiteID

Site ID of the remote VSI.

To set the value, run the site command.

Offset

Offset of the site ID. The value is 0 or 1 and the default value is 0.

To set the value, run the site command.

Nexthop

IP address of the next hop.

Range

Range of the number of sites in the VSI. The value is a decimal integer.

To set the value, run the site command.

LabBase

Start number of the allocated labels.

Tunnel ID

Tunnel ID, which is automatically allocated by the system and is in hexadecimal notation.

FromPeer

IP address of the BGP peer.

MHPref

Multi-homing preference.

To set the value, run the multi-homing-preference command.

display l2vpn ccc-interface vc-type

Function

The display l2vpn ccc-interface vc-type command displays information about the interface used by an L2VPN connection.

Format

display l2vpn ccc-interface vc-type { all | vc-type } [ down | up ]

Parameters

Parameter Description Value
all Displays information about all interfaces of L2VPN connections. -
vc-type Specifies the type of the L2VPN connection.
The following types of the L2VPN connection are available:
  • ccc: Cross Circuit Connection

  • ldp-vc: L2VPN connection in the Martini mode

  • static-vc: L2VPN connection in the SVC mode

  • bgp-vc: L2VPN connection in the Kompella mode

  • vpls-vc: VPLS connection

down Displays information about interfaces of L2VPN connection in the Down state. -
up Displays information about interfaces of L2VPN connection in the Up state. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

When locating L2VPN faults, you can use the display l2vpn ccc-interface vc-type command to view information about the AC interface of the current L2VPN connection, the total number of AC interfaces of various L2VPN connections, interface status, interface encapsulation type, and L2VPN connection types.

Example

# Display information about all the interfaces of L2VPN.

<HUAWEI> display l2vpn ccc-interface vc-type all
Total ccc-interface of LDP VC: 1                                                
up (1), down (0)                                                                
Interface                     Encap Type               State     VC Type        
Vlanif12                      vlan                     up        ldp-vc         
Table 10-76  Description of the display l2vpn ccc-interface vc-type command output

Item

Description

Total ccc-interface of CCC : 2

up (2), down (0)

Total number of L2VPN connections is 2. Two connections is Up. No connection is Down.

Interface

Interface connected to the L2VPN connection on the switch.

Encap Type

Encapsulation type of the L2VPN connection. The encapsulation type can be VLAN encapsulation or Ethernet encapsulation.

State

Current status of the L2VPN connection. The status can be Up or Down.

VC Type

Type of the L2VPN connection:

  • ccc: Cross Circuit Connection

  • ldp-vc: L2VPN connection in the Martini mode

  • static-vc: L2VPN connection in the SVC mode

  • bgp-vc: L2VPN connection in the Kompella mode

  • vpls-vc: VPLS connection

display l2vpn vsi-list tunnel-policy

Function

The display l2vpn vsi-list tunnel-policy command displays the correlation between tunnel policies and VSIs.

Format

display l2vpn vsi-list tunnel-policy policy-name

Parameters

Parameter Description Value
policy-name

Specifies the name of a PW tunnel policy.

The value is an existing tunnel policy.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Using the display l2vpn vsi-list tunnel-policy policy-name command, you can view the names of VSIs that create a PW using the specified tunnel policy.

Example

# Display the name of the tunnel policy used by the VSI.

<HUAWEI> display l2vpn vsi-list tunnel-policy p1
Using Tunnel-Policy p1 VSI Instance statistics:
----------------------------------------------------------------------
  vsi v1
  vsi v2
  vsi v3
Table 10-77  Description of the display l2vpn vsi-list tunnel-policy command output

Item

Description

Using Tunnel-Policy p1 VSI Instance statistics

Names of all the PW VSIs established by the specified tunnel policy.

vsi

VSI name.

display mpls l2vpn resource

Function

The display mpls l2vpn resource command displays MPLS L2VPN specifications and usage information.

Format

display mpls l2vpn resource

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

To check MPLS L2VPN specifications and usage information in routine maintenance, run the display mpls l2vpn resource command.

Example

# Display MPLS L2VPN specifications and usage information.

<HUAWEI> display mpls l2vpn resource

Public Capacity Statistics       
 Statistics Item                     Supported Number      Used Number    
 L2VPN AC Number                     4096                  0              
 L2VPN VC Number                     8188                  0              

 VPWS Capacity Statistics         
 Statistics Item                     Supported Number      Used Number    
 L2VPN Local CCC Number              2000                  0              
 L2VPN Remote CCC Number             1008                  0              
 L2VPN SVC Number                    1024                  0              
 L2VPN LDP VC Number                 4000                  0              
 L2VPN BGP VC Number                 4096                  0              
 L2VPN Switch VC Number              4000                  0              

 VPLS Capacity Statistics         
 Statistics Item                     Supported Number      Used Number    
 L2VPN VSI Number                    1024                  0              
 L2VPN BGP VSI Number                1024                  0              
 L2VPN VSI VC Number                 8000                  0              
 L2VPN VSI PWG Number                1024                  0
Table 10-78  Description of the display mpls l2vpn resource command output

Item

Description

Public Capacity Statistics

MPLS L2VPN capacity statistics

Statistics Item

Statistics item

Supported Number

Maximum number allowed

Used Number

Number already used

L2VPN AC Number

Number of L2VPN AC interfaces, including the maximum number allowed and number already used

L2VPN VC Number

Number of L2VPN VCs, including the maximum number allowed and number already used

VPWS Capacity Statistics

VPWS capacity statistics

L2VPN Local CCC Number

Number of VLLs in local CCC mode, including the maximum number allowed and number already used

L2VPN Remote CCC Number

Number of VLLs in remote CCC mode, including the maximum number allowed and number already used

L2VPN SVC Number

Number of VLLs in SVC mode, including the maximum number allowed and number already used

L2VPN LDP VC Number

Number of LDP VLLs, including the maximum number allowed and number already used

L2VPN BGP VC Number

Number of BGP VLLs, including the maximum number allowed and number already used

L2VPN Switch VC Number

Number of Switch VC, including the maximum number allowed and number already used

VPLS Capacity Statistics

VPLS capacity statistics

L2VPN VSI Number

Number of VSIs, including the maximum number allowed and number already used

L2VPN BGP VSI Number

Number of BGP VSIs, including the maximum number allowed and number used

L2VPN VSI VC Number

Number of VSI VCs, including the maximum number allowed and number already used

L2VPN VSI PWG Number

Number of protection groups for a VSI, including the maximum number allowed and number already used

display mpls label-stack vpls vsi

Function

The display mpls label-stack vpls vsi command displays information about label stacks in a VPLS scenario.

Format

display mpls label-stack vpls vsi vsi-name peer peer-ip-address vc-id vc-id

Parameters

Parameter Description Value
vsi-name Specifies the name of a VSI. The value is an existing VSI.
peer peer-ip-address Specifies the IP address of a peer. The value is in dotted decimal notation.
vc-id vc-id Specifies the VPLS PW ID. The value is an integer ranging from 1 to 4294967295.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

To view PW traffic forwarding information in a Martini VPLS scenario, run the display mpls label-stack vpls vsi command.

Example

# Display stack label information in a Martini VPLS scenario with the peer IP address 1.1.1.9 and PW ID 11.

<HUAWEI> display mpls label-stack vpls vsi a1 peer 1.1.1.9 vc-id 11
Label-stack  : 1
Level        : 1
Type         : VPLS
Label        : 1028
Level        : 2
Type         : LDP
Label        : --
OutInterface : Vlanif1024
Table 10-79  Description of the display mpls label-stack vpls vsi command output

Item

Description

Label-stack

Number of label stacks

Level

Number of label layers

Type

Tunnel type

Label

Outgoing label value

OutInterface

Outbound interface name

display oam-mac list

Function

The display oam-mac list command displays the MAC address list for the diagnostic test on the MAC address learning capacity.

Format

display oam-mac list

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

The display oam-mac list command displays MAC address lists of all the mac populate or mac purge operations that are available on the device.

NOTE:

Before performing diagnostic test of the MAC address learning capacity, you need to apply for a MAC address specialized for the diagnostic test. In this case, the diagnostic test does not impact on the normal forwarding.

At present, only the following MAC addresses are used in the diagnostic test.
  • 0018-82a4-3fb1
  • 0018-82a4-3fb2
  • 0018-82a4-3fb3
  • 0018-82a4-3fb4
  • 0018-82a4-3fb5
  • 0018-82a4-3fb6
  • 0018-82a4-3fb7
  • 0018-82a4-3fb8
  • 0018-82a4-3fb9
  • 0018-82a4-3fba

Example

# Display the MAC address list for the diagnostic test of the MAC address learning capacity.

<HUAWEI> display oam-mac list
No.  Mac Address
 1  0018-82a4-3fb1
 2  0018-82a4-3fb2
 3  0018-82a4-3fb3
 4  0018-82a4-3fb4
 5  0018-82a4-3fb5
 6  0018-82a4-3fb6
 7  0018-82a4-3fb7
 8  0018-82a4-3fb8
 9  0018-82a4-3fb9
10  0018-82a4-3fba

display oam-mac statistics

Function

The display oam-mac statistics command displays the statistics about the number of MAC diagnostic packets.

Format

display oam-mac statistics { populate | purge | purge-register | all }

Parameters

Parameter Description Value
populate

Displays the statistics about the number of populate packets.

-
purge

Displays the statistics about the number of purge packets.

-
purge-register

Displays the statistics about the number of purge register packets.

-
all

Displays the statistics about the number of MAC diagnostic packets of all types.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Using the display oam-mac statistics command, you can view the number of MAC diagnostic packets that is counted since the reset oam-mac statistics command was run.

Example

# Display the statistics about the number of populate packets that are received by the device.

<HUAWEI> display oam-mac statistics populate
Received populate packet: 3

# Display the statistics about the number of all MAC diagnostic packets that are received by the device.

<HUAWEI> display oam-mac statistics all
 Received populate packet: 3
 Received purge packet: 1
 Received purge register packet: 2
Table 10-80  Description of the display oam-mac statistics all command output

Item

Description

Received populate packet

Number of received populate packets.

Received purge packet

Number of received purge packets.

Received purge register packet

Number of received purge register packets.

display traffic-statistics vsi

Function

The display traffic-statistics vsi command displays the statistics about the public traffic on all VPLS PWs in a specified VSI.

Format

display traffic-statistics vsi vsi-name

Parameters

Parameter Description Value
vsi-name

Specifies the name of a specified VSI.

The value is an existing VSI.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

After the VPLS network is configured, you can run the display traffic-statistics vsi command to view the statistics about the traffic on all VPLS PWs in a specified VSI.

Precautions

  • Currently, this command only displays the statistics about the traffic on the Martini VPLS PWs in the VSI.

  • Within five minutes, if a PW goes Down, traffic before the PW is Down cannot be used to compute the traffic rate in the five minutes.

Example

# Display the statistics about the traffic on all VPLS PWs in a specified VSI.

<HUAWEI> display traffic-statistics vsi newvsi
vsi-name: newvsi
Peer-address: 10.22.33.20
Negotiation-vc-id: 2
Statistics last cleared: never
Last 300 seconds input rate : 0 bytes/sec, 0 packets/sec
Last 300 seconds output rate: 0 bytes/sec, 0 packets/sec
Input: 0 bytes, 0 packets
Output: 0 bytes, 0 packets
Table 10-81  Description of the display traffic-statistics vsi command output

Item

Description

vsi-name

VSI name.

Peer-address

IP address of the remote peer.

Negotiation-vc-id

VC ID of the PW.

Statistics last cleared

Last time when statistics are cleared.

Last 300 seconds input rate

Rate of incoming traffic in the last 300 seconds.

Last 300 seconds output rate

Rate of outgoing traffic in the last 300 seconds.

Input

Number of packets received by the PW from the AC.

Output

Number of packets sent from the PW to the AC.

display traffic-statistics vsi peer

Function

The display traffic-statistics vsi peer command displays the statistics about the public traffic on a VPLS PW in a specified VSI.

Format

display traffic-statistics vsi vsi-name peer peer-address

Parameters

Parameter Description Value
vsi-name

Specifies the name of a specified VSI.

The value is an existing VSI.
peer-address

Specifies the peer IP address of the PW.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

After the VPLS network is configured, you can run the display traffic-statistics vsi peer command to view the statistics about the traffic on the PW.

Precautions

  • Currently, this command only displays the statistics about the traffic on the Martini VPLS PWs in the VSI.

  • Within five minutes, if a PW goes Down, traffic before the PW is Down cannot be used to compute the traffic rate in the five minutes.

Example

# Display the statistics about the outgoing traffic on the specified VPLS PW.

<HUAWEI> display traffic-statistics vsi newvsi peer 10.22.33.20
vsi-name: newvsi
Peer-address: 10.22.33.20
Negotiation-vc-id: 2
Statistics last cleared: never
Last 300 seconds input rate : 0 bytes/sec, 0 packets/sec
Last 300 seconds output rate: 0 bytes/sec, 0 packets/sec
Input: 0 bytes, 0 packets
Output: 0 bytes, 0 packets
Table 10-82  Description of the display traffic-statistics vsi peer command output

Item

Description

vsi-name

VSI name.

Peer-address

IP address of the remote peer.

Negotiation-vc-id

VC ID of the PW.

Statistics last cleared

Last time when statistics are cleared.

Last 300 seconds input rate

Rate of incoming traffic in the last 300 seconds.

Last 300 seconds output rate

Rate of outgoing traffic in the last 300 seconds.

Input

Number of packets received by the PW from the AC.

Output

Number of packets sent from the PW to the AC.

display traffic-statistics vsi peer ldp129

Function

The display traffic-statistics vsi peer ldp129 command displays the statistics about the public traffic on a BGP-AD VPLS PW in a specified VSI.

Format

display traffic-statistics vsi vsi-name peer peer-address ldp129

Parameters

Parameter Description Value
vsi-name

Specifies the name of a VSI. The specified VSI must be a VSI of the BGP-AD VPLS.

The value is an existing VSI.
peer-address

Specifies the peer IP address of the PW.

-
ldp129

Specifies the statistics about the public traffic in the BGP-AD VPLS that uses LDP 129 signaling.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

After the BGP-AD VPLS configuration is complete, you can run the display traffic-statistics vsi peer ldp129 command to view the statistics about the traffic on the PW.

Prerequisites

The following operations have been performed before this command is used:
  1. The BGP-AD VPLS has been configured.
  2. The traffic statistics function has been enabled using the traffic-statistics enable (VSI-BGPAD view) command or the traffic-statistics peer enable (VSI-BGPAD) command in the VSI-BGPAD view.

Precautions

  • The display traffic-statistics vsi peer ldp129 command only displays the statistics about the traffic on the PW in the BGP-AD VPLS.

  • Within five minutes, if a PW goes Down, traffic before the PW is Down cannot be used to compute the traffic rate in the five minutes.

Example

# Display the statistics about the public traffic on the specified PW in the BGP-AD VPLS.

<HUAWEI> display traffic-statistics vsi vplsad1 peer 10.22.33.20 ldp129
vsi-name: vplsad1
Peer-address: 10.22.33.20
Statistics last cleared: never
Last 300 seconds input rate : 0 bytes/sec, 0 packets/sec
Last 300 seconds output rate: 0 bytes/sec, 0 packets/sec
Input: 0 bytes, 0 packets
Output: 0 bytes, 0 packets
Table 10-83  Description of the display traffic-statistics vsi peer ldp129 command output

Item

Description

vsi-name

VSI name.

Peer-address

IP address of the peer device.

Statistics last cleared

Last time when statistics are cleared.

Last 300 seconds input rate

Rate of incoming traffic in the last 300 seconds.

Last 300 seconds output rate

Rate of outgoing traffic in the last 300 seconds.

Input

Number of packets received by the PW from the AC.

Output

Number of packets sent from the PW to the AC.

display traffic-statistics vsi peer negotiation-vc-id

Function

The display traffic-statistics vsi peer negotiation-vc-id command displays the statistics about the public traffic on the Martini VPLS PW in a specified VSI.

Format

display traffic-statistics vsi vsi-name peer peer-address negotiation-vc-id vc-id

Parameters

Parameter Description Value
vsi-name

Specifies the name of a specified VSI.

The value is an existing VSI.
peer-address

Specifies the peer IP address of the PW.

-
vc-id

Specifies the VC ID of the PW.

The value is an integer that ranges from 1 to 4294967295.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

After the Martini VPLS network is configured, you can run the display traffic-statistics vsi peer negotiation-vc-id command to view the statistics about the traffic on the PW.

Prerequisites

The following operations have been performed before this command is used:
  1. The Martini VPLS has been configured.
  2. The traffic statistics function has been enabled using the traffic-statistics enable (VSI-LDP view) command or the traffic-statistics peer enable (Martini) command in the VSI-LDP view.

Precautions

  • Currently, this command only displays the statistics about the traffic on the Martini VPLS PWs in the VSI.

  • Within five minutes, if a PW goes Down, traffic before the PW is Down cannot be used to compute the traffic rate in the five minutes.

Example

# Display the statistics about the traffic on the specified Martini VPLS PW.

<HUAWEI> display traffic-statistics vsi newvsi peer 10.22.33.20 negotiation-vc-id 2
vsi-name: newvsi
Peer-address: 10.22.33.20
Negotiation-vc-id: 2
Statistics last cleared: never
Last 300 seconds input rate : 0 bytes/sec, 0 packets/sec
Last 300 seconds output rate: 0 bytes/sec, 0 packets/sec
Input: 0 bytes, 0 packets
Output: 0 bytes, 0 packets
Table 10-84  Description of the display traffic-statistics vsi peer negotiation-vc-id command output

Item

Description

vsi-name

VSI name.

Peer-address

IP address of the remote peer.

Negotiation-vc-id

VC ID of the PW.

Statistics last cleared

Last time when statistics are cleared.

Last 300 seconds input rate

Rate of incoming traffic in the last 300 seconds.

Last 300 seconds output rate

Rate of outgoing traffic in the last 300 seconds.

Input

Number of packets received by the PW from the AC.

Output

Number of packets sent from the PW to the AC.

display traffic-statistics vsi peer remote-site

Function

The display traffic-statistics vsi peer remote-site command displays the statistics about the public traffic on the Kompella VPLS PW in a specified VSI.

Format

display traffic-statistics vsi vsi-name peer peer-address remote-site site-id

Parameters

Parameter Description Value
vsi-name

Specifies the name of a specified VSI.

The value is an existing VSI.
peer-address

Specifies the peer IP address of the PW.

-
site-id

Specifies the remote site ID.

The value is an integer that ranges from 0 to 65534.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

After the Kompella VPLS network is configured, you can run the display traffic-statistics vsi peer remote-site command to view the statistics about the traffic on the PW.

Prerequisites

The following operations have been performed before this command is used:
  1. The Kompella VPLS has been configured.
  2. The traffic statistics function has been enabled using the traffic-statistics peer remote-site enable (Kompella) command in the VSI-BGP view.

Precautions

  • The Kompella VPLS PW is uniquely identified by the user-defined VSI name, the next-hop IP address, and the remote site value.

  • Within five minutes, if a PW goes Down, traffic before the PW is Down cannot be used to compute the traffic rate in the five minutes.

Example

# Display the statistics about the traffic on the specified Kompella VPLS PW.

<HUAWEI> display traffic-statistics vsi newvsi peer 10.22.33.20 remote-site 2
vsi-name: newvsi
Peer-address: 10.22.33.20
Negotiation-vc-id: 2
Statistics last cleared: never
Last 300 seconds input rate : 0 bytes/sec, 0 packets/sec
Last 300 seconds output rate: 0 bytes/sec, 0 packets/sec
Input: 0 bytes, 0 packets
Output: 0 bytes, 0 packets
Table 10-85  Description of the display traffic-statistics vsi peer remote-site command output

Item

Description

vsi-name

VSI name.

Peer-address

IP address of the remote peer.

Remote-site-id

Remote Site ID.

Statistics last cleared

Last time when statistics are cleared.

Last 300 seconds input rate

Rate of incoming traffic in the last 300 seconds.

Last 300 seconds output rate

Rate of outgoing traffic in the last 300 seconds.

Input

Number of packets received by the PW from the AC.

Output

Number of packets sent from the PW to the AC.

display vpls connection

Function

The display vpls connection command displays the VPLS connection.

Format

display vpls connection [ ldp | bgp | bgp-ad | vsi vsi-name ] [ down | up ] [ verbose ]

Parameters

Parameter Description Value
ldp

Displays information about LDP signaling connections.

-
bgp

Displays information about BGP signaling connections.

-
bgp-ad

Displays information about BGP AD signaling connections.

-
vsi vsi-name

Displays information about connections of the specified VSI.

The value is an existing VSI.
down

Displays information about connections in Down state.

-
up

Displays information about connections in Up state.

-
verbose

Displays detailed information about connections.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

After VPLS services are configured, you can run the display vpls connection command with different keywords or parameters to view information about specific VPLS connections.

Prerequisites

One of the following operations has been performed before the display vpls connection command is used:
  • Configuring Kompella VPLS

  • Configuring Martini VPLS

  • Configuring BGP AD VPLS

Precautions

If no keyword or parameter is specified, information about all VPLS connections in Up state is displayed.

Example

# Display information about the connections of all VSIs.

<HUAWEI> display vpls connection

2 total connections,
connections: 2 up, 0 down, 1 ldp, 1 bgp, 0 bgpad

VSI Name: a2                               Signaling: ldp
VsiID      EncapType               PeerAddr         InLabel   OutLabel  VCState
2          vlan                    3.3.3.9          1026      1025      up
VSI Name: bgp1                             Signaling: bgp
SiteID     RD                      PeerAddr         InLabel   OutLabel  VCState
2          168.1.1.2:1             3.3.3.9          35842     35841     up
Table 10-86  Description of the display vpls connection command output

Item

Description

VSI Name

Name of the VSI.

To set the value, run the vsi command.

Signaling

Signaling mode: ldp, bgp, bgpad or ldp bgpad.

To set the value, run the pwsignal or bgp-ad command.

VsiID

VSI ID.

To set the value, run the vsi-id command.

EncapType

VPLS encapsulation type of the VSI, namely, the encapsulation type of the packets transmitted over the VC.

To set the value, run the encapsulation command.

PeerAddr

IP addresses of the peer.

InLabel

VC label distributed locally.

OutLabel

Local outgoing label, namely, the VC label distributed by the peer.

VCState

Status of the VC.

SiteID

Site ID of the remote VSI.

To set the value, run the site command.

RD

RD used for identifying a VSI on the PE in the VPLS using BGP signaling.

To set the value, run the route-distinguisher command.

# Display the detailed information about all VSI connections.

<HUAWEI> display vpls connection verbose
VSI Name: a2                               Signaling: ldp
  **Remote Vsi ID   : 2
    VC State        : up
    Encapsulation   : vlan
    Group ID        : 0
    MTU             : 1500
    Peer Ip Address : 3.3.3.9
    PW Type         : label
    Local VC Label  : 1026
    Remote VC Label : 1025
    Tunnel Policy   : --
    Tunnel ID       : 0x10x0000000001004c4be1 
VSI Name: bgp1                             Signaling: bgp
  **Remote Site ID     : 2
    VC State           : up
    RD                 : 168.1.1.2:1
    Encapsulation      : vlan
    MTU                : 1500
    Peer Ip Address    : 3.3.3.9
    PW Type            : label
    Local VC Label     : 35842
    Remote VC Label    : 35841
    Tunnel Policy      : --
    Tunnel ID          : 0x1
    Remote Label Block : 35840/5/0
    Export vpn target  : 100:1
Table 10-87  Description of the display vpls connection verbose command output

Item

Description

VSI Name

Name of the VSI.

To set the value, run the vsi command.

Signaling

Signaling mode: ldp, bgp, bgpad or ldp bgpad.

Remote Vsi ID

Remote VSI ID that is consistent with the local VSI ID.

VC State

Status of the VC, which can be Up or Down.

Encapsulation

VPLS encapsulation type of the VSI, namely, the encapsulation type of the packets transmitted over the VC. The encapsulation type is VLAN or Ethernet.

To set the value, run the encapsulation command.

Group ID

Group identifier.

MTU

Maximum transmission unit.

To set the value, run the mtu command.

Peer Ip Address

IP addresses of the peer.

PW Type

Type of the PW.

Local VC Label

Local VC label.

Remote VC Label

Remote VC label.

Tunnel Policy

Tunnel policy that is used by the L2VPN.

Tunnel ID

Tunnel ID.

Remote Label Block

Remote label block.

Export vpn target

Outbound extended community attribute to the target VPN.

# Display the detailed information about connections of a VSI named bgp1

<HUAWEI> display vpls connection vsi bgp1 verbose
VSI Name: bgp1                             Signaling: bgp
  **Remote Site ID     : 2
    VC State           : up
    RD                 : 168.1.1.2:1
    Encapsulation      : vlan
    MTU                : 1500
    Peer Ip Address    : 3.3.3.9
    PW Type            : label
    Local VC Label     : 35842
    Remote VC Label    : 35841
    Tunnel Policy      : --
    Tunnel ID          : 0x1
    Remote Label Block : 35840/5/0
    Export vpn target  : 100:1
Table 10-88  Description of the display vpls connection vsi vsi-name verbose command output

Item

Description

VSI Name

Name of the VSI.

Signaling

Signaling mode: ldp, bgp, bgpad or ldp bgpad.

Remote Site ID

the Site ID of remote peer.

VC State

Status of the VC.

RD

Local router distinguisher.

Encapsulation

VPLS encapsulation type of the VSI, namely, the encapsulation type of the packets transmitted over the VC.

MTU

Maximum transmission unit.

Peer Ip Address

IP addresses of the peer.

PW Type

Type of the PW.

Local VC Label

VC label distributed locally.

Remote VC Label

VC label distributed by the peer.

Tunnel Policy

Tunnel policy.

Tunnel ID

Tunnel ID.

Remote Label Block

Remote label block.

Export vpn target

Outbound extended community attribute to the target VPN.

# Display information about BGP AD VPLS connections with peers.

<HUAWEI> display vpls connection bgp-ad

1 total bgpad connections ,
connections: 1 up, 0 down

VSI Name: vplsad1                          Signaling: bgpad
VPLS ID               EncapType      PeerAddr        InLabel   OutLabel  VCState
168.1.1.1:1           vlan           3.3.3.9         1027      1026      up
Table 10-89  Description of the display vpls connection bgp-ad command output

Item

Description

VSI Name

Name of the VSI.

Signaling

VPLS signaling mode:

  • ldp
  • bgp
  • bgpad
  • ldp bgpad

VPLS ID

Identifier of a BGP AD VPLS domain.

EncapType

VPLS encapsulation type of the VSI, namely, the encapsulation type of the packets transmitted over the VC:

  • VLAN
  • Ethernet

PeerAddr

IP addresses of the peer.

InLabel

VC label distributed locally.

OutLabel

Local outgoing label, namely, the VC label distributed by the peer.

VCState

Status of the VC.

  • up
  • down

# Display detailed information about BGP AD connections of the VSIs that are in Up state.

<HUAWEI> display vpls connection bgp-ad up verbose
VSI Name: vplsad1                          Signaling: bgpad
  **VPLS ID         : 168.1.1.1:1
    VC State        : up
    Encapsulation   : vlan
    Group ID        : 0
    MTU             : 1500
    Peer Ip Address : 3.3.3.9
    PW Type         : label
    Local VC Label  : 1027
    Remote VC Label : 1026
    Tunnel Policy   : --
Table 10-90  Description of the display vpls connection bgp-ad up verbose command output

Item

Description

VSI Name

Name of the VSI.

Signaling

VPLS signaling mode:

  • ldp
  • bgp
  • bgpad
  • ldp bgpad

VPLS ID

Identifier of a BGP AD VPLS domain.

Encapsulation

VPLS encapsulation type of the VSI, namely, the encapsulation type of the packets transmitted over the VC:

  • VLAN
  • Ethernet

Group ID

Group identifier

MTU

Maximum transmission unit.

Peer Ip Address

IP addresses of the peer.

Local VC Label

VC label distributed locally.

Remote VC Label

Local outgoing label, namely, the VC label distributed by the peer.

Tunnel Policy

Name of a tunnel policy used by the VPLS.

display vpls forwarding-info

Function

The display vpls forwarding-info command displays forwarding information of all VSIs.

Format

display vpls forwarding-info [ vsi vsi-name [ peer peer-address [ negotiation-vc-id vc-id | remote-site site-id ] ] | state { up | down } ] [ verbose ]

Parameters

Parameter Description Value
vsi vsi-name

Displays forwarding information of a specified VSI.

The value is an existing VSI.
peer peer-address

Specifies the peer IP address of the PW.

The value is in dotted decimal notation.
negotiation-vc-id vc-id

Specifies the VC ID of the PW.

The value is an integer that ranges from 1 to 4294967295.
remote-site site-id

Specifies the remote site ID.

The value is an integer that ranges from 0 to 65534.
state

Displays the forwarding information about VSIs based on the PW status.

-
up

Displays the forwarding information about the VSIs whose PWs are in Up state.

-
down

Displays the forwarding information about the VSIs whose PWs are in Down state.

-
verbose

Displays detailed forwarding information of the VSI.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

After the VPLS is configured, you can run the display vpls forwarding-info command to view the forwarding information of all VSIs.

Prerequisites

One of the following operations has been performed before the display vpls forwarding-info command is used:
  • Configuring Kompella VPLS

  • Configuring Martini VPLS

  • Configuring BGP AD VPLS

Precautions

  • The display vpls forwarding-info vsi vsi-name command is used to display forwarding information of a specified VSI (in Martini mode or Kompella mode).

  • The display vpls forwarding-info vsi vsi-name peer peer-address [ negotiation-vc-id vc-id ] command is used to display forwarding information of a specified PW in the Martini VSI.

  • The display vpls forwarding-info vsi vsi-name peer peer-address remote-site site-id command is used to display forwarding information about a specified PW in the Kompella VSI.

Example

# Display brief forwarding information of all PWs in all VSIs.

<HUAWEI> display vpls forwarding-info
Total Number   : 2,        2  up,  0  down

Vsi-Name                        PeerIP          VcOrSiteId  PwState
a2                              3.3.3.9         2           UP
vplsad1                         3.3.3.9         0           UP

# Display brief information about the VSI PWs in Up state.

<HUAWEI> display vpls forwarding-info state up
Total Number   : 2,        2  up,  0  down

Vsi-Name                        PeerIP          VcOrSiteId  PwState
a2                              3.3.3.9         2           UP
vplsad1                         3.3.3.9         0           UP
Table 10-91  Description of the display vpls forwarding-info command output

Item

Description

Total Number

The number of VSI.

Vsi-Name

Name of the VSI.

PeerIP

Peer IP address of the PW in the VSI.

VcOrSiteId

  • VSI ID for the Martini VSI.
  • Site ID for the Kompella VSI.

PwState

PW status:
  • Up
  • Down

# Display detailed forwarding information of all PWs in all VSIs.

<HUAWEI> display vpls forwarding-info verbose
Total Number   : 2,        2  up,  0  down

**Vsi-Name      : a2
  Vsi Index     : 0                            PwState      : UP
  Peer IP       : 3.3.3.9                      VcOrSiteId   : 2
  InVcLabel     : 1026                         OutVcLabel   : 1025
  BroadTunnelID : 0x1                          OutInterface : Vlanif1025
  MainPwToken   : 0x1                          SlavePwToken : 0x0
  NKey          : 0x9                          CKey         : 0xa

**Vsi-Name      : vplsad1
  Vsi Index     : 2                            PwState      : UP
  Peer IP       : 3.3.3.9                      VcOrSiteId   : 0
  InVcLabel     : 1036                         OutVcLabel   : 1031
  BroadTunnelID : 0x1                          OutInterface : Vlanif1025
  MainPwToken   : 0x1                          SlavePwToken : 0x0
  NKey          : 0x9                          CKey         : 0x1b

# Display the detailed forwarding information about the VSI PWs in Up state.

<HUAWEI> display vpls forwarding-info state up verbose
Total Number   : 2,        2  up,  0  down

**Vsi-Name      : a2
  Vsi Index     : 0                            PwState      : UP
  Peer IP       : 3.3.3.9                      VcOrSiteId   : 2
  InVcLabel     : 1026                         OutVcLabel   : 1025
  BroadTunnelID : 0x1                          OutInterface : Vlanif1025
  MainPwToken   : 0x1                          SlavePwToken : 0x0
  NKey          : 0x9                          CKey         : 0xa

**Vsi-Name      : vplsad1
  Vsi Index     : 2                            PwState      : UP
  Peer IP       : 3.3.3.9                      VcOrSiteId   : 0
  InVcLabel     : 1036                         OutVcLabel   : 1031
  BroadTunnelID : 0x1                          OutInterface : Vlanif1025
  MainPwToken   : 0x1                          SlavePwToken : 0x0
  NKey          : 0x9                          CKey         : 0x1b
Table 10-92  Description of the display vpls forwarding-info verbose command output

Item

Description

Total Number

The number of VSI.

Vsi-Name

Name of the VSI.

Vsi Index

VSI index.

PwState

PW status:
  • Up
  • Down

Peer IP

Peer IP address of the PW in the VSI.

VcOrSiteId

  • VSI ID for the Martini VSI.
  • Site ID for the Kompella VSI.

InVcLabel

Incoming label of the VC.

OutVcLabel

Outgoing label of the VC.

BroadTunnelID

ID of the tunnel used for broadcast.

OutInterface

Outbound interface.

MainPwToken

Token of the master PW.

SlavePwToken

Token of the slave PW.

NKey

Network key. Each NKey corresponds to one peer + tunnel policy.

CKey

User key. Each CKey corresponds to a PW.

display vpls multicast-ping statistics

Function

The display vpls multicast-ping statistics command displays the statistics on the number of sent and received MFIB Ping packets.

Format

display vpls multicast-ping statistics

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Using the display vpls multicast-ping statistics command, you can view the statistics on the number of MFIB Ping packets that are received and sent by the device since the last time the reset vpls multicast-ping statistics command was run.

Example

# Display the statistics on the number of MFIB Ping packets.

<HUAWEI> display vpls multicast-ping statistics
Total sent: 5 packet(s)
Total received: 5 packet(s)
Vpls Mfib-ping echo request sent: 5 packet(s), received: 0 packet(s)
Vpls Mfib-ping echo reply sent: 0 packet(s), received: 5 packet(s)
Table 10-93  Description of the display vpls multicast-ping statistics command output

Item

Description

Total sent

Total number of sent packets.

Total received

Total number of received packets.

Vpls Mfib-ping echo request

Number of sent and received VPLS MFIB Ping Echo Request packets.

Vpls Mfib-ping echo reply

Number of sent and received VPLS MFIB Ping Echo Reply packets.

display vpls multicast-trace statistics

Function

The display vpls multicast-trace statistics command displays the statistics on the number of sent and received MFIB Trace packets.

Format

display vpls multicast-trace statistics

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can run the display vpls multicast-trace statistics command to view the number of sent and received MFIB Trace packets since the last time the reset vpls multicast-trace statistics command is executed.

Example

# Display the statistics on the number of MFIB Trace packets.

<HUAWEI> display vpls multicast-trace statistics
Total sent: 2 packet(s)
Total received: 2 packet(s)
Vpls Mfib-trace echo request sent: 2 packet(s), received: 0 packet(s)
Vpls Mfib-trace echo reply sent: 0 packet(s), received: 2 packet(s)
Table 10-94  Description of the display vpls multicast-trace statistics command output

Item

Description

Total sent

Total number of sent packets.

Total received

Total number of received packets.

Vpls Mfib-trace echo request

Number of sent and received VPLS MFIB Trace Echo Request packets.

Vpls Mfib-trace echo reply

Number of sent and received VPLS MFIB Trace Echo Reply packets.

display vpls-ping statistics

Function

The display vpls-ping statistics command displays the statistics on the number of sent and received VPLS MAC Ping packets.

Format

display vpls-ping statistics

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Using the display vpls-ping statistics command, you can view the statistics on the number of sent and received VPLS MAC Ping packets on the device.

Example

# Display the statistics on the number of VPLS MAC Ping packets.

<HUAWEI> display vpls-ping statistics
Vpls-ping statistics:
Total sent: 104797 packet (s)
Total received: 104792 packet (s)
vpls-ping request sent: 13 packet (s), received: 104784 packet (s)
vpls-ping reply sent: 104784 packet (s), received: 8 packet (s)
Table 10-95  Description of the display vpls-ping statistics command output

Item

Description

Total sent

Total number of sent VPLS MAC Ping packets.

Total received

Total number of received VPLS MAC Ping packets.

vpls-ping request sent

Number of sent VPLS Ping Request packets.

vpls-ping reply sent

Number of sent VPLS Ping Reply packets.

display vpls-trace statistics

Function

The display vpls-trace statistics command displays the statistics on the number of sent and received VPLS MAC Trace packets.

Format

display vpls-trace statistics

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Using the display vpls-trace statistics command, you can view the statistics on the number of sent and received VPLS MAC Trace packets on the device.

Example

# Display the statistics on the number of VPLS MAC Trace packets.

<HUAWEI> display vpls-trace statistics
Vpls-trace statistics:
Total sent : 4 packet (s)
Total received : 4 packet (s)
vpls-trace request sent: 4 packet (s), received: 0 packet (s)
vpls-trace reply sent: 0 packet (s), received: 4 packet (s) 
Table 10-96  Description of the display vpls-trace statistics command output

Item

Description

Total sent

Total number of sent VPLS MAC Trace packets.

Total received

Total number of received VPLS MAC Trace packets.

vpls-trace request sent

Number of sent VPLS MAC Trace Request packets.

vpls-trace reply sent

Number of sent VPLS MAC Trace Reply packets.

display vsi

Function

The display vsi command displays information about a VSI.

Format

display vsi [ name vsi-name ] [ verbose ]

display vsi [ name vsi-name ] peer-info [ statistics ]

display vsi name vsi-name peer-info peer-ip [ verbose ]

Parameters

Parameter Description Value
name vsi-name

Displays the name of a specified VSI.

The value is an existing VSI.
verbose

Displays detailed information about the VSI.

-
peer-info

Displays detailed information or statistics about the PW status of peers.

-
statistics

Displays statistics about the PW status of peers.

-
peer-ip

Displays detailed information about the PW status of the peer with a specified IP address.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

When you run the display vsi command:
  • The display vsi command displays information about VSIs. By default, information of all VSIs is displayed.

  • The display vsi peer-info command displays detailed information about the PW status of peers of all VSIs.

  • The display vsi name vsi-name peer-info command displays detailed information about the PW status of peers to a specified VSI.

  • The display vsi name vsi-name peer-info peer-ip command displays detailed information about the PW status of a specific peer to a specified VSI.

  • The display vsi peer-info statistics command displays statistics about the PW status of peers of all VSIs.

  • The display vsi name vsi-name peer-info statistics command displays statistics about the PW status of a specific peer to a specified VSI.

Example

# Display information about the VSI named a2.

<HUAWEI> display vsi name a2
Vsi                             Mem    PW   Mac       Encap     Mtu   Vsi
Name                            Disc   Type Learn     Type      Value State
--------------------------------------------------------------------------
a2                              static ldp  unqualify vlan      1500  up
# Display information about the hybrid VSI named vsi1.
<HUAWEI> display vsi name vsi1
Vsi                             Mem    PW    Mac       Encap     Mtu   Vsi    
Name                            Disc   Type  Learn     Type      Value State  
--------------------------------------------------------------------------    
vsi1                            --     mixed unqualify vlan      1500  up    
Table 10-97  Description of the display vsi command output

Item

Description

Vsi Name

Name of the VSI.

To set the value, run the vsi command.

Mem Disc

Member discovery mode:
  • static
  • auto
  • --

PW Type

PW type:
  • ldp
  • bgp
  • bgpad
  • mixed

Mac Learn

Mode of learning the MAC address.

Encap Type

Encapsulation type.
  • vlan
  • ethernet

Mtu Value

Maximum transmission unit.

To set the value, run the mtu command.

Vsi State

Status of the VSI:
  • up
  • down
  • *down

# Display detailed information about all VSIs.

<HUAWEI> display vsi verbose

 ***VSI Name               : a2
    Administrator VSI      : no
    Isolate Spoken         : disable
    VSI Index              : 0
    PW Signaling           : ldp
    Member Discovery Style : static
    PW MAC Learn Style     : unqualify
    Encapsulation Type     : vlan
    MTU                    : 1500
    Diffserv Mode          : uniform
    Mpls Exp               : --
    DomainId               : 255
    Domain Name            :
    Ignore AcState         : disable
    P2P VSI                : disable
    Create Time            : 0 days, 3 hours, 6 minutes, 43 seconds
    VSI State              : up

    VSI ID                 : 2
   *Peer Router ID         : 10.3.3.9
    Negotiation-vc-id      : 2 
    primary or secondary   : primary
    ignore-standby-state   : no
    VC Label               : 1026
    Peer Type              : dynamic
    Session                : up
    Tunnel ID              : 0x1
    Broadcast Tunnel ID    : 0x1
    Broad BackupTunnel ID  : 0x0
    CKey                   : 10
    NKey                   : 9
    Stp Enable             : 0
    PwIndex                : 0
    Control Word           : disable
    BFD for PW             : unavailable

    Interface Name         : Vlanif1024
    State                  : up
    Access Port            : false
    Last Up Time           : 2012/07/06 14:00:15
    Total Up Time          : 0 days, 3 hours, 6 minutes, 20 seconds

  **PW Information:

   *Peer Ip Address        : 10.3.3.9
    PW State               : up
    Local VC Label         : 1026
    Remote VC Label        : 1025
    Remote Control Word    : disable
    PW Type                : label
    Local  VCCV            : alert lsp-ping bfd
    Remote VCCV            : alert lsp-ping bfd
    Tunnel ID              : 0x1
    Broadcast Tunnel ID    : 0x1
    Broad BackupTunnel ID  : 0x0
    Ckey                   : 0xa
    Nkey                   : 0x9
    Main PW Token          : 0x1
    Slave PW Token         : 0x0
    Tnl Type               : LSP
    OutInterface           : Vlanif1025
    Backup OutInterface    :
    Stp Enable             : 0
    PW Last Up Time        : 2012/07/06 14:01:07
    PW Total Up Time       : 0 days, 3 hours, 5 minutes, 28 seconds

 ***VSI Name               : bgp1
    Administrator VSI      : no
    Isolate Spoken         : disable
    VSI Index              : 6
    PW Signaling           : bgp
    Member Discovery Style : auto
    PW MAC Learn Style     : unqualify
    Encapsulation Type     : vlan
    MTU                    : 1500
    Diffserv Mode          : uniform
    Mpls Exp               : --
    DomainId               : 255
    Domain Name            : 
    Ignore AcState         : disable
    P2P VSI                : disable
    Create Time            : 2 days, 20 hours, 19 minutes, 16 seconds
    VSI State              : up
 
    BGP RD                 : 172.16.1.1:1
    SiteID/Range/Offset    : 1/5/0
    Import vpn target      : 100:1                  
    Export vpn target      : 100:1                  
    Remote Label Block     : 35840/5/0 
    Local Label Block      : 0/35840/5/0 

    Interface Name         : Vlanif1022
    State                  : up
    Access Port            : false
    Last Up Time           : 2012/08/06 03:24:45
    Total Up Time          : 0 days, 0 hours, 10 minutes, 11 seconds

  **PW Information:

   *Peer Ip Address        : 10.3.3.9
    PW State               : up
    Local VC Label         : 35843
    Remote VC Label        : 35841
    PW Type                : label 
    Local  VCCV            : alert lsp-ping bfd
    Remote VCCV            : alert lsp-ping bfd
    Tunnel ID              : 0x2e4d 
    Broadcast Tunnel ID    : 0x2e4d 
    Broad BackupTunnel ID  : 0x0 
    Ckey                   : 0x17
    Nkey                   : 0x15
    Main PW Token          : 0x2e4d 
    Slave PW Token         : 0x0 
    Tnl Type               : LSP 
    OutInterface           : Vlanif1025 
    Backup OutInterface    :  
    Stp Enable             : 0 
    PW Last Up Time        : 2012/08/06 03:25:12
    PW Total Up Time       : 0 days, 0 hours, 9 minutes, 44 seconds

 ***VSI Name               : vplsad1
    Administrator VSI      : no
    Isolate Spoken         : disable
    VSI Index              : 2
    PW Signaling           : bgpad
    Member Discovery Style : --
    PW MAC Learn Style     : unqualify
    Encapsulation Type     : vlan
    MTU                    : 1500
    Diffserv Mode          : uniform
    Mpls Exp               : --
    DomainId               : 255
    Domain Name            :
    Ignore AcState         : disable
    P2P VSI                : disable
    Create Time            : 0 days, 1 hours, 28 minutes, 24 seconds
    VSI State              : up

    VPLS ID                : 172.16.1.1:1
    RD                     : 172.16.1.1:1
    Import vpn target      : 100:1
    Export vpn target      : 100:1
    VSI ID                 : 1.1.1.9

   *Peer Router ID         : 10.3.3.9
    VPLS ID                : 172.16.1.1:1
    SAII                   : 1.1.1.9
    TAII                   : 10.3.3.9
    VC Label               : 1027
    Peer Type              : dynamic
    Session                : up
    Tunnel ID              : 0x1
    Broadcast Tunnel ID    : 0x1
    CKey                   : 12
    NKey                   : 9

    Interface Name         : Vlanif1023
    State                  : up
    Access Port            : false
    Last Up Time           : 2012/07/06 15:38:40
    Total Up Time          : 0 days, 1 hours, 27 minutes, 56 seconds

  **PW Information:

   *Peer Ip Address        : 10.3.3.9
    PW State               : up
    Local VC Label         : 1027
    Remote VC Label        : 1026
    PW Type                : label
    Local  VCCV            : alert lsp-ping bfd
    Remote VCCV            : alert lsp-ping bfd
    Tunnel ID              : 0x1
    Broadcast Tunnel ID    : 0x1
    Broad BackupTunnel ID  : 0x0
    Ckey                   : 0xc
    Nkey                   : 0x9
    Main PW Token          : 0x1
    Slave PW Token         : 0x0
    Tnl Type               : LSP
    OutInterface           : Vlanif1025
    Backup OutInterface    :
    Stp Enable             : 0
    PW Last Up Time        : 2012/07/06 15:38:56
    PW Total Up Time       : 0 days, 1 hours, 27 minutes, 40 seconds
Table 10-98  Description of the display vsi verbose command output

Item

Description

VSI Name

Name of the VSI.

Administrator VSI

Whether the VSI is an administrator VSI:

  • yes
  • no

Isolate Spoken

Whether the forwarding isolation function is enabled:

  • enable
  • disable

VSI Index

Index of the VSI.

PW Signaling

Type of the PW signaling, which can be ldp, bgp, bgpad or ldp bgpad.

To set the value, run the pwsignal or bgp-ad command.

Member Discovery Style

Member discovery mode, which can be auto or static.

PW MAC Learn Style

Mode of MAC address learning of the PW.

Encapsulation Type

VPLS encapsulation type of the VSI, namely, the encapsulation type of the packets transmitted over the VC:

  • VLAN
  • Ethernet

If the PW encapsulation types on both ends are different, run the encapsulation { ethernet | vlan } command in the VSI view to change the encapsulation type on one end to be the same as that on the other end.

MTU

Maximum transmission unit.

If the MTU values on both ends are different, run the mtu mtu-value command in the VSI view to change the MTU value on one end to be the same as that on the other end.

Diffserv Mode

VSI QoS mode.

Mpls Exp

EXP priority in MPLS packets.

DomainId

ID of a domain.

Domain Name

Domain name.

Ignore AcState

Whether the vpls ignore-ac-state command is used to prevent the status of a VSI from being affected by the status of the Attachment Circuit (AC).

P2P VSI

A P2P VSI identifier, which can be:

  • enable: indicates that the VSI is a P2P VSI.
  • disable: indicates that the VSI is not a P2P VSI.

Create Time

Time when the VSI is created.

VSI State

Status of the VSI:
  • up
  • down
  • administratively down

BGP RD

Route distinguisher. The BGP RD is an identifier on the local device for identifying a VSI on the PE in BGP VPLS. This item is displayed only when the VPLS type is Kompella.

SiteID/Range/Offset

Site ID, site range (the number of sites), and initial site ID offset of the VSI on the local device. This item is displayed only when the VPLS type is Kompella.

Import vpn target

Inbound extended community attribute from the target VPN. This item is displayed only when the VPLS type is Kompella.

Export vpn target

Outbound extended community attribute to the target VPN. This item is displayed only when the VPLS type is Kompella.

Remote Label Block

Initial value, label range, and initial site ID offset of the remote label block. This item is displayed only when the VPLS type is Kompella.

Local Label Block

Initial value, label range, and initial site ID offset of the local label block. This item is displayed only when the VPLS type is Kompella.

VSI ID

VSI ID that is displayed only when the Martini VPLS is configured.

If the VSI IDs or negotiation IDs on both ends are different, run the vsi-id vsi-id or peer (VSI-LDP view) command in the VSI-LDP view to change the VSI ID or negotiation ID on one end to be the same as that on the other end.

Peer Router ID

ID of the peer device. This item is displayed only when the VPLS type is Martini.

Negotiation-vc-id

VC ID for negotiation.

primary or secondary

Whether the PW is a primary PW or a secondary PW.

ignore-standby-state

Whether the PW ignores the secondary state sent from the peer device. yes: Ignore the secondary state sent from the peer device. no: Do not ignore the secondary state sent from the peer device.

VC Label

Label value of the VC. This item is displayed only when the VPLS type is Martini.

Peer Type

PW type of the peer, which can be Dynamic or Static. This item is displayed only when the VPLS type is Martini.

Session

Status of the session between the local end and its peer. The status can be Up or Down. This item is displayed only when the VPLS type is Martini.

Tunnel ID

Tunnel ID that is displayed only when the Martini VPLS is configured.

Broadcast Tunnel ID

Tunnel ID (for broadcast).

Broad BackupTunnel ID

ID of the selected backup broadcast tunnel.

CKey

Index of the public tunnel for VPN QoS.

NKey

Index of the public tunnel.

Stp Enable

Whether STP for PW is enabled:

  • 0: disabled
  • 1: enable

PwIndex

PW index.

Control Word

Whether the control word is enabled for the local end on the PW:
  • enable: The control word is enabled.
  • disable: The control word is disabled.

BFD for PW

Whether BFD is configured:

  • unavailable: not configured
  • available: configured
  • timeout: timeout period after which a BFD session fails to be established

Interface Name

Name of the interface bound to the VSI.

Access Port

Whether the interface supports the access-port attribute:
  • true: indicates that the interface supports the access-port attribute.
  • false: indicates that the interface does not support the access-port attribute.

State

Status of the AC bound to the VSI.
  • up
  • down

Last Up Time

Last time when the AC interface goes Up.

Total Up Time

Total time when the AC interface is Up.

PW Information

Information about the PW.

Peer Ip Address

IP addresses of the peer.

PW State

Status of the PW.
  • up
  • down
  • backup

Local VC Label

VC label distributed locally.

Remote VC Label

VC label distributed by the peer.

Remote Control Word

Whether the control word is enabled for the remote end on the PW:
  • enable: The control word is enabled.
  • disable: The control word is disabled.

PW Type

Type of the PW.

Local VCCV

Type of VCCV supported on the local device.

Remote VCCV

Type of VCCV supported on the remote device.

Tunnel ID

Tunnel ID.

Main PW Token

Token of the master PW.

Slave PW Token

Token of the slave PW.

Tnl Type

Type of a tunnel.

  • LSP
  • CR-LSP
  • GRE
  • Other

OutInterface

Outbound interface.

Backup OutInterface

Outbound interface of the selected backup broadcast tunnel.

PW Last Up Time

Last time when the PW goes Up.

PW Total Up Time

Total time when the PW is Up.

# Display detailed information about the BGP VSI named bgp1.

<HUAWEI> display vsi name bgp1 verbose
 
 ***VSI Name               : bgp1
    Administrator VSI      : no
    Isolate Spoken         : disable
    VSI Index              : 6
    PW Signaling           : bgp
    Member Discovery Style : auto
    PW MAC Learn Style     : unqualify
    Encapsulation Type     : vlan
    MTU                    : 1500
    Diffserv Mode          : uniform
    Mpls Exp               : --
    DomainId               : 255
    Domain Name            : 
    Ignore AcState         : disable
    P2P VSI                : disable
    Create Time            : 2 days, 20 hours, 19 minutes, 16 seconds
    VSI State              : up
 
    BGP RD                 : 172.16.1.1:1
    SiteID/Range/Offset    : 1/5/0
    Import vpn target      : 100:1                  
    Export vpn target      : 100:1                  
    Remote Label Block     : 35840/5/0 
    Local Label Block      : 0/35840/5/0 

    Interface Name         : Vlanif1022
    State                  : up
    Access Port            : false
    Last Up Time           : 2012/08/06 03:24:45
    Total Up Time          : 0 days, 0 hours, 10 minutes, 11 seconds

  **PW Information:

   *Peer Ip Address        : 10.3.3.9
    PW State               : up
    Local VC Label         : 35843
    Remote VC Label        : 35841
    PW Type                : label 
    Local  VCCV            : alert lsp-ping bfd
    Remote VCCV            : alert lsp-ping bfd
    Tunnel ID              : 0x2e4d 
    Broadcast Tunnel ID    : 0x2e4d 
    Broad BackupTunnel ID  : 0x0 
    Ckey                   : 0x17
    Nkey                   : 0x15
    Main PW Token          : 0x2e4d 
    Slave PW Token         : 0x0 
    Tnl Type               : LSP 
    OutInterface           : Vlanif20 
    Backup OutInterface    :  
    Stp Enable             : 0 
    PW Last Up Time        : 2012/08/06 03:25:12
    PW Total Up Time       : 0 days, 0 hours, 9 minutes, 44 seconds
Table 10-99  Description of the display vsi name bgp1 verbose command output

Item

Description

VSI Name

Name of the VSI.

Administrator VSI

Whether the VSI is an administrator VSI:

  • yes: It is an administrator VSI.
  • no: It is not an administrator VSI.

Isolate Spoken

Whether the forwarding isolation function is enabled:

  • enable
  • disable

VSI Index

Index of the VSI.

PW Signaling

Type of the PW signaling, which can be ldp, bgp, bgpad or ldp bgpad.

Member Discovery Style

Member discovery mode, which can be auto or static.

PW MAC Learn Style

Mode of MAC address learning of the PW.

Encapsulation Type

VPLS encapsulation type of the VSI, namely, the encapsulation type of the packets transmitted over the VC:

  • VLAN
  • Ethernet

If the PW encapsulation types on both ends are different, run the encapsulation { ethernet | vlan } command in the VSI view to change the encapsulation type on one end to be the same as that on the other end.

MTU

Maximum transmission unit.

If the MTU values on both ends are different, run the mtu mtu-value command in the VSI view to change the MTU value on one end to be the same as that on the other end.

Diffserv Mode

VSI QoS mode.

Mpls Exp

EXP priority in MPLS packets.

DomainId

ID of a domain.

Domain Name

Domain name.

Ignore AcState

Whether the vpls ignore-ac-state command is used to prevent the status of a VSI from being affected by the status of the AC.

Create Time

Time when the VSI is created.

VSI State

Status of the VSI:
  • up
  • down
  • administratively down

BGP RD

Route distinguisher. The BGP RD is an identifier on the local device for identifying a VSI on the PE in BGP VPLS. This item is displayed only when the VPLS type is Kompella.

SiteID/Range/Offset

Site ID, site range (the number of sites), and initial site ID offset of the VSI on the local device. This item is displayed only when the VPLS type is Kompella.

Import vpn target

Inbound extended community attribute from the target VPN.

Export vpn target

Outbound extended community attribute to the target VPN.

Local Label Block

Initial value, label range, and initial site ID offset of the local label block.

# Display information about the BGP AD VSI named vplsad1.

<HUAWEI> display vsi name vplsad1
Vsi                             Mem    PW   Mac       Encap     Mtu   Vsi
Name                            Disc   Type Learn     Type      Value State
--------------------------------------------------------------------------
vplsad1                         --     bgpad   unqualify vlan      1500  up  

# Display detailed information about the BGP AD VSI.

<HUAWEI> display vsi name vplsad1 verbose

 ***VSI Name               : vplsad1
    Administrator VSI      : no
    Isolate Spoken         : disable
    VSI Index              : 2
    PW Signaling           : bgpad
    Member Discovery Style : --
    PW MAC Learn Style     : unqualify
    Encapsulation Type     : vlan
    MTU                    : 1500
    Diffserv Mode          : uniform
    Mpls Exp               : --
    DomainId               : 255
    Domain Name            :
    Ignore AcState         : disable
    P2P VSI                : disable
    Create Time            : 0 days, 1 hours, 59 minutes, 39 seconds
    VSI State              : up

    VPLS ID                : 172.16.1.1:1
    RD                     : 172.16.1.1:1
    Import vpn target      : 100:1
    Export vpn target      : 100:1
    VSI ID                 : 1.1.1.9

   *Peer Router ID         : 10.3.3.9
    VPLS ID                : 172.16.1.1:1
    SAII                   : 1.1.1.9
    TAII                   : 10.3.3.9
    VC Label               : 1027
    Peer Type              : dynamic
    Session                : up
    Tunnel ID              : 0x1
    Broadcast Tunnel ID    : 0x1
    CKey                   : 12
    NKey                   : 9

    Interface Name         : Vlanif1023
    State                  : up
    Access Port            : false
    Last Up Time           : 2012/07/06 15:38:40
    Total Up Time          : 0 days, 1 hours, 59 minutes, 11 seconds

  **PW Information:

   *Peer Ip Address        : 10.3.3.9
    PW State               : up
    Local VC Label         : 1027
    Remote VC Label        : 1026
    PW Type                : label
    Local  VCCV            : alert lsp-ping bfd
    Remote VCCV            : alert lsp-ping bfd
    Tunnel ID              : 0x1
    Broadcast Tunnel ID    : 0x1
    Broad BackupTunnel ID  : 0x0
    Ckey                   : 0xc
    Nkey                   : 0x9
    Main PW Token          : 0x1
    Slave PW Token         : 0x0
    Tnl Type               : LSP
    OutInterface           : Vlanif1025
    Backup OutInterface    :
    Stp Enable             : 0
    PW Last Up Time        : 2012/07/06 15:38:56
    PW Total Up Time       : 0 days, 1 hours, 58 minutes, 55 seconds            
Table 10-100  Description of the display vsi name vplsad1 verbose command output

Item

Description

PW Signaling

Type of the PW signaling, which can be ldp, bgp, bgpad or ldp bgpad.

Member Discovery Style

Member discovery mode:

  • auto: indicates automatic member discovery. When creating a VSI on a Kompella VPLS network, configure auto in the vsi command.
  • static: indicates static member discovery. When creating a VSI on a Martini VPLS network, configure static in the vsi command.
  • --: When creating a VSI on a BGP AD VPLS network, do not configure the member discovery mode in the vsi command.

VPLS ID

Identifier for identifying a BGP AD VSI on various PEs.

RD

Route Distinguisher, which is the same as the VPLS ID in the BGP AD VSI.

SAII

Source Attachment Individual Identifier, which is a local IP address used during negotiation on the creation of a PW in the BGP AD VSI.

TAII

Target Attachment Individual Identifier, which is a remote IP address used during negotiation on the creation of a PW in the BGP AD VSI.

# Display detailed information of PW status of peers to all VSIs.
<HUAWEI> display vsi peer-info

VSI Name: a2                                          Signaling: ldp
--------------------------------------------------------------------
Peer                Transport  Local      Remote      VC
Addr                VC ID/TAII  VC Label   VC Label    State
--------------------------------------------------------------------
10.3.3.9             2          1026       1025        up
# Display detailed information of PW status of a specific peer to a specified VSI.
<HUAWEI> display vsi name a2 peer-info 10.3.3.9

VSI Name: a2                                          Signaling: ldp
--------------------------------------------------------------------
Peer                Transport  Local      Remote      VC
Addr                VC ID/TAII  VC Label   VC Label    State
--------------------------------------------------------------------
10.3.3.9             2          1026       1025        up
Table 10-101  Description of the display vsi peer-info command output

Item

Description

Vsi Name

Name of the VSI.

Signaling

Signaling mode, which can be ldp, bgp, bgpad or ldp bgpad.

Peer Addr

IP addresses of the peer.

Transport VC ID/TAII

  • VC ID for an LDP PW
  • TAII for a BGP-AD PW

Local VC Label

VC label distributed locally.

Remote VC Label

VC label distributed by the peer.

VC State

Status of the PW.
  • up

  • down

# Display statistics about PW status of peers to all VSIs.
<HUAWEI> display vsi peer-info statistics
Total Local Peers: 1           1 Up          0 Down
---------------------------------------------------------
Vsi Name                        Up Peers       Down Peers
---------------------------------------------------------
a2                              1              0
# Display statistics about PW status of peers to a specified VSI.
<HUAWEI> display vsi name a2 peer-info statistics
Vsi Name                        Up Peers       Down Peers
---------------------------------------------------------
a2                              1              0
Table 10-102  Description of the display vsi peer-info statistics command output

Item

Description

Total Local Peers

Total number of remote peers to the local end, that is, total number of PWs.

Up

Total number of PWs in Up state.

Down

Total number of PWs in Down state.

Vsi Name

Name of the VSI.

Up Peers

Total number of PWs in Up state in a specified VSI.

Down Peers

Total number of PWs in Down state in a specified VSI.

display vsi bgp-ad

Function

The display vsi bgp-ad command displays the VPN targets of the local and remote devices in a BGP AD VPLS domain.

Format

display vsi bgp-ad { export-vt | import-vt | remote-export-vt }

Parameters

Parameter Description Value
export-vt

Displays local export VPN targets, namely, the export VPN targets of all local BGP AD VSIs.

-
import-vt

Displays local import VPN targets, namely, the import VPN targets of all local BGP AD VSIs.

-
remote-export-vt

Displays remote export VPN targets, namely, VPN targets received from BGP AD peers.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

When you configure or debug BGP AD VPLS, you can run the display vsi bgp-ad command to check the correctness of VPN targets that are locally configured or sent from peers.

Prerequisites

BGP AD VPLS member information has been configured on the local or remote end.

Precautions

When you run the display vsi bgp-ad command:

  • To view import VPN targets that are configured locally, specify import-vt in the command.

  • To view export VPN targets that are configured locally, specify export-vt in the command.

  • To view export VPN targets that are sent from peers, specify remote-export-vt in the command.

Example

# Display local import VPN targets in a BGP AD VPLS domain.

<HUAWEI> display vsi bgp-ad import-vt
import vpn target list:
  100:1                  192.168.12.4:100       312:250
  192.168.120.220:53364  100:100                5.5.5.5:13
  312:250

# Display local export VPN targets in a BGP AD VPLS domain.

<HUAWEI> display vsi bgp-ad export-vt
export vpn target list:
  100:1                  192.168.12.4:100       312:250
  192.168.120.220:53364  100:100                5.5.5.5:13
  312:250

# Display remote export VPN targets in a BGP AD VPLS domain.

<HUAWEI> display vsi bgp-ad remote-export-vt
remote export vpn target list:
  100:1                  192.168.12.4:100       312:250
  192.168.120.220:53364  100:100                5.5.5.5:13
  312:250
Table 10-103  Description of the display vsi command output

Item

Description

import vpn target list

List of import VPN targets configured locally.

export vpn target list

List of export VPN targets configured locally.

remote export vpn target list

List of export VPN targets sent from remote BGP AD PEs.

display vsi bgp-ad remote

Function

The display vsi bgp-ad remote command displays information about a specified remote peer of a PE in a BGP AD VPLS domain.

Format

display vsi bgp-ad remote vpls-id vpls-id

Parameters

Parameter Description Value
vpls-id vpls-id

Specifies the VPLS ID of a remote peer.

A VPLS ID is in one of the following formats:
  • 16-bit AS number: a 32-bit user-defined number, for example, 1:3. The AS number ranges from 0 to 65535. The user-defined number ranges from 0 to 4294967295. The AS number and the user-defined number cannot both be 0. That is, a VPN target cannot be 0:0.

  • 32-bit IP address: a 16-bit user-defined number, for example, 192.168.122.15:1. The IP address ranges from 0.0.0.0 to 255.255.255.255. The user-defined number ranges from 0 to 65535.

  • Integral 4-byte AS number:2-byte user-defined number, for example, 65537:3. An AS number ranges from 65536 to 4294967295. A user-defined number ranges from 0 to 65535. The AS number and user-defined number cannot be both 0s. That is, a VPN target cannot be 0:0.

  • 4-byte AS number in dotted notation:2-byte user-defined number, for example, 0.0:3 or 0.1:0. A 4-byte AS number in dotted notation is in the format of x.y, where x and y are integers that range from 1 to 65535 and from 0 to 65535, respectively. A user-defined number ranges from 0 to 65535. The AS number and user-defined number cannot be both 0s. That is, a VPN target cannot be 0.0:0.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

When you configure or debug BGP AD VPLS, the display vsi bgp-ad remote command can be used to display information about a remote peer in a BGP AD VSI such as the VPLS ID, VSI ID, and ERT configured on that peer.

Example

# Display information about a BGP AD peer with the VPLS ID of 10.1.1.1:1.

<HUAWEI> display vsi bgp-ad remote vpls-id 10.1.1.1:1
BGP AD Network Layer Reachability Information
-----------------------------------------------
 *Peer             :3.3.3.9
  VPLS ID          :10.1.1.1:1
  VSI ID           :3.3.3.9
  VSI index        :2
  Export vpn target:100:1
-----------------------------------------------  
Table 10-104  Description of the display vsi bgp-ad remote command output

Item

Description

Peer

Peer IP address.

VPLS ID

VPLS ID configured on the remote peer.

To set the value, run the vpls-id command.

VSI ID

VSI ID configured on the remote peer.

To set the value, run the vsi-id command.

VSI index

Local VSI index matching BGP AD network layer reachability information sent by the remote peer.

Export vpn target

List of export VPN targets sent from the remote peer.

Related Topics

display vsi mac-withdraw loop-detect

Function

The display vsi mac-withdraw loop-detect command displays information about MAC withdraw loop detection.

Format

display vsi [ name vsi-name ] mac-withdraw loop-detect

Parameters

Parameter Description Value
name vsi-name

Specifies the name of a VSI.

The value is an existing VSI.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

After you enable MAC withdraw loop detection, run the display vsi mac-withdraw loop-detect command to view information about MAC withdraw loop detection. If you specify name vsi-name, the command output shows information about MAC withdraw loop detection in a specified VSI. If you do not specify name vsi-name, the command output shows information about MAC withdraw loop detection in all VSIs.

Example

# Display information about MAC withdraw loop detection in all VSIs.

<HUAWEI> display vsi mac-withdraw loop-detect
Total number of vsi detect loop is 2.
Support max hop 255.

Vsi name        : VSI1
Last loop type  : detect loop
Send peer       : 10.5.5.5
Receive peer    : 10.2.2.2
Last loop time  : 2012/10/26 11:35:59

Vsi name        : VSI2
Last loop type  : exceed max hop
Send peer       : 10.5.5.5
Receive peer    : 10.3.3.3
Last loop time  : 2012/10/26 11:35:59

# Display information about MAC withdraw loop detection in VSI1.

<HUAWEI> display vsi name VSI1 mac-withdraw loop-detect
Vsi name        : VSI1
Last loop type  : detect loop
Send peer       : 10.5.5.5
Receive peer    : 10.2.2.2
Last loop time  : 2012/10/26 11:35:59
Table 10-105  Description of the display vsi mac-withdraw loop-detect command output
Item Description

Total number of vsi detect loop

Number of MAC Withdraw message loops.

Support max hop 255

Indicates that the maximum number of hops supported by MAC Withdraw loop detection is 255.

Vsi name

Name of the VSI in which a MAC Withdraw message loop occurred.

Last loop type

Type of the MAC Withdraw message loop. The values are as follows:
  • detect loop: The PE detects that a MAC Withdraw message loop occurs.

  • exceed max hop: The number of hops for forwarding MAC Withdraw messages exceeds the maximum number of hops.

Send peer

Peer to which MAC Withdraw messages are sent.

Receive peer

Peer from which MAC Withdraw messages are received.

Last loop time

Time when the MAC Withdraw message loop occurs.

display vsi protect-group

Function

The display vsi protect-group command displays information about the PW protection group of a specified VSI.

Format

display vsi name vsi-name protect-group [ group-name [ verbose | history ] ]

Parameters

Parameter Description Value
name vsi-name

Specifies the VSI name.

The value is an existing VSI name.
group-name

Specifies the name of a PW protection group.

The value is an existing PW protection group.
verbose

Displays detailed information.

-
history

Displays historical switchover information about PWs in a PW protection group.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

After a PW protection group is configured, you can run the display vsi protect-group command to view summary or detailed information about the PW protection group of a specified VSI and check whether PW configurations have taken effect. When maintaining a PW protection group, you can track the running status of the group by viewing historical switchover information about PWs in the group.

Prerequisites

A PW protection group has been created and the primary and secondary PWs have jointed the group.

Example

# Display summary information about the PW protection group of VSI vsi1.

<HUAWEI> display vsi name vsi1 protect-group
                                                                                
Vsi name: vsi1                                                                  
Protect group num: 1                                                            

Protect-group: vsi1
------------------------------------------------------------------------------- 
PeerIp:VcId                Pref   Active                                        
------------------------------------------------------------------------------- 
3.3.3.3:10                 2      Active                                        
3.3.3.9:10                 4      Inactive                                      
Table 10-106  Description of the display vsi protect-group command output

Item

Description

Vsi name

VSI name.

Protect group num

Number of a PW protection group.

Protect-group

Name of a PW protection group.

PeerIp:VcId

Peer IP address of a PW:VC ID. This pair uniquely identifies a PW.

Pref

PW priority specified by running the peer preference (protect-group view) command in the protect-group view.

Active

Forwarding status of a PW:

  • Active: The PW can send service packets.
  • Inactive: The PW cannot send service packets, but can send OAM packets if the PW is Up.

# Display detailed information about the PW protection group group1 of VSI vsi1.

<HUAWEI> display vsi name vsi1 protect-group group1 verbose

Vsi name           : vsi1
Protect group      : group1
Protect mode       : PW redundancy master                                       
Reroute policy     : delay 30s                                                  
Last change time   : 2012/11/27 11:11:55                                        
Last change action : 3.3.3.9:10 to 3.3.3.3:10                                   
Last change reason : config changed                                             
Holdoff remain time: --
Reroute remain time: --   
                                                                                
Members            :                                                            
 PeerIp:VcId                Pri/Sec   Active                                    
                                                                                
 3.3.3.3:10                 Primary   Active                                    
 3.3.3.9:10                 Secondary Inactive                                  
Table 10-107  Description of the display vsi protect-group command output

Item

Description

Protect mode

PW redundancy mode of a PW protection group:

PW redundancy master: The PW redundancy mode is master/slave.

Reroute policy

Revertive switching policy of a PW protection group. The default revertive switching delay is 30s. In master/slave mode, you can modify the revertive switching policy by running the reroute (protect-group view) command in the protect-group view.

Last change time

Last PW switching time.

Last change action

Last PW switching action. A PW is uniquely identified by peerIP:VcID.

Last change reason

Reason for last PW switching:

  • manual force switch: The PW switching is triggered by the protect-switch force command.
  • manual clear switch: The PW switching is triggered by the protect-switch clear command.
  • config changed: The PW switching is triggered by configuration changes such as PW addition, PW deletion, or PW priority changes.
  • fault dectected: The PW switching is triggered by failures detected by BFD or VCCV.
  • PW down: The PW switching occurs because the active PW goes Down.
  • PW up: The PW switching occurs because the active PW goes Up again.

Holdoff remain time

Remaining time before a switching is performed.
NOTE:

If the value is --, no switching delay is configured.

Reroute remain time

Remaining time before a revertive switching is performed.
NOTE:

If the value is --, no revertive switching delay is configured.

Members

Displays memers in a PW protection group.

Pri/Sec

Primary/secondary status of a PW:

  • Primary: The PW is a primary PW.
  • Secondary: The PW is a secondary PW.

# Display historical switchover information about PWs in PW protection group group1 of VSI vsi1.

<HUAWEI> display vsi name vsi1 protect-group group1 history

Vsi name      : vsi1
Protect group : group1

Date/Time     : 2012/11/27 11:05:40                                             
Action        : 3.3.3.9:10 to 3.3.3.3:10                                        
Reason        : manual clear switch                                             
                                                                                
Date/Time     : 2012/11/27 11:06:29                                             
Action        : 3.3.3.3:10 to 3.3.3.9:10                                        
Reason        : manual force switch                                             
                                                                                
Date/Time     : 2012/11/27 11:06:48                                             
Action        : 3.3.3.9:10 to 3.3.3.3:10                                        
Reason        : PW down                                                         
                                                                                
Date/Time     : 2012/11/27 11:11:31                                             
Action        : 3.3.3.3:10 to 3.3.3.9:10                                        
Reason        : PW up                                                           
                                                                                
Date/Time     : 2012/11/27 11:11:55                                             
Action        : 3.3.3.9:10 to 3.3.3.3:10                                        
Reason        : config changed                                                  
Table 10-108  Description of the display vsi protect-group history command output

Item

Description

Date/Time

PW switching time.

For example, 2011-08-09 16:31:32 indicates that PW switching occurred on 16:31:32 of August 9, 2011.

Action

PW switching action. A PW is uniquely identified by peerIP:VcID.

Reason

Reason for PW switching:

  • manual force switch: The PW switching is triggered by the protect-switch force command.
  • manual clear switch: The PW switching is triggered by the protect-switch clear command.
  • config changed: The PW switching is triggered by configuration changes such as PW addition, PW deletion, or PW priority changes.
  • fault dectected: The PW switching is triggered by failures detected by BFD or VCCV.
  • PW down: The PW switching occurs because the active PW goes Down.
  • PW up: The PW switching occurs because the active PW goes Up again.

display vsi pw out-interface

Function

The display vsi pw out-interface command displays information about the outgoing interface of a VSI PW.

Format

display vsi pw out-interface [ vsi vsi-name ]

Parameters

Parameter Description Value
vsi vsi-name Specifies the name of a VSI. The value is an existing VSI.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

You can run the display vsi pw out-interface command to view information about the actual outgoing interface of the PW.

Precautions

This command applies to the Martini VPLS PW and BGP-AD VPLS PW.

Example

# Display information about the outgoing interface of the VSI PW.

<HUAWEI> display vsi pw out-interface
Total: 2
--------------------------------------------------------------------------------
Vsi Name                        peer            vcid       interface
--------------------------------------------------------------------------------
a2                              3.3.3.9         2          Vlanif1025

vplsad1                         3.3.3.9         --         Vlanif1025

Table 10-109  Description of the display vsi pw out-interface command output

Item

Description

Vsi Name

VSI name.

peer

VSI peer.

vcid

VC ID.

interface

Outgoing interface of a VSI PW.

Related Topics

display vsi remote

Function

The display vsi remote command displays information about a remote VSI.

Format

display vsi remote ldp [ router-id ip-address ] [ pw-id pw-id ]

display vsi remote bgp [ nexthop nexthop-address [ export-vpn-target vpn-target ] | route-distinguisher route-distinguisher ]

display vsi remote ldp129 [ vpls-id vpls-id [ router-id ip-address ] ]

display vsi remote fec129 [ vpls-id vpls-id [ router-id ip-address ] ] [ verbose ]

display vsi remote ldp verbose

Parameters

Parameter

Description

Value

ldp

Displays information about remote VSIs using LDP signaling.

-

bgp

Displays information about remote VSIs using BGP signaling.

-

ldp129

Displays information about remote VSIs using LDP 129 signaling.

-

fec129

Displays information about remote VSIs using FEC 129 signaling.

-

vpls-id vpls-id

Specifies the ID of a VPLS domain to which multiple VSIs on PEs belong.

The vpls-id value has four formats. For details, see Table 10-110.

router-id ip-address

Displays the information about the remote VSIs of the specified peer. ip-address specifies an IPv4 address of the peer.

The value is in dotted decimal notation. If you set the router id parameter to 255.255.255.255, the remote VSIs of all peers are displayed.

pw-id pw-id

Displays the information about the remote VSIs of the specified PW. pw-id specifies the ID of a VC, which uniquely identifies a VC.

The value is an integer that ranges from 1 to 4294967295.

nexthop nexthop-address

Displays the label block sent by the remote end according to the next hop address of the label block.

The value is in dotted decimal notation.

export-vpn-target vpn-target

Displays the label block sent by the remote end according to the next hop address of the label block and the route attributes in the outgoing direction.

The value is a string that ranges from 3 to 21.

route-distinguisher route-distinguisher

Displays the label block sent by the remote end according to the RD.

RD is short for route distinguisher. The route-distinguisher value has four formats. For details, see Table 10-110.

verbose

Display detailed information about the remote VSIs.

-

Table 10-110  Values of vpls-id and route-distinguisher

vpls-id and route-distinguisher Value Format

Value

Example

16-bit AS number:32-bit user-defined number

An AS number ranges from 0 to 65535, and a user-defined number ranges from 0 to 4294967295. The AS number and user-defined number cannot be both 0. That is, a VPLS ID or RD cannot be 0:0.

101:3

Integral 4-byte AS number:2-byte user-defined number

An AS number ranges from 65536 to 4294967295. A user-defined number ranges from 0 to 65535. The AS number and user-defined number cannot be both 0s. That is, a VPLS ID or RD cannot be 0:0.

65537:3

4-byte AS number in dotted notation:2-byte user-defined number. A 4-byte AS number in dotted notation is in the format of x.y

The x and y are integers that range from 1 to 65535 and from 0 to 65535, respectively. A user-defined number ranges from 0 to 65535. The AS number and user-defined number cannot be both 0s. That is, a VPLS ID or RD cannot be 0.0:0.

0.0:3 or 0.1:0

32-bit IP address:16-bit user-defined number

An IPv4 address ranges from 0.0.0.0 to 255.255.255.255, and a user-defined number ranges from 0 to 65535.

192.168.122.15:1

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

To view information about remote VSIs, configure one of the following parameters in the display vsi remote command:

  • Run the display vsi remote ldp command on a Martini VPLS network.
  • Run the display vsi remote bgp command on a Kompella VPLS network.
  • Run the display vsi remote ldp129 or display vsi remote fec129 command on a BGP AD VPLS network.

Example

# Display information about the remote VSIs using LDP signaling.

<HUAWEI> display vsi remote ldp
Vsi        Peer            VC      Group   Encap      MTU    Vsi    State
ID         RouterID        Label   ID      Type       Value  Index  Code
2          10.3.3.9        1025    0       vlan       1500   0      FORWARD
Table 10-111  Description of the display vsi remote ldp command output

Item

Description

Vsi ID

ID of the VSI.

Peer RouterID

Peer IP address.

VC Label

VC label.

Group ID

Group ID.

Encap Type

PW encapsulation type:
  • vlan
  • ethernet

MTU Value

MTU value.

Vsi Index

Index of the VSI.

State Code

Remote state code:

  • FORWARD: indicates that forwarding is supported.
  • NO FORWARD: indicates that forwarding is not supported.
  • STANDBY: indicates the secondary PW.
  • AC FAULT: indicates that the peer AC interface is faulty.
  • PSN FAULT: indicates that a fault occurs on the public network between the local end and peer end.
  • -: indicates that the interworking mode negotiated between two devices is Martini.

# Display information about the remote VSIs using BGP signaling.

<HUAWEI> display vsi remote bgp
    Total Number       : 1
  **BGP RD             : 10.1.1.2:1
    Ref Number         : 1
    NextHop            : 10.3.3.9
    EncapType          : vlan
    MTU                : 1500
    Export vpn target  : 100:1
    SiteID             : 2
    Remote Label Block : 100001/5/0
Table 10-112  Description of the display vsi remote bgp command output

Item

Description

Total Number

Number of the remote VSIs using BGP signaling.

BGP RD

RD of the local VSI.

Ref Number

Serial number of the remote VSI.

NextHop

Next hop address.

EncapType

Encapsulation type:
  • vlan
  • ethernet

MTU

Maximum transmission unit.

Export vpn target

RT in the outgoing direction.

SiteID

Site ID of the remote VSI.

Remote Label Block

Remote label block.

# Display information about the remote VSIs using LDP 129 signaling.

<HUAWEI> display vsi remote fec129
Codes: C(Control word), A(Alert), T(TTL), P(LSP-Ping), B(BFD)
       S(Support), N(No support)
--------------------------------------------------------------------------------
VPLS        Peer      VC        Source    Encap          MTU   VSI   VCCV
ID          RouterID  Label     AII       Type           Value Index |C|A|T|P|B|
--------------------------------------------------------------------------------
10.1.1.1:1  10.3.3.9  1026      10.3.3.9  vlan           1500  2     |N|S|N|S|N|
Table 10-113  Description of the display vsi remotefec129 command output

Item

Description

VPLS ID

VPLS ID of the VSI.

VCCV

Supported VCCV detection types.

# Display detailed information about remote VSIs using LDP signaling.

<HUAWEI> display vsi remote ldp verbose
Total remote VSI : 1

VSI ID             : 2
VSI Index          : 0
VC Type            : vlan
VC Label           : 1025
Peer Address       : 10.3.3.9
Group ID           : 0
MTU                : 1500
Status Code        : FORWARD
Match Local VC     : MATCH
Control Word       : disable
Table 10-114  Description of the display vsi remote ldp verbose command output

Item

Description

Total remote VSI

Total number of remote VSIs.

VSI ID

ID of a remote VSI.

VSI Index

Index of a remote VSI.

VC Type

Remote VC encapsulation type.

VC Label

Remote VC label.

Peer Address

Remote peer address.

Group ID

Remote group ID. The default value is 0.

MTU

MTU of a remote VC.

Status Code

Status of a remote VC:

  • FORWARD: The remote VC is in the forwarding state.
  • STANDBY: The remote VC is in the standby state.
  • AC FAULT: The remote AC interface is faulty.
  • PSN FAULT: The remote VC is faulty.
  • NO FORWRD: The remote VC cannot forward packets owing to other reasons.

Match Local VC

Whether a VC matching the remote VC ID exists on the local end:

  • MATCH: A VC matching the remote VC ID exists on the local end.
  • NOT-MATCH: No VC matching the remote VC ID exists on the local end.

Control Word

Whether the control word is enabled :
  • enable: The control word is enabled.
  • disable: The control word is disabled.
Related Topics

display vsi services

Function

The display vsi services command displays information about the AC interface associated with the VSI.

Format

display vsi services { all | vsi-name | interface interface-type interface-number | vlan vlan-id }

Parameters

Parameter Description Value
all Displays the information about AC interfaces associated with all VSIs. -
vsi-name Displays the information about AC interfaces associated with the specified VSI. The value is an existing VSI.
interface interface-type interface-number Specifies the type and number of the AC interface associated with the VSI.
  • interface-type specifies the type of the interface.
  • interface-number specifies the number of the interface.
-
vlan vlan-id Displays information about the specified VLAN AC interface associated with the VSI. The value is an integer that ranges from 1 to 4094.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

The display vsi services command displays status of the AC interface associated with the VSI, and can be used for fault diagnosis.

Example

# Display information about the AC interfaces associated with all VSIs.

<HUAWEI> display vsi services all
Total: 3
Code: AS(Admin Status), PS(Physical Status)
--------------------------------------------------------------------------------
Interface                           Vsi Name                        AS    PS
--------------------------------------------------------------------------------
GigabitEthernet1/0/0                1                               up    up
Vlanif1024                          a2                              up    up 
Eth-Trunk1.1                        vsi1                            down  down
--------------------------------------------------------------------------------

# Display information about the AC interface associated with the VSI named a2.

<HUAWEI> display vsi services a2
Total: 1
Code: AS(Admin Status), PS(Physical Status)
--------------------------------------------------------------------------------
Interface                           Vsi Name                        AS    PS
--------------------------------------------------------------------------------
Vlanif1024                          a2                              up    up
--------------------------------------------------------------------------------
# Display information about the GE1/0/0 interface associated with the VSI.
<HUAWEI> display vsi services interface gigabitethernet1/0/0
Total: 1
Code: AS(Admin Status), PS(Physical Status)
--------------------------------------------------------------------------------
Interface                           Vsi Name                        AS    PS
--------------------------------------------------------------------------------
GigabitEthernet1/0/0                1                               down  up
--------------------------------------------------------------------------------

# Display information about the AC interface in VLAN 1024 associated with the VSI.

<HUAWEI> display vsi services vlan 1024
Total: 1
Code: AS(Admin Status), PS(Physical Status)
--------------------------------------------------------------------------------
Interface                           Vsi Name                        AS    PS
--------------------------------------------------------------------------------
Vlanif1024                          a2                              up    up
--------------------------------------------------------------------------------
Table 10-115  Description of the display vsi services command output

Item

Description

Interface

Name of the interface.

Vsi Name

Name of the VSI that is bound to the interface.

AS

Status of the VSI that is bound to the interface:

  • up: indicates that the VSI is in Up state.
  • down: indicates that the VSI is in Down state.
  • *down: indicates that the VSI status is AdminDown.

PS

Physical status of the interface:

  • up: indicates that the physical status of the interface is Up.
  • down: indicates that the physical status of the interface is Down.
Related Topics

display vsi statistics

Function

The display vsi statistics command displays VSI statistics, including the PW and AC status.

Format

display vsi name vsi-name statistics

Parameters

Parameter Description Value
name vsi-name Specifies the name of a VSI.

The value is an existing VSI.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

To check the statistics of a specified VSI, including its PW and AC status, run the display vsi statistics command.

Example

# Display the statistics of a VSI named vsi1.

<HUAWEI> display vsi name vsi1 statistics

 VSI Name               : vsi1
 VSI State              : up
 PW                     : 1 up, 0 down, 1 backup
 BFD for PW             : 0 up, 0 down
 AC                     : 1 up, 0 down, 0 AC OAM down
 Ignore AcState         : disable
Table 10-116  Description of the display vsi statistics command output

Item

Description

VSI Name

VSI name

VSI State

VSI status

PW

Number of PWs in each state

BFD for PW

Number of PWs (tracked by BFD) in each state

AC

Number of ACs in each state

Ignore AcState

Whether the function to ignore AC status is enabled

encapsulation (VSI view)

Function

The encapsulation command configures the encapsulation type of the interface in the VSI view.

The undo encapsulation command restores the encapsulation type of the interface to the default setting.

By default, the encapsulation type is VLAN.

Format

encapsulation { ethernet | vlan }

undo encapsulation ethernet

Parameters

Parameter Description Value
ethernet Indicates that the encapsulation type is Ethernet. -
vlan Indicates the VLAN encapsulation format that meets the 802.1Q standard. -

Views

VSI view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When you configure the VPLS function, run the encapsulation command to configure the encapsulation type of the interface.

Prerequisites

The following operations must been performed before this command is used:

  • The pwsignal bgp command and the route-distinguisher route-distinguisher command have been executed for Kompella VPLS.

  • The pwsignal ldp command and the vsi-id vsi-id command have been executed for Martini VPLS.

  • The bgp-ad command and the vpls-id vpls-id command have been executed for BGP AD VPLS.

Example

# Configure the encapsulation type of the current VSI as Ethernet.

<HUAWEI> system-view
[HUAWEI] vsi a2 static
[HUAWEI-vsi-a2] pwsignal ldp
[HUAWEI-vsi-a2-ldp] vsi-id 101 
[HUAWEI-vsi-a2-ldp] quit
[HUAWEI-vsi-a2] encapsulation ethernet
Related Topics

encapsulation rfc4761-compatible

Function

The encapsulation rfc4761-compatible command enables a device to comply with RFC 4761 to encapsulate Kompella VPLS packets.

The undo encapsulation rfc4761-compatible command restores the default encapsulation type of Kompella VPLS packets.

By default, Kompella VPLS packets use the Huawei proprietary encapsulation type. Huawei defines 4 for VLAN encapsulation and 5 for Ethernet encapsulation for Kompella VPLS.

Format

encapsulation rfc4761-compatible

undo encapsulation rfc4761-compatible

Parameters

None

Views

VSI-BGP view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

RFC 4761 defines that the encapsulation type of Kompella VPLS packets is 19. Huawei defines 4 for VLAN encapsulation and 5 for Ethernet encapsulation for Kompella VPLS. Therefore, the encapsulation type of Kompella VPLS packets needs to be modified when Huawei devices communicate with non-Huawei devices.

When the device sends Kompella VPLS packets, run the encapsulation rfc4761-compatible command to enable the device to modify the encapsulation type of Kompella VPLS packets from Type 4 or 5 to Type 19. When the device receives Kompella VPLS packets, the device modifies the encapsulation type of Kompella VPLS packets from Type 19 to Type 4 or 5 automatically without running any command.

NOTE:

When the device works as a PE, the encapsulation type is determined by the CE access mode. If the CE accesses the PE in VLAN mode, the PE encapsulates packets sent by the CE in Type 4. If the CE accesses the PE in Ethernet mode, the PE encapsulates packets sent by the CE in Type 5. VLAN and Ethernet modes are described as follows:

  • VLAN: Ethernet frames transmitted between the CE and PE are attached with a VLAN tag. The tag is a service delimiter required by an ISP to differentiate clients. It is also called P-tag.

  • Ethernet: Ethernet frames transmitted between the CE and PE do not have a service delimiter. If the header of Ethernet frames carries a VLAN tag, this tag is the inner VLAN tag of user packets, and is of no use to the PE. It is also called U-tag.

Precautions

The encapsulation rfc4761-compatible command is only used for Huawei and non-Huawei devices to communicate with each other.

Example

# Enable the device to comply with RFC 4761 to encapsulate Kompella VPLS packets.

<HUAWEI> system-view
[HUAWEI] vsi bgp1
[HUAWEI-vsi-bgp1] pwsignal bgp
[HUAWEI-vsi-bgp1-bgp] encapsulation rfc4761-compatible
Related Topics

holdoff (protect-group view)

Function

The holdoff command configures a switching delay for a PW protection group with the master/slave PW redundancy mode.

The undo holdoff command deletes the switching delay for a PW protection group with the master/slave PW redundancy mode.

By default, no switching delay is configured for a PW protection group with the master/slave PW redundancy mode. In this situation, if a fault occurs on the primary PW, traffic immediately switches from the primary PW to the secondary PW.

Format

holdoff holdoff-time

undo holdoff

Parameters

Parameter Description Value
holdoff-time

Specifies the switching delay.

The value is an integer ranging from 1 to 180, in seconds.

Views

protect-group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

By default, if a working path fails, traffic immediately switches to the protection path. If the working path flaps or an error occurs in the detection mechanism, traffic frequently switches between the working and protection paths. If you want to avoid this problem in a PW protection group with the master/slave PW redundancy mode, run the holdoff command to configure a switching delay. If the working path recovers before the specified switching delay expires, traffic does not switch to the protection path. If the working path remains faulty after the specified switching delay expires, traffic switches to the protection path.

Prerequisites

The PW redundancy mode of the PW protection group is master/slave.

Precautions

If the holdoff command is run multiple times, the latest configuration overrides the previous ones.

After you configure a switching delay, traffic forwarded during the delay period will be interrupted if the primary PW fails to recover before the delay period expires.

A PW protection group with the independent PW redundancy mode does not support delayed switching.

NOTE:

On a VPLS network that uses BFD for fault detection, traffic immediately switches from the primary PW to the secondary PW after BFD detects a fault on the primary PW, no matter whether delayed switching is configured. It is recommended that you determine whether to use BFD or delayed switching based on your actual network requirements.

Example

# Configure a switching delay of 60s for a PW protection group.

<HUAWEI> system-view
[HUAWEI] vsi vsi1
[HUAWEI-vsi-vsi1] pwsignal ldp
[HUAWEI-vsi-vsi1-ldp] protect-group group1
[HUAWEI-vsi-vsi1-ldp-protect-group-group1] protect-mode pw-redundancy master
[HUAWEI-vsi-vsi1-ldp-protect-group-group1] holdoff 60

ignore-ac-state

Function

The ignore-ac-state command enables a VSI to retain in Up state regardless of the Attachment Circuit (AC) state.

The undo ignore-ac-state command restores the default setting.

By default, the VSI state changes with the AC state.

Format

ignore-ac-state

undo ignore-ac-state

Parameters

None

Views

VSI view

Default Level

2: Configuration level

Usage Guidelines

To verify whether a VSI can work normally on the new network before a VPLS network migration, run the ignore-ac-state command in the VSI view on the new device. This command enables the VSI to retain in Up state on the new device before the AC-side device is connected to the new device. When the AC interface is Down and the PW is Up, the VSI is Up. When the AC interface is Up and the PW is Down, the VSI is still Up.

Example

# Enable a VSI to retain in Up state regardless of the AC state.

<HUAWEI> system-view 
[HUAWEI] vsi vsi1
[HUAWEI-vsi-vsi1] pwsignal ldp
[HUAWEI-vsi-vsi1-ldp] vsi-id 2
[HUAWEI-vsi-vsi1-ldp] quit
[HUAWEI-vsi-vsi1] ignore-ac-state
Related Topics

ignore-mtu-match (VSI view)

Function

The ignore-mtu-match command enables the device to ignore the MTU matching check and re-encapsulate the sent VPLS packets.

The undo ignore-mtu-match command disables the device from ignoring the MTU matching check and re-encapsulating the sent VPLS packets.

By default, the device does not ignore the MTU matching check or re-encapsulate sent VPLS packets.

Format

ignore-mtu-match

undo ignore-mtu-match

Parameters

None

Views

VSI view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In the communication in Kompella mode with devices of other vendors, you can use the ignore-mtu-match command to ignore the MTU check for VSIs if the devices of other vendors do not support the check. By default, the PE device checks whether MTUs of the VSIs on both ends are matched. If the MTUs of the VSIs on two ends are different, the VC cannot go Up.

The latest RFC defines that the encapsulation type of PW in the Kompella VPLS is 19. Huawei devices support only the Ethernet encapsulation and VLAN encapsulation. In the communication in Kompella mode with devices of other vendors, you can use the ignore-mtu-match command if the devices of other vendors require to receive a VPLS packet with the encapsulation type as 19. After the ignore-mtu-match command is run, the sent VPLS packet adopts encapsulation type 19.

Prerequisites

The following operations have been performed before this command is used:
  1. BGP has been configured as the PW signaling protocol using the pwsignal bgp command.
  2. The RD of the VSI has been configured using the route-distinguisher route-distinguisher command.

Precautions

  • This command is valid only for the VPLS in Kompella mode and does not take effect in the VPLS in Martini mode. In the Martini VPLS, the MTU values of the VSIs on two ends must be the same.

  • Huawei devices can interwork with devices of other vendors only when the ignore-mtu-match command is used together with the vpls bgp encapsulation command.

Example

# Disable the MTU matching check of a VSI named bgp1 and use encapsulation type 19 for the sent VPLS packet so that a Huawei device is connected to devices of other vendors.

<HUAWEI> system-view
[HUAWEI] vsi bgp1 auto
[HUAWEI-vsi-bgp1] pwsignal bgp
[HUAWEI-vsi-bgp1-bgp] route-distinguisher 100:1
[HUAWEI-vsi-bgp1-bgp] quit
[HUAWEI-vsi-bgp1] ignore-mtu-match

ingress-lsp protect-mode

Function

The ingress-lsp protect-mode command configures the protection mode for BGP ingress LSPs.

The undo ingress-lsp protect-mode command restores the default setting.

By default, no protection mode is configured for BGP ingress LSPs.

Format

ingress-lsp protect-mode bgp-frr

undo ingress-lsp protect-mode

Parameters

Parameter Description Value
bgp-frr Configures the protection mode for BGP ingress LSPs to BGP Auto FRR. -

Views

BGP view, BGP-IPv4 unicast address family view

Default Level

2: Configuration level

Usage Guidelines

To protect the links between the PE and its dual-homed ASBRs and the ASBRs themselves in the same AS, you can configure the protection mode of BGP Auto FRR.

Before configuring the protection mode of BGP Auto FRR, enable the BGP Auto FRR function.

It is recommended that the selection of labeled BGP IPv4 routes be based on the bestroute nexthop-resolved tunnel command.

Example

# Configure the protection mode of BGP Auto FRR for BGP ingress LSPs.

<HUAWEI> system-view
[HUAWEI] bgp 100
[HUAWEI-bgp] ipv4-family unicast
[HUAWEI-bgp-af-ipv4] ingress-lsp protect-mode bgp-frr

interface-parameter-type vccv (VSI-LDP-PW view)

Function

The interface-parameter-type vccv command restores the default setting.

The undo interface-parameter-type vccv command deletes the VCCV byte right after the interface parameter in the Mapping packet.

By default, a mapping packet carries the VCCV byte.

Format

interface-parameter-type vccv

undo interface-parameter-type vccv

Parameters

None

Views

VSI-LDP-PW view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If the switch of the version V100R006C00 or a later version communicates with the devices of VRP V300R001 and all branching versions, and the LDP VPLS is configured, run the undo interface-parameter-type vccv command.

Prerequisites

The following operations have been performed before this command is used:
  1. LDP has been configured as the PW signaling protocol using the pwsignal ldp command.
  2. The VSI ID has been configured using the vsi-id vsi-id command.
  3. The peer of the VSI has been configured using the peer peer-address command.
  4. The PW has been configured using the peer peer-address [ negotiation-vc-id vc-id ] pw pw-name command.

Example

# When configuring the VPLS in LDP mode, delete the VCCV byte from the Mapping packet.

<HUAWEI1> system-view
[HUAWEI] vsi vsi1 static
[HUAWEI-vsi-vsi1] pwsignal ldp
[HUAWEI-vsi-vsi1-ldp] vsi-id 100
[HUAWEI-vsi-vsi1-ldp] peer 2.2.2.2
[HUAWEI-vsi-vsi1-ldp] peer 2.2.2.2 pw pw1
[HUAWEI-vsi-vsi1-ldp-pw-pw1] undo interface-parameter-type vccv

interface-status-change mac-withdraw enable

Function

The interface-status-change mac-withdraw enable command enables the PEs to send LDP MAC Withdraw messages to all peers when the status of the AC interface bound to the VSI changes.

The undo interface-status-change mac-withdraw enable command disables the PEs from sending LDP MAC Withdraw messages to all peers when the status of the AC interface bound to the VSI changes.

By default, a PE does not send LDP MAC Withdraw messages when the status of the AC interface bound to the VSI changes.

Format

interface-status-change mac-withdraw enable

undo interface-status-change mac-withdraw enable

Parameters

None

Views

VSI-LDP view, VSI view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

On enterprise networks, you can configure this command on the PE to enable the PE to update the MAC address entry when the AC link is in Down state. In this way, the PE connected to the SPE sends LDP MAC Withdraw messages to all peers when the status of the SPE-side interface changes.

Precautions

If the local end sends MAC-Withdraw messages, the remote VSI clears local MAC addresses and learns new MAC addresses.

After you run the interface-status-change mac-withdraw enable command, the PE sends LDP MAC-Withdraw messages to all peers if the status of the interface bound to the VSI changes:
  • From Down to Up.
  • From Up to Down.

The interface-status-change mac-withdraw enable takes effect only when the mac-withdraw enable is configured.

Example

# Enable the PE to send LDP MAC Withdraw messages to all peers when the status of the AC interface bound to the VSI changes.

<HUAWEI> system-view
[HUAWEI] vsi v1 static
[HUAWEI-vsi-v1] pwsignal ldp
[HUAWEI-vsi-v1-ldp] interface-status-change mac-withdraw enable

l2 binding

Function

The l2 binding command binds an interface to a VSI.

The undo l2 binding command unbinds an interface to a VSI.

By default, the interface is not bound to any VSI.

Format

l2 binding vsi vsi-name

undo l2 binding vsi vsi-name

Parameters

Parameter Description Value
vsi vsi-name Specifies the name of the VSI to be bound to an interface. The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In the VPLS, run the l2 binding command on the PE to bind the interface that is connected to the CE to the corresponding VSI.

Precautions

When an interface is bound to a VSI, the MTU can be configured in the interface view but does not take effect. The MTU configured in the VSI is used for PW MTU negotiation.

In the VPLS application, different CEs are transparently connected to each other in the same network segment of a LAN through VSIs, and the IP addresses of the CEs must be different.
NOTE:
  • If an interface is used as a VPLS AC-side interface and a multicast inbound interface at the same time, multicast data cannot be forwarded normally on this interface. (The X series cards do not have this restriction.)
  • If a sub-interface is bound to a VSI, you can delete the sub-interface only after unbinding it from the VSI.
  • To use a 40GE, 100GE, XGE, GE, Ethernet, or Eth-Trunk interface of the switch as an AC-side interface, run the undo portswitch command to change the interface to a Layer 3 interface before running the l2 binding command.
  • Before running the l2 binding command on a sub-interface, add the main interface to a VLAN.
  • The l2 binding command and the ip address command cannot be configured on the CE-side interface of the PE at the same time.

Example

# Bind an Ethernet sub-interface to the VSI.
<HUAWEI> system-view
[HUAWEI] interface ethernet 1/0/0.1
[HUAWEI-Ethernet1/0/0.1] l2 binding vsi company1

# Bind a VLANIF interface to the VSI.

<HUAWEI> system-view
[HUAWEI] interface vlanif 10
[HUAWEI-Vlanif10] l2 binding vsi company2

# Bind a Gigabitethernet interface to a VSI.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 1/0/0
[HUAWEI-GigabitEthernet1/0/0] undo portswitch
[HUAWEI-GigabitEthernet1/0/0] l2 binding vsi company2

l2vpn-ad-family

Function

The l2vpn-ad-family command displays the BGP L2VPN-AD address family view.

The undo l2vpn-ad-family command deletes all configurations in the BGP L2VPN-AD address family view.

Format

l2vpn-ad-family

undo l2vpn-ad-family

Parameters

None

Views

BGP view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The BGP AD VPLS shares a TCP connection with the common BGP. Most BGP AD VPLS configurations are the same as the common BGP configurations. To exchange information about BGP AD VPLS members, enable peers to exchange information about VPLS members in the BGP L2VPN-AD address family view. Run the l2vpn-ad-family command to enter the BGP L2VPN-AD address family view.

Prerequisites

Generally, BGP peers need to be configured in the BGP view to implement the configuration of basic BGP functions.

Example

# Enter the BGP L2VPN-AD address family view.

<HUAWEI> system-view
[HUAWEI] bgp 100
[HUAWEI-bgp] l2vpn-ad-family
[HUAWEI-bgp-af-l2vpn-ad]
Related Topics

local-mac remove all-but-mine

Function

The local-mac remove all-but-mine command enables a local provider edge (PE) device to delete user MAC address entries, except those entires associated with the PW that sends MAC Withdraw messages with the TLV type of 0x404.

The undo local-mac remove all-but-mine command restores the default configuration.

A PE removes all MAC addresses by default after receiving MAC Withdraw messages with the TLV type of 0x404.

Format

local-mac remove all-but-mine

undo local-mac remove all-but-mine

Parameters

None

Views

VSI view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

A customer edge (CE) device is dual-homed to two PEs over pseudo wires (PWs) on a virtual private LAN service (VPLS) network. If a PE finds that an AC fault is removed, the PE sends MAC Withdraw messages with the TLV type of 0x404 to instruct a remote PE to update MAC address entries and perform a traffic switchover. For example, CE1 is connected to CE2 over primary PW1 and secondary PW2 on the network shown in Figure 10-1. After a fault in AC1 or PE2 is removed, PE2 sends to PE1 MAC Withdraw messages with the TLV type of 0x404 over PW1. After PE1 receives the messages, PE1 removes MAC addresses but retains those associated with PW1. The procedure complies with RFC. User traffic can then switch from PW2 to PW1.

After a PE running a version earlier than V200R002C00 receives MAC Withdraw messages with the TLV type of 0x404, the PE removes all MAC addresses. As a result, the PE fails to communicate with a non-Huawei device.

To allow communication between a Huawei device and a non-Huawei device in compliance with RFC, run the local-mac remove all-but-mine command. This command is run only on PE1 shown in Figure 10-1.

Figure 10-1  CE dual-homing to a VPLS network

Precautions

This command takes effect on a PE that receives MAC Withdraw messages only with the TLV type of 0x404.

Do not run this command if a PE running V200R002C00 communicates with another PE running a version earlier than V200R002C00 because the two PEs support different implementation methods. When a PE running a version earlier than V200R002C00 receives MAC Withdraw messages with the TLV type of 0x404, the PE removes all MAC addresses associated with a VSI.

Example

# Enable a PE to remove all MAC address entires but retain MAC address entires associated with a PW over which the PE receives MAC Withdraw messages with the TLV type of 0x404.

<HUAWEI> system-view
[HUAWEI] vsi vsi1
[HUAWEI-vsi-vsi1] local-mac remove all-but-mine

mac-address static vlanif

Function

The mac-address static vlanif command configures a static MAC address entry. The outgoing interface of this entry is added to the specified VLAN corresponding to the VLANIF interface. The VLANIF interface is bound to a VSI.

The undo mac-address static vlanif command deletes a static MAC address entry.

By default, the system does not configure any static MAC address entry.

Format

mac-address static mac-address interface-type interface-number vlanif interface-number vsi vsi-name

undo mac-address static mac-address interface-type interface-number vlanif interface-number vsi vsi-name

Parameters

Parameter Description Value
static Indicates the static entry that is not aged. When a frame of a specific MAC address is received, the frame is forwarded through the outgoing interface directly. After being configured and saved, the entries are still stored in the table even if the system is reset or the LPU is hot swapped. -
mac-address Specifies the unicast MAC address in the format of H-H-H. An H is a hexadecimal number of 1 to 4 bits, such as 00e0 and fc01. If you enter less than four digits, 0s are padded before the input digits. For example, if e0 is entered, 00e0 is displayed. The MAC address cannot be a broadcast MAC address (FFFF-FFFF-FFFF) or a multicast MAC address (the eighth bit is 1).
interface-type interface-number Specifies the type and number of an interface.
  • interface-type specifies the interface type.
  • interface-number specifies the interface number.
-
vlanif interface-number Specifies the number of the VLANIF interface bound to a VSI. -
vsi vsi-name Specifies the name of a specified VSI. The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The VPLS provides reachability through MAC address learning. Each PE maintains a MAC address table.

The device learns source MAC addresses and then creates the MAC address table. However, the device cannot identify whether the packets are from authorized users or hackers, which brings security threats. If a hacker sets the source MAC address of attack packets to the MAC address of an authorized user and connects to another interface of the device, the device learns an incorrect MAC address entry. The packets that should be forwarded to the authorized user are forwarded to the hacker.

To improve interface security, the network administrator can manually create MAC address entries to bind MAC addresses of authorized users to specified interfaces using the mac-address static vlanif command. This prevents hackers from intercepting data of authorized users.

Prerequisites

The network administrator is familiar with the MAC addresses of the devices on the network that need to use static MAC address entries for communications; otherwise, the configuration will interrupt authorized users' communications.

In the mac-address static vlanif command, the interface must be a Layer 2 interface that has been added to the VLAN corresponding to the VLANIF interface. The VLANIF interface must be bound to the VSI configured in the command.

Precautions

After being created, the static MAC address entries will not be aged. When receiving a frame of a specific MAC address, the device forwards the frame through the outgoing interface directly. After being configured and saved, the MAC address entries are still stored in the table even if the system is reset or the LPU is hot swapped.

A physical interface that is associated with a VSI can be bound to several VLANs. The VSI that is bound to a VLANIF interface can be associated with several physical interfaces. Therefore, you need to specify a physical interface and a VLANIF interface when configuring static MAC address entries for VSIs bound to the VLANIF interface.

Manually created MAC address entries take precedence over automatically created MAC address entries. Static MAC address entries and blackhole MAC address entries take precedence over dynamic MAC address entries.

If the user service changes, specify a new VSI bound to the interface. In this way, data of the user is not forwarded through the previously configured static MAC address entries. You need to configure new MAC address entries on the device or enable the device to learn dynamic MAC address entries to forward the data.

Example

# Bind VLANIF10 to the VSI named abc, and add a MAC address entry with the MAC address being 0011-2233-4455 to the VSI. When a frame that belongs to VLAN 10 and has the destination MAC address 0011-2233-4455 is received, it is forwarded through the outgoing interface GE1/0/0.

<HUAWEI> system-view
[HUAWEI] vsi abc static
[HUAWEI-vsi-abc] pwsignal ldp
[HUAWEI-vsi-abc-ldp] vsi-id 1
[HUAWEI-vsi-abc-ldp] quit
[HUAWEI-vsi-abc] quit
[HUAWEI] vlan 10
[HUAWEI-vlan10] quit
[HUAWEI] interface gigabitethernet 1/0/0
[HUAWEI-GigabitEthernet1/0/0] port link-type access
[HUAWEI-GigabitEthernet1/0/0] port default vlan 10
[HUAWEI-GigabitEthernet1/0/0] quit
[HUAWEI] interface vlanif 10
[HUAWEI-Vlanif10] l2 binding vsi abc
[HUAWEI-Vlanif10] quit
[HUAWEI] mac-address static 0011-2233-4455 gigabitethernet 1/0/0 vlanif 10 vsi abc

mac-address static vsi

Function

The mac-address static vsi command configures a static MAC address entry. The outgoing interface in this entry is bound to a specified VSI.

The undo mac-address static vsi command deletes a static MAC address entry.

By default, the system does not configure any static MAC address entry.

Format

mac-address static mac-address interface-type interface-number vsi vsi-name [ pe-vid pe-vid [ ce-vid ce-vid ] ]

undo mac-address static mac-address interface-type interface-number vsi vsi-name [ pe-vid pe-vid [ ce-vid ce-vid ] ]

undo mac-address static vsi vsi-name

Parameters

Parameter Description Value
static Indicates the static entry that is not aged. When a frame of a specific MAC address is received, the frame is forwarded through the outgoing interface directly. After being configured and saved, the entries are still stored in the table even if the system is reset or the LPU is hot swapped. -
mac-address Specifies the unicast MAC address in the format of H-H-H. An H is a hexadecimal number of 1 to 4 bits, such as 00e0 and fc01. If you enter less than four digits, 0s are padded before the input digits. For example, if e0 is entered, 00e0 is displayed. The MAC address cannot be a broadcast MAC address (FFFF-FFFF-FFFF) or a multicast MAC address (the eighth bit is 1).
interface-type interface-number Specifies the type and number of an interface.
  • interface-type specifies the interface type.
  • interface-number specifies the interface number.
The interface can be an Ethernet interface, an Ethernet sub-interface, a GE interface, a GE sub-interface, a XGE interface, a XGE sub-interface, a 40GE interface, a 40GE sub-interface, a 100GE interface, a 100GE sub-interface, an Eth-Trunk interface, or an Eth-Trunk sub-interface. The interface in this command is a Layer 3 interface bound to a VSI.
vsi vsi-name Specifies the name of a specified VSI. The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
pe-vid pe-vid

Specifies the outer VLAN tag of user packets.

The value is a decimal integer that ranges from 2 to 4094.
ce-vid ce-vid

Specifies the inner VLAN tag of user packets.

When you specify ce-vid ce-vid, the corresponding interface must be a sub-interface. QinQ termination is configured on the sub-interface, and a VSI is bound to the sub-interface.

The value is a decimal integer that ranges from 1 to 4094.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The VPLS provides reachability through MAC address learning. Each PE maintains a MAC address table.

The device learns source MAC addresses and then creates the MAC address table. However, the device cannot identify whether the packets are from authorized users or hackers, which brings security threats. If a hacker sets the source MAC address of attack packets to the MAC address of an authorized user and connects to another interface of the device, the device learns an incorrect MAC address entry. The packets that should be forwarded to the authorized user are forwarded to the hacker.

To improve interface security, the network administrator can manually create MAC address entries to bind MAC addresses of authorized users to specified interfaces using the mac-address static vlanif command. This prevents hackers from intercepting data of authorized users.

Prerequisites

The network administrator is familiar with the MAC addresses of the devices on the network that need to use static MAC address entries for communications; otherwise, the configuration will interrupt authorized users' communications.

In the mac-address static vsi command, the interface must be a Layer 3 interface bound to a VSI.

Precautions

After being created, the static MAC address entries will not be aged. When receiving a frame of a specific MAC address, the device forwards the frame through the outgoing interface directly. After being configured and saved, the MAC address entries are still stored in the table even if the system is reset or the LPU is hot swapped.

Manually created MAC address entries take precedence over automatically created MAC address entries. Static MAC address entries and blackhole MAC address entries take precedence over dynamic MAC address entries.

If the user service changes, specify a new VSI bound to the interface. In this way, data of the user is not forwarded through the previously configured static MAC address entries. You need to configure new MAC address entries on the device or enable the device to learn dynamic MAC address entries to forward the data.

Example

# Add a static MAC address entry to the VSI named abc. When the destination MAC address of a received frame is 0011-2233-4455, the frame is forwarded in the VSI named abc.

<HUAWEI> system-view
[HUAWEI] vsi abc static
[HUAWEI-vsi-abc] pwsignal ldp
[HUAWEI-vsi-abc-ldp] vsi-id 1
[HUAWEI-vsi-abc-ldp] quit
[HUAWEI-vsi-abc] quit
[HUAWEI] interface gigabitethernet 1/0/0
[HUAWEI-GigabitEthernet1/0/0] undo portswitch
[HUAWEI-GigabitEthernet1/0/0] l2 binding vsi abc
[HUAWEI-GigabitEthernet1/0/0] quit
[HUAWEI] mac-address static 0011-2233-4455 gigabitethernet 1/0/0 vsi abc

# GE 1/0/0.1 is configured with a dot1q termination sub-interface and accesses the VPLS. Configure a static MAC address entry on this sub-interface. When a frame that belongs to VLAN 10 and has the destination MAC address 0011-2233-4455 is received, its tag is deleted and it is forwarded in the VSI named abc.

<HUAWEI> system-view
[HUAWEI] vsi abc static
[HUAWEI-vsi-abc] pwsignal ldp
[HUAWEI-vsi-abc-ldp] vsi-id 1
[HUAWEI-vsi-abc-ldp] quit
[HUAWEI-vsi-abc] quit
[HUAWEI] interface gigabitethernet 1/0/0.1
[HUAWEI-GigabitEthernet1/0/0.1] dot1q termination vid 10
[HUAWEI-GigabitEthernet1/0/0.1] l2 binding vsi abc
[HUAWEI-GigabitEthernet1/0/0.1] quit
[HUAWEI] mac-address static 0011-2233-4455 gigabitethernet 1/0/0.1 vsi abc pe-vid 10

mac-diagnose enable

Function

The mac-diagnose enable command enables diagnostic test on the MAC address learning capacity.

The mac-diagnose disable command disables diagnostic test on the MAC address learning capacity.

The undo mac-diagnose enable command disables diagnostic test on the MAC address learning capacity.

By default, diagnostic test on the MAC address learning capacity is enabled.

Format

mac-diagnose enable

mac-diagnose disable

undo mac-diagnose enable

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To rectify a Layer 2 communication fault on the device, run the mac-diagnose enable command to enable diagnostic test on the MAC address learning capacity.

Precautions

Using the mac-diagnose enable command, you can enable diagnostic test on the MAC address learning capacity. The mac-populate and mac-purge operations can be performed only when diagnostic test on the MAC address learning capacity is enabled. Otherwise, the mac-populate and mac-purge operations cannot be performed. In addition, information and statistics on populated OAM MAC address are cleared.

Example

# Enable diagnostic test on the MAC address learning capacity.

<HUAWEI> system-view
[HUAWEI] mac-diagnose enable

# Disable diagnostic test on the MAC address learning capacity.

<HUAWEI> system-view
[HUAWEI] mac-diagnose disable

mac-learning

Function

The mac-learning enable command enables MAC address learning for a VSI.

The mac-learning disable command disables MAC address learning of a VSI.

The undo mac-learning disable command enables MAC address learning for a VSI.

By default, MAC address learning is enabled for a VSI.

Format

mac-learning { enable | disable }

undo mac-learning disable

Parameters

Parameter Description Value
enable Enables a VSI to learn MAC addresses. -
disable Disables a VSI to learn MAC addresses. -

Views

VSI view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To disable MAC address learning in a VSI on a VPLS network, run the mac-learning disable command. The VPLS network then functions similarly to a VPWS network. For example, if there are only two PEs with each connecting to one CE, disabling MAC address learning in a VSI on a PE reduces the PE's pressure.

Configuration Impact

After the mac-learning disable command is run for a VSI, the VSI can no longer automatically learn MAC addresses, causing packets to be broadcast on the network. Therefore, exercise caution when running this command.

Example

# Disable MAC address learning of the current VSI.

<HUAWEI> system-view
[HUAWEI] vsi company1
[HUAWEI-vsi-company1] mac-learning disable
Related Topics

mac-limit (VSI view)

Function

The mac-limit command configures the MAC address limit rules on a VSI.

The undo mac-limit command restores the default setting.

By default, none of the MAC address limit rule is configured on a VSI.

Format

mac-limit { action { discard | forward } | alarm { disable | enable } | maximum max-number } *

undo mac-limit

Parameters

Parameter Description Value
action Indicates the action performed on packets when the number of MAC entries reaches the limit. By default, the system discards the packets. -
discard Indicates that after the number of MAC entries reaches the limit, the system discards the packet whose destination MAC address does not map to any entry in the MAC address table. -
forward Indicates that after the number of MAC entries reaches the limit, the system broadcasts a packet whose destination MAC address does not map to any entry in the MAC address table, but does not learn the destination MAC address of the packet. -
alarm Indicates whether an alarm is generated when the number of MAC address entries reaches the limit. -
disable Indicates that no alarm is generated when the number of MAC address entries reaches the limit. -
enable Indicates that an alarm is generated in syslog mode when the number of MAC address entries reaches the limit. By default, an alarm is sent to the NM station. -
maximum max-number Specifies the maximum number of MAC address entries that the current VSI can learn.
NOTE:

Set maximum max-number before you set action or alarm.

The value is an integer that ranges from 0 to 32767.

Views

VSI view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To prevent attacks, you can run the mac-limit command to limit the maximum number of MAC address that the current VSI can learn.

Precautions

If the VSI has learned some MAC addresses, run the undo mac-address dynamic command to clear the learned MAC addresses. Otherwise, the mac-limit command cannot limit the MAC address learning accurately.

When the mac-limit command is executed for the first time, you can configure action and alarm only after maximum max-number is configured. If the mac-limit command is not executed for the first time, there is no special requirement on the configuration sequence.

Example

# Set the maximum number of MAC addresses that can be learned to 100 on the VSI PW.

<HUAWEI> system-view
[HUAWEI] vsi 1
[HUAWEI-vsi-1] mac-limit maximum 100

mac-populate

Function

The mac-populate command populates an OAM MAC address to initiate a diagnostic test on the MAC address learning capacity.

Format

mac-populate vsi vsi-name mac mac-address [ packet-num num | flood ] *

Parameters

Parameter Description Value
vsi vsi-name Specifies the name of the VSI on which the operation is performed. The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
mac mac-address Specifies the MAC address for the diagnostic test, expressed in the format of H-H-H. The value is in H-H-H format. The values are as follows:
  • 0018-82a4-3fb1
  • 0018-82a4-3fb2
  • 0018-82a4-3fb3
  • 0018-82a4-3fb4
  • 0018-82a4-3fb5
  • 0018-82a4-3fb6
  • 0018-82a4-3fb7
  • 0018-82a4-3fb8
  • 0018-82a4-3fb9
  • 0018-82a4-3fba
packet-num num Specifies the number of packets to be sent. The value is a decimal integer that ranges from 1 to 5. The default value is 3.
flood Indicates that the OAM MAC address is flooded throughout the VSI. -

Views

All views

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To rectify a Layer 2 communication fault on the device, you can run the mac-populate command to populate an OAM MAC address into the device to initiate a diagnostic test.

Prerequisites

The diagnostic test on the MAC address learning capacity has been enabled using the mac-diagnose enable command.

Precautions

The mac-populate command does not support BGP AD VPLS.

Using the mac-populate command, you can populate an OAM MAC address into the device.
  • If the mac-populate command does not contain flood, an OAM MAC address is only populated into the local device.

  • If the mac-populate command contains flood, an OAM MAC is flooded throughout the VSI and then populated into the peer and local devices.

NOTE:

The OAM MAC address populated into the local and peer devices can control the forwarding. Under the guidance of the OAM MAC address, the peer device forwards the received packets corresponding to the OAM MAC address to the local device.

The default aging time of OAM MAC addresses is 150 seconds.

Example

# Populate an OAM MAC address into the VSI named vsi1, flood the OAM MAC address over the domain, and set the number of packets to be sent to 3.

<HUAWEI> mac-populate vsi vsi1 mac 0018-82a4-3fb1 flood packet-num 3

mac-purge

Function

The mac-purge command purges an OAM MAC address from the forwarding table.

Format

mac-purge vsi vsi-name mac mac-address [ packet-num num | register | flood ] *

Parameters

Parameter Description Value
vsi vsi-name Specifies the name of the VSI on which the operation is performed. The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
mac mac-address Specifies the MAC address for the diagnostic test, expressed in the format of H-H-H. The value is in H-H-H format. The values are as follows:
  • 0018-82a4-3fb1
  • 0018-82a4-3fb2
  • 0018-82a4-3fb3
  • 0018-82a4-3fb4
  • 0018-82a4-3fb5
  • 0018-82a4-3fb6
  • 0018-82a4-3fb7
  • 0018-82a4-3fb8
  • 0018-82a4-3fb9
  • 0018-82a4-3fba
packet-num num Specifies the number of packets to be sent. The value is a decimal integer that ranges from 1 to 5. The default value is 3.
register Specifies the MAC address reserved for the OAM test.
NOTE:

If the preceding command contains register, an OAM MAC address is populated into the local device or the peer device to make the device discard received packets corresponding to the OAM MAC address.

-
flood Indicates that the OAM MAC address is flooded throughout the VSI. -

Views

All views

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To rectify a Layer 2 communication fault on the device, you can run the mac-purge command to clear OAM MAC addresses populated into the device.

Prerequisites

The diagnostic test on the MAC address learning capacity has been enabled using the mac-diagnose enable command.

Precautions

  • If vsi-name in the mac-purge command for purging an OAM MAC address is not identical with vsi-name in the mac-purge command that is previously used in populating the OAM MAC address, the OAM MAC address cannot be cleared.

  • A maximum of 100 OAM MAC addresses of populate and register+populate types can be populated into a device.

  • The mac-purge command does not support BGP AD VPLS.

Using the mac-purge command, you can purge the populated OAM MAC address that is specialized for the test or register an OAM MAC address to a device to make the device discard the received packets corresponding to the OAM MAC address.

Test objects vary according to parameters.
  • If the mac-purge command contains flood, an OAM MAC address is flooded throughout the VSI and then purged from all devices in the VSI and the local device into which the OAM MAC address has been populated. If the preceding command does not contain flood, the OAM MAC address is purged only from the local device.
  • If the mac-purge command contains register, an OAM MAC address is registered on the device to make the device discard the packet corresponding to the OAM MAC address after receiving them.

Example

# Purge the OAM MAC address from the VSI named vsi1, flood the OAM MAC address over the domain, and set the number of packets to be sent to 3.

<HUAWEI> mac-purge vsi vsi1 mac 0018-82a4-3fb1 flood packet-num 3

mac-withdraw enable

Function

The mac-withdraw enable command enables a VSI to delete the local MAC address and inform all the remote peers of the deletion.

The undo mac-withdraw enable command disables a VSI to delete the local MAC address and inform all the remote peers of the deletion.

By default, the MAC-withdraw function is disabled.

Format

mac-withdraw enable

undo mac-withdraw enable

Parameters

None

Views

VSI-LDP view, VSI view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

On enterprise networks, if the remote end specifies the local end as the UPE, the remote AC interface does not inform the local end to cancel the label after the AC interface is faulty. In this case, the local end is unaware of an AC fault or a UPE fault. The VSI remains Up and does not delete the corresponding MAC address entries in time. As a result, the remote end cannot receive data streams sent by the local end. After the mac-withdraw enable command is executed, the VSI deletes the local MAC address and informs all the remote peers of the deletion when an AC fault or a UPE fault occurs and the VSI remains Up. This solves the preceding problem.

Precautions

When an AC fault or a UPE fault occurs and the VSI remains Up, the UPE device needs to switch the VPLS traffic to another LSP if the UPE device accesses the SPE device in dual-homed mode. The SPE device then only needs to inform the other SPEs corresponding to the VSI to delete the MAC entries learnt from this VSI. After traffic switchover, the SPEs re-learn MAC entries from each other.

This command must be configured on SPEs.

The mac-withdraw enable command must be used together with the interface-status-change mac-withdraw enable command.

Example

# Configure a VSI named v100 to delete the local MAC addresses and inform all the remote peers of the deletion when an AC fault or a UPE fault occurs and the VSI remains Up.

<HUAWEI> system-view
[HUAWEI] vsi v100 static
[HUAWEI-vsi-v100] pwsignal ldp
[HUAWEI-vsi-v100-ldp] mac-withdraw enable

mac-withdraw propagate enable

Function

The mac-withdraw propagate enable command enables a PE to forward a received MAC Withdraw message to peers.

The undo mac-withdraw propagate enable command disables a PE from forwarding a received MAC Withdraw message to peers.

By default, a PE does not forward a received MAC Withdraw message.

Format

mac-withdraw propagate enable

undo mac-withdraw propagate enable

Parameters

None

Views

VSI view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

On an LDP or BGP AD VPLS network, after a local PE receives a MAC Withdraw message, the local PE needs to forward the MAC Withdraw message to its peers. Otherwise, its peers cannot detect network topology changes or learn new MAC addresses in a timely manner. As a result, traffic loss caused by invalid MAC addresses will occur. The mac-withdraw propagate enable command enables a PE to forward a received MAC Withdraw message to peers.

Precautions

After you run the mac-withdraw propagate enable command on a PE, the PE forwards a received MAC Withdraw message to its peers according to the split horizon principle:
  • The MAC Withdraw message received from a UPE will be forwarded to NPEs and other UPEs.
  • The MAC Withdraw message received from an NPE will be forwarded to UPEs, but will not be forwarded to other NPEs.

Example

# Configure vsi100 on a PE to forward a received MAC Withdraw message to peers.

<HUAWEI> system-view
[HUAWEI] vsi vsi100
[HUAWEI-vsi-vsi100] mac-withdraw propagate enable

mpls l2vpn default vlan

Function

The mpls l2vpn default vlan command configures the default VLAN for a main interface.

The undo mpls l2vpn default vlan command deletes the default VLAN of a main interface.

Format

mpls l2vpn default vlan vlan-id

undo mpls l2vpn default vlan

Parameters

Parameter

Description

Value

vlan-id

Specifies the default VLAN ID of a main interface.

The value is an integer that ranges from 1 to 4094.

Views

GE interface view, XGE interface view, 40GE interface view, 100GE interface view, Ethernet interface view, Eth-Trunk interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When the following conditions are met, you can run the mpls l2vpn default vlan command to specify the default VLAN on a main interface:

  • The VSI using VLAN encapsulation is configured on the two PEs.
  • The remote PE accepts only the tagged packets.
  • The local PE is connected to a computer by using the Ethernet interface, 40GE interface, 100GE interface, GE interface, XGE interface, or Eth-Trunk interface as the AC interface.

    In this scenario, the computer sends and receives only untagged packets. After the default VLAN is specified on the main interface, the local PE performs the following operations:

    • The local PE adds VLAN tags to the packets sent by the computer. The VLAN tags are encapsulated in the user packets, and are transparently transmitted to the remote PE.
    • The local PE removes the VLAN tags from the packets sent by the remote PE, and forwards the packets to the computer.

Precautions

Before binding the main interface to the VSI, you need to run the mpls l2vpn default vlan command to specify the default VLAN of the main interface.

If the remote PE can replace the VLAN tags in the packets with the VLAN tag of the AC-side outgoing interface when terminating the PW, the default VLAN on the main interface of the local PE can be set to any VLAN ID. Otherwise, the default VLAN of the main interface must be the same as the VLAN of the AC-side outgoing interface on the remote PE.

To use the XGE interface, GE interfaces, 40GE interfaces, 100GE interfaces, Ethernet interfaces, or Eth-Trunk interfaces of the S7700 and S9700 as the AC interfaces of PEs, you need to run the undo portswitch command before you run the mpls l2vpn default vlan command.

Example

# Configure the default VLAN of primary interface.

[HUAWEI] interface gigabitethernet 1/0/2
[HUAWEI-GigabitEthernet1/0/2] undo portswitch
[HUAWEI-GigabitEthernet1/0/2] mpls l2vpn default vlan 100

mpls l2vpn mac-withdraw disable

Function

The mpls l2vpn mac-withdraw disable command disables the VLL from sending MAC Withdraw messages on a VPLS network with primary and secondary VLLs.

The undo mpls l2vpn mac-withdraw disable command restores the default setting.

By default, the VLL is enabled to send MAC Withdraw messages on a VPLS network with primary and secondary VLLs.

Format

mpls l2vpn mac-withdraw disable

undo mpls l2vpn mac-withdraw disable

Parameters

None

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In a VPLS scenario with primary and secondary VLLs, the primary and secondary VLLs send MAC Withdraw messages to the VPLS-enabled RSG each time a primary/secondary PW switchover is performed. After receiving the MAC Withdraw messages, the VPLS-enabled RSG clears all learned MAC addresses. Then packets will be transmitted in broadcast mode. To prevent packets from being broadcast, run the mpls l2vpn mac-withdraw disable command to disable the VLL in Ethernet or VLAN encapsulation mode from sending MAC-Withdraws messages during a primary/secondary PW switchover.

Precautions

This command takes effect only in a VPLS scenario with primary and secondary VLLs. In other scenarios, do not run the mpls l2vpn mac-withdraw disable command; otherwise, services will be interrupted.

Example

# Disable the VLL in Ethernet or VLAN encapsulation mode from sending MAC Withdraw messages during a primary/secondary PW switchover.

<HUAWEI> system-view
[HUAWEI] interface vlanif 10
[HUAWEI-Vlanif10] mpls l2vc 2.2.2.2 100
[HUAWEI-Vlanif10] mpls l2vc 4.4.4.4 200 secondary
[HUAWEI-Vlanif10] mpls l2vpn mac-withdraw disable

mpls l2vpn vlan-stacking

Function

The mpls l2vpn vlan-stacking command configures the stacked VLAN ID for a main interface.

The undo mpls l2vpn vlan-stacking command deletes the stacked VLAN ID from a main interface.

By default, the system does not add a VLAN ID to a packet passing through the main interface.

Format

mpls l2vpn vlan-stacking stack-vlan vlan-id

undo mpls l2vpn vlan-stacking stack-vlan

Parameters

Parameter

Description

Value

stack-vlan vlan-id

Indicates the outer VLAN ID.

The value is an integer that ranges from 1 to 4094.

Views

GE interface view, XGE interface view, 40GE interface view, 100GE interface view, Ethernet interface view, Eth-Trunk interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When the following conditions are met, run the mpls l2vpn vlan-stacking stack-vlan command to specify a VLAN for a main interface:

  • The VLL or VSI using VLAN encapsulation is configured on the two PEs.
  • The remote PE accepts packets with one more VLAN tag.
  • The local PE is connected to a computer by using the Ethernet interface, 40GE interface, 100GE interface view, GE interface, XGE interface, or Eth-Trunk interface as the AC interface.

    In this scenario, the computer sends and receives all packets. After a VLAN is specified for the main interface, the local PE performs the following operations:

    • The local PE adds VLAN tags to the packets sent by the computer. The VLAN tags are encapsulated in the user packets, and are transparently transmitted to the remote PE.
    • The local PE removes the outer VLAN tags from the packets sent by the remote PE, and forwards the packets to the computer.

Precautions

Before binding the main interface to the VLL or VSI, run the mpls l2vpn vlan-stacking stack-vlan command to specify a VLAN for the main interface.

To use the XGE interface, GE interfaces, 40GE interfaces, 100GE interface view, Ethernet interfaces, or Eth-Trunk interfaces of the device as the AC interfaces of PEs, you need to run the undo portswitch command.

Example

# Configure MPLS VLL on the main interface and add VLAN tag 80 to incoming packets.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 1/0/2
[HUAWEI-GigabitEthernet1/0/2] undo portswitch
[HUAWEI-GigabitEthernet1/0/2] mpls l2vpn vlan-stacking stack-vlan 80
[HUAWEI-GigabitEthernet1/0/2] mpls l2vc 10.0.0.17 20 tagged

# Configure VSI on the main interface and add VLAN tag 100 to incoming packets.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 1/0/5
[HUAWEI-GigabitEthernet1/0/5] undo portswitch
[HUAWEI-GigabitEthernet1/0/5] mpls l2vpn vlan-stacking stack-vlan 100
[HUAWEI-GigabitEthernet1/0/5] l2 binding vsi vsi1

mpls l2vpn vsi-pw limit threshold-alarm

Function

The mpls l2vpn vsi-pw limit threshold-alarm command configures the upper and lower alarm thresholds for VPLS VCs.

The undo mpls l2vpn vsi-pw limit threshold-alarm command restores the default settings.

By default, the upper and lower alarm thresholds are 80% and 70% respectively.

Format

mpls l2vpn vsi-pw limit threshold-alarm upper-limit upper-limit-value lower-limit lower-limit-value

undo mpls l2vpn vsi-pw limit threshold-alarm [ upper-limit upper-limit-value lower-limit lower-limit-value ]

Parameters

Parameter Description Value
upper-limit upper-limit-value

Specifies the upper alarm threshold.

The value is an integer ranging from 1 to 100.
lower-limit lower-limit-value

Specifies the lower alarm threshold.

The value is an integer ranging from 1 to 100. lower-limit-value must be smaller than upper-limit-value.

Views

MPLS-L2VPN view

Default Level

2: Configuration Level

Usage Guidelines

A device supports only a limited number of VPLS VCs. If a device has too many VPLS VCs, the device performance deteriorates. The mpls l2vpn vsi-pw limit threshold-alarm command allows you to flexibly adjust the upper and lower alarm thresholds for VPLS VCs to control VPLS VC usage.

Note that:
  • upper-limit-value specifies the upper alarm threshold for VPLS VCs. If the proportion of VPLS VCs created to the maximum VPLS VCs allowed reaches this threshold, a VPLS VC threshold-crossing alarm is reported.
  • lower-limit-value specifies the lower alarm threshold for VPLS VCs. If the proportion of VPLS VCs created to the maximum VPLS VCs allowed falls below this threshold, a VPLS VC threshold-crossing clear alarm is reported.

Example

# Configure the upper and lower alarm thresholds for VPLS VCs as 90% and 70% respectively.

<HUAWEI> system-view
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] mpls l2vpn vsi-pw limit threshold-alarm upper-limit 90 lower-limit 70  

mtu (VSI view)

Function

The mtu command sets the MTU of a VSI.

The undo mtu command restores the default value.

The default MTU of a VSI is 1500.

Format

mtu mtu-value

undo mtu

Parameters

Parameter Description Value
mtu-value Specifies the MTU of a VSI. The value is an integer that ranges from 328 to 65535.

Views

VSI view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If the MTUs of the same VSI on two PEs are different, the two PEs cannot exchange information or establish a connection. In this case, you can run the mtu command to set the MTU of a VSI so that VSIs created on different PEs for the same VPLS have the same MTU.

Prerequisites

The following operations have been performed before this command is used:

Precautions

When configuring MTUs, note that the MTUs of the VSIs created for the same VPLS on different PEs must be the same.

Devices of some manufacturers cannot perform the MTU matching check on the VSI. When the switch interworks with a non-Huawei device in Kompella mode, you need to perform either of the following configurations to ensure that VCs are Up:
  • Set the MTU of the VSI on the PE to be consistent with the MTU of the non-Huawei device.

  • Run the mtu-negotiate disable command to ignore the check on MTU matching.

Example

# Set the MTU of the VSI named company1.

<HUAWEI> system-view
[HUAWEI] vsi company1 static
[HUAWEI-vsi-company1] pwsignal ldp
[HUAWEI-vsi-company1-ldp] vsi-id 100
[HUAWEI-vsi-company1-ldp] quit
[HUAWEI-vsi-company1] mtu 1600
Related Topics

mtu-negotiate disable

Function

The mtu-negotiate disable command disables a PE from checking whether the MTUs for the local and remote VSIs match.

The undo mtu-negotiate disable command enables a PE to check whether the MTUs for the local and remote VSIs match.

By default, a PE is enabled to check whether the MTUs for the local and remote VSIs match.

Format

mtu-negotiate disable

undo mtu-negotiate disable

Parameters

None

Views

VSI-BGP view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When two PEs that are Huawei and non-Huawei devices use Kompella VPLS to communicate, and their MTUs are different, the VC cannot Up. To resolve this problem, run the mtu-negotiate disable command to disable the local PE from checking whether the MTUs for the local and remote VSIs match. Alternatively, run the mtu command to change the MTU of the local VSI to be the same as that of the remote VSI.

Precautions

The mtu-negotiate disable command and its undo form are valid only for Kompella VPLS.

Example

# Disable the device from checking whether the MTUs named bgp1 for the local and remote VSIs match.

<HUAWEI> system-view
[HUAWEI] vsi bgp1
[HUAWEI-vsi-bgp1] pwsignal bgp
[HUAWEI-vsi-bgp1-bgp] mtu-negotiate disable

multi-homing-preference

Function

The multi-homing-preference command configures the multi-homed priority for a VSI.

The undo multi-homing-preference command deletes multi-homed priority for a VSI.

By default, the multi-homed priority for a VSI is 0, which is the lowest priority.

Format

multi-homing-preference preference-value

undo multi-homing-preference

Parameters

Parameter Description Value
preference-value Specifies the multi-homed priority of a VSI. The value is an integer that ranges from 1 to 65535. A large value indicates a high priority.

Views

VSI view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In CE dual-homed scenarios, run the multi-homing-preference command to specify a primary PE and a backup PE.

Prerequisites

The following operations have been performed before this command is used:
  1. A VSI has been created and the automatic member discovery mechanism has been configured using the vsi vsi-name auto command.
  2. BGP has been configured as the PW signaling protocol using the pwsignal bgp command.
  3. The RD has been configured for the VSI using the route-distinguisher route-distinguisher command.

Precautions

Currently, only Kompella VPLS supports the multi-homed priority for a VSI. In addition, only the dual-homed CE is supported.

At present, only one label block can be configured on the VSIs of the two dual-homed PEs. If you want to increase the range, run the undo site command to delete the existing site, and then specify a larger range. Only one AC can be configured for the VSIs of the dual-homed PEs.

If the VSIs of two PEs that the dual-homed CE accesses are Up, the PE with higher priority serves as the primary PE, while the PE with lower priority serves as the backup PE. The primary PE is responsible for forwarding the traffic of the CE, while the backup PE is responsible only for checking whether the VSI of the primary PE is Up. After the backup PE is selected, the VSI status of the backup PE turns Down. If the VSI status of the primary PE turns Down, the primary PE broadcasts Unreach packets. After the backup PE receives the Unreach packets, the backup PE judges that the primary PE is faulty The backup PE then sends Reach packets to set up a PW with other PEs. The backup PE becomes a primary PE.

If the dual-homed priorities of the two PEs in dual-homed mode are the same, after a session is set up between the PEs, the PEs detect collision. At this time, the VSI of the PE with smaller router ID is Up, while the VSI of the PE with larger router ID is Down.

If a session is set up between PE1 with the priority being a and PE2 with the priority being b, and a is larger than b, the VSI of PE1 is Up and that of PE2 is Down. At this time:

  • If the priority of PE1 is changed to "b" (the modification is permitted because PE1 does not have information about remote VCs on PE2), the VSI of PE1 remains Up, while the VSI of PE2 remains Down.

  • If the priority of PE2 is changed to a, the modification is rejected and alarm information is displayed.

After the session turns Down, the PW of the PE with lower priority turns Up. The PW between the two PEs turns Up.

Example

# Configure the multi-homed priority of the VSI named company1 to 100.

<HUAWEI> system-view
[HUAWEI] vsi company1 auto
[HUAWEI-vsi-company1] pwsignal bgp
[HUAWEI-vsi-company1-bgp] route-distinguisher 100:1
[HUAWEI-vsi-company1-bgp] quit
[HUAWEI-vsi-company1] multi-homing-preference 100

multicast-suppression cir cbs (VSI view)

Function

The multicast-suppression cir cbs command enables the multicast suppression function on the VSI.

The undo multicast-suppression command disables the multicast suppression function on the VSI.

By default, the multicast traffic function is disabled on a VSI.

Format

multicast-suppression cir cir-value cbs cbs-value

undo multicast-suppression

Parameters

Parameter

Description

Value

cir cir-value

Specifies the CIR, that is, the allowed rate at which traffic can pass through.

The value is an integer that ranges from 0 to 10000000, in kbit/s.

cbs cbs-value

Specifies the CBS, that is, the traffic that can pass instantly, or the depth of the first token bucket.

The value is an integer that ranges from 10000 to 4294967295, in bytes.

Views

VSI view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

On a VPLS network, the broadcast, multicast, and unknown unicast packets are transmitted in broadcast mode. If large quantities of multicast packets are on the VPLS network, the device has to make a lot of copies of these multicast packets, which wastes bandwidth and resources, and degrades the performance of the system. You can run the multicast-suppression cir cbs command to suppress the multicast traffic in the VSI. The rate of multicast traffic on the VPLS network is limited.

Prerequisites

A VSI has been created using the vsi vsi-name [ auto | static ] command.

Example

# Set the CIR to 100 kbit/s and the CBS to 18800 bytes for the multicast traffic that can pass in VSI1.

<HUAWEI> system-view
[HUAWEI] vsi VSI1
[HUAWEI-vsi-VSI1] multicast-suppression cir 100 cbs 18800

npe-upe mac-withdraw enable

Function

The npe-upe mac-withdraw enable command enables an SPE to forward the LDP MAC Withdraw messages received from other SPEs to UPEs.

The undo npe-upe mac-withdraw enable command disables an SPE from forwarding the LDP MAC Withdraw messages received from other SPEs to UPEs.

By default, an SPE does not forward the LDP MAC Withdraw messages received from other SPEs to UPEs.

Format

npe-upe mac-withdraw enable

undo npe-upe mac-withdraw enable

Parameters

None

Views

VSI-LDP view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

On enterprise networks, you need to run the npe-upe mac-withdraw enable command to enable an SPE to forward the LDP MAC Withdraw messages received from other SPEs to UPEs.

Prerequisites

LDP has been configured as the PW signaling protocol using the pwsignal ldp command.

Precautions

The npe-upe mac-withdraw enable command is used on SPEs.
  • An SPE refers to the network end peer of the local VSI in HVPLS.You can run the peer peer-address [ negotiation-vc-id vc-id ] [ tnl-policy policy-name ] command to specify an SPE.
  • A UPE refers to the user end peer of the local VSI in HVPLS.You can run the peer peer-address [ negotiation-vc-id vc-id ] [ tnl-policy policy-name ] upe command to specify a UPE.
  • If the local device is not configured with HVPLS, the npe-upe mac-withdraw enable command is not required.

Example

# Enable the SPE to forward the LDP MAC Withdraw messages received from other SPEs the UPE.

<HUAWEI> system-view
[HUAWEI] vsi v1 static
[HUAWEI-vsi-v1] pwsignal ldp
[HUAWEI-vsi-v1-ldp] npe-upe mac-withdraw enable

peer (VSI-LDP view)

Function

The peer command configures a peer for a VSI.

The undo peer command deletes the peer of a VSI.

By default, no peer is configured for a VSI.

Format

peer peer-address [ negotiation-vc-id vc-id ] [ tnl-policy policy-name ] [ upe ] [ ignore-standby-state ]

undo peer peer-address [ negotiation-vc-id vc-id ]

Parameters

Parameter Description Value
peer-address Specifies the IPv4 address of the peer. Generally, it is specified as the loopback address of the peer. The value is in dotted decimal notation.
negotiation-vc-id vc-id Specifies the ID of a VC, which uniquely identifies the VC. Generally, this parameter is specified when the two ends with different VSI IDs need to interconnect. vc-id cannot be the same as the IDs of other local VSIs. The negotiated VC IDs to the same peer must be different. The value is an integer ranging from 1 to 4294967295.
tnl-policy policy-name Specifies the tunnel policy name of the peer. The value is a string of 1 to 39 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
upe Identifies whether the peer is a client PE, which applies to Hierarchical Virtual Private LAN Service (HVPLS). -
ignore-standby-state

Configures the created PW to ignore the secondary state sent from the peer device.

-

Views

VSI-LDP view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When you configure Martini VPLS, you need to run the peer command to configure a peer for the VSI.

Prerequisites

The VSI ID has been configured before you run this command.

  • To configure a Spoke PW on the HVPLS network, you can configure upe in the peer command. If the specified peer is a UPE, the peer is on the user side, which does not comply with split horizon. If upe is not configured, a hub PW is configured, meaning that a VSI peer is specified and the peer is not specified as a UPE. Split horizon applies to hub PWs. Traffic from spoke PWs can be forwarded to spoke PWs and hub PWs, but traffic from hub PWs can only be forwarded to spoke PWs and not to hub PWs.
    NOTE:

    Split horizon: The data packets received from the PW on the public network are not forwarded to other PWs, but only forwarded to the private network. On a VPLS network, full mesh and split horizon are used to avoid loops. HVPLS partitions the network, and the devices of different levels forward data to each other without complying with the split horizon scheme.

  • To configure a VLL to access a VPLS network, you can adopt one of the following configurations to create a PW:
    • Configure the VSI ID on the VPLS network to be the same as the VC ID of the VLL peer.
    • Configure the value of negotiation-vc-id vc-id to be the same as the VC ID of the VLL peer.
  • The ignore-standby-state parameter can be configured for PWs dual-homing a CE to PEs on a PW redundancy network. This setting enables the secondary PW to ignore the Secondary state and to keep transmitting traffic, preventing packet loss that occurs during a primary/secondary PW switchover. Figure 10-2 shows PW redundancy networking with CEs asymmetrically accessing PEs.
    Figure 10-2  VPLS PW redundancy networking

    If the primary PW1 works properly, it transmits traffic over the path CE1–>SPE1–>UPE–>CE2. If PW1 fails, either of the following situations occurs based on the ignore-standby-state setting:

    • If ignore-standby-state is configured on SPE2, PW2 remains in the Up state. Before PW2 switches to the Primary state, SPE2 can forward CE1 traffic over the path CE1–>SPE2–>UPE–>CE2.
    • If ignore-standby-state is not configured on SPE2, PW2 is in the Down state before switching to the Primary state. After CE1 sends traffic to SPE2, SPE2 fails to forward traffic to UPE, causing traffic loss. After PW2 switches to the Primary state, SPE2 can forward CE1 traffic over the path CE1–>SPE2–>UPE–>CE2, without traffic loss.

Precautions

After you run the undo peer command, all PW configurations created by the peer are deleted.

If the value of negotiation-vc-id vc-id is different from the value of vsi-id configured using the vsi-id command, you must configure negotiation-vc-id vc-id when running the undo peer command to delete the VSI peer. Otherwise, the system prompts that the VSI peer cannot be deleted.

Example

# Configure the peer for the current VSI.

<HUAWEI> system-view
[HUAWEI] vsi company1 static
[HUAWEI-vsi-company1] pwsignal ldp
[HUAWEI-vsi-company1-ldp] vsi-id 1
[HUAWEI-vsi-company1-ldp] peer 10.3.3.3 negotiation-vc-id 10 upe

# Delete the peer of a VSI.

<HUAWEI> system-view
[HUAWEI] vsi company1 static
[HUAWEI-vsi-company1] pwsignal ldp
[HUAWEI-vsi-company1-ldp] vsi-id 1
[HUAWEI-vsi-company1-ldp] peer 10.3.3.3 negotiation-vc-id 10 upe
[HUAWEI-vsi-company1-ldp] undo peer 10.3.3.3 negotiation-vc-id 10

peer preference (protect-group view)

Function

The peer preference command adds a specified PW to a PW protection group and specifies the priority of the PW.

The undo peer preference command deletes a specified PW from a PW protection group.

By default, no PW is added to a PW protection group.

Format

peer peer-address [ negotiation-vc-id vc-id ] preference preference-value

undo peer peer-address [ negotiation-vc-id vc-id ]

Parameters

Parameter Description Value
peer-address

Specifies the IPv4 address of the VSI peer. Generally, the loopback address of the peer is used.

-
negotiation-vc-id vc-id

Specifies the parameter negotiated with the peer. By default, the VSI ID is used. Generally, this parameter is used in VPLS accessing VLL scenarios in which the VSI IDs of the two ends are inconsistent and the two ends are required to communicate.

The value is an integer that ranges from 1 to 4294967295.
preference-value

Specifies the priority of a peer when the peer joins a PW protection group. The smaller the value, the higher the priority. Among the two peers added to a PW protection group, the one with the higher priority serves as the primary.

The value is an integer ranging from 1 to 32.

Views

protect-group view

Default Level

2. Configuration level

Usage Guidelines

Usage Scenario

After creating a PW protection group and specify the PW redundancy mode, you can add specified PWs to the group for them to work in backup mode.

Prerequisites

A PW protection group has been created and the PW redundancy mode has been specified.

Precautions

Add PWs to a PW protection group in the descending order of PW priorities. Do not add the PW with a lower priorty to the PW protection group first.

If you add the PW with a lower priority to the PW protection group first, a PW switchover will occur after you add the other PW to the PW protection group.

Example

# Add a specified PW to a PW protection group and set the priority of the PW to 1.

<HUAWEI> system-view
[HUAWEI] vsi vsi1
[HUAWEI-vsi-vsi1] pwsignal ldp
[HUAWEI-vsi-vsi1-ldp] peer 2.2.2.2
[HUAWEI-vsi-vsi1-ldp] protect-group group1
[HUAWEI-vsi-vsi1-ldp-protect-group-group1] peer 2.2.2.2 preference 1

peer pw

Function

The peer pw creates a PW and displays the PW view.

The undo peer pw deletes the created PW.

By default, no PW is created.

Format

peer peer-address [ negotiation-vc-id vc-id ] pw pw-name

undo peer peer-address [ negotiation-vc-id vc-id ] pw

Parameters

Parameter Description Value
peer peer-address Specifies the IPv4 address of the peer. Generally, it is specified as the loopback address of the peer. -
negotiation-vc-id vc-id Specifies the ID of a VC, which uniquely identifies the VC. Generally, this parameter is specified when the two ends with different VSI IDs need to interconnect. vc-id cannot be the same as the IDs of other local VSIs. The negotiated VC IDs to the same peer must be different. The value is an integer ranging from 1 to 4294967295.
pw pw-name Specifies the name of a PW. The PW name is used to distinguish the PW from other PWs, and must be unique in the same VSI. Nevertheless, the PW name can be used in other VSIs. The value is a string of 1 to 15 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

Views

VSI-LDP view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In Martini VPLS, you need to run the peer pw command to configure a PW after specifying a peer.

Prerequisites

The IP address of the peer has been specified using the peer peer-address command.

Precautions

If the value of negotiation-vc-id vc-id is different from the value of vsi-id configured using the vsi-id command, you must configure negotiation-vc-id vc-id when running the undo peer pw command to delete the PW. Otherwise, the PW cannot be deleted.

Example

# Create the PW view.

<HUAWEI> system-view
[HUAWEI] vsi aa static
[HUAWEI-vsi-aa] pwsignal ldp
[HUAWEI-vsi-aa-ldp] vsi-id 1
[HUAWEI-vsi-aa-ldp] peer 10.1.1.1
[HUAWEI-vsi-aa-ldp] peer 10.1.1.1 pw pw1
[HUAWEI-vsi-aa-ldp-pw-pw1] 

# Delete the PW.

<HUAWEI> system-view
[HUAWEI] vsi aa static
[HUAWEI-vsi-aa] pwsignal ldp
[HUAWEI-vsi-aa-ldp] vsi-id 1
[HUAWEI-vsi-aa-ldp] peer 10.1.1.1
[HUAWEI-vsi-aa-ldp] peer 10.1.1.1 pw pw1
[HUAWEI-vsi-aa-ldp-pw-pw1] quit
[HUAWEI-vsi-aa-ldp] undo peer 10.1.1.1 pw

peer signaling

Function

The peer signaling command configures the signaling mode for a specified peer or peer group.

The undo peer signaling command restores the default signaling mode of a specified peer or peer group.

By default, after the peer enable command is run in the L2VPN AD address family view, the BGP AD signaling is enabled for all peers or peer groups.

Format

peer { peer-address | group-name } signaling { vpws | vpls | vpls-ad disable }

undo peer { peer-address | group-name } signaling { vpws | vpls | vpls-ad disable }

Parameters

Parameter Description Value
peer-address Specifies an IPv4 address of a peer. The loopback address of the peer is usually used as its IPv4 address. -
group-name Specifies the name of a peer group. The name is a string of 1 to 47 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
vpws Configures the signaling mode of a specified peer or peer group as VPWS. -
vpls Configures the signaling mode of a specified peer or peer group as VPLS. -
vpls-ad disable Disables BGP AD signaling for a specified peer or peer group. -

Views

L2VPN AD address family view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In Kompella VLL, Kompella VPLS, and BGP AD VPLS scenarios, configure the signaling mode for peers or peer groups in the L2VPN AD address family view so that peers can advertise routes to each other. The parameters used in different scenarios are described as follows:

  • In the Kompella VLL scenario, configure vpws in the peer signaling command.

  • In the Kompella VPLS scenario, configure vpls in the peer signaling command.

  • In the BGP AD VPLS scenario, the BGP AD signaling is enabled for all peers or peer groups in the L2VPN AD address family view by default. Therefore, you need to run the peer { peer-address | group-name } signaling vpls-ad disable command to disable BGP AD signaling for a specified peer or peer group in Kompella VLL and Kompella VPLS scenarios.

Prerequisites

The peer enable command has been run to create a peer or peer group.

Precautions

For the same peer, the peer enable and peer { peer-address | group-name } signaling { vpws | vpls | vpls-ad disable } commands run in the L2VPN AD address family view are mutually exclusive with the peer enable command run in the VPLS address family view.

For the same peer, the peer { peer-address | group-name } signaling vpws command run in the L2VPN AD view is mutually exclusive with the peer enable command run in the L2VPN address family view.

The signaling mode configured for a peer is preferred over that configured for the peer group to which the peer belongs.

When a signaling mode is configured for a peer group but not configured for a peer that belongs to the peer group, the peer uses the signaling mode configured for its peer group.

Example

# Configure the signaling mode for peer 1.1.1.1 in the L2VPN AD address family view when Kompella VPLS is enabled.

<HUAWEI> system-view
[HUAWEI] bgp 100
[HUAWEI-bgp] l2vpn-ad-family
[HUAWEI-bgp-l2vpn-ad] peer 1.1.1.1 enable
[HUAWEI-bgp-l2vpn-ad] peer 1.1.1.1 signaling vpls
[HUAWEI-bgp-l2vpn-ad] peer 1.1.1.1 signaling vpls-ad disable
Related Topics

peer static-npe

Function

The peer static-npe command configures the static NPE peer of the VSI in the Hierarchical Virtual Private LAN Service (HVPLS).

The undo peer static-npe command deletes the static NPE peer of the VSI in the HVPLS.

By default, the HVPLS has no static NPE peer of the VSI.

Format

peer peer-address [ negotiation-vc-id vc-id ] [ tnl-policy policy-name ] static-npe trans transmit-label recv receive-label

undo peer peer-address [ negotiation-vc-id vc-id ]

Parameters

Parameter Description Value
peer-address Specifies the IPv4 address of the static NPE peer. It is generally specified as the loopback address of the peer. -
negotiation-vc-id vc-id Indicates the unique ID of a VC. Generally, this parameter is used when the VSI IDs of two ends are inconsistent and the two ends are required to communicate. vc-id cannot be the same as the IDs of other local VSIs. The negotiated VC IDs to the same peer must be different. The value is an integer ranging from 1 to 4294967295.
tnl-policy policy-name Specifies the tunnel-policy name of the static NPE peer. The value is a string of 1 to 39 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
static-npe Indicates whether the peer of the static VSI is the PE at the network side. -
trans transmit-label Indicates the outer label that is manually configured and sent from the local device to its peer. It is the outgoing label of the static Layer 2 VC. The value is an integer ranging from 0 to 1048575.
recv receive-label Indicates the outer label that is manually configured and sent from the peer to the local device. It is the incoming label of the static Layer 2 VC. The value is an integer that ranges from 16 to 1023.

Views

VSI-LDP view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

On the HVPLS network, you can run the peer static-upe command on the local device to configure a static UPE peer.

Prerequisites

The VSI ID has been configured using the vsi-id vsi-id command.

Precautions

If you specify negotiation-vc-id vc-id when you configure the peer of the VSI, and the specified vc-id and that in the configured vsi-id command are inconsistent, to delete the peer of the VSI, you must use the undo peer command with negotiation-vc-id vc-id. Otherwise, the peer cannot be deleted.

Example

# Configure the static NPE peer of the current VSI. Configure the received and sent outer labels are 100.

<HUAWEI> system-view
[HUAWEI] vsi company1
[HUAWEI-vsi-company1] pwsignal ldp
[HUAWEI-vsi-company1-ldp] vsi-id 1
[HUAWEI-vsi-company1-ldp] peer 3.3.3.3 static-npe trans 100 recv 100

peer static-upe

Function

The peer static-upe command configures the static UPE peer of the VSI in the HVPLS.

The undo peer static-upe command deletes the static UPE peer of the VSI in the HVPLS.

By default, the HVPLS has no static UPE peer of the VSI.

Format

peer peer-address [ negotiation-vc-id vc-id ] [ tnl-policy policy-name ] static-upe trans transmit-label recv receive-label

undo peer peer-address [ negotiation-vc-id vc-id ]

Parameters

Parameter Description Value
peer-address Specifies the IPv4 address of the UPE peer. Generally, it is specified as the loopback address of the peer. -
negotiation-vc-id vc-id Specifies the ID of a VC, which uniquely identifies the VC. Generally, this parameter is specified when the two ends with different VSI IDs need to interconnect. vc-id cannot be the same as the IDs of other local VSIs. The negotiated VC IDs to the same peer must be different. The value is an integer ranging from 1 to 4294967295.
tnl-policy policy-name Specifies the tunnel-policy name of the static UPE peer. The value is a string of 1 to 39 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
static-upe Indicates whether the static UPE is a client PE device. This parameter applies to HVPLS. -
trans transmit-label Specifies the outer label that sent from the local device to its peer. It is the outgoing label of the static Layer 2 VC. The value is an integer that ranges from 0 to 1048575.
recv receive-label Specifies the outer label manually configured and sent from the peer to the local device. It is the incoming label of the static Layer 2 VC. The value is an integer that ranges from 16 to 1023.

Views

VSI-LDP view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

On the HVPLS network, you can run the peer static-upe command on the local device to configure a static UPE peer.

Prerequisites

The VSI ID has been configured using the vsi-id vsi-id command.

Precautions

If negotiation-vc-id vc-id is used when configuring the VSI peer, and specified vc-id is different from vsi-id configured using the vsi-id command, you must configure negotiation-vc-id vc-id when running the undo peer command to delete the VSI peer. Otherwise, the VSI peer cannot be deleted.

Example

# Configure the static UPE peer of the current VSI. The sent and received outer labels are 100.

<HUAWEI> system-view
[HUAWEI] vsi company1
[HUAWEI-vsi-company1] pwsignal ldp
[HUAWEI-vsi-company1-ldp] vsi-id 1
[HUAWEI-vsi-company1-ldp] peer 3.3.3.3 static-upe trans 100 recv 100

ping vpls

Function

The ping vpls command detects the status of the PW and reachability of the peer.

Format

ping vpls [ -c echo-number | -m time-value | -s data-bytes | -t timeout-value | -r reply-mode | -exp exp-value | -v ] * vsi vsi-name local-site-id remote-site-id

ping vpls [ -c echo-number | -m time-value | -s data-bytes | -t timeout-value | -r reply-mode | -exp exp-value | -v ] * vsi vsi-name peer peer-address [ negotiate-vc-id vc-id ]

Parameters

Parameter Description Value
-c echo-number Specifies the number of sent Echo Request packets. The value is an integer that ranges from 1 to 4294967295. The default value is 5.
-m time-value Specifies the time to wait before sending the next packet. The value is an integer that ranges from 1 to 10000, in milliseconds. The default value is 2000 milliseconds.
-s data-bytes Specifies the number of bytes of an Echo Request packet to be sent. The value is an integer that ranges from 65 to 8100. The default value is 100.
-t timeout-value Specifies the timeout period of sending Echo Request packets. The value is an integer that ranges from 0 to 65535. The default value is 2000.
-r reply-mode Specifies the mode in which the peer sends MPLS Echo Reply packets. The value is a decimal integer. The values are as follows:
  • 1: indicates no reply.
  • 2: indicates a reply with an IPv4 or IPv6 UDP datagram.
  • 3: indicates a reply with an IPv4 or IPv6 UDP datagram carrying a router alert label.
  • 4: indicates a reply through the control channel of the application plane.
The value ranges from 1 to 4. The default value is 2.
-exp exp-value Specifies the EXP value of an Echo Request packet to be sent. The value is an integer that ranges from 0 to 7.
-v Displays detailed information. -
vsi vsi-name Specifies the name of a VSI. The value is an existing VSI.
local-site-id Specifies the ID of the local CE. The value is an integer that ranges from 0 to 65534.
remote-site-id Specifies the ID of the remote CE. The value is an integer that ranges from 0 to 65534.
peer peer-address Specifies the IP address of the peer PE. -
negotiate-vc-id vc-id Specifies the ID of the local PW. The value is an integer that ranges from 1 to 4294967295.

Views

All views

Default Level

0: Visit level

Usage Guidelines

Usage Scenario

After VPLS configurations are complete, you can run the ping vpls command to check the PW status and reachability of the peer.

  • To check the PW status on a Kompella VPLS network, run the following command:

    ping vpls [ -c echo-number | -m time-value | -s data-bytes | -t timeout-value | -r reply-mode | -exp exp-value | -v ] * vsi vsi-name local-site-id remote-site-id

    .
  • To check the PW status on a Martini or BGP AD VPLS network, run the following command:

    ping vpls [ -c echo-number | -m time-value | -s data-bytes | -t timeout-value | -r reply-mode | -exp exp-value | -v ] * vsi vsi-name peer peer-address [ negotiate-vc-id vc-id ]

    .

Prerequisites

One of the following operations has been performed before the ping vpls command is used:
  • Configuring Kompella VPLS

  • Configuring Martini VPLS

  • Configuring BGP AD VPLS

Precautions

The timeout period specified by -t is less than the waiting time specified by -m.

Note the following points when configuring VPLS:

  • If negotiate-vc-id is not specified in the peer command, vc-id is unique and equal to vsi-id. To perform the ping operation, you do not need to specify vc-id because the VC is unique when vsi vsi-name and peer peer-address are specified. In the same case, however, if negotiate-vc-id is specified and it is not equal to the actual vc-id (that is, vsi-id), an error message is displayed.
  • If negotiate-vc-id (multiple VC IDs can be specified) in the peer command, you need to specify negotiate-vc-id in addition to vsi vsi-name and peer peer-address when performing the ping. If negotiate-vc-id is not found or specified, an error message is displayed.

Example

# Run the ping vpls command on the PE to check connectivity of the VSI named bgp1 with remote site ID being 10.
<HUAWEI> ping vpls -c 10 -m 10 -s 65 -t 100 -v vsi bgp1 10 10
    Reply from 10.2.2.2: bytes=65 Sequence=1 time=2 ms Return Code 3, Subcode 1 
    Reply from 10.2.2.2: bytes=65 Sequence=2 time=2 ms Return Code 3, Subcode 1 
    Reply from 10.2.2.2: bytes=65 Sequence=3 time=3 ms Return Code 3, Subcode 1 
    Reply from 10.2.2.2: bytes=65 Sequence=4 time=2 ms Return Code 3, Subcode 1 
    Reply from 10.2.2.2: bytes=65 Sequence=5 time=3 ms Return Code 3, Subcode 1 
    Reply from 10.2.2.2: bytes=65 Sequence=6 time=41 ms Return Code 3, Subcode 1 
    Reply from 10.2.2.2: bytes=65 Sequence=7 time=4 ms Return Code 3, Subcode 1 
    Reply from 10.2.2.2: bytes=65 Sequence=8 time=4 ms Return Code 3, Subcode 1 
    Reply from 10.2.2.2: bytes=65 Sequence=9 time=3 ms Return Code 3, Subcode 1 
    Reply from 10.2.2.2: bytes=65 Sequence=10 time=6 ms Return Code 3, Subcode 1 

  --- FEC: L2 VPN ENDPOINT. Sender VEID = 10, Remote VEID = 10 ping statistics ---
    10 packet(s) transmitted
    10 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 2/7/41 ms
Table 10-117  Description of the ping vpls command output

Item

Description

Return Code

Return code. Different values have different meanings:
  • 0: indicates that no return code is received.

  • 1: indicates that an incorrect request is received.

  • 2: indicates that an unknown TLV is received.

  • 3: indicates that there is the outbound interface of one LSP.

  • 4: indicates that there is no mapping on the response router.

  • 5: indicates that the mapping does not match that on the downstream device.

  • 6: indicates that an unknown upstream interface exists.

  • 7: indicates that the field is reserved.

  • 8: indicates label switching.

  • 9: indicates label switching without MPLS forwarding.

  • 10: indicates mapping without labels.

  • 11: indicates the entity without labels.

  • 12: indicates that no protocol is loaded on the interface.

  • 13:indicates that the ping operation terminates because there is only one label.

Subcode

Subcode, indicating the number of layers of the labels. Usually, the value is 1.

# Run the ping vpls command on the PE to check the connectivity of a PW in the Martini VPLS.
<HUAWEI> ping vpls vsi a2 peer 10.2.2.2
    Reply from 10.2.2.2: bytes=100 Sequence=1 time=3 ms
    Reply from 10.2.2.2: bytes=100 Sequence=2 time=6 ms
    Reply from 10.2.2.2: bytes=100 Sequence=3 time=6 ms
    Reply from 10.2.2.2: bytes=100 Sequence=4 time=6 ms
    Reply from 10.2.2.2: bytes=100 Sequence=5 time=6 ms
   
  --- FEC: FEC 128 PSEUDOWIRE (NEW). Type = vlan, ID = 10 ping statistics --- 
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 3/4/6 ms
Table 10-118  Description of the ping vpls command output

Item

Description

Reply from x.x.x.x

Response from the destination host to each Echo Request packet:
  • bytes: indicates the length of the response packet.
  • sequence: indicates the sequence number of the response packet.
  • time: indicates the response time, in ms.
If no response packet is received after the timeout period, the message "Request time out" is displayed.

FEC: FEC 128 PSEUDOWIRE

Check on FEC 128, namely, check on a Martini VPLS PW.

Type = vlan

VLAN encapsulation on packets.

ID = 10

The VSI ID being 10.

# Run the ping vpls command on the PE to check the connectivity of a PW in the BGP AD VPLS.
<HUAWEI> ping vpls vsi ad peer 10.2.2.2
    Reply from 10.2.2.2: bytes=100 Sequence=1 time=30 ms
    Reply from 10.2.2.2: bytes=100 Sequence=2 time=60 ms
    Reply from 10.2.2.2: bytes=100 Sequence=3 time=60 ms
    Reply from 10.2.2.2: bytes=100 Sequence=4 time=60 ms
    Reply from 10.2.2.2: bytes=100 Sequence=5 time=60 ms
   
 --- FEC: FEC 129 PSEUDOWIRE. Sender = 1.1.1.1, Remote = 10.2.2.2 ping statisti
cs ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 30/54/60 ms
Table 10-119  Description of the ping vpls command output

Item

Description

Reply from x.x.x.x

Response from the destination host to each Echo Request packet:
  • bytes: indicates the length of the response packet.
  • sequence: indicates the sequence number of the response packet.
  • time: indicates the response time, in ms.
If no response packet is received after the timeout period, the message "Request time out" is displayed.

FEC: FEC 129 PSEUDOWIRE

Check on FEC 129, namely, check on a BGP AD VPLS PW.

Sender = x.x.x.x

Address of the sender.

Remote = x.x.x.x

Address of the destination host.

ping vpls mac vsi

Function

The ping vpls mac vsi command checks the connectivity of Layer 2 forwarding links on the VPLS network.

Format

ping vpls mac mac-address vsi vsi-name [ vlan vlan-id | -c count | -m time-value | -s packsize | -t timeout | -exp exp | -r replymode | -h ttl ] *

ping vpls mac mac-address vsi vsi-name rapid [ vlan vlan-id | -c count | -s packsize | -t timeout | -exp exp | -r replymode | -h ttl ] *

Parameters

Parameter Description Value
mac mac-address Specifies the unicast destination MAC address of the VPLS MAC ping, expressed in the format of H-H-H. An H is a hexadecimal number of 1 to 4 bits, such as 00e0 and fc01. If you enter less than four digits, 0s are padded before the input digits. For example, if e0 is entered, 00e0 is displayed. The value cannot be a broadcast or multicast MAC address.
vsi vsi-name Specifies the name of a VSI. The value is an existing VSI.
vlan vlan-id Specifies the ID of a VLAN vlan-id specifies the VLAN ID, which is an integer that ranges from 1 to 4094.
rapid Indicates that VPLS MAC ping packets are sent in rapid mode.

This parameter can be used if each response message is not concerned and multiple ping operations need to be performed within a shot period of time. This configuration allows all packets to be sent at the same time, and only summary statistics are displayed.

-
-c count Specifies the number of VPLS MAC Ping Request packets to be sent. The value ranges from 1 to 4294967295. The default value is 5.
-m time-value Specifies the time to wait before sending the next VPLS MAC Ping Request packet. The value ranges from 1 to 10000, in milliseconds. The default value is 2000 ms.
-s packsize Specifies the size of the VPLS MAC Ping Request packet. The value ranges from 142 to 1442, in bytes. The default value is 142 bytes.
-t timeout Specifies the timeout period for waiting for a Reply packet in response to a VPLS MAC Ping Request packet. The value ranges from 0 to 65535, in milliseconds. The default value is 2000 ms.
-exp exp Specifies the priority. The value ranges from 0 to 7. The default value is 0.
-r replymode Specifies the reply mode, that is, the Reply packet is sent from the control layer or the data layer. Enumerated type. -
-h ttl Specifies the TTL value of an Echo Request packet to be sent. The value ranges from 1 to 255. The default value is 30.

Views

All views

Default Level

0: Visit level

Usage Guidelines

Using the ping vpls mac vsi command, you can check the connectivity of Layer 2 forwarding links on the VPLS network.

Example

# On the VPLS network, check whether the device with the MAC address of 00e0-5952-6f01 is reachable.

<HUAWEI> ping vpls mac 00e0-5952-6f01 vsi v123
Ping mac 00e0-5952-6f01 vsi v123 : 100 data bytes , press CTRL_C to break
     Reply from 10.1.1.1 : bytes=100 sequence=1 time = 1ms
     Reply from 10.1.1.1 : bytes=100 sequence=2 time = 1ms
     Reply from 10.1.1.1 : bytes=100 sequence=3 time = 2ms
     Reply from 10.1.1.1 : bytes=100 sequence=4 time = 3ms
     Reply from 10.1.1.1 : bytes=100 sequence=5 time = 2ms
     The IP address of the PE is 5.5.5.5 and the interface on the PE is GigabitEthernet1/0/0.
   
   --- vsi : v123 00e0-5952-6f01 ping statistics ---
     5 packet(s) transmitted
     5 packet(s) received
     0.00% packet loss
     round-trip min/avg/max = 1/2/3 ms
Related Topics

ping vpls multicast

Function

The ping vpls multicast command starts an MFIB ping test with a specified VSI in the VPLS domain.

Format

ping vpls multicast vsi vsi-name [ -a source-ip-address | -c count | -s packetsize | -t timeout | -m interval | -r replymode | -exp exp | -v ] * dest-ip-address

Parameters

Parameter Description Value
vsi vsi-name Specifies the name of the VSI on which the operation is performed. The value is an existing VSI.
-a source-ip-address Specifies the multicast source IP address. By default, the multicast source IP address is the IP address of the initiator. The value is in dotted decimal notation. -
-c count Specifies the number of Echo Request packets to be sent. The value is an integer that ranges from 1 to 4294967295. The default value is 5.
-s packetsize Specifies the length of the payload in the Echo Request packet, which should be smaller than the MTU value. The value ranges from 100 to 1442, in bytes. The default value is 100.
-t timeout Specifies the timeout period for waiting for an Echo Reply packet. The value ranges from 0 to 65535, in milliseconds. The default value is 2000 milliseconds.
-m interval Specifies the time to wait before sending the next Echo Request packet. The value ranges from 1 to 10000, in milliseconds. The default value is 2000 milliseconds.
-r replymode Specifies the reply mode. The default value is 2.
  • 1: indicates that the peer end does not respond to Echo Request packets.
  • 2: indicates that the peer end responds to Echo Request packets with IPv4 or IPv6 UDP packets.
  • 3: indicates that the peer end responds to Echo Request packets with IPv4 or IPv6 UDP packets carrying the Router Alert option.
  • 4: indicates that the peer end responds to Echo Request packets through the control channel of the application program grade.
  • 5: indicates that the peer end responds to Echo Request packets with VPLS IPv4 UDP packets.
NOTE:
Currently, the switch only supports mode 1, 2, and 5.
-
-exp exp Specifies the priority of Echo Request packets to be sent. The value is an integer that ranges from 0 to 7. The default value is 0.
-v Specifies the displayed details. -
dest-ip-address Specifies the multicast IP address. -

Views

All views

Default Level

0: Visit level

Usage Guidelines

Usage Scenario

Using the ping vpls multicast command, you can start an MFIB ping test with a specified VSI in the VPLS domain and obtain information about the egress that is in the VPLS domain and can normally receive specified IP multicast packets. In addition, you can check whether the IGMP snooping function is normal.

Precautions

  • To check whether the IGMP snooping function is normal, enable IGMP snooping of the VSI to trigger the exchange of IGMP Query packets and Report packets between the multicast source and receiver and specify a non-reserved multicast address as the destination address to initiate the VPLS multicast ping.

  • The ping vpls multicast command does not support BGP AD VPLS.

After receiving a VPLS multicast Ping packet, the egress in the VPLS domain sends a Reply packet to the sender. The sender can determine the connectivity of the egress and the round trip delay according to the received Reply packet.

You can check the IGMP snooping function in the following scenarios:

  • If IGMP snooping is enabled on a PE and the ping vpls multicast command run on the PE contains the -v parameter, the MPLS Echo packet received by the initiator carries information about interfaces at the AC side of the PE. If the initiator does not receive the Echo Reply packet of the PE, it considers the IGMP snooping function faulty.
  • If a certain PE is not enabled with the IGMP snooping function, the Echo Reply packet received by the initiator does not carry information about interfaces at the AC side of the PE.

Example

# Initiate an MFIB ping test with a specified VSI in the VPLS domain.

<HUAWEI> ping vpls multicast vsi aaa -a 11.10.10.1 -c 2 -v 225.0.0.1
ping 225.0.0.1 : 56 data bytes , press CTRL-C to break

Seq Node-id Path Size RTT
-------------------------------------------------------------------------------
[Send request Seq. 1.]
1 51.51.51.51: ge1/0/0 Self 100 0ms
1 52.52.52.52: ge2/0/0 In-Band 100 20ms
1 54.54.54.54: ge2/0/0 In-Band 100 10ms
 
[Send request Seq. 2.]
2 51.51.51.51: ge1/0/0 Self 100 0ms
2 52.52.52.52: ge2/0/0In-Band 100 10ms
2 54.54.54.54: ge2/0/0 In-Band 100 20ms
-------------------------------------------------------------------------------
--225.0.0.1 ping statistics--
2 packets transmitted
4 packets received
round-trip min/avg/max = 10/15/20 ms
Table 10-120  Description of the ping vpls multicast command output

Item

Description

Seq

Sequence number of the packet.

Node-id

Response address, which carries the port number if it contains forwarding information about the AC side.

Path

Path.

  • Self: indicates that packets are sent from the local end (AC side).
  • In-Band: indicates that packets are sent from the data link layer (PW side).

Size

Size of the packet.

RTT

Round trip time.

ping vpn-config

Function

The ping vpn-config command checks whether configurations on both ends of a VPN are consistent, which can help you locate faults on the VPN connection.

Format

ping vpn-config peer-address peer-address vsi-name vsi-name [ pw-id pw-id ] [ local ] [ remote ]

Parameters

Parameter Description Value
peer-address peer-address Specifies the IP address of the peer PE. -
vsi-name vsi-name Specifies the name of the VSI on which the operation is performed. The value is an existing VSI.
pw-id pw-id Specifies the ID of the PW. The value is an integer that ranges from 1 to 4294967295. This parameter cannot be specified in the BGP AD VPLS networking.
local Indicates that the Request packet is encapsulated in LSP mode. -
remote Indicates that the Reply packet is encapsulated in LSP mode. -

Views

All views

Default Level

0: Visit level

Usage Guidelines

Usage Scenario

Using the ping vpn-config command, you can check whether configurations on both ends of a VPN are consistent, which can help you locate faults on the VPN connection.

The ping vpn-config command is used to send a Request packet from the local PE to the peer PE to obtain VPN configurations of the peer PE, such as the VSI name, status, PW type, MTU value, and number of CEs. After the local PE receives the VPN configuration of the peer PE, it displays the information on the local. This can help you locate the fault on the VPN.

Precautions

The ping vpn-config command is applied to VPLS networks, dynamic PWE3 networks, and VLL accessing the VPLS networks.

NOTE:

The timeout period of the ping vpn-config command is 10 seconds.

Example

# Run the ping vpn-config command to ping the peer PE in Martini VPLS networking.

<HUAWEI> ping vpn-config peer-address 3.3.3.9 vsi-name a2
VPN-CONFIG PING: Press CTRL_C to break.
Result Detail: Request Sent - Reply Received
Local VPN description:
Remote VPN description:
PW State: Up
                      local            remote
------------------------------------------------
VPN Type:             Martini VPLS     Martini VPLS
VSI Name:             a2               a2
VSI ID:               2                2
Admin State:          Up               Up
Oper State:           Up               Up
MTU:                  1500             1500
CE Count:             1                1
Control Word:         N/A              N/A
Primary Or Secondary: N/A              N/A

Actual IP Addr:       1.1.1.9          3.3.3.9
Expected Peer IP:     3.3.3.9          1.1.1.9
SPE:                  NO               NO

PW-ID:                2                2
VC-Type:              vlan             vlan
Egress Label:         1025             1026
Ingress Label:        1026             1025

LSP Tunnel Used:      NO               NO

# Perform a service ping operation with the destination address being 3.3.3.9 in BGP AD VPLS networking.

<HUAWEI> ping vpn-config peer-address 3.3.3.9 vsi-name vplsad1
VPN-CONFIG PING: Press CTRL_C to break.
Result Detail: Request Sent - Reply Received
Local VPN description:
Remote VPN description:
PW State: Up
                      local                  remote
----------------------------------------------------------------
VPN Type:             BGPAD VPLS             BGPAD VPLS
VSI Name:             vplsad1                vplsad1
Admin State:          Up                     Up
Oper State:           Up                     Up
MTU:                  1500                   1500
CE Count:             1                      1

Actual IP Addr:       1.1.1.9                3.3.3.9
Expected Peer IP:     3.3.3.9                1.1.1.9
SPE:                  NO                     NO

VC-Type:              vlan                   vlan
Egress Label:         1026                   1027
Ingress Label:        1027                   1026

VPLS ID:              168.1.1.1:1            168.1.1.1:1
RD:                   168.1.1.1:1            168.1.1.1:1
Import VPN target:    100:1                  100:1
Export VPN target:    100:1                  100:1

LSP Tunnel Used:      NO                     NO
Table 10-121  Description of the ping vpn-config command output

Item

Description

Result details

Details of the command operation result.

Local VPN description

Description of the local VPN.

To set the value, run the description command.

Remote VPN description

Description of the peer VPN.

PW State

Status of a PW.

Local

Configuration of the local PE.

Remote

Configuration of the remote PE.

VPN Type

Type of a VPN.

VSI Name

Name of a VSI.

VSI ID

ID of a VSI.

To set the value, run the vsi-id command.

Admin State

VSI administration status.

To set the value, run the admin-vsi command.

Oper State

VSI operating status.

MTU

MTU of the VSI. In PWE3 networking, it refers to the MTU of an AC interface; in VPLS networking, it refers to the MTU of a VSI.

CE Count

Number of AC links.

Control Word

Whether the control word is enabled:
  • Enable
  • Disable

Primary Or Secondary

Displayed as a PW on the local end and always displayed as N/A on the remote end.

Actual IP Addr

Actual IP address.

Expect IP Addr

Expected IP address.

SPE

Whether it is a SPE

PW ID

ID of a PW.

VC-Type

Encapsulation type of the VC.

  • Ethernet: indicates that the encapsulation type of the VC is Ethernet.
  • VLAN: indicates that the encapsulation type of the VC is VLAN.

Egress Label

Outgoing label.

Ingress Label

Incoming label.

VPLS ID

VPLS ID

To set the value, run the vpls-id command.

RD

Route tag.

To set the value, run the route-distinguisher command.

Import VPN target

Import VPN target.

Export VPN target

Export VPN target.

LSP Tunnel Used

Whether the packet is encapsulated in LSP mode.

protect-group (VSI-LDP view)

Function

The protect-group command creates a PW protection group. If the PW protection group to be created already exists, the PW protection group view is displayed.

The undo protect-group command deletes a specified PW protection group.

By default, no PW protection group is created in a VSI.

Format

protect-group group-name

undo protect-group group-name

Parameters

Parameter Description Value
group-name

Specifies the name of a PW protection group.

The value is a string of 1 to 15 case-sensitive characters without spaces or hyphens (-). When double quotation marks are used around the string, spaces are allowed in the string.

Views

VSI-LDP view

Default Level

2. Configuration level

Usage Guidelines

Usage Scenario

Multiple PWs can be created in a VSI.

You can create multiple PW protection groups for a VSI. After you add two PWs to a PW protection group, the two PWs will work in backup mode.

Prerequisites

The VSI ID has been configured using the vsi-id vsi-id command in the VSI-LDP view.

Follow-up Procedure

After creating PW protection groups, configure the PW redundancy mode of each PW protection group, add PWs to these groups, and configure revertive switching policies for these groups.

Example

# Create a PW protection group named group1.

<HUAWEI> system-view
[HUAWEI] vsi vsi1
[HUAWEI-vsi-vsi1] pwsignal ldp
[HUAWEI-vsi-vsi1-ldp] vsi-id 10
[HUAWEI-vsi-vsi1-ldp] protect-group group1

protect-mode (protect-group view)

Function

The protect-mode command specifies the PW redundancy mode of a PW protection group.

The undo protect-mode command cancels the PW redundancy mode of a PW protection group.

By default, a PW protection group does not have a PW redundancy mode.

Format

protect-mode pw-redundancy master

undo protect-mode

Parameters

Parameter Description Value
pw-redundancy master

Specifies the PW redundancy mode of a PW protection group as master/slave.

-

Views

protect-group view

Default Level

2. Configuration level

Usage Guidelines

Usage Scenario

You can configure PW protection groups to protect PW pairs of a VSI.

In the scenarios, in which the active/standby PWs cannot be determined based on the signaling sent by the remote end, you can create a PW protection group on the UPE, and specify the PW redundancy mode of the group as master/slave. The local UPE determines the active/standby PWs based on the priorities configured using the peer preference command.

NOTE:

When the mode of the group is master/slave, the local UPE does not determine the active/standby PWs based on the signaling sent by the remote end.

Prerequisites

The PW protection group has been configured using the protect-group (VSI-LDP view) command.

Precautions

A static hub PW and a static spoke PW cannot be added to the same protection group.

After a PW protection group is configured, you must specify the PW redundancy mode before configuring other parameters. Deleting the PW redundancy mode of a PW protection group will clear all the configurations of the group.

Example

# Configure the PW redundancy mode of a PW protection group as PW redundancy master/slave.

<HUAWEI> system-view
[HUAWEI] vsi vsi1
[HUAWEI-vsi-vsi1] pwsignal ldp
[HUAWEI-vsi-vsi1-ldp] protect-group group1
[HUAWEI-vsi-vsi1-ldp-protect-group-group1] protect-mode pw-redundancy master

protect-switch (protect-group view)

Function

The protect-switch command triggers a manual protection switchover or cancels the manual switchover in a protection group.

Format

protect-switch { manual | clear }

Parameters

Parameter Description Value
manual

Forcibly performs a PW switchover to switch traffic from the high-priority primary PW to the low-priority backup PW.

-
clear

Cancels the manual PW switchover to switch traffic from the low-priority backup PW back to the high-priority primary PW.

-

Views

protect-group view

Default Level

2. Configuration level

Usage Guidelines

Usage Scenario

If you want to maintain the device where the primary PW in a PW protection group resides, you must use a command to switch traffic from the primary PW to the secondary PW first. After the device where the primary PW resides stablizes, you need to use this command to switch traffic back from the secondary PW to the primary PW.

Prerequisites

A PW protection group has been created and the PW redundancy mode is master/slave. The primary and secondary PWs have joined the PW protection group and their status is Up.

Precautions

After you run the protect-switch manual command, traffic switches from the primary PW to the secondary PW. After you run the protect-switch clear command, traffic switches from the secondary PW to the primary PW.

After you run the protect-switch manual command, service traffic is always transmitted over the low-priority backup PW. To enable service traffic to be transmitted over a high-priority PW, run the protect-switch clear command to cancel the manual switchover. The manual switchover is also cancelled when the priorities of the primary and backup PWs change in some situations, for example, a PW is Down or you change their priority values. In these situations, the system selects the PW with a higher priority to transmit service traffic.

Example

# Forcibly perform an active/standby PW switchover in the current PW protection group.

<HUAWEI> system-view
[HUAWEI] vsi vsi1
[HUAWEI-vsi-vsi1] pwsignal ldp
[HUAWEI-vsi-vsi1-ldp] protect-group group1
[HUAWEI-vsi-vsi1-ldp-protect-group-group1] protect-switch manual

pw

Function

The pw command displays the PW view.

The undo pw command deletes the PW view.

By default, the PW view is not displayed.

Format

pw pw-name

undo pw pw-name

Parameters

Parameter Description Value
pw-name Specifies the name of a PW. The value is a string of 1 to 15 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

Views

VSI-LDP view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After a PW is created, you can run the pw pw-name command to enter the PW view.

Prerequisites

A PW has been created using the peer peer-address [ negotiation-vc-id vc-id ] pw pw-name command.

Precautions

The PW name must be unique in a VSI, and the PW name can be the same in different VSIs.

Example

# Enter the PW view.

<HUAWEI> system-view
[HUAWEI] vsi aa static
[HUAWEI-vsi-aa] pwsignal ldp
[HUAWEI-vsi-aa-ldp] vsi-id 1
[HUAWEI-vsi-aa-ldp] peer 10.1.1.1
[HUAWEI-vsi-aa-ldp] peer 10.1.1.1 pw pw1
[HUAWEI-vsi-aa-ldp-pw-pw1] quit
[HUAWEI-vsi-aa-ldp] pw pw1
Related Topics

pwsignal

Function

The pwsignal command configures the signaling mode for a VSI.

By default, no signaling mode is configured for a VSI.

Format

pwsignal { bgp | ldp }

Parameters

Parameter Description Value
bgp Uses the BGP signing mode. -
ldp Uses the LDP signaling mode. -

Views

VSI view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When configuring the Martini or Kompella VPLS, you need to run the pwsignal command to configure a signaling mode for a VSI.

Precautions

If the member discovery mode of the VSI is static, the signaling mode must be LDP.If the member discovery mode of the VSI is automatic, the signaling mode must be BGP.

After the signaling mode is configured successfully for the VSI, it cannot be modified. If you want to change the signaling mode, you must delete the VSI and re-create VSI.

Example

# Configure the signaling mode of the VSI as LDP.

<HUAWEI> system-view
[HUAWEI] vsi company1 static
[HUAWEI-vsi-company1] pwsignal ldp
[HUAWEI-vsi-company1-ldp]

# Configure the signaling mode of the VSI as BGP.

<HUAWEI> system-view
[HUAWEI] vsi company2 auto
[HUAWEI-vsi-company2] pwsignal bgp
[HUAWEI-vsi-company2-bgp]
Related Topics

pw spoke-mode (VSI-BGPAD view)

Function

The pw spoke-mode command configures all PWs of a BGP AD VSI as spoke PWs.

The undo pw spoke-mode command restores the default setting.

By default, all PWs of a BGP AD VSI are hub PWs.

Format

pw spoke-mode

undo pw spoke-mode

Parameters

None

Views

VSI-BGPAD view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If a BGP AD VPLS needs to be deployed on a network with a star or tree topology (on which one PE that serves as a server or an authorization device is configured as the hub PE, and other PEs are configured as spoke PEs), all PWs of the VSI on the hub PE must be configured as spoke PWs to disable split horizon of the PWs. Traffic from spoke PWs can be forwarded to spoke PWs and hub PWs, but traffic from hub PWs can only be forwarded to spoke PWs and not to hub PWs.

Prerequisites

The VPLS ID has been configured using the vpls-id vpls-id command in the VSI-BGPAD view.

Precautions

The pw spoke-mode command takes effect on all the PWs of a BGP AD VSI.

After the pw spoke-mode command is run, all PWs of the specified VSI become spoke PWs. Split horizon does not function on spoke PWs. This means that packets sent from Spoke PWs can be forwarded to other PWs. If the undo pw spoke-mode command is run, all PWs of the VSI will be changed to hub PWs that comply with split horizon rules.

Example

# Create a BGP AD VSI named company1 and configure all the PWs of the VSI as spoke PWs.

<HUAWEI> system-view
[HUAWEI] vsi company1
[HUAWEI-vsi-company1] bgp-ad
[HUAWEI-vsi-company1-bgpad] vpls-id 65535:1
[HUAWEI-vsi-company1-bgpad] pw spoke-mode
Related Topics

remote-vpn-target refresh

Function

The remote-vpn-target refresh command refreshes the remote VPN target manually.

Format

remote-vpn-target refresh

Parameters

None

Views

VSI-BGP view

Default Level

2: Configuration level

Usage Guidelines

When locating a Kompella VPLS fault, you can use the remote-vpn-target refresh command to refresh the remote VPN target manually.

Example

# Refresh the remote VPN target.

<HUAWEI> system-view
[HUAWEI] vsi company2
[HUAWEI-vsi-company2] pwsignal bgp
[HUAWEI-vsi-company2-bgp] remote-vpn-target refresh

reroute (protect-group view)

Function

The reroute command configures a revertive switching policy for a PW protection group with the master/slave PW redundancy mode.

The undo reroute command deletes the revertive switching policy for a PW protection group with the master/slave PW redundancy mode.

The default revertive switching policy for a PW protection group with the master/slave PW redundancy mode is delayed switchback and the default delay is 30s.

Format

reroute { delay delay-time | immediately | never }

undo reroute

Parameters

Parameter Description Value
delay delay-time

Specifies that the revertive switching policy is delayed switchback.

The value is an integer ranging from 10 to 600, in seconds. The default value is 30s.
immediately

Specifies that the revertive switching policy is immediate switchback.

-
never

Specifies that the revertive switching policy is non-revertive. Traffic does not switch back to the primary PW even after the primary PW recovers. Traffic will be switched back to the primary PW only when the secondary PW fails.

-

Views

protect-group view

Default Level

2. Configuration level

Usage Guidelines

Usage Scenario

The reroute command can configure revertive switching policies for only PW protection groups with the master/slave PW redundancy mode. The revertive switching policy for PW protection groups with the independent PW redundancy mode is immedate switchback and cannot be modified.

Currently, three types of revertive switching policies are available:

  • Delayed switchback: Traffic is switched back to the primary PW after the delay time specified in delay-time. After the switchover is performed, the UPE notifies the remote PE on the secondary PW of a fault. On a large-scale network, packet loss caused by incomplete route convergence may occur during the switchback. To prevent this problem, configure traffic to be switched back after a delay.
  • Immediate switchback: Traffic is immediately switched back to the primary PW. This revertive switching policy applies to scenarios in which users hope traffic to be restored as soon as possible.
  • Non-revertive: Traffic will not be switched back to the primary PW even after the primary PW recovers. Traffic will be switched back to the primary PW only when the secondary PW fails. If you do not want traffic to be frequently switched between the primary and secondary PWs, you can use the non-revertive policy.

Prerequisites

The PW redundancy mode of the PW protection group is master/slave.

Precautions

The revertive switching policy determines the switchback behavior of the traffic after the primary PW recovers.

Example

# Configure the primary and secondary PWs in a PW protection group to perform a switchback after a delay of 60s.

<HUAWEI> system-view
[HUAWEI] vsi vsi1
[HUAWEI-vsi-vsi1] pwsignal ldp
[HUAWEI-vsi-vsi1-ldp] protect-group group1
[HUAWEI-vsi-vsi1-ldp-protect-group-group1] reroute delay 60

reset bgp l2vpn-ad

Function

The reset bgp l2vpn-ad command resets the BGP connections associated with L2VPN-AD.

Format

reset bgp l2vpn-ad { all | as-number-plain | as-number-dot | ipv4-address | group group-name | external | internal } [ graceful ]

Parameters

Parameter Description Value
l2vpn-ad Resets BGP connections associated with L2VPN-AD. -
all Resets all the BGP connections. -
as-number-plain Integral AS number The value is an integer ranging from 1 to 4294967295.
as-number-dot AS number in dotted notation The value is in the format of x.y, where x and y are integers that range from 1 to 65535 and from 0 to 65535, respectively.
ipv4-address Resets the connections with a specified BGP peer. It is in dotted decimal notation.
group group-name Resets the BGP connections with the specified peer group. The name is a string of 1 to 47 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
external Resets all EBGP connections. -
internal Resets all IBGP connections. -
graceful Specifies to reset BGP connections in GR mode. -

Views

User view

Default Level

2: Configuration level

Usage Guidelines

The reset bgp l2vpn-ad command is used to make new BGP configurations associated with L2VPN-AD take effect.

After you run this command, the TCP connection is reset, and the neighbor relationship between two peers is reestablished. So, confirm the action before you use the command.

Example

# Reset all BGP L2VPN-AD connections.

<HUAWEI> reset bgp l2vpn-ad all

reset oam-mac statistics

Function

The reset oam-mac statistics command clears the statistics about the number of MAC diagnostic packets.

Format

reset oam-mac statistics { populate | purge | purge-register | all }

Parameters

Parameter Description Value
populate Indicates the statistics about the number of populate packets. -
purge Indicates the statistics about the number of purge packets. -
purge-register Indicates the statistics about the number of purge + register packets. -
all Indicates the statistics about the number of MAC diagnostic packets. -

Views

All views

Default Level

3: Management level

Usage Guidelines

Using the reset oam-mac statistics command, you can clear the statistics about the number of MAC diagnostic packets.

The statistics about MAC diagnostic packets cannot be restored once they are cleared. Confirm the action before you run the reset oam-mac statistics command.

Example

# Display the statistics about the number of all MAC diagnostic packets that are received by the device.

<HUAWEI> display oam-mac statistics all
 Received populate packet: 3
 Received purge packet: 1
 Received purge register packet: 2

# Clear the statistics about the number of MAC diagnostic packets that are received by the device.

<HUAWEI> reset oam-mac statistics all

# Display the statistics about the number of MAC diagnostic packets that are received by the device. It is found that all the statistics are cleared.

<HUAWEI> display oam-mac statistics all
 Received populate packet: 0
 Received purge packet: 0
 Received purge register packet: 0

reset vpls multicast-ping statistics

Function

The reset vpls multicast-ping statistics command clears the statistics on the number of MFIB Ping packets.

Format

reset vpls multicast-ping statistics

Parameters

None

Views

User view

Default Level

3: Management level

Usage Guidelines

You can run this command to clear the statistics on the number of sent and received MFIB Ping packets.

Example

# Reset the statistics on the number of MFIB Ping packets.

<HUAWEI> reset vpls multicast-ping statistics

reset vpls multicast-trace statistics

Function

The reset vpls multicast-trace statistics command clears the statistics on the number of MFIB Trace packets.

Format

reset vpls multicast-trace statistics

Parameters

None

Views

User view

Default Level

3: Management level

Usage Guidelines

You can run this command to clear the statistics on the number of sent and received MFIB Trace packets.

Example

# Reset the statistics on the number of MFIB Trace packets.

<HUAWEI> reset vpls multicast-trace statistics

reset vpls-ping statistics

Function

The reset vpls-ping statistics command clears the statistics about the number of VPLS MAC Ping packets.

Format

reset vpls-ping statistics

Parameters

None

Views

User view

Default Level

3: Management level

Usage Guidelines

The reset vpls-ping statistics command clears the statistics about the number of sent and received VPLS MAC Ping packets.

Example

# Clear the statistics about the number of VPLS MAC Ping packets.

<HUAWEI> reset vpls-ping statistics

reset vpls-trace statistics

Function

The reset vpls-trace statistics command clears the statistics about the number of VPLS MAC Trace packets.

Format

reset vpls-trace statistics

Parameters

None

Views

User view

Default Level

3: Management level

Usage Guidelines

The reset vpls-trace statistics command clears the statistics about the number of sent and received VPLS MAC Trace packets.

Example

# Clear the statistics about the number of VPLS MAC Trace packets.

<HUAWEI> reset vpls-trace statistics

reset traffic-statistics vsi all

Function

The reset traffic-statistics vsi all command clears the statistics about all VPLS PW traffic.

Format

reset traffic-statistics vsi all

Parameters

None

Views

User view

Default Level

2: Configuration level

Usage Guidelines

When the reset traffic-statistics vsi all command is run successfully, confirm whether to proceed with the operation. If yes, enter Y. If no, enter N.

Example

# Reset the statistics about all VPLS PW traffic in the user view.

<HUAWEI> reset traffic-statistics vsi all
Warning:Traffic-statistics information will be cleared! Continue? [Y/N]:Y

reset traffic-statistics vsi name

Function

The reset traffic-statistics vsi name command clears the statistics about the public traffic on all VPLS PWs in the specified VSI.

Format

reset traffic-statistics vsi name vsi-name

Parameters

Parameter Description Value
vsi-name Specifies the name of the VSI in which traffic statistics are cleared. The value is an existing VSI.

Views

User view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After the VPLS configuration is complete, you can run the display traffic-statistics vsi command to view statistics about all PW traffic in the VSI. To view the statistics about the traffic in a specified period, you can run the reset traffic-statistics vsi name command to clear the previous statistics.

Precautions

The reset traffic-statistics vsi name command is valid only in Martini VPLS.

After you run this command, statistics about all VPLS PW traffic in the VSI are cleared.

Example

# Clear the statistics about all VPLS PW traffic in the specified VSI in the user view.

<HUAWEI> reset traffic-statistics vsi name newvsi

reset traffic-statistics vsi name peer

Function

The reset traffic-statistics vsi name peer command clears the statistics about public traffic of the PW in the specified VPLS VSI.

Format

reset traffic-statistics vsi name vsi-name peer peer-address

Parameters

Parameter Description Value
vsi-name Specifies the name of the VSI in which traffic statistics are cleared. The value is an existing VSI.
peer peer-address Specifies the peer IP address of the PW. -

Views

User view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After the VPLS configuration is complete, you can run the display traffic-statistics vsi peer command to view statistics about the traffic of the PW. To view the statistics about the traffic in a specified period, you can run the reset traffic-statistics vsi name peer command to clear the previous statistics.

Precautions

The reset traffic-statistics vsi name peer command is valid only in Martini VPLS.

After you run this command, statistics about the traffic on the corresponding VPLS PW are cleared.

Example

# Clear the statistics about the traffic on the VPLS PW in the user view.

<HUAWEI> reset traffic-statistics vsi name newvsi peer 10.1.1.1

reset traffic-statistics vsi name peer ldp129

Function

The reset traffic-statistics vsi name peer ldp129 command clears the statistics about the public traffic on the BGP AD VPLS PW in the specified VSI.

Format

reset traffic-statistics vsi name vsi-name peer peer-address ldp129

Parameters

Parameter Description Value
name vsi-name Specifies the name of the VSI in which traffic statistics are cleared. The value is an existing VSI.
peer peer-address Specifies the peer IP address of the PW. -

Views

User view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After the BGP AD VPLS configuration is complete, you can run the display traffic-statistics vsi peer ldp129 command to view statistics about the PW traffic. To view the statistics about the traffic in a specified period, you can run the reset traffic-statistics vsi name peer ldp129 command to clear the previous statistics.

Prerequisites

The traffic statistics function has been enabled using the traffic-statistics enable (VSI-BGPAD view) command or the traffic-statistics peer enable (VSI-BGPAD) command in the VSI-BGPAD view.

Precautions

The reset traffic-statistics vsi name peer ldp129 command is valid only in BGP AD VPLS.

After you run the reset traffic-statistics vsi name peer ldp129 command, statistics about the traffic on the corresponding BGP AD VPLS PW are cleared.

Example

# Clear the statistics about the traffic on the specified BGP AD VPLS PW in the user view.

<HUAWEI> reset traffic-statistics vsi name newvsi peer 10.1.1.1 ldp129

reset traffic-statistics vsi name peer negotiation-vc-id

Function

The reset traffic-statistics vsi name peer negotiation-vc-id command clears the statistics about the public traffic on the Martini VPLS PW in a specified VSI.

Format

reset traffic-statistics vsi name vsi-name peer peer-address negotiation-vc-id vc-id

Parameters

Parameter Description Value
vsi-name Specifies the name of a VSI. The value is an existing VSI.
peer peer-address Specifies the peer IP address of the PW. -
negotiation-vc-id vc-id Specifies the ID of the PW. The value is an integer that ranges from 1 to 4294967295.

Views

User view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After the Martini VPLS configuration is complete, you can run the display traffic-statistics vsi peer negotiation-vc-id command to view the statistics about the traffic on the PW. To view the statistics about the traffic in a specified period, you can run the reset traffic-statistics vsi name peer negotiation-vc-id command to clear the previous statistics.

Precautions

The reset traffic-statistics vsi name peer negotiation-vc-id command is valid only in Martini VPLS.

After you run the reset traffic-statistics vsi name peer negotiation-vc-id command, statistics about the traffic on the corresponding Martini VPLS PW are cleared.

Example

# Reset the statistics about the traffic on the Martini VPLS PW in the user view.

<HUAWEI> reset traffic-statistics vsi name newvsi peer 10.22.33.20 negotiation-vc-id 2

reset traffic-statistics vsi name peer remote-site

Function

The reset traffic-statistics vsi name peer remote-site command clears the statistics about the public traffic on the Kompella VPLS PW in the specified VSI.

Format

reset traffic-statistics vsi name vsi-name peer peer-address remote-site site-id

Parameters

Parameter Description Value
name vsi-name Specifies the name of a VSI. The value is an existing VSI.
peer peer-address Specifies the peer IP address of the PW. -
remote-site site-id Specifies the remote site ID. The value is an integer that ranges from 0 to 65534.

Views

User view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After the Kompella VPLS configuration is complete, you can run the display traffic-statistics vsi peer remote-site command to view the statistics about the traffic on the PW. To view the statistics about the traffic in a specified period, you can run the reset traffic-statistics vsi name peer remote-site command to clear the previous statistics.

Prerequisites

The traffic statistics function has been enabled using the traffic-statistics peer remote-site enable (Kompella) command in the VSI-BGP view.

Precautions

The reset traffic-statistics vsi name peer remote-site command is valid only in Kompella VPLS.

After you run the reset traffic-statistics vsi name peer remote-site command, statistics about the traffic on the corresponding Kompella VPLS PW are cleared.

Example

# Reset the statistics about the traffic on the Kompella VPLS PW in the user view.

<HUAWEI> reset traffic-statistics vsi name newvsi peer 10.22.33.20 remote-site 2 

route-distinguisher (VSI-BGP view)

Function

The route-distinguisher command configures an RD for a VSI.

Format

route-distinguisher route-distinguisher

Parameters

Parameter

Description

Value

route-distinguisher

Specifies the value of an RD, which identifies a VSI on a PE.

The formats of an RD are as follows:
  • 16-bit AS number:32-bit user-defined number: for example, 101:3. An AS number ranges from 0 to 65535, and a user-defined number ranges from 0 to 4294967295. The AS number and user-defined number cannot be both 0. That is, a VPLS ID cannot be 0:0.
  • Integral 4-byte AS number:2-byte user-defined number, for example, 65537:3. An AS number ranges from 65536 to 4294967295. A user-defined number ranges from 0 to 65535. The AS number and user-defined number cannot be both 0s. That is, a VPLS ID cannot be 0:0.

  • 4-byte AS number in dotted notation:2-byte user-defined number, for example, 0.0:3 or 0.1:0. A 4-byte AS number in dotted notation is in the format of x.y, where x and y are integers that range from 1 to 65535 and from 0 to 65535, respectively. A user-defined number ranges from 0 to 65535. The AS number and user-defined number cannot be both 0s. That is, a VPLS ID cannot be 0.0:0.

  • 32-bit IP address:16-bit user-defined number: for example, 192.168.122.15:1. An IPv4 address ranges from 0.0.0.0 to 255.255.255.255, and a user-defined number ranges from 0 to 65535.

Views

VSI-BGP view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After you create a VSI in the Kompella VPLS and use the BGP as the PW signaling protocol, run the route-distinguisher command to configure the RD. Other parameters can be configured only after the RD is configured.

Prerequisites

The following operations have been performed before this command is used:
  1. A VSI has been created using the vsi vsi-name [ auto ] command.
  2. BGP has been configured as the PW signaling protocol using the pwsignal bgp command.

Precautions

On the same PE, different VSIs have different RDs. The IDs of the same VSIs on different PEs can be either the same or different.

The RD does not have a default value. After an RD is configured successfully for the VSI, it cannot be modified. If you want to modify the RD, you need to delete the VSI and re-create a VSI.

Kompella VLL and Kompella VPLS must use different RDs.

Example

# Configure an RD in the format of "16-bit ASN:32-bit user-defined number" for the VSI named company1.

<HUAWEI> system-view
[HUAWEI] vsi company1 auto
[HUAWEI-vsi-company1] pwsignal bgp
[HUAWEI-vsi-company1-bgp] route-distinguisher 101:3

# Configure an RD in the format of "32-bit IP address:16-bit user-defined number" for the VSI named company2.

<HUAWEI> system-view
[HUAWEI] vsi company2 auto
[HUAWEI-vsi-company2] pwsignal bgp
[HUAWEI-vsi-company2-bgp] route-distinguisher 2.2.2.2:1

# Configure an RD in the format of "4-byte AS number in dotted notation:2-byte user-defined number" for the VSI named company2.

<HUAWEI> system-view
[HUAWEI] vsi company2 auto
[HUAWEI-vsi-company2] pwsignal bgp
[HUAWEI-vsi-company2-bgp] route-distinguisher 22.22:22

shutdown (VSI view)

Function

The shutdown command disables a VSI.

The undo shutdown command enables a VSI.

By default, a VSI is enabled.

Format

shutdown

undo shutdown

Parameters

None

Views

VSI view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

For service management such as service debugging or service halting, you can disable a VSI temporarily, and add, cancel, or adjust VSI functions.

Pre-configuration Tasks

Before a VSI is disabled, the PW-Signal must be configured.

Precautions

The shutdown command mainly affects PW connections of a VSI. After the command is run, the AC is Down and the Layer 2 forwarding table is deleted.

Example

# Disable the current VSI.

<HUAWEI> system-view
[HUAWEI] vsi company1
[HUAWEI-vsi-company1] shutdown

# Enable the current VSI.

<HUAWEI> system-view
[HUAWEI] vsi company1
[HUAWEI-vsi-company1] undo shutdown

signaling

Function

The signaling command configures the signaling mode for all peers or peer groups.

The undo signaling command restores the default signaling mode of all peers or peer groups.

By default, after the peer enable is run in the L2VPN AD address family view, the BGP AD signaling is enabled for all peers or peer groups.

Format

signaling { vpws | vpls | vpls-ad disable }

undo signaling { vpws | vpls | vpls-ad disable }

Parameters

Parameter Description Value
vpws Configures the signaling mode of all peers or peer groups as VPWS. -
vpls Configures the signaling mode of all peers or peer groups as VPLS. -
vpls-ad disable Disables BGP AD signaling for all peers or peer groups. -

Views

L2VPN AD address family view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In Kompella VLL, Kompella VPLS, and BGP AD VPLS scenarios, configure the signaling mode for peers or peer groups in the L2VPN AD address family view so that peers can advertise routes to each other. The parameters used in different scenarios are described as follows:

In the Kompella VLL scenario, configure vpws in the signaling command.

In the Kompella VPLS scenario, configure vpls in the signaling command.

In the BGP AD VPLS scenario, the BGP AD signaling is enabled for all peers or peer groups in the L2VPN AD address family view by default. Therefore, you need to run the signaling vpls-ad disable command to disable the BGP AD signaling for all peers or peer groups in Kompella VLL and Kompella VPLS scenarios.

Prerequisites

The peer enable command has been run to establish peers or peer groups.

Precautions

The signaling mode configured for a peer is preferred over that configured for the peer group to which the peer belongs. The signaling mode configured for a peer group is preferred over that configured by running the signaling command.

When a signaling mode is not configured for a peer or its peer group, the peer and peer group use the signaling mode configured by running the signaling command.

Example

# Configure the signaling mode for all peers or peer groups in the L2VPN AD address family view when Kompella VPLS is enabled.

<HUAWEI> system-view
[HUAWEI] bgp 100
[HUAWEI-bgp] l2vpn-ad-family
[HUAWEI-bgp-l2vpn-ad] signaling vpls
[HUAWEI-bgp-l2vpn-ad] signaling vpls-ad disable
Related Topics

site

Function

The site command configures a site ID for a VSI.

The undo site command deletes a site ID of a VSI.

By default, no site ID is configured for the VSI.

Format

site site-id [ range site-range ] [ default-offset { 0 | 1 } ]

undo site site-id

Parameters

Parameter Description Value
site-id Specifies the site ID of a VSI. The value is an integer that ranges from 0 to 65534.
range site-range Specifies the range of the number of sites in the VSI. If this parameter is specified, the system reserves the required labels for the VSI. The value is an integer that ranges from 1 to 8000.
default-offset Specifies the offset of the initial site ID. The value is an integer. It can be 0 or 1. The default value is 0.

Views

VSI-BGP view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After you configure an RD for the VSI in the Kompella VPLS, run the site command to configure site connections.

Prerequisites

The following operations have been performed before this command is used:
  1. A VSI has been created using the vsi vsi-name auto command.
  2. BGP has been configured as the PW signaling protocol using the pwsignal bgp command.
  3. The RD of the VSI has been configured using the route-distinguisher route-distinguisher command.

Precautions

The same VSI on different PEs cannot be configured with the same site ID. site-id of the local end must be less than the sum of site-range and default-offset of the remote end. site-id of the local end cannot be less than default-offset of the remote end.

A device allocates labels to the ranges of Kompella L2VPN instances and VPLS VSIs from the same label block. Therefore, the ranges of Kompella L2VPN instances and VPLS VSIs cannot be greater than the size of the label block. Otherwise, the system prompts that the required labels exceed the permitted maximum labels, and the labels cannot be allocated. The system fails to create a CE or fails to allocate a site ID to a VSI.

Example

# Configure the site ID of the VSI as 1 and the number of connected sites in this VSI as 100.

<HUAWEI> system-view
[HUAWEI] vsi company2
[HUAWEI-vsi-company2] pwsignal bgp
[HUAWEI-vsi-company2-bgp] route-distinguisher 10.1.1.1:1
[HUAWEI-vsi-company2-bgp] site 1 range 100

stream-dual-receiving

Function

The stream-dual-receiving command enables the secondary PW to receive and forward traffic from the peer.

The undo stream-dual-receiving command disables the secondary PW from receiving and forwarding traffic from the peer.

By default, the secondary PW does not receive traffic from the peer.

Format

stream-dual-receiving

undo stream-dual-receiving

Parameters

None

Views

protect-group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When the network is unstable or a faulty occurs on the device, traffic may switch between the primary and secondary PW. In this case, you need to run the stream-dual-receiving command to enable the secondary PW to receive and forward traffic from the peer. This reduces number of packets lost during switching.

Prerequisites

The master/slave mode has been configured as the PW redundancy mode.

Configuration Impact

The secondary PW can forward data but does not forward data before traffic is switched from the primary PW to the secondary PW.

Example

# Enable the secondary PW to receive and forward traffic from the peer.

<HUAWEI> system-view
[HUAWEI] vsi vsi1
[HUAWEI-vsi-vsi1] pwsignal ldp
[HUAWEI-vsi-vsi1-ldp] protect-group group1
[HUAWEI-vsi-vsi1-ldp-protect-group-group1] stream-dual-receiving

tnl-policy (VSI view)

Function

The tnl-policy command sets a tunnel policy for a VSI.

The undo tnl-policy command deletes the tunnel policy of a VSI.

By default, no tunnel policy is applied to a VSI.

Format

tnl-policy policy-name

undo tnl-policy

Parameters

Parameter Description Value
policy-name Specifies the policy name of a tunnel. The value is a string of 1 to 39 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

Views

VSI view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When configuring the VPLS to use tunnels for packet exchange, run the tnl-policy command.

Prerequisites

One of the following operations has been performed before this command is used:
  • The pwsignal bgp command and the route-distinguisher route-distinguisher command have been executed for Kompella VPLS.

  • The pwsignal ldp command and the vsi-id vsi-id command have been executed for Martini VPLS.

  • The bgp-ad command and the vpls-id vpls-id command have been executed for BGP AD VPLS.

Precautions

After the tnl-policy command is executed, the configured tunnel policy determines which tunnel between PE devices is preferred to forward traffic and whether load balancing is used. When creating a tunnel policy, specify the sequence of selecting tunnels. If no tunnel policy is configured, the default tunnel policy is used. That is, only LSP tunnels are selected and no load balancing is performed.

Example

# Configure the tunnel policy name for the VSI.
<HUAWEI> system-view
[HUAWEI] vsi company1 static
[HUAWEI-vsi-company1] pwsignal ldp
[HUAWEI-vsi-company1-ldp] vsi-id 100
[HUAWEI-vsi-company1-ldp] quit
[HUAWEI-vsi-company1] tnl-policy tnlpolicyofcompany1

track admin-vsi

Function

The track admin-vsi command binds the service VSI to the specified mVSI.

The undo track admin-vsi command unbinds the service VSI from the mVSI.

By default, the service VSI is not bound to any mVSI.

Format

track admin-vsi vsi-name

undo track admin-vsi

Parameters

Parameter Description Value
vsi-name Specifies the name of a VSI. The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

Views

VSI view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

On HVPLS networks, you can run the track admin-vsi command to bind a service VSI to an mVSI on the UPE.

Prerequisites

The following operations have been performed before this command is used:
  1. A VSI has been created using the vsi vsi-name command.
  2. LDP has been configured as the PW signaling protocol using the pwsignal ldp command.
  3. The VSI ID has been configured using the vsi-id vsi-id command.

Precautions

  • This command is valid only in Martini VPLS.

  • The track admin-vsi command can be used only in the service VSI, not the mVSI.

  • A service VSI can be bound to only one mVSI.

Example

# Bind the service VSI v200 to the mVSI v100.

<HUAWEI> system-view
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi v100 static
[HUAWEI-vsi-v100] pwsignal ldp
[HUAWEI-vsi-v100-ldp] vsi-id 100
[HUAWEI-vsi-v100-ldp] quit
[HUAWEI-vsi-v100] admin-vsi
[HUAWEI-vsi-v100] quit
[HUAWEI] vsi v200 static
[HUAWEI-vsi-v200] pwsignal ldp
[HUAWEI-vsi-v200-ldp] vsi-id 200
[HUAWEI-vsi-v200-ldp] quit
[HUAWEI-vsi-v200] track admin-vsi v100
Related Topics

track hub-pw (VSI-LDP-PW view)

Function

The track hub-pw associates spoke PW status with hub PW status.

The undo track hub-pw deletes the association between spoke PW status and hub PW status.

By default, spoke PW status is not associated with hub PW status.

Format

track hub-pw

undo track hub-pw

Parameters

None

Views

VSI-LDP-PW view

Default Level

2. Configuration level

Usage Guidelines

Usage Scenario

Figure 10-3 shows a VPLS PW redundancy scenario. The UPE connects to SPE1 over PW1, a primary PW, and connects to SPE2 over PW2, a secondary PW. PW1 and PW2 work in backup mode. SPEs and NPEs are connected using hub PWs.

Under normal circumstances, if all hub PWs connected to SPE1 go Down but PW1 is Up, the upstream traffic still travels along the primary PW, PW1. As a result, traffic gets lost. To prevent traffic loss, you can run the track hub-pw command on SPE1 to associate spoke PW status with hub PW status. After the track hub-pw command is configured, SPE1 notifies the UPE of switching traffic to the secondary PW for transmission after detecting that all connected hub PWs go Down.

Figure 10-3   VPLS PW redundancy networking

Prerequisites

The track hub-pw command takes effect only if the following conditions are met:
  • This command can only be used for a spoke PW to track the status of hub PWs. The peer peer-address [ negotiation-vc-id vc-id ] [ tnl-policy policy-name ] upe must have been run the create a spoke PW.

  • The peer peer-address [ negotiation-vc-id vc-id ] pw pw-name command must have been run to display the PW view. This is because the track hub-pw command can only be run in the VSI-LDP-PW view.

Example

# Enable the association between spoke PW status and hub PW status.

<HUAWEI> system-view
[HUAWEI] vsi vsi1
[HUAWEI-vsi-vsi1] pwsignal ldp
[HUAWEI-vsi-vsi1-ldp] peer 2.2.2.2 upe
[HUAWEI-vsi-vsi1-ldp] peer 2.2.2.2 pw 1
[HUAWEI-vsi-vsi1-ldp-pw-1] track hub-pw

traffic-statistics enable (VSI-LDP view)

Function

The traffic-statistics enable command enables the statistics about the public traffic on all Martini VPLS PWs.

The undo traffic-statistics enable command disables the statistics about the public traffic on all Martini VPLS PWs.

By default, the statistics function is disabled.

Format

traffic-statistics enable

undo traffic-statistics enable

Parameters

None

Views

VSI-LDP view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After the Martini VPLS network is configured, you can run the traffic-statistics enable command to enable statistics about the traffic on all PWs.

Prerequisites

The VSI ID has been configured using the vsi-id vsi-id command in the VSI-LDP view.

Precautions

After this command is executed and the statistics reach the upper limit, a peer can still be configured, but the traffic statistics function does not take effect on this peer. When the configuration needs to be restored after the system is restarted, configured the peer first. If the statistics exceed the upper limit after the traffic-statistics enable is executed, the configuration cannot be restored.

The traffic-statistics enable command cannot be used together with the traffic-statistics peer enable (Martini) command in the VSI-LDP view.

Example

# Enable the statistics on all PWs in the VSI 1.

<HUAWEI> system-view 
[HUAWEI] vsi 1
[HUAWEI-vsi-1] pwsignal ldp
[HUAWEI-vsi-1-ldp] traffic-statistics enable

traffic-statistics enable (VSI-BGPAD view)

Function

The traffic-statistics enable command enables the statistics about the public traffic on all BGP AD VPLS PWs.

The undo traffic-statistics enable command disables the statistics about the public traffic on all BGP AD VPLS PWs.

By default, the statistics function is disabled.

Format

traffic-statistics enable

undo traffic-statistics enable

Parameters

None

Views

VSI-BGPAD view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After the BGP AD VPLS network is configured, you can run the traffic-statistics enable command to enable statistics about the public traffic on all BGP AD VPLS PWs in the corresponding VSI.

Prerequisites

The VPLS ID has been configured using the vpls-id vpls-id command in the VSI-BGPAD view.

Precautions

The traffic-statistics enable command cannot be used together with the traffic-statistics peer enable (VSI-BGPAD) command in the VSI-BGPAD view.

Example

# Enable global traffic statistics for the VSI named company1 in the BGP AD VPLS domain.

<HUAWEI> system-view 
[HUAWEI] vsi company1
[HUAWEI-vsi-company1] bgp-ad
[HUAWEI-vsi-company1-bgpad] vpls-id 100:1
[HUAWEI-vsi-company1-bgpad] traffic-statistics enable

traffic-statistics peer remote-site enable (Kompella)

Function

The traffic-statistics peer remote-site enable command enables the statistics about the public traffic on a specified Kompella VPLS PW.

The undo traffic-statistics peer remote-site enable command disables the statistics about the public traffic on a specified Kompella VPLS PW.

By default, the statistics of the public traffic on the Kompella VPLS PW are disabled.

Format

traffic-statistics peer peer-address remote-site site-id enable

undo traffic-statistics peer peer-address remote-site site-id enable

Parameters

Parameter Description Value
peer peer-address Specifies the peer IP address of the PW. -
remote-site site-id Specifies the remote site ID. The value is anl integer that ranges from 0 to 65534.

Views

VSI-BGP view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After the Kompella VPLS network is configured, you can run the traffic-statistics peer remote-site enable command to enable statistics about the traffic on the specified PW. You can specify peer-address to enable the statistics about the traffic on the corresponding PW.

Prerequisites

The RD of the VSI has been configured using the route-distinguisher route-distinguisher command in the VSI-BGP view.

Precautions

After you enable the statistics about the public traffic on the specified Kompella VPLS PW, run the display traffic-statistics vsi peer remote-site command to view the statistics about the public traffic on the specified PW.

Example

# Enable the statistics about the public traffic on the specified Kompella VPLS PW.

<HUAWEI> system-view
[HUAWEI] vsi newvsi auto
[HUAWEI-vsi-newvsi] pwsignal bgp
[HUAWEI-vsi-newvsi-bgp] traffic-statistics peer 10.22.33.20 remote-site 2 enable

traffic-statistics peer enable (Martini)

Function

The traffic-statistics peer enable command enables the statistics about the public traffic on a specified Martini VPLS PW.

The undo traffic-statistics peer enable command disables the statistics about the public traffic on a specified Martini VPLS PW.

By default, the statistics function is disabled.

Format

traffic-statistics peer peer-address [ negotiation-vc-id vc-id ] enable

undo traffic-statistics peer peer-address [ negotiation-vc-id vc-id ] enable

Parameters

Parameter Description Value
peer peer-address Specifies the peer IP address of the PW. -
negotiation-vc-id vc-id Specifies the ID of the PW. The value is an integer that ranges from 1 to 4294967295.

Views

VSI-LDP view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After the Martini VPLS network is configured, you can run the traffic-statistics peer enable command to enable statistics about the traffic on the specified PW. You can specify peer-address to enable the statistics about the traffic on the corresponding PW.

Prerequisites

The VSI ID has been configured using the vsi-id vsi-id command in the VSI-LDP view.

Precautions

After you enable the statistics about the public traffic on the specified Martini VPLS PW, run the display traffic-statistics vsi peer negotiation-vc-id command to view the statistics about the public traffic on the specified PW.

The traffic-statistics peer enable command cannot be used together with the traffic-statistics enable (VSI-LDP view) command in the VSI-LDP view.

Example

# Enable the statistics about the public traffic on the specified Martini VPLS PW.

<HUAWEI> system-view
[HUAWEI] vsi newvsi static
[HUAWEI-vsi-newvsi] pwsignal ldp
[HUAWEI-vsi-newvsi-ldp] vsi-id 1
[HUAWEI-vsi-newvsi-ldp] traffic-statistics peer 10.22.33.20 negotiation-vc-id 2 enable

traffic-statistics peer enable (VSI-BGPAD)

Function

The traffic-statistics peer enable command enables the statistics about the public traffic on a specified BGP AD VPLS PW.

The undo traffic-statistics peer enable command disables the statistics about the public traffic on a specified BGP AD VPLS PW.

By default, the statistics about the public traffic on a BGP AD VPLS PW are disabled.

Format

traffic-statistics peer peer-address enable

undo traffic-statistics peer peer-address enable

Parameters

Parameter Description Value
peer-address Specifies the peer IP address of the PW. The value is in dotted decimal notation.

Views

VSI-BGPAD view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After the BGP AD VPLS network is configured, you can run the traffic-statistics peer enable command to enable statistics about the traffic on the specified PW. You can specify peer-address to enable the statistics about the traffic on the corresponding PW.

Prerequisites

The VPLS ID has been configured using the vpls-id vpls-id command in the VSI-BGPAD view.

Precautions

The traffic-statistics peer enable command cannot be used together with the traffic-statistics enable (VSI-BGPAD view) command in the VSI-BGPAD view.

After you enable the statistics about the public traffic on the specified BGP AD VPLS PW, run the display traffic-statistics vsi peer ldp129 command to view the statistics about the public traffic on the specified PW.

Example

# Configure the BGP AD VPLS VSI named company1, and enable the statistics about the public traffic on the PW with the peer at 1.1.1.1.

<HUAWEI> system-view 
[HUAWEI] vsi company1
[HUAWEI-vsi-company1] bgp-ad
[HUAWEI-vsi-company1-bgpad] vpls-id 100:1
[HUAWEI-vsi-company1-bgpad] traffic-statistics peer 1.1.1.1 enable

trace vpls mac vsi

Function

The trace vpls mac vsi command checks PE and P devices on the VPLS network which packets pass through from the source to the destination. This command is used to check the connectivity of Layer 2 forwarding links and locate faults on the network.

Format

trace vpls mac mac-address vsi vsi-name [ vlan vlan-id ] [ -t timeout | -f first-ttl | -m max-ttl | -exp exp | -r replymode ] *

Parameters

Parameter Description Value
mac mac-address Specifies the unicast destination MAC address of the VPLS MAC trace, expressed in the format of H-H-H. An H is a hexadecimal number of 1 to 4 bits, such as 00e0 and fc01. If you enter less than four digits, 0s are padded before the input digits. For example, if e0 is entered, 00e0 is displayed. The value cannot be a broadcast or multicast MAC address.
vsi