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

S12700 V200R013C00 Command Reference

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 loop-detect

Function

The display loop-detect command displays blocking information about L2VPN loop detection.

Format

display loop-detect

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

After L2VPN loop detection is enabled on an interface by running the loop-detect enable command, you can run the display loop-detect command to check blocking information about L2VPN loop detection. The information helps determine whether loops occur on an L2VPN network, facilitating fault location.

Example

# Display blocking information about L2VPN loop detection on interfaces.

<HUAWEI> display loop-detect
----------------------------------------------------------------
Interface                     RecoverTime  Action      Status                      
-----------------------------------------------------------------
GigabitEthernet1/0/0.1       20           block       NORMAL                      
GigabitEthernet1/0/2.1       20           block       NORMAL                      
-----------------------------------------------------------------
Table 10-78  Description of the display loop-detect command output

Item

Description

Interface

Interface with L2VPN loop detection enabled. To enable L2VPN loop detection on an interface, run the loop-detect enable command.

RecoverTime

Period for restoring an interface to normal state. To specify this period, run the loop-detect recovery-time command.

Action

Action after an L2VPN loop is detected:
  • BLOCK: Block this interface.

Status

Status of an interface with L2VPN loop detection enabled:
  • NORMAL: No loop is detected.
  • BLOCK: A loop is detected, and the interface is blocked.

display loop-detect interface

Function

The display loop-detect interface command displays blocking information about L2VPN loop detection on a specified interface.

Format

display loop-detect interface interface-type interface-number

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

After L2VPN loop detection is enabled on an interface by running the loop-detect enable command, you can run the display loop-detect interface command to check blocking information about L2VPN loop detection on a specified interface. The information helps determine whether loops occur on an L2VPN network, facilitating fault location.

Example

# Display blocking information about L2VPN loop detection on GigabitEthernet1/0/0.1.

<HUAWEI> display loop-detect interface GigabitEthernet 1/0/0.1
Interface GigabitEthernet1/0/0.1 running information:
  IfIndex           : 0x5e
  PortType          : dot1q-termination
  VsiName           : a2
  AC State          : down
  Status            : normal
  LoopType          : -
  Recover-Time      : 20
  Recover-Tick      : 19
  Detect PE-VLAN ID : -
  Detect CE-VLAN ID : 106
  Looped CE-VLAN ID : -
Table 10-79  Description of the display loop-detect interface command output

Item

Description

IfIndex

Interface index.

PortType

Interface type.

VsiName

Name of the VSI that is bound to the interface.

AC State

AC state.

Status

Status of an interface with L2VPN loop detection enabled:
  • normal: No loop is detected.
  • block: A loop is detected, and the interface is blocked.

LoopType

Type of the detected L2VPN loop:
  • ac-loopback: A self-loop is detected on an AC interface.
  • ac-loop: A loop is detected between two AC interfaces.
  • pw-loop: A loop is detected on a PW.
  • -: No loop is detected.

Recover-Time

Period for restoring an interface to normal state. To specify this period, run the loop-detect recovery-time command.

Recover-Tick

Timer count for interface recovery. The value is in the range of 0 to the value specified by Recover-Time.

Detect PE-VLAN ID

  • Outer VLAN ID in loop detection packets when the interface is a QinQ termination sub-interface.
  • This field is displayed as - when the interface is a Dot1q termination sub-interface.
  • This field is displayed as - if no VLAN range is configured.

Detect CE-VLAN ID

  • Inner VLAN ID in loop detection packets when the interface is a QinQ termination sub-interface.
  • VLAN ID in loop detection packets when the interface is a Dot1q termination sub-interface.
  • This field is displayed as - if no VLAN range is configured.

Looped CE-VLAN ID

  • Inner VLAN ID in loop detection packets when the interface is a QinQ termination sub-interface and a loop is detected.
  • VLAN ID in loop detection packets when the interface is a Dot1q termination sub-interface and a loop is detected.
  • This field is displayed as - if no loop is detected.

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-80  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-81  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-82  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-83  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-84  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-85  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-86  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-87  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-88  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-89  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-90  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-91  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-92  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-93  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-94  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-95  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-96  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-97  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-98  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-99  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

If the 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 Value

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 values on one end to be the same as that on the other end.

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-100  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 values 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-101  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 values 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-102  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-103  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-104  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-105  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-106  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-107  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-108  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-109  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-110  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-111  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-112.

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-112.

verbose

Display detailed information about the remote VSIs.

-

Table 10-112  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-113  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-114  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-115  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-116  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-117  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-118  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

flow-label (VSI-LDP view)

Function

The flow-label command enables flow label-based load balancing for an VSI.

The undo flow-label command disables flow label-based load balancing of an VSI.

By default, flow label-based load balancing for an VSI is disabled.

NOTE:

Only the X series cards support this command.

Format

flow-label { both | send | receive } [ static ]

undo flow-label [ { both | send | receive } [ static ] ]

Parameters

Parameter Description Value
both

Enables flow label-based load balancing for outgoing traffic and incoming traffic.

-

send

Enables flow label-based load balancing for outgoing traffic.

-

receive

Enables flow label-based load balancing for incoming traffic.

-

static

Statically configures flow label-based load balancing. For dynamic PWs, if static is not configured, the flow label-based load balancing capability of the local end is negotiated by the remote end. For static PWs, the flow label-based load balancing capability is statically configured, irrespective of whether static is configured.

-

Views

VSI-LDP view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When multiple links exist between P devices on a PW, to improve L2VPN traffic forwarding efficiency and ease the forwarding burden on P devices, run the flow-label command to configure flow label-based load balancing. After flow label-based load balancing is enabled on a PE, the PE adds different flow labels for different L2VPN data flows to distinguish the data flows. After a P device receives a data packet carrying a flow label, it selects a forwarding path based on the flow label in the data packet. This processing implements load balancing.

To enable flow label-based load balancing for all PWs in an VSI, run the flow-label command in the VSI-LDP view.

Prerequisites

MPLS L2VPN has been enabled.

Precautions

Flow label-based load balancing can be enabled only when any of the following conditions is true:
  • The receive parameter is configured on the local PE, and the send parameter is configured on the remote PE.
  • The send parameter is configured on the local PE, and the receive parameter is configured on the remote PE.
  • Both the send and receive parameters are configured on the local and remote PEs.

If the static flow label-based load balancing configuration does not match on both ends, the device discards packets carrying a flow label, causing packet loss.

Example

# Enable flow label-based load balancing for Martini VPLS.

<HUAWEI> system-view
[HUAWEI] vsi 1 static
[HUAWEI-vsi-1] pwsignal ldp
[HUAWEI-vsi-1-ldp] flow-label both

flow-label (VSI-LDP-PW view)

Function

The flow-label command enables flow label-based load balancing for an L2VPN PW.

The undo flow-label command disables flow label-based load balancing of an L2VPN PW.

The flow-label disable command disables flow label-based load balancing of an L2VPN PW.

The undo flow-label disable command restores flow label-based load balancing of an L2VPN PW.

By default, if flow label-based load balancing is enabled for a VSI, the PWs in this VSI also have flow label-based load balancing enabled; if flow label-based load balancing is disabled for a VSI, the PWs in this VSI also have flow label-based load balancing disabled.

NOTE:

Only the X series cards support this command.

Format

flow-label { both | send | receive } [ static ]

undo flow-label [ { both | send | receive } [ static ] ]

flow-label disable

undo flow-label disable

Parameters

Parameter Description Value
both

Enables flow label-based load balancing for outgoing traffic and incoming traffic.

-

send

Enables flow label-based load balancing for outgoing traffic.

-

receive

Enables flow label-based load balancing for incoming traffic.

-

static

Statically configures flow label-based load balancing. For dynamic PWs, if static is not configured, the flow label-based load balancing capability of the local end is negotiated by the remote end. For static PWs, the flow label-based load balancing capability is statically configured, irrespective of whether static is configured.

-

Views

VSI-LDP-PW view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When multiple links exist between P devices on a PW, to improve L2VPN traffic forwarding efficiency and ease the forwarding burden on P devices, run the flow-label command to configure flow label-based load balancing. After flow label-based load balancing is enabled on a PE, the PE adds different flow labels for different L2VPN data flows to distinguish the data flows. After a P device receives a data packet carrying a flow label, it selects a forwarding path based on the flow label in the data packet. This processing implements load balancing.

To enable flow label-based load balancing for VLL PWs or PWE3 PWs, run the flow-label command in the PW template view, and specify the configured PW template when creating VLL PWs or PWE3 PWs.

  • If flow label-based load balancing is configured for both a VSI and a PW in this VSI, the configuration of the PW takes precedence.
  • If the undo flow-label command is run in the VSI-LDP-PW view, only the flow label-based load balancing capability that has been configured using the flow-label command in the VSI-LDP-PW view is disabled.
  • If the flow-label command has been run for a VSI but not for a PW, you can run the flow-label disable command in the VSI-LDP-PW view to disable flow label-based load balancing of the PW. If the PW needs the flow label-based load balancing capability again, you can run the undo flow-label disable command to restore flow label-based load balancing.

Prerequisites

MPLS L2VPN has been enabled.

Precautions

Flow label-based load balancing can be enabled only when any of the following conditions is true:
  • The receive parameter is configured on the local PE, and the send parameter is configured on the remote PE.
  • The send parameter is configured on the local PE, and the receive parameter is configured on the remote PE.
  • Both the send and receive parameters are configured on the local and remote PEs.

If the static flow label-based load balancing configuration does not match on both ends, the device discards packets carrying a flow label, causing packet loss.

Example

# Enable flow label-based load balancing for a PW.

<HUAWEI> system-view
[HUAWEI] vsi 1 static
[HUAWEI-vsi-1] pwsignal ldp
[HUAWEI-vsi-1-ldp] pw p1
[HUAWEI-vsi-1-ldp-pw-p1] flow-label both

# Disable flow label-based load balancing of a PW.

<HUAWEI> system-view
[HUAWEI] vsi 1 static
[HUAWEI-vsi-1] pwsignal ldp
[HUAWEI-vsi-1-ldp] flow-label send
[HUAWEI-vsi-1-ldp] peer 1.1.1.1
[HUAWEI-vsi-1-ldp] peer 1.1.1.1 pw pw1
[HUAWEI-vsi-1-ldp-pw-pw1] flow-label disable

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

hub-mode enable

Function

The hub-mode enable command sets the VSI attribute of an AC interface to hub.

The undo hub-mode enable command sets the VSI attribute of an AC interface to spoke.

By default, the VSI attribute of an AC interface is hub.

NOTE:

Only the X series cards support this command.

Format

hub-mode enable

undo hub-mode enable

Parameters

None

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After the isolate spoken command is run in the VSI view, forwarding isolation is enabled on AC interfaces in a VSI, and all AC interfaces in this VSI have their VSI attribute set to spoke. If one AC interface wants to communicate with other AC interfaces in the same VSI, run the hub-mode enable command on this AC interface to set its VSI attribute to hub.

Prerequisites

Interfaces have been bound to a VSI instance by running the l2 binding command.

Example

# Set the VSI attribute of VLANIF100 to hub.

<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] isolate spoken
[HUAWEI-vsi-v100] quit
[HUAWEI] interface vlanif 100
[HUAWEI-Vlanif100] l2 binding vsi v100
[HUAWEI-Vlanif100] hub-mode enable

# Set the VSI attribute of GE1/0/0 to hub.

<HUAWEI> system-view
[HUAWEI] mpls l2vpn 
[HUAWEI-l2vpn] quit
[HUAWEI] vsi v101 auto
[HUAWEI-vsi-v101] pwsignal bgp
[HUAWEI-vsi-v101-bgp] route-distinguisher 100:1
[HUAWEI-vsi-v101-bgp] quit
[HUAWEI-vsi-v101] isolate spoken
[HUAWEI] interface gigabitethernet 1/0/0
[HUAWEI-GigabitEthernet1/0/0] undo portswitch
[HUAWEI-GigabitEthernet1/0/0] l2 binding vsi v101
[HUAWEI-GigabitEthernet1/0/0] hub-mode enable

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.

As defined by the latest RFC, 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 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

isolate spoken

Function

The isolate spoken command enables forwarding isolation between AC interfaces in a VSI.

The undo isolate spoken command disables forwarding isolation between AC interfaces in a VSI.

By default, forwarding isolation between AC interfaces in a VSI is disabled.

NOTE:

Only the X series cards support this command.

Format

isolate spoken

undo isolate spoken

Parameters

None

Views

VSI view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If multiple users are bound to the same VSI, you can use the isolate spoken command to enable forwarding isolation between AC interfaces. After this command is run, the VSI attribute of all AC interfaces in the VSI is spoke, preventing the users from communicating with each other.

Prerequisites

Example

# Enable forwarding isolation between AC interfaces in a VSI in Martini VPLS.

<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] isolate spoken

# Enable forwarding isolation between AC interfaces in a VSI in Kompella VPLS.

<HUAWEI> system-view
[HUAWEI] mpls l2vpn 
[HUAWEI-l2vpn] quit
[HUAWEI] vsi v101 auto
[HUAWEI-vsi-v101] pwsignal bgp
[HUAWEI-vsi-v101-bgp] route-distinguisher 100:1
[HUAWEI-vsi-v101-bgp] quit
[HUAWEI-vsi-v101] isolate spoken

# Enable forwarding isolation between AC interfaces in a VSI in BGP AD VPLS.

<HUAWEI> system-view
[HUAWEI] mpls l2vpn 
[HUAWEI-l2vpn] quit
[HUAWEI] vsi v102
[HUAWEI-vsi-v102] bgp-ad
[HUAWEI-vsi-v102-bgpad] vpls-id 100:2
[HUAWEI-vsi-v102-bgpad] quit
[HUAWEI-vsi-v102] isolate spoken

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 with 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, 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

loop-detect enable

Function

The loop-detect enable command enables L2VPN loop detection on an interface.

The undo loop-detect enable command disables L2VPN loop detection on the interface.

By default, L2VPN loop detection is disabled on the interface.

Format

loop-detect enable

undo loop-detect enable

Parameters

None

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Redundant links are used on an Ethernet switching network to provide link backup and enhance network reliability. The use of redundant links, however, may produce loops, causing broadcast storms and unstable MAC address entries. This degrades communication quality or even interrupts communication. On a traditional Layer 2 network, the Spanning Tree Protocol (STP) is usually used to prevent loops.

VPLS is an L2VPN technology providing LAN-like services over the MPLS network. It allows sites in diverse locations to connect the MPLS network and communicate with each other, which frees Ethernet LAN deployment from restrictions imposed by physical locations. As a Layer 2 Ethernet technology, VPLS has the following disadvantages:
  • If the customer network leases multiple lines, loops may occur due to incorrect customer configuration or in other unexpected cases, leading to broadcast storms.
  • If the customer network traverses a third-party network, loops may occur due to incorrect third-party network configuration or in other unexpected cases, leading to broadcast storms.

STP needs to be deployed on CEs, having high dependency on the customer network. The complex and changing features of the customer network increase the maintenance difficulty of the carrier.

To prevent loops on an L2VPN network, you can run the loop-detect enable command on an AC interface of a PE to configure L2VPN loop detection on the AC interface. After this function is enabled, when detecting a loop on the L2VPN network, the PE will automatically block an interface on the loop, report an alarm, and eliminate the loop.

Prerequisites

The interface has been bound to a VSI instance using the l2 binding command on the interface.

NOTE:
  • The interface must be an AC interface bound to a specified VSI. For details about the binding between an AC interface and a VSI, see Binding VSIs to AC Interfaces.
  • VSI encapsulation must use the VLAN encapsulation format that meets the 802.1Q standard. For details about how to configure the VSI encapsulation mode, see encapsulation (VSI view).

Example

# Enable L2VPN loop detection on GigabitEthernet1/0/0.

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

loop-detect detection pe-vid ce-vid

Function

The loop-detect detection pe-vid ce-vid command specifies a VLAN range to which a QinQ termination sub-interface sends L2VPN loop detection packets.

The undo loop-detect detection pe-vid ce-vid command deletes the VLAN range to which the QinQ termination sub-interface sends L2VPN loop detection packets.

By default, the QinQ termination sub-interface does not send L2VPN loop detection packets.

Format

loop-detect detection pe-vid pe-vid ce-vid low-vid [ to high-vid ]

undo loop-detect detection pe-vid pe-vid ce-vid low-vid [ to high-vid ]

Parameters

Parameter Description Value
pe-vid pe-vid

Specifies the outer VLAN ID in L2VPN loop detection packets sent by the QinQ termination sub-interface.

The value is an integer in the range of 2 to 4094.

ce-vid low-vid

Specifies the start inner VLAN ID in L2VPN loop detection packets sent by the QinQ termination sub-interface.

The value is an integer in the range of 1 to 4094.

high-vid

Specifies the end inner VLAN ID in L2VPN loop detection packets sent by the QinQ termination sub-interface.

The value is an integer in the range of 1 to 4094. The value of high-vid must be greater than that of low-vid.

Views

GE sub-interface view, XGE sub-interface view, 40GE sub-interface view, 100GE sub-interface view, and Eth-Trunk sub-interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After you run the loop-detect enable command to enable L2VPN loop detection on an interface, the QinQ termination sub-interface does not send L2VPN loop detection packets by default. You need to run the loop-detect detection pe-vid ce-vid command to configure the VLAN range to which the QinQ termination sub-interface sends L2VPN loop detection packets. After the VLAN range is configured, the device sends L2VPN loop detection packets to the specified VLANs. If a loop is detected in a VLAN, the sub-interface will stop sending L2VPN loop detection packets to all these VLANs.

Prerequisites

L2VPN loop detection has been enabled on the interface using the loop-detect enable command.

Example

# Configure the QinQ termination sub-interface GigabitEthernet1/0/0.1 to send L2VPN loop detection packets to VLANs 2 to 10.

<HUAWEI> system-view
[HUAWEI] vcmp role silent
[HUAWEI] interface gigabitethernet 1/0/0
[HUAWEI-GigabitEthernet1/0/0] port link-type hybrid
[HUAWEI-GigabitEthernet1/0/0] quit
[HUAWEI] interface gigabitethernet 1/0/0.1
[HUAWEI-GigabitEthernet1/0/0.1] qinq termination pe-vid 300 ce-vid 2 to 20
[HUAWEI-GigabitEthernet1/0/0.1] l2 binding vsi company2
[HUAWEI-GigabitEthernet1/0/0.1] loop-detect enable
[HUAWEI-GigabitEthernet1/0/0.1] loop-detect detection pe-vid 300 ce-vid 2 to 10
Related Topics

loop-detect detection vid

Function

The loop-detect detection vid command specifies a VLAN range to which a Dot1q termination sub-interface sends L2VPN loop detection packets.

The undo loop-detect detection vid command deletes the VLAN range to which the Dot1q termination sub-interface sends L2VPN loop detection packets.

By default, the Dot1q termination sub-interface does not send L2VPN loop detection packets.

Format

loop-detect detection vid low-vid [ to high-vid ]

undo loop-detect detection vid low-vid [ to high-vid ]

Parameters

Parameter Description Value
low-vid

Specifies the start VLAN ID in L2VPN loop detection packets sent by the Dot1q termination sub-interface.

The value is an integer in the range of 2 to 4094.

high-vid

Specifies the end VLAN ID in L2VPN loop detection packets sent by the Dot1q termination sub-interface.

The value is an integer in the range of 2 to 4094. The value of high-vid must be greater than that of low-vid.

Views

GE sub-interface view, XGE sub-interface view, 40GE sub-interface view, 100GE sub-interface view, and Eth-Trunk sub-interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After L2VPN loop detection is enabled on an interface using the loop-detect enable command, the Dot1q termination sub-interface does not send L2VPN loop detection packets by default. You need to run the loop-detect detection vid command to configure the VLAN range to which the Dot1q termination sub-interface sends L2VPN loop detection packets. After the VLAN range is configured, the device sends L2VPN loop detection packets to the specified VLANs. If a loop is detected in a VLAN, the sub-interface will stop sending L2VPN loop detection packets to all these VLANs.

Prerequisites

L2VPN loop detection has been enabled on the interface using the loop-detect enable command.

Example

# Configure the Dot1q termination sub-interface GigabitEthernet1/0/0.1 to send L2VPN loop detection packets to VLANs 3 to 10.

<HUAWEI> system-view
[HUAWEI] vcmp role silent
[HUAWEI] interface gigabitethernet 1/0/0
[HUAWEI-GigabitEthernet1/0/0] port link-type hybrid
[HUAWEI-GigabitEthernet1/0/0] quit
[HUAWEI] interface gigabitethernet 1/0/0.1
[HUAWEI-GigabitEthernet1/0/0.1] dot1q termination vid 2 to 10
[HUAWEI-GigabitEthernet1/0/0.1] l2 binding vsi company2
[HUAWEI-GigabitEthernet1/0/0.1] loop-detect enable
[HUAWEI-GigabitEthernet1/0/0.1] loop-detect detection vid 3 to 10
Related Topics

loop-detect recovery-time

Function

The loop-detect recovery-time command specifies a period for restoring an interface to normal state.

The undo loop-detect recovery-time command restores the default period for restoring an interface to normal state.

By default, an AC interface restores a blocked interface every 15 seconds.

Format

loop-detect recovery-time recovery-time

undo loop-detect recovery-time

Parameters

Parameter Description Value
recovery-time recovery-time

Specifies a period for an AC interface to restore a blocked interface.

The value is an integer in the range of 15 to 255, in seconds. By default, the value is 15 seconds.

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After an AC interface enabled with L2VPN loop detection detects a loop, a period can be specified for the AC interface to restore a blocked interface. That is, if a blocked interface does not receive any L2VPN loop detection packet within the period specified by recovery-time, it will be restored to normal state.

If a device is on multiple loops, interfaces on the device may alternate between blocked and normal states during the initial detection stage. To prevent interface status flapping, you are advised to set recovery-time to a larger value.

Prerequisites

L2VPN loop detection has been enabled on the interface using the loop-detect enable command.

Example

# Configure the Dot1q termination sub-interface GigabitEthernet1/0/0.1 to restore a blocked interface every 20 seconds.

<HUAWEI> system-view
[HUAWEI] vcmp role silent
[HUAWEI] interface gigabitethernet 1/0/0
[HUAWEI-GigabitEthernet1/0/0] port link-type hybrid
[HUAWEI-GigabitEthernet1/0/0] quit
[HUAWEI] interface gigabitethernet 1/0/0.1
[HUAWEI-GigabitEthernet1/0/0.1] dot1q termination vid 1 to 10
[HUAWEI-GigabitEthernet1/0/0.1] l2 binding vsi company2
[HUAWEI-GigabitEthernet1/0/0.1] loop-detect enable
[HUAWEI-GigabitEthernet1/0/0.1] loop-detect recovery-time 20
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.

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.

In a scenario where an S12700 communicates with another device: If the remote device runs a version earlier than V200R002C00, the remote device functioning as a PE device removes all MAC addresse associated with a VSI when it receives MAC Withdraw messages with the TLV type of 0x404. You are not advised to run this command on the S12700 because the two switches support different implementation methods.

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 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, 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 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, or Eth-Trunk interfaces of the S12700 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, 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 40GE interface, 100GE interface, 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, 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<