CloudEngine S3700, S5700 and S6700 V600R024C00 Command Reference

This document describes all the configuration commands of the device, including the command function, format, parameters, views, default level, usage guidelines, examples, and related commands.

This document describes all the configuration commands of the device, including the command function, format, parameters, views, default level, usage guidelines, examples, and related commands.

VPLS Configuration Commands

VPLS Configuration Commands

admin-vsi

Function

The admin-vsi command configures the current service Virtual Switching Instance (VSI) as an mVSI.

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

By default, no mVSI is configured.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

admin-vsi

undo admin-vsi

Parameters

None

Views

VSI-AUTO view, VSI-DEFAULT view, VSI-STATIC view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In a virtual private LAN service (VPLS) accessing L3VPN scenario, the VRRP instance is adopted to determine whether an aggregation site gateway (ASG) is the master or backup and control the master/backup switchover. The mVSI created on the ASG is dedicated to transmitting master/backup detection packets between ASGs.

Precautions

You cannot run the shutdown command on the mVSI.

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.

    When the mVSI receives a gratuitous ARP packet, it checks whether the link over which the packet is transmitted changes. If the link over which the packet is transmitted changes, the mVSI clears all the MAC addresses of service VSIs associated with the mVSI. If the link over which the packet is transmitted remains unchanged, the mVSI does not clear the MAC addresses of service VSIs associated with the mVSI.

Example

# Configure V100 as an mVSI.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[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

bgp-ad

Function

The bgp-ad command creates or displays a BGP AD view.

The undo bgp-ad command deletes the created BGP AD view and all configurations in the BGP AD view.

By default, no BGP AD view is created.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

bgp-ad

undo bgp-ad

Parameters

None

Views

VSI-AUTO view, VSI-DEFAULT view, VSI-STATIC view

Default Level

2: Configuration level

Usage Guidelines

The bgp-ad command is run in the VSI view to display the BGP AD view. In the BGP AD view, parameters such as the VPLS ID and RT are set for the establishment of a BGP AD VSI.

Example

# Display the BGP AD view of a specified VSI.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi company3
[HUAWEI-vsi-company3] bgp-ad

description (VSI view)

Function

The description command configures the description of a VSI.

The undo description command deletes the description of a VSI.

By default, no description is configured for a VSI.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

description description

undo description

Parameters

Parameter Description Value
description

Describes a VSI.

It is string of 1 to 128 case-sensitive characters, spaces not supported. The string cannot start at or end with a blink space.

Views

VSI-AUTO view, VSI-DEFAULT view, VSI-STATIC view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To configure the description of a VSI, such as the AC interface information or other information, run the description command. The description of a VSI enables the VSI to be easily identified.

Configuration Impact

If you run this command more than once, the latest configuration overrides the previous one.

Example

# Configure the description of the current VSI.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi company1
[HUAWEI-vsi-company1] description vsi-company1

display admin-vsi binding

Function

The display admin-vsi binding command displays the binding between the mVSI and service VSI.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

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

All views

Default Level

1: Monitoring level

Usage Guidelines

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

Example

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

# Display the binding between the specified mVSI (V100) and service VSIs.
<HUAWEI> display admin-vsi binding admin-vsi v100
Admin-vsi                 Service-vsi
V100                      V2
V100                      V3
Table 2-1012 Description of the display admin-vsi binding command output
Item Description
Admin-vsi

Name of the mVSI.

Service-vsi

Name of the service VSI.

display l2vpn ccc-interface vc-type

Function

The display l2vpn ccc-interface vc-type command displays information about the interfaces used to set up an L2VPN connection.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

display l2vpn ccc-interface vc-type { all | ldp-vc | ccc | vpls-vc | static-vc | bgp-vc } [ up | down ]

Parameters

Parameter Description Value
all

Displays information about all interfaces used to set up L2VPN connections.

-

ldp-vc

Displays information about all interfaces used to set up LDP L2VPN connections.

-

ccc

Displays information about all interfaces used to set up CCC connections.

-

vpls-vc

Displays information about all interfaces used to set up VPLS connections.

-

static-vc

Displays information about all interfaces used to set up static L2VPN connections.

-

bgp-vc

Displays information about all interfaces used to establish BGP L2VPN connections.

-

up

Displays information about the interfaces whose L2VPN connections are in the Up state.

-

down

Displays information about the interfaces whose L2VPN connections are in the Down state.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

To check information about the AC interfaces used to set up L2VPN connections, including the total number of AC interfaces, interface status, encapsulation types, and L2VPN connection types, run the display l2vpn ccc-interface vc-type command. The command output facilitates L2VPN fault locating.

Example

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

# Display information about all interfaces used to set up L2VPN connections.
<HUAWEI> display l2vpn ccc-interface vc-type all
Total ccc-interface of CCC: 2
up (2), down (0)
Interface                            Encap Type               State     VC Type
10GE1/0/1                            ethernet                 up        ccc
10GE1/0/1                            ethernet                 up        ccc
Table 2-1013 Description of the display l2vpn ccc-interface vc-type command output
Item Description
Total ccc-interface of CCC

Total number of L2VPN connections. The value is 2 and both L2VPN connections are Up.

up

Displays information about the interfaces whose L2VPN connections are in the Up state.

down

Displays information about the interfaces whose L2VPN connections are in the Down state.

Interface

Interface on the local device that is used for setting up an L2VPN connection.

Encap Type

Encapsulation type of the L2VPN connection.

State

Current status of the L2VPN connection:

  • up.
  • down.
VC Type

Type of the L2VPN connection:

  • ccc: indicates the L2VPN connection in CCC mode.
  • ldp-vc: indicates the L2VPN connection in LDP mode.
  • static-vc: indicates a static L2VPN connection.
  • vpls-vc: indicates the VPLS connection. In VPLS, the type of an L2VPN connection can only be vpls-vc.
  • bgp-vc: indicates the BGP VPWS connection.

display l2vpn vsi-list tunnel-policy

Function

The display l2vpn vsi-list tunnel-policy command displays the VSIs that use the specified tunnel policy to establish PWs.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

display l2vpn vsi-list tunnel-policy policy-name

Parameters

Parameter Description Value
tunnel-policy policy-name

Specifies the name of a PW tunnel policy.

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

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

To view the VSIs that use the specified tunnel policy to establish PWs, run the display l2vpn vsi-list tunnel-policy command.

Example

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

# Display the VSIs that use the specified tunnel policy to establish PWs.
<HUAWEI> display l2vpn vsi-list tunnel-policy p1
Using Tunnel-Policy p1 VSI Instance statistics:
----------------------------------------------------------------------
vsi v1
vsi v2
vsi v3
Table 2-1014 Description of the display l2vpn vsi-list tunnel-policy command output
Item Description
tunnel-policy

Name of a tunnel policy.

Using Tunnel-Policy p1 VSI Instance statistics

Names of all the VSIs that use the specified tunnel policy to establish PWs.

vsi

Name of the VSI.

display mpls label-stack vpls vsi

Function

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

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

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

Parameters

Parameter Description Value
vsi-name

Specifies the name of a VSI.

The VSI name specified here must be consistent with that specified in the vsi command.

The value is a string of 1 to 31 case-sensitive characters without spaces. The character string can contain spaces if it is enclosed with double quotation marks (").

peer peer-id

Specifies the peer IP address.

The value is in dotted decimal notation.

vc-id vc-id

Specifies the VC ID, which uniquely identifies a VC.

The value is an integer ranging from 1 to 4294967295.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

To check label stack information after configuring LDP VPLS, run the display mpls label-stack vpls vsi command. Label stack information helps you view VPLS PW forwarding information.

Example

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

# In LDP VPLS, check information about the label stack with VSI name as vsi1, peer IP address as 3.3.3.3, and VC ID as 2.
<HUAWEI> display mpls label-stack vpls vsi vsi1 peer 3.3.3.3 vc-id 2
Label-stack  : 1
Level        : 1
Type         : VPLS
Label        : 1024
Level        : 2
Type         : LDP
Label        : 1025
OutInterface : GigabitEthernet1/0/1
Table 2-1015 Description of the display mpls label-stack vpls vsi command output
Item Description
Label-stack

Number of VPLS label stacks.

Level

Number of labels:

  • 1: VPN label.
  • 2: BGP label.
  • 3: public network label.

BGP labels are supported only in seamless MPLS networking.

Type

PW type or public tunnel type:

  • VPLS: VPLS PW.
  • LDP: LDP tunnel.
  • TE: TE tunnel.
  • BGP: BGP LSP tunnel.
  • SRBE LSP: SRBE LSP tunnel.
Label

Outgoing label of a VPLS PW or public tunnel.

OutInterface

Outbound interface of a public tunnel.

display traffic-statistics vsi

Function

The display traffic-statistics vsi command displays the traffic statistics of the specified VSI or VSI peer.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

display traffic-statistics vsi vsi-name [ peer peer-address [ negotiation-vc-id vc-id | ldp129 | remote-site remote-site-id ] ]

Parameters

Parameter Description Value
vsi-name

Specifies a VSI name.

The value is a string of 1 to 31.

peer peer-address

Specifies a peer IP address.

The value is in dotted decimal notation.

negotiation-vc-id vc-id

Specifies the ID of a VC. It is used when both ends with different VSI IDs need to communicate with each other.

vc-id must be different from the IDs of other local VSIs or the VSI ID specified using negotiate-vc-id. The value is a decimal integer ranging from 1 to 4294967295.

ldp129

Specifies PWs with the FEC 129 signaling type.

-

remote-site remote-site-id

Specifies a remote site ID.

The value is an integer ranging from 0 to 65534.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

To view traffic statistics about a specified VSI or peer, run the display traffic-statistics peer command.

  • If peer peer-address is specified, traffic statistics about a specified peer are displayed.
  • If peer peer-address is not specified, traffic statistics about all peers in a specified VSI are displayed.
  • To view statistics about the public traffic on a BGP AD VPLS PW, specify both peer peer-address and ldp129.

Example

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

# Display statistics about traffic in a VSI named vsi3.
<HUAWEI> display traffic-statistics vsi vsi3
vsi-name: vsi3
Peer-address: 2.2.2.9
Statistics last cleared: never
Last 300 seconds input rate : 27428324 bytes/sec, 24754 packets/sec                                                                 
Last 300 seconds output rate: 13124085 bytes/sec, 126193 packets/sec                                                                
Input: 148886496 bytes, 1127928 packets                                                                                          
Output: 17021554160 bytes, 163668790 packets
Table 2-1016 Description of the display traffic-statistics vsi command output
Item Description
Statistics last cleared

Last time when traffic statistics were cleared.

never indicates that the traffic statistics were never cleared.

Last 300 seconds input rate

Packet input rate in the last 300 seconds.

Last 300 seconds output rate

Packet output rate in the last 300 seconds.

packets

Total number of packets.

vsi-name

VSI name for which traffic statistics are displayed.

Peer-address

Peer IP address of a PW.

bytes

Total number of bytes.

Input

Statistics about packets received by the VSI.

Output

Statistics about packets sent by the VSI.

display vpls connection

Function

The display vpls connection command displays VPLS connection information.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

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

Parameters

Parameter Description Value
ldp

Displays information about VPLS connections established using the LDP signaling.

-

bgp-ad

Displays information about VPLS connections established using the BGP AD signaling.

-

bgp

Displays information about VPLS connections established using BGP signaling.

-

vsi vsi-name

Displays VPLS connection information about a specified VSI.

The value is a string of 1 to 31 case-sensitive characters without spaces. The character string can contain spaces if it is enclosed with double quotation marks (").

up

Displays information about VPLS connections in the Up state.

-

down

Displays information about VPLS connections in the Down state.

-

verbose

Displays detailed information about VPLS connections.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

To check VPLS connection information after configuring a VPLS service, run the display vpls connection command. You can check desired VPLS connection information by specifying specific keywords and parameters in the command.

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

Example

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

# Display information about remote VPLS connections in BGP AD mode.
<HUAWEI> display vpls connection bgp-ad
2 total bgpad connections ,
connections: 2 up, 0 down

VSI Name: ad1                              Signaling: bgpad
VPLS ID               EncapType      PeerAddr        InLabel   OutLabel  VCState
1.1:1                 vlan           2.2.2.9         1038      1042      up
VSI Name: ad2                              Signaling: ldp bgpad
VPLS ID               EncapType      PeerAddr        InLabel   OutLabel  VCState
2.2:2                 vlan           2.2.2.9         1039      1041      up
# Display detailed VPLS connection information about all VSIs.
<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  : 18
    Remote VC Label : 18
    Tunnel Policy   : --
    Tunnel ID       : 0x0000000001004c4b44 
VSI Name: b1                               Signaling: bgp
  **Remote Site ID     : 1
    VC State           : up
    RD                 : 2:2
    Encapsulation      : bgp vpls
    MTU                : 1500
    Peer Ip Address    : 1.1.1.1
    PW Type            : label
    Local VC Label     : 294939
    Remote VC Label    : 294930
    Tunnel Policy      : --
    Tunnel ID          : 0x0000000001004c4b42 
    Remote Label Block : 294928/10/0
    Export vpn target  : 1:1
# Display VPLS connection information about all VSIs.
<HUAWEI> display vpls connection
2 total connections,
connections: 1 up, 0 down, 1 ldp, 2 bgp, 0 bgpad

VSI Name: a2                              Signaling: ldp
VsiID      EncapType               PeerAddr         InLabel   OutLabel  VCState
2          vlan                    3.3.3.9          18        18        up  
VSI Name: b1                              Signaling: bgp
SiteID    RD                       PeerAddr         InLabel   OutLabel  VCState
1         2:2                      1.1.1.1          294939    294930    up
Table 2-1017 Description of the display vpls connection command output
Item Description
total connections

Total number of PWs.

bgpad

Number of BGP A-D PWs.

down

Number of PWs in the down state.

VSI Name

VSI name.

VPLS ID

ID that uniquely identifies whether multiple PEs belong to the same BGP AD VSI.

EncapType

VSI VPLS encapsulation type (packet encapsulation type on a VC):

  • VLAN.
  • Ethernet.
PeerAddr

Peer IP address.

InLabel

VC label distributed locally.

OutLabel

VC label distributed by the peer.

VCState

Status of the VC:

  • Up.
  • Down.
up

Number of PWs in the up state.

ldp

Number of LDP PWs.

VC State

Status of the VC:

  • Up.
  • Down.
Encapsulation

PW encapsulation type:

  • VLAN.
  • Ethernet.
Group ID

Group identifier.

MTU

Maximum transmission unit.

Peer Ip Address

Peer IP address.

PW Type

PW type:

  • label: common PW.
  • mehvpls: spoke PW.
Local VC Label

Local VC label.

Remote Vsi ID

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

Remote VC Label

Remote VC label.

Remote Label Block

Remote label block.

Remote Site ID

Remote multi-homing site ID.

Tunnel Policy

Tunnel policy used by an L2VPN.

Tunnel ID

Tunnel ID.

bgp

Number of BGP PWs.

RD

RD of a VSI.

Export vpn target

Export VPN target carried in exported routes.

VsiID

VSI ID.

Signaling

Signaling mode:

  • ldp.
  • bgp.
  • bgp-ad.

display vpls forwarding-info

Function

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

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

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 the forwarding information about a VSI with the specified VSI name.

The value is a string of 1 to 31 case-sensitive characters without spaces. The character string can contain spaces if it is enclosed with double quotation marks (").

peer peer-address

Displays the forwarding information about a VSI with the specified peer IP address.

The value is in dotted decimal notation.

negotiation-vc-id vc-id

Displays the forwarding information about a VSI with the specified VC ID.

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

remote-site site-id

Displays the forwarding information about a VSI with the specified remote site ID.

The value is an integer ranging from 0 to 65534.

state

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

-

up

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

-

down

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

-

verbose

Displays the detailed forwarding information about VSIs.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

To check the forwarding information about a specific VSI, run the display vpls forwarding-info vsi command.

Precautions

  1. OutInterface in the command output indicates the name of the tunnel corresponding to the outbound interface.
  2. The LDP LSP/BGP LSP/BGP_LOCAL_IFNET tunnels as well as tunnels without names are displayed as follows:

    "LDP LSP", "BGP LSP", "BGP LOCAL IFNET", TunnelKey character string
  3. The command output displays only information about the PW that is down due to an exception after the PW is established between the two ends. If no information about the remote PW is received, that is, if the PW is not established, no PW down information is displayed.

Example

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

# Display summary forwarding information about all PWs in all VSIs.
<HUAWEI> display vpls forwarding-info
Total Number   : 2,        2  up,  0  down

Vsi-Name                        PeerIP          VcOrSiteId  PwState
1                               6.6.6.6         1           UP
2                               6.6.6.6         2           UP
# Display the summary forwarding information about VSIs whose PWs are in the Up state.
<HUAWEI> display vpls forwarding-info state up
Total Number   : 2,        2  up,  0  down

Vsi-Name                        PeerIP          VcOrSiteId  PwState
1                               6.6.6.6         1           UP
2                               6.6.6.6         2           UP
# Display the detailed forwarding information about VSIs whose PWs are in the Up state.
<HUAWEI> display vpls forwarding-info state up verbose
Total Number   : 2,        2  up,  0  down

**Vsi-Name      : vsi1
  Vsi Index     : 0                            PwState      : BACKUP
  Peer IP       : 3.3.3.3                      VcOrSiteId   : 1
  InVcLabel     : 1029                         OutVcLabel   : 1030
  BroadTunnelID : 0x80002a                     OutInterface : LDP_LSP
  MainPwToken   : 0x80002a                     SlavePwToken : 0x0
  NKey          : 0x7                          CKey         : 0x8

**Vsi-Name      : vsi2
  Vsi Index     : 0                            PwState      : UP
  Peer IP       : 2.2.2.2                      VcOrSiteId   : 1
  InVcLabel     : 1028                         OutVcLabel   : 1030
  BroadTunnelID : 0x80003a                     OutInterface : LDP_LSP
  MainPwToken   : 0x80003a                     SlavePwToken : 0x0
  NKey          : 0x5                          CKey         : 0x6
# Display the detailed forwarding information about all PWs in all VSIs.
<HUAWEI> display vpls forwarding-info verbose
Total Number   : 2,        2  up,  0  down

**Vsi-Name      : 1
  Vsi Index     : 0                            PwState      : UP
  Peer IP       : 6.6.6.6                      VcOrSiteId   : 1
  InVcLabel     : 234496                       OutVcLabel   : 162816
  BroadTunnelID : 0x80414000                   OutInterface : LDP_LSP
  MainPwToken   : 0x80414000                   SlavePwToken : 0x0
  NKey          : 0x3                          CKey         : 0x4

**Vsi-Name      : 2
  Vsi Index     : 1                            PwState      : UP
  Peer IP       : 6.6.6.6                      VcOrSiteId   : 2
  InVcLabel     : 250882                       OutVcLabel   : 179201
  BroadTunnelID : 0x80414001                   OutInterface : LDP_LSP
  MainPwToken   : 0x80414001                   SlavePwToken : 0x0
  NKey          : 0x3                          CKey         : 0x5
Table 2-1018 Description of the display vpls forwarding-info command output
Item Description
Total Number

There are two VSIs in total, and the two VSIs are both in the Up state.

Vsi-Name

VSI name.

PeerIP

Peer IP address.

VcOrSiteId
  • VSI ID if LDP is used as a VSI signaling.
  • Site ID if BGP is used as a VSI signaling.
PwState

PW status:

  • Up.
  • Backup.
  • Down.
Vsi Index

VSI index.

Peer IP

Peer IP address.

InVcLabel

Incoming VC label.

OutVcLabel

Outgoing VC label.

BroadTunnelID

ID of the tunnel used for broadcast.

OutInterface

Name of the tunnel corresponding to the outbound interface.

MainPwToken

Token of the primary PW.

SlavePwToken

Token of the secondary PW.

NKey

Network key. Each NKey corresponds to a set of peer+tunnel policy.

CKey

User key. Each CKey corresponds to a PW.

display vsi

Function

The display vsi command displays VSI information.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

display vsi [ name vsi-name ] [ verbose ]

Parameters

Parameter Description Value
name vsi-name

Displays information about a VSI with the specified name.

The value is a string of 1 to 31 case-sensitive characters without spaces. The character string can contain spaces if it is enclosed with double quotation marks (").

verbose

Displays detailed VSI information.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

In the display vsi command:

  • If vsi-name is specified, information about a specified VSI is displayed.
  • If vsi-name is not specified, information about all VSIs is displayed.

Precautions

If the output of the display vsi [ name vsi-name ] [ verbose ] command does not contain PW information, no PW is set up for this VSI. In this situation, the command output shows only basic information about the local VSI.

To view information about the VSI on the remote end, run the display vsi remote command.

To view tunnel information, run the display tunnel-info verbose command. The value of tunnel-id is the tunnel ID displayed in the command output.

Example

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

# Display information about the PBB VPLS instance named ivsi1.
<HUAWEI> display vsi name ivsi1 verbose

 ***VSI Name               : ivsi1
    Work Mode              : i-vsi p2p
    Administrator VSI      : no
    Isolate Spoken         : disable
    VSI Index              : 6
    PW Signaling           : ldp
    Member Discovery Style : --
    Bridge-domain Mode     : disable
    PW MAC Learn Style     : unqualify
    Encapsulation Type     : vlan
    MTU                    : 1500
    Diffserv Mode          : uniform
    Service Class          : --
    Color                  : --
    DomainId               : 255
    Domain Name            : 
    Ignore AcState         : disable
    P2P VSI                : disable
    Multicast Fast Switch  : disable
    Create Time            : 0 days, 0 hours, 0 minutes, 48 seconds
    VSI State              : up
    Resource Status        : --
                

  **PBB Information:
    Component Style                   : I-VSI
    Service Style                     : P2P
    I-Tag                             : 100
    Backbone-source-MAC               : --
    Backbone-destination-MAC          : 00e0-fc12-3456
    Binding B-VSI name                : bvsi1
    Learned Flag                      : No MAC
    Learned In Label                  : 4294967295
    Learned Out Label                 : 4294967295

    VSI ID                 : 10
 
    Interface Name         : 10GE1/0/1.4
    State                  : up
    Ac Block State         : unblocked
    Access Port            : false
    Last Up Time           : 2020/11/23 11:45:18
    Total Up Time          : 0 days, 0 hours, 0 minutes, 48 seconds
# Display information about the BGP AD VPLS instance named 3.
<HUAWEI> display vsi name 3 verbose

 ***VSI Name               : 3
    Work Mode              : normal
    Administrator VSI      : no
    Isolate Spoken         : disable
    VSI Index              : 3
    PW Signaling           : bgpad
    Member Discovery Style : --
    Bridge-domain Mode     : disable
    PW MAC Learn Style     : unqualify
    Encapsulation Type     : vlan
    MTU                    : 1500
    Diffserv Mode          : uniform
    Service Class          : --
    Color                  : --
    DomainId               : 255
    Domain Name            : 
    Ignore AcState         : enable
    P2P VSI                : disable
    Multicast Fast Switch  : disable
    Create Time            : 0 days, 0 hours, 36 minutes, 46 seconds
    VSI State              : up
    Resource Status        : --
                
    VPLS ID                : 10.10.1.1:1
    RD                     : 10.10.1.1:1
    Import vpn target      : 100:1 
    Export vpn target      : 100:1 
    BGPAD VSI ID           : 1.1.1.1

   *Peer Router ID         : 2.2.2.2
    VPLS ID                : 10.10.1.1:1
    SAII                   : 1.1.1.1
    TAII                   : 2.2.2.2
    VC Label               : 48066
    Peer Type              : dynamic
    Session                : up
    Tunnel ID              : 0x0000000001004c4b43 
    Broadcast Tunnel ID    : --
    CKey                   : 6
    NKey                   : 16777366

  **PW Information:

   *Peer Ip Address        : 10.1.1.2
    PW State               : up
    Local VC Label         : 48066
    Remote VC Label        : 48066
    PW Type                : label
    Tunnel ID              : 0x0000000001004c4b43 
    Broadcast Tunnel ID    : --
    Broad BackupTunnel ID  : --
    Ckey                   : 6
    Nkey                   : 16777366
    Main PW Token          : 0x0
    Slave PW Token         : 0x0
    Tnl Type               : ldp
    OutInterface           : --
    Backup OutInterface    : --
    Stp Enable             : 0
    Mac Flapping           : 0
    Monitor Group Name     : --
    PW Last Up Time        : 2020/11/23 11:45:52
    PW Total Up Time       : 0 days, 0 hours, 36 minutes, 12 seconds
# Display detailed information about all VSIs.
<HUAWEI> display vsi verbose
***VSI Name               : a2
    Work Mode              : normal
    Administrator VSI      : no
    Isolate Spoken         : disable
    VSI Index              : 1
    PW Signaling           : ldp
    Member Discovery Style : --
    Bridge-domain Mode     : disable
    PW MAC Learn Style     : unqualify
    Encapsulation Type     : vlan
    MTU                    : 1500
    Diffserv Mode          : uniform
    Service Class          : --
    Color                  : --
    DomainId               : 255
    Domain Name            :
    Ignore AcState         : disable
    P2P VSI                : disable
    Multicast Fast Switch  : disable 
    Create Time            : 0 days, 23 hours, 28 minutes, 1 seconds
    VSI State              : up
    Resource Status        : --

    VSI ID                 : 2
   *Peer Router ID         : 10.1.1.1
    primary or secondary   : primary
    ignore-standby-state   : no
    VC Label               : 18
    Peer Type              : dynamic
    Session                : up
    Tunnel ID              : 0x0000000001004c4b82
    Broadcast Tunnel ID    : --
    Broad BackupTunnel ID  : --
    Tunnel Policy Name     : tp1
    CKey                   : 1
    NKey                   : 1610612838
    Stp Enable             : 0
    PwIndex                : 0
    Control Word           : disable
    Interface Name         : 10GE1/0/1.1
    State                  : up
    Ac Block State         : unblocked
    Access Port            : false
    Last Up Time           : 2012/09/10 10:14:46
    Total Up Time          : 0 days, 23 hours, 23 minutes, 5 seconds

  **PW Information:

   *Peer Ip Address        : 10.1.1.1
    PW State               : up
    Local VC Label         : 18
    Remote VC Label        : 18
    Remote Control Word    : disable
    PW Type                : label
    Tunnel ID              : 0x0000000001004c4b82
    Broadcast Tunnel ID    : --
    Broad BackupTunnel ID  : --
    Ckey                   : 1
    Nkey                   : 1610612838
    Main PW Token          : 0x0
    Slave PW Token         : 0x0
    Tnl Type               : ldp
    OutInterface           : 10GE1/0/1
    Backup OutInterface    :
    Stp Enable             : 0
    Mac Flapping           : 0
    PW Last Up Time        : 2012/09/11 02:39:41
    PW Total Up Time       : 0 days, 23 hours, 15 minutes, 58 seconds
    Configured Flowlabel   : send , -- 
    Received Flowlabel     : -- , receive 
    Negotiated Flowlabel   : send , --
# Display information about the BGP VPLS instance named bgp1.
<HUAWEI> display vsi verbose
***VSI Name               : bgp1
    Work Mode              : normal
    Administrator VSI      : no
    Isolate Spoken         : disable
    VSI Index              : 1
    PW Signaling           : bgp
    Member Discovery Style : --
    Bridge-domain Mode     : disable
    PW MAC Learn Style     : unqualify
    Encapsulation Type     : vlan
    MTU                    : 1500
    Diffserv Mode          : uniform
    Service Class          : --
    Color                  : --
    DomainId               : 255
    Domain Name            : 
    Ignore AcState         : disable
    P2P VSI                : disable
    Multicast Fast Switch  : disable
    Create Time            : 1 days, 4 hours, 56 minutes, 50 seconds
    VSI State              : down
    Resource Status        : --
                
    BGP RD                 : 1.2.3.4:2 auto
    SiteID/Range/Offset    : 1/10/0
    Import vpn target      : 200:1                  
    Export vpn target      : 200:1                  
    Local Label Block      : 0/368640/8/0 
 
    Interface Name         : 10GE1/0/1.1
    State                  : up
    Ac Block State         : unblocked
    Access Port            : false
    AC Token Exceed        : YES
    Last Up Time           : 2019/08/21 07:49:03
    Total Up Time          : 1 days, 4 hours, 54 minutes, 10 seconds
# Display detailed information about the LDP VPLS instance named v1.
<HUAWEI> display vsi name v1 verbose

 ***VSI Name               : v1
    Work Mode              : normal
    Administrator VSI      : no
    Isolate Spoken         : disable
    VSI Index              : 1
    PW Signaling           : ldp
    Member Discovery Style : --
    Bridge-domain Mode     : disable
    PW MAC Learn Style     : unqualify
    Encapsulation Type     : vlan
    MTU                    : 1500
    Diffserv Mode          : uniform
    Service Class          : --
    Color                  : --
    DomainId               : 255
    Domain Name            :
    Ignore AcState         : disable
    P2P VSI                : disable
    Multicast Fast Switch  : disable
    Create Time            : 1 days, 3 hours, 11 minutes, 2 seconds
    VSI State              : up
    Resource Status        : --

    VSI ID                 : 10
   *Peer Router ID         : 2.2.2.2
    Negotiation-vc-id      : 10
    Encapsulation Type     : vlan
    primary or secondary   : primary
    ignore-standby-state   : no
    VC Label               : 48062
    Peer Type              : dynamic
    Session                : up
    Tunnel ID              : 0x0000000001004c4bc1
    Broadcast Tunnel ID    : --
    Broad BackupTunnel ID  : --
    CKey                   : 1
    NKey                   : 16777411
    Stp Enable             : 0
    PwIndex                : 1
    Control Word           : disable
    BFD for PW             : unavailable
    Track BFD Session      : b3
    Track BFD State        : up

    Interface Name         : 10GE1/0/1.1
    State                  : up
    Ac Block State         : unblocked
    Access Port            : false
    Last Up Time           : 2022/08/25 08:18:13
    Total Up Time          : 1 days, 3 hours, 8 minutes, 11 seconds

  **PW Information:

   *Peer Ip Address        : 2.2.2.2
    PW State               : up
    Local VC Label         : 48062
    Remote VC Label        : 48062
    Remote Control Word    : disable
    PW Type                : label
    Local  VCCV            : alert lsp-ping bfd
    Remote VCCV            : alert lsp-ping bfd
    Tunnel ID              : 0x0000000001004c4bc1
    Broadcast Tunnel ID    : --
    Broad BackupTunnel ID  : --
    Ckey                   : 1
    Nkey                   : 16777411
    Main PW Token          : 0x0
    Slave PW Token         : 0x0
    Tnl Type               : ldp
    OutInterface           : --
    Backup OutInterface    : --
    Stp Enable             : 0
    Mac Flapping           : 0
    Monitor Group Name     : --
    PW Last Up Time        : 2022/08/25 12:03:41
    PW Total Up Time       : 1 days, 0 hours, 39 minutes, 27 seconds
# Display VSI information.
<HUAWEI> display vsi
Total VSI number is 1, 0 is up, 1 is down, 0 is LDP mode, 0 is BGP mode, 0 is BGPAD mode, 0 is mixed mode, 1 is unspecified mode
--------------------------------------------------------------------------
Vsi                             Mem    PW    Mac       Encap     Mtu   Vsi
Name                            Disc   Type  Learn     Type      Value State
--------------------------------------------------------------------------
1                               --     --    unqualify vlan      1500  down
# Display information about a VSI named a2 on the standby main control board.
<HUAWEI> display vsi name a2
--------------------------------------------------------------------------
Vsi                             Mem    PW   Mac       Encap     Mtu   Vsi
Name                            Disc   Type Learn     Type      Value State
--------------------------------------------------------------------------
a2                              --     ldp  unqualify vlan      1500  up
Table 2-1019 Description of the display vsi command output
Item Description
Work Mode

VSI working mode:

  • normal: common VSI.
  • bd-mode: BD VSI.
  • bvsi: PBB B-VSI.
  • ivsi: PBB I-VSI.
  • ivsi-p2p: PBB I-VSI in point-to-point mode.
  • ivsi-mp2mp: MP2MP PBB I-VSI.
  • ivsi-bevpn-interwork: PBB I-VSI interacting with PBB EVPN.
Administrator VSI

Whether the VSI is an mVSI:

  • yes: The VSI is an mVSI.
  • no: The VSI is not an mVSI.
VSI State

Status of the VSI:

  • Up.
  • Down.
VSI Index

VSI index.

VSI ID

ID of the VSI. This field is displayed only when LDP VPLS is configured.

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

Isolate Spoken

Whether to enable forwarding isolation:

  • enable.
  • disable.
PW Signaling

PW signaling type.

PW MAC Learn Style

MAC address learning mode of the PW. The options are unqualify and qualify.

PW Information

Information about the PW.

PW State

Current status of the PW:

  • Up.
  • Down.
  • Backup.
PW Type

PW type:

  • label: common PW.
  • mehvpls: spoke PW.
PW Last Up Time

Last time when the PW is up.

PW Total Up Time

Total time when the PW is up.

Member Discovery Style

Member discovery mode, which can be dynamic discovery or static discovery.

Bridge-domain Mode

Whether the VSI in BD mode is enabled:

  • enable.
  • disable.
Encapsulation Type

Encapsulation type of the VSI:

  • VLAN.
  • Ethernet.
MTU

Maximum transmission unit.

Diffserv Mode

QoS mode for VSI services.

Service Class

QoS service class for VSI services.

Service Style

PBB I-VSI type:

  • P2P.
  • B-EVPN-INTERWORKING.
  • MP2MP.
Color

QoS color for VSI services.

DomainId

Domain ID.

Domain Name

Zone name.

Ignore AcState

Whether the vpls ignore-ac-state command is configured to prevent the VSI status from being affected by the AC status:

  • enable.
  • disable.
P2P VSI

Whether the VSI is a P2P VSI:

  • enable: The VSI is a P2P VSI.
  • disable: The VSI is not a P2P VSI.
Multicast Fast Switch

Multicast fast switch status:

  • enable: Multicast fast switch is enabled.
  • disable: Multicast fast switch is disabled.
Create Time

Time when a VSI is created.

State

Status of the AC bound to the VSI:

  • Up.
  • Down.
up

Number of VSIs in the Up state.

Resource Status

Whether the resource is available. Currently, only -- is displayed.

Component Style

PBB VPLS type:

  • I-VSI.
  • B-VSI.
Interface Name

Name of the interface bound to the VSI.

Ac Block State

Blocking status of the AC interface:

  • unblocked.
  • blocked.
Access Port

Whether an interface supports the Access-port attribute.

  • true: supported.
  • false: not supported.
Last Up Time

Last time when the AC interface is up.

Total Up Time

Total time when the AC interface is up.

Total VSI number

Total number of VSIs.

VPLS ID

VPLS domain ID.

RD

Route distinguisher.

Import vpn target

VPN target extended community attribute carried in imported routes.

Export vpn target

VPN target extended community attribute carried in exported routes.

BGPAD mode

Number of VSIs in BGP A-D mode.

BGPAD VSI ID

BGP AD VSI ID of a VSI.

SAII

Source AII.

TAII

Destination AII.

VC Label

Label value of the VC. This field is displayed only when LDP VPLS is configured.

Peer Router ID

ID of the peer device. This field is displayed only when LDP VPLS is configured.

Peer Type

PW type of the peer, which can be dynamic or static. This field is displayed only when LDP VPLS is configured.

Peer Ip Address

Peer IP address.

Session

Status of the session between the local end and its peer. The status can be up or down. This field is displayed only when LDP VPLS is configured.

Tunnel ID

Tunnel ID. If there are multiple tunnels, they are displayed in sequence and separated by spaces. This field is displayed only when LDP VPLS is configured.

Tunnel Policy Name

Tunnel policy name.

Broadcast Tunnel ID

Tunnel ID (for BUM).

CKey

PW index.

NKey

Index of the public tunnel.

Local VC Label

VC label distributed locally.

Local Label Block

Local label block.

Local VCCV

VCCV mode supported by the local end:

  • The default value is alert lsp-ping bfd. If the control word function is disabled, LSP ping and BFD in alert mode are supported by default.
  • If the control word function is enabled, the value is cw alert lsp-ping bfd. This means that both LSP ping and BFD in control word mode and LSP ping and BFD in alert mode are supported.
Remote VC Label

VC label distributed by the peer.

Remote Control Word

Whether the control word function is enabled on the remote end:

  • enable.
  • disable.
Remote VCCV

VCCV mode supported on the remote device:

  • The default value is alert lsp-ping bfd. If the control word function is disabled, LSP ping and BFD in alert mode are supported by default.
  • If the control word function is enabled, the value is cw alert lsp-ping bfd. This means that both LSP ping and BFD in control word mode and LSP ping and BFD in alert mode are supported.
Broad BackupTunnel ID

ID of the selected backup BUM tunnel.

Main PW Token

Primary PW token.

Slave PW Token

Secondary PW token.

Tnl Type

Tunnel type:

  • LSP.
  • CR-LSP.
  • GRE.
  • Other.
OutInterface

Outbound interface.

  • If -- is displayed in the command output, it indicates that information query is not supported. It does not indicate that the function is invalid. You can obtain the information through other query methods.
Backup OutInterface

Outbound interface of the selected backup BUM tunnel.

Stp Enable

Whether STP for PW is configured:

  • 0: not configured.
  • 1: configured.
Mac Flapping

Whether MAC flapping for VSI is enabled:

  • 0: disabled.
  • 1: enabled.
Monitor Group Name

L2VPN monitoring group.

primary or secondary

Whether the PW is a primary or secondary PW.

ignore-standby-state

Whether the PW ignores the secondary state sent from the peer device:

  • yes: ignores the secondary state sent from the peer device.
  • no: does not ignore the secondary state sent from the peer device.
PwIndex

PW index.

Control Word

Whether the control word function is enabled on the local end:

  • enable.
  • disable.
Configured Flowlabel

Local flow label configuration:

  • send, --: The local end is configured to send flow labels.
  • --, receive: The local end is configured to receive flow labels.
  • send, receive: The local end is configured to receive and send flow labels.
Received Flowlabel

Remote flow label configuration:

  • send, --: The remote end is enabled to send flow labels.
  • --, receive: The remote end is enabled to receive flow labels.
  • send, receive: The remote end is enabled to send and receive flow labels.
Negotiated Flowlabel

Flow label capability negotiation result.

  • send, --: The local end is configured to send flow labels, and the remote end is configured to receive flow labels.
  • --, receive: The local end is configured to receive flow labels, and the remote end is configured to send flow labels.
  • send, receive: The local and remote ends are both configured to send and receive flow labels.
down

Number of VSIs in the down state.

BGP mode

Number of VSIs in BGP mode.

BGP RD

Route distinguisher.

auto

Whether the RD value of the instance is automatically generated.

SiteID/Range/Offset

SiteID: site ID of a VSI.

Range:number of sites in a VSI.

Offset: offset of the initial site ID for a VSI.

AC Token Exceed

The number of AC tokens exceeded the upper limit.

BFD for PW

Whether BFD for PW is enabled:

  • available.
  • unavailable.
LDP mode

Number of LDP VSIs.

mixed mode

Number of VSIs in mixed mode.

unspecified mode

Number of VSIs in unspecified mode.

Vsi Name

VSI name.

Mem

Member discovery mode.

Encap

Encapsulation type of the VSI:

  • VLAN.
  • Ethernet.

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

Mtu

Maximum transmission unit.

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

Offset

Offset.

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.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

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

Parameters

Parameter Description Value
import-vt

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

-

export-vt

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

-

remote-export-vt

Displays remote export VPN targets, that is, the VPN targets sent 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.

Note the following when using 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.

Prerequisites

Peers have been configured in the BGP AD VPLS domain.

Example

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

# Display VPN targets received by a device from its peers 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
# Display export VPN targets configured on a device 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 import VPN targets configured on a device 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
Table 2-1020 Description of the display vsi bgp-ad command output
Item Description
remote export vpn target list

List of export VPN targets sent from BGP AD peers.

export vpn target list

List of export VPN targets configured locally.

import vpn target list

List of import VPN targets configured locally.

display vsi bgp-ad remote vpls-id

Function

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

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

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: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 0s. That is, a VPLS ID cannot be 0:0.
  • 32-bit AS number:16-bit user-defined number: for example, 100.5:1. The 32-bit AS number is usually in the format of x.y. The values of x and y range 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.
  • 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 0 to 65535. The user-defined number also 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: a 16-bit user-defined number, for example, 192.168.122.15:1. An IPv4 address ranges from 0.0.0.0 to 255.255.255.255, and a user-defined number ranges from 0 to 65535.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

When configuring or commissioning BGP AD VPLS, to view the VPLS ID, VSI ID, ERT, or other information configured on a remote device, you can run the display vsi bgp-ad remote vpls-id command to view BGP AD VSI remote member information.

Example

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

# Display information about a BGP AD peer with the VPLS ID of 1:1.
<HUAWEI> display vsi bgp-ad remote vpls-id 1:1
BGP AD Network Layer Reachability Information:
-------------------------------------------
 *Peer             : 1.1.1.1
  VPLS ID          : 1:1
  VSI ID           : 1.1.1.1
  VSI index        : 0	
  Export vpn target: 1:1	
-------------------------------------------
Table 2-1021 Description of the display vsi bgp-ad remote vpls-id command output
Item Description
VPLS ID

VPLS ID configured on the remote peer.

VSI ID

VSI ID configured on the remote peer.

VSI index

Local VSI index matching BGP AD network layer reachability information.

Export vpn target

List of export VPN targets sent from the remote peer.

Peer

IP address of the peer.

display vsi mac-withdraw loop-detect

Function

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

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

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

All views

Default Level

1: Monitoring level

Usage Guidelines

To view information about MAC withdraw loop detection after you enable MAC withdraw loop detection, run the display vsi mac-withdraw loop-detect command. 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

The actual command output varies according to the device. The command output here is only an 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       : 5.5.5.5
Receive peer    : 2.2.2.2
Last loop time  : 2012/10/26 11:35:59

Vsi name        : VSI2
Last loop type  : exceed max hop
Send peer       : 5.5.5.5
Receive peer    : 3.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       : 5.5.5.5
Receive peer    : 2.2.2.2
Last loop time  : 2012/10/26 11:35:59
Table 2-1022 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

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.
Last loop time

Time when the MAC Withdraw message loop occurs.

Send peer

Peer to which MAC Withdraw messages are sent.

Receive peer

Peer from which MAC Withdraw messages are received.

display vsi name protect-group

Function

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

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

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

Parameters

Parameter Description Value
group-name

Specifies the name of a PW protection group.

The value is a string of 1 to 15 case-sensitive characters. It cannot contain spaces.

verbose

Displays detailed information.

-

history

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

-

name vsi-name

Specifies the name of a VSI.

The value is a string of 1 to 31 case-sensitive characters without spaces. The character string can contain spaces if it is enclosed with double quotation marks (").

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

After a PW protection group is configured, you can view brief information about the PW protection group of a specified VSI to check whether the PW configuration takes effect. When maintaining a PW protection group, you can check the running status of the PW protection group by viewing historical switching information about the PW protection group of a specified VSI.

Prerequisites

A PW protection group has been created, and the primary and secondary PWs have been added to the group.

Example

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

# 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   : 2016-08-09 16:31:32 UTC-08:00
Last change action : 3.3.3.3:333 to 4.4.4.4:444
Last change reason : manual clear switch
Holdoff remain time: --
Reroute remain time: --   

Members            :
 PeerIp:VcId                Pri/Sec   Active              

 4.4.4.4:444                Primary   Active
 3.3.3.3:333                Secondary Inactive
# Display historical switching information about PWs in PW protection group group1 of VSI vsi1.
<HUAWEI> display vsi name vsi1 protect-group group1 history
Vsi name      : v1
Protect group : group1

Date/Time     :  2016-08-09 16:31:32 UTC-08:00
Action        :  3.3.3.3:333 to 4.4.4.4:444
Reason        :  manual clear switch

Date/Time     :  2016-08-09 15:31:32 UTC-08:00
Action        :  4.4.4.4:444 to 3.3.3.3:333
Reason        :  manual force switch

Date/Time     :  2016-08-09 12:31:32 UTC-08:00
Action        :  4.4.4.4:444 to 3.3.3.3:333
Reason        :  PW down
# Display brief information about the PW protection group of VSI vsi1.
<HUAWEI> display vsi name vsi1 protect-group
Protect-group: vsi1
-------------------------------------------------------------------------------
PeerIp:VcId                Pref   Active
-------------------------------------------------------------------------------
2.2.2.2:1                  1      Active
3.3.3.3:1                  2      Inactive
Table 2-1023 Description of the display vsi name protect-group command output
Item Description
Vsi name

VSI name.

Protect group

Name of the PW protection group.

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 run the reroute (protect-group view) command to modify the revertive switching policy.

Reroute remain time

Remaining time before a revertive switching is performed.

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

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 manual command.
  • manual clear switch: PW switching is triggered by the protect-switch clear command.
  • config changed: PW switching is triggered by configuration changes such as PW addition, PW deletion, or PW priority changes.
  • fault detected: PW switching is triggered by failures detected by BFD or VCCV.
  • PW down: PW switching occurs because the active PW goes Down.
  • PW up: PW switching occurs because the active PW goes Up again.
  • receive notification message: PW switching occurs because notification messages are received.
  • tracking admin: PW switching occurs because the protection group of a service VSI is bound to the protection group of an mVSI.
  • recovery from tracking admin: PW switching occurs because the protection group of a service VSI is unbound from the protection group of an mVSI.
  • admin vsi receive notification message: PW switching occurs for a service VSI because the protection group of an mVSI receives notification messages.
Holdoff remain time

Remaining time before a switching is performed.

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

Members

Members in a PW protection group.

PeerIp:VcId

PW's peer IP address: used as the VC ID to identify a PW.

Pri/Sec

Primary/secondary status of a PW:

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

PW forwarding status:

  • Active: The PW can forward service packets.
  • Inactive: The PW cannot forward service packets, but can forward OAM packets if it is up.
Date/Time

PW switching time.

For example, 2016-08-09 16:31:32 UTC-08:00 indicates that PW switching occurred at 16:31:32 of August 9, 2016 in the UTC-8 time zone.

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 manual command.
  • manual clear switch: PW switching is triggered by the protect-switch clear command.
  • config changed: PW switching is triggered by configuration changes such as PW addition, PW deletion, or PW priority changes.
  • fault detected: PW switching is triggered by failures detected by BFD or VCCV.
  • PW down: PW switching occurs because the active PW goes Down.
  • PW up: PW switching occurs because the active PW goes Up again.
  • receive notification message: PW switching occurs because notification messages are received.
  • tracking admin: PW switching occurs because the protection group of a service VSI is bound to the protection group of an mVSI.
  • recovery from tracking admin: PW switching occurs because the protection group of a service VSI is unbound from the protection group of an mVSI.
  • admin vsi receive notification message: PW switching occurs for a service VSI because the protection group of an mVSI receives notification messages.
Pref

PW priority specified using the peer preference (protect-group view) command.

display vsi name statistics

Function

The display vsi name statistics command displays statistics of a specified VSI, such as the PWs and AC interfaces in different states.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

display vsi name vsi-name statistics

Parameters

Parameter Description Value
name vsi-name

Specifies the name of a VSI whose statistics are to be displayed.

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

All views

Default Level

1: Monitoring level

Usage Guidelines

To view statistics about a specified VSI, such as the PW status and AC status, run the display vsi name statistics command.

Example

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

# Display statistics of the VSI named vsi1.
<HUAWEI> display vsi name vsi1 statistics
VSI Name               : vsi1
 VSI State              : up
 PW                     : 1 up, 0 down, 0 backup
 BFD for PW             : 0 up, 0 down
 AC                     : 1 up, 0 down, 1 AC OAM down
 Ignore AcState         : enable
Table 2-1024 Description of the display vsi name statistics command output
Item Description
VSI Name

Name of the VSI.

VSI State

Status of the VSI:

  • Up.
  • Down.
  • Administratively Down.
PW

Statistics about the PWs in different states.

BFD for PW

Statistics about the sessions of BFD for PW in different states.

AC

Statistics about the AC interfaces in different states.

Ignore AcState

Flag indicating whether ignoring the impact of the AC interface status change on the VSI status is enabled:

  • enable.
  • disable.

display vsi peer-info

Function

The display vsi peer-info command displays the PW status information of VSI peers.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

display vsi { name vsi-name peer-info [ peer-address ] | peer-info }

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

Parameters

Parameter Description Value
name vsi-name

Displays information about a VSI with the specified name.

The value is a string of 1 to 31 case-sensitive characters without spaces. The character string can contain spaces if it is enclosed with double quotation marks (").

peer-info

Displays information about locally configured peers.

-

peer-address

Specifies the IPv4 address of the remote end.

The value is in dotted decimal notation.

statistics

Collects the total number of up/down PWs.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

When you run the display vsi peer-info command:

  • If you specify peer-info but do not specify statistics, the command output displays the detailed PW status information about the peers of all VSIs.
  • If you specify both peer-info and statistics, the command output displays the PW status statistics about the peers of all VSIs.

Precautions

If the command output does not contain PW information, the local VSI has not established any PW. In this situation, the command output shows only basic information about the local VSI.

Example

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

# Display the PW status statistics about the peers of a specified VSI.
<HUAWEI> display vsi peer-info statistics
Total Local Peers: 11     9 Up           2 Down
---------------------------------------------------
Vsi Name                  Up Peers       Down Peers
---------------------------------------------------
ldp-peer-info-1           4              0
ldp-peer-info-2           5              2
# Display the detailed PW status information about the peers of a specified VSI.
<HUAWEI> display vsi name ldp-peer-info-1 peer-info
VSI Name: ldp-peer-info-1                             Signaling: ldp
--------------------------------------------------------------------
Peer                Transport  Local      Remote      VC
Addr                VC ID      VC Label   VC Label    State
--------------------------------------------------------------------
2.2.2.2             1          1040       1043        up
# Display the detailed PW status information about the peers of all VSIs.
<HUAWEI> display vsi peer-info
VSI Name: ldp-peer-info-1                             Signaling: ldp
--------------------------------------------------------------------
Peer                Transport  Local      Remote      VC
Addr                VC ID      VC Label   VC Label    State
--------------------------------------------------------------------
2.2.2.2             1          1040       1043        up
Table 2-1025 Description of the display vsi peer-info command output
Item Description
Total Local Peers

Total number of locally configured peers, that is, total number of PWs.

Local

VC label distributed locally.

Up

Total number of locally configured peers in the up state, that is, total number of PWs in the up state.

Up Peers

Total number of peers in the up state for a specified VSI, that is, total number of PWs in the up state for a specified VSI.

Down

Total number of locally configured peers in the down state, that is, total number of PWs in the down state.

Down Peers

Total number of peers in the down state for a specified VSI, that is, total number of down PWs for a specified VSI.

VSI Name

VSI name.

Peer

Peer IP address.

Transport

VC ID.

Remote

VC label distributed by the peer.

VC

Current PW status.

VC State

VC status, which can be:

  • down: The PW is down.
  • up: The PW is up.
  • backup: The PW is in the backup state.
Signaling

PW signaling type, which can be LDP or BGP. Here, only LDP PW information can be displayed.

display vsi pw out-interface

Function

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

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

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

All views

Default Level

1: Monitoring level

Usage Guidelines

The output of the display vsi [ name vsi-name ] [ verbose ] command contains only the tunnel policies of the VSI PW but not information about the actual outbound interface of the PW. To view information about the actual outbound interface of the PW, run the display vsi pw out-interface command.

Example

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

# Display information about the outbound interface of a VSI PW.
<HUAWEI> display vsi pw out-interface
Total: 1
--------------------------------------------------------------------------------
Vsi Name                        peer            vcid       interface
--------------------------------------------------------------------------------
a2                              3.3.3.9         2          10GE1/0/1
Table 2-1026 Description of the display vsi pw out-interface command output
Item Description
Vsi Name

Name of a VSI.

peer

VSI peer.

vcid

VC ID.

interface

Outbound interface of a VSI PW.

display vsi remote

Function

The display vsi remote command displays information about remote VSIs.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

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

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 bgp [ nexthop nexthop-address [ export-vpn-target export-vpn-target ] | route-distinguisher route-distinguisher ]

Parameters

Parameter Description Value
router-id ip-address

Displays information about remote VSIs on a specified peer.

The value is in dotted decimal notation.

pw-id pw-id

Displays information about the remote VSI for a specified PW.

pw-id specifies the number of a VC. It is a decimal integer that ranges from 1 to 4294967295.

verbose

Displays detailed information about remote VSIs.

-

unmatch

Displays information about remote VSIs that do not match the local configuration.

-

ldp129

Displays information about remote VSIs with the LDP 129 signaling.

-

vpls-id vpls-id

Specifies a VPLS domain to which multiple VSIs belong.

The available VPLS ID formats are as follows:

  • 2-byte AS number:4-byte user-defined number, such as 101:3. The AS number ranges from 0 to 65535, and the user-defined number ranges from 0 to 4294967295. The AS number and user-defined number cannot be both 0s. Specifically, a VPLS ID cannot be 0:0.
  • 4-byte AS number:2-byte user-defined number, such as 65537:3. The AS number ranges from 65536 to 4294967295, and the 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, such as 0.0:3 or 0.1:0. The 4-byte AS number in dotted notation is in the format of x.y, where x and y are integers that range from 0 to 65535. The user-defined number also ranges from 0 to 65535. The AS number and user-defined number cannot be both 0s. Specifically, a VPLS ID cannot be 0.0:0.
  • 4-byte IP address:2-byte user-defined number, such as 192.168.122.15:1. The IP address ranges from 0.0.0.0 to 255.255.255.255, and the user-defined number ranges from 0 to 65535.
fec129

Displays information about remote VSIs with the FEC 129 signaling.

-

bgp

Displays information about remote VSIs with BGP signaling.

-

nexthop nexthop-address

Specifies the next-hop IP address.

The value is in dotted decimal notation.

export-vpn-target export-vpn-target

Displays information about remote VSIs based on the specified next hop address and export VPN target.

The available VPN target formats are as follows:

  • 2-byte AS number:4-byte user-defined number, such as 1:3. The AS number ranges from 0 to 65535, and the user-defined number ranges from 0 to 4294967295. The AS number and user-defined number cannot be both 0s. Specifically, a VPN target cannot be 0:0.
  • 4-byte IP address:2-byte user-defined number, such as 192.168.122.15:1. The IP address ranges from 0.0.0.0 to 255.255.255.255, and the user-defined number ranges from 0 to 65535.
  • 4-byte AS number:2-byte user-defined number, such as 65537:3. The AS number ranges from 65536 to 4294967295, and the user-defined number ranges from 0 to 65535. The AS number and user-defined number cannot be both 0s. Specifically, a VPN target cannot be 0:0.
  • 4-byte AS number in dotted notation:2-byte user-defined number, such as 0.0:3 or 0.1:0. The 4-byte AS number in dotted notation is in the format of x.y, where x and y are integers that range from 0 to 65535. The user-defined number also ranges from 0 to 65535. The AS number and user-defined number cannot be both 0s. Specifically, a VPN target cannot be 0.0:0.
route-distinguisher route-distinguisher

Displays information about remote VSIs with the specified RD.

The available RD formats are as follows:

  • 2-byte AS number: 4-byte user-defined number, such as 101:3. The AS number ranges from 0 to 65535, and the user-defined number ranges from 0 to 4294967295. The AS number and user-defined number cannot be both 0s. Specifically, an RD cannot be 0:0.
  • 4-byte IP address:2-byte user-defined number, such as 192.168.122.15:1. The IP address ranges from 0.0.0.0 to 255.255.255.255, and the user-defined number ranges from 0 to 65535.
  • 4-byte AS number:2-byte user-defined number, such as 65537:3. The AS number ranges from 65536 to 4294967295, and the user-defined number ranges from 0 to 65535. The AS number and user-defined number cannot be both 0s. Specifically, an RD cannot be 0:0.
  • 4-byte AS number in dotted notation:2-byte user-defined number, such as 0.0:3 or 0.1:0. The 4-byte AS number in dotted notation is in the format of x.y, where x and y are integers that range from 0 to 65535. The user-defined number also ranges from 0 to 65535. The AS number and user-defined number cannot be both 0s. Specifically, an RD cannot be 0.0:0.
ldp

Displays information about remote VSIs with the LDP signaling.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

To check information about remote VSIs with a specific signaling type, run the display vsi remote command with corresponding keywords specified.

  • To check information about remote VSIs on an LDP VPLS network, run the display vsi remote ldp command.
  • To check information about remote VSIs on a BGP AD VPLS network, run the display vsi remote ldp129 or display vsi remote fec129 command. The latter one is recommended.
  • To check information about remote VSIs on a BGP VPLS network, run the display vsi remote bgp command.

Example

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

# Display information about remote VSIs with BGP signaling.
<HUAWEI> display vsi remote bgp nexthop 2.2.2.2 export-vpn-target 100:1
**BGP RD             : 192.168.1.1:1
    NextHop            : 2.2.2.2
    EncapType          : bgp vpls
    MTU                : 1500
    Export vpn target  : 100:1
    SiteID             : 2
    Remote Label Block : 294683/8/0
    Control Flags      : 0x0
    Site Preference    : 100
    PE ID              : 2.2.2.9
# Display information about remote VSIs with the LDP signaling.
<HUAWEI> display vsi remote ldp verbose
Total remote VSI : 1

VSI ID             : 15
VSI Index          : 3
VC Type            : vlan
VC Label           : 1033
Peer Address       : 5.5.5.5
Group ID           : 0
MTU                : 1500
Status Code        : FORWARD
Match Local VC     : MATCH
VCCV Code          : 0x202
# Display information about remote VSIs with the LDP 129 signaling.
<HUAWEI> display vsi remote ldp129
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|
--------------------------------------------------------------------------------
7:7         8.8.8.8   32838     8.8.8.8   vlan           1500  19    |N|S|N|S|N|
7:10        8.8.8.8   32837     8.8.8.8   vlan           1500  2     |N|S|N|S|N|
7:11        8.8.8.8   32836     8.8.8.8   vlan           1500  3     |N|S|N|S|N|
7:12        8.8.8.8   32835     8.8.8.8   vlan           1500  4     |N|S|N|S|N|
# Display detailed information about remote VSIs with the LDP signaling.
<HUAWEI> display vsi remote ldp
Vsi        Peer            VC      Group   Encap      MTU    Vsi    State
ID         RouterID        Label   ID      Type       Value  Index  Code
2          3.3.3.9         18      0       vlan       1500   1      FORWARD
PWID:5000, IP:1.1.1.1, SpeCount:2
PWID:5000, IP:2.2.2.2, SpeCount:1
# Display information about remote VSIs with the FEC 129 signaling.
<HUAWEI> display vsi remote fec129 verbose
    Total Number       : 1
  **VPLS ID            : 10.10.1.1:1
    Peer RouterID      : 2.2.2.2
    VC Label           : 48063
    Source AII         : 2.2.2.2
    Target AII         : 1.1.1.1
    EncapType          : vlan
    MTU Value          : 1500
    VSI Index          : 3
    VCCV |C|A|T|P|B|   : |N|S|N|S|N|
    VCCV Code          : 0x202
# Display information about remote VSIs with BGP signaling.
<HUAWEI> display vsi remote bgp nexthop 1.1.1.1 export-vpn-target 1:1
**BGP RD             : 2:2
    NextHop            : 1.1.1.1
    EncapType          : bgp vpls
    MTU                : 1500
    Export vpn target  : 1:1
    SiteID             : 1
    Remote Label Block : 294928/8/0
Table 2-1027 Description of the display vsi remote command output
Item Description
NextHop

Next-hop address for the remote VSI.

EncapType

PW type. The value is bgp vpls.

MTU

Maximum transmission unit.

MTU Value

MTU of a remote VC.

Export vpn target

Export VPN target carried in exported routes.

SiteID

Site ID of the remote VSI.

Remote Label Block

Label block of the remote VSI.

Control Flags

Control Flags field carried in packets in VPLS multi-homing scenarios.

Site Preference

Site Preference.

PE ID

Remote PE ID.

Total remote VSI

Total number of remote VSIs.

VSI Index

Index of a remote VSI.

VSI ID

ID of a remote VSI.

VC Label

VC label.

VC Type

PW encapsulation type:

  • VLAN.
  • Ethernet.
Peer

Peer IP address.

Peer Address

Peer IP address.

Peer RouterID

Remote Peer IP Address.

Group ID

Group ID.

Status Code

Remote VC status:

  • 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 underlying PSN of the remote VC is faulty.
  • NO FORWARD: The remote VC interface cannot forward packets.
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.
VCCV Code

VCCV code of the remote peer.

VCCV

VCCV detection type:

  • C: indicates that detection in control word mode is supported.
  • A: indicates that the label alert mode is supported.
  • T: indicates that detection in TTL mode is supported.
  • P: indicates that LSP ping detection is supported.
  • B: indicates that the BFD detection is supported.
VPLS ID

VPLS ID of the VSI.

Source

SAII information of the remote VSI.

Source AII

Remote Source AII.

Encap

PW encapsulation type:

  • VLAN.
  • Ethernet.
State

Peer status word:

  • FORWARD: indicates that forwarding is allowed.
  • NO FORWARD: indicates that forwarding is not allowed.
  • STANDBY: indicates the standby 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 and remote ends.
  • -: indicates that the interworking mode negotiated by the two devices is LDP.
Target AII

Remote Target AII.

BGP RD

RD of a VSI.

SpeCount

Spe Count.

IP

LSR ID of the PE in the path to the peer.

PWID

PW flag.

display vsi services

Function

The display vsi services command displays information about the AC interfaces bound to a VSI.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

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

Parameters

Parameter Description Value
all

Displays information about the AC interfaces bound to all VSIs.

-

vsi-name

Displays information about the AC interface associated with the specified VSI.

The value is a string of 1 to 31 case-sensitive characters without spaces. The character string can contain spaces if it is enclosed with double quotation marks (").

interface interface-type interface-number

Displays information about the specified AC interface bound to 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 bound to the VSI.

The value is an integer ranging from 1 to 4094.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

To check information about the AC interfaces bound to a VSI, run the display vsi services command. The command output shows the status of the VSI and AC interfaces.

Configuration Impact

If a large number of AC interfaces and VSIs exist on the device, you are advised to specify the VSI name, AC interface, and VLAN ID when using the display vsi services command. Otherwise, excess output information may cause the following problems:

  • The displayed information is repeatedly refreshed and the required information cannot be obtained.
  • The system does not respond because of prolonged information traversing and searching.

Example

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

# Display information about the interface associated with the VSI.
<HUAWEI> system-view
[HUAWEI] display vsi services interface 10GE1/0/1
Total: 1
Code: AS(Admin Status), PS(Physical Status)
--------------------------------------------------------------------------------
Interface/Bridge-domain             Vsi Name                        AS    PS
--------------------------------------------------------------------------------
10GE1/0/1                           vsi2                            down  up
--------------------------------------------------------------------------------
# Display information about the AC interface in VLAN 10 and bound to a VSI.
<HUAWEI> system-view
[HUAWEI] display vsi services vlan 10
Total: 1
Code: AS(Admin Status), PS(Physical Status)
--------------------------------------------------------------------------------
Interface/Bridge-domain             Vsi Name                        AS    PS
--------------------------------------------------------------------------------
Eth-Trunk1.1                        vsi1                            down  down
--------------------------------------------------------------------------------
# Display information about the AC interfaces bound to the VSI named vsi1.
<HUAWEI> system-view
[HUAWEI] display vsi services vsi1
Total: 1
Code: AS(Admin Status), PS(Physical Status)
--------------------------------------------------------------------------------
Interface                           Vsi Name                        AS    PS
--------------------------------------------------------------------------------
Eth-Trunk1.1                        vsi1                            down  down
--------------------------------------------------------------------------------
# Display information about the AC interfaces bound to all VSIs.
<HUAWEI> system-view
[HUAWEI] display vsi services all
Total: 3
Code: AS(Admin Status), PS(Physical Status)
--------------------------------------------------------------------------------
Interface                           Vsi Name                        AS    PS
--------------------------------------------------------------------------------
10GE1/0/1                1                               up    up
10GE1/0/1.1              vsi2                            down  up
Eth-Trunk1.1             vsi1                            down  down
--------------------------------------------------------------------------------
Table 2-1028 Description of the display vsi services command output
Item Description
Interface/Bridge-domain

Name of the interface or BD to which the VSI is bound.

If the VSI is bound to an AC interface, the interface name is displayed. If the VSI is bound to a BD, the BD is displayed.

Vsi Name

Name of the VSI to which the AC interface is bound.

AS

Administrative status of an interface:

  • up.
  • down.
PS

Physical status of an interface:

  • up.
  • down.

encapsulation

Function

The encapsulation command configures the encapsulation type of a VSI.

The undo encapsulation command restores the default configuration.

By default, the encapsulation type of a VSI is VLAN.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

encapsulation vlan

encapsulation ethernet

undo encapsulation [ ethernet ]

Parameters

Parameter Description Value
ethernet

Indicates that the encapsulation type of the VSI is Ethernet.

-

vlan

Indicates that the encapsulation type of the VSI is VLAN.

-

Views

VSI-AUTO view, VSI-DEFAULT view, VSI-STATIC view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

On a VPLS network, packets sent from CEs to PEs may or may not carry tags. The encapsulation type configuration affects the forwarding behavior of tagged packets.

Configuration Impact

The encapsulation type of a VSI determines whether a packet carries a tag.

Precautions

  • The encapsulation types of the VSIs on both ends of a PW must be the same. For BGP VPLS, by default, Huawei devices running VRPv5 use Huawei proprietary encapsulation types, that is, encapsulation type 4 in VLAN mode and encapsulation type 5 in Ethernet mode. Huawei VRP V8 devices comply with related standards. The encapsulation type of VPLS packets is 19, regardless of whether the encapsulation type of the VSI is Ethernet or VLAN.
  • The encapsulation type of the VSI is not necessarily related to the encapsulation type of the AC interface. The encapsulation types of the VSIs at both ends of a PW must be the same.

Example

# Configure the encapsulation type of the current VSI as Ethernet.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi company1
[HUAWEI-vsi-company1] encapsulation ethernet

encapsulation rfc4761-compatible

Function

The encapsulation rfc4761-compatible command configures a Huawei device to use the encapsulation type defined in relevant standards for BGP VPLS packets.

The undo encapsulation rfc4761-compatible command restores the default configuration.

By default, the encapsulation types of BGP VPLS packets comply with industry standards. To be compatible with Huawei-proprietary modes (encapsulation type 4 in VLAN mode and encapsulation type 5 in Ethernet mode), run the encapsulation vpls-family-compatible command.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

encapsulation rfc4761-compatible

undo encapsulation rfc4761-compatible

Parameters

None

Views

VSI-BGP view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

By default, Huawei VRPv8 devices implement BGP VPLS based on related standards, and the encapsulation type of VPLS packets is 19. Huawei VRPv5 devices implement BGP VPLS based on Huawei-proprietary encapsulation types. In VLAN mode, the encapsulation type is 4. In Ethernet mode, the encapsulation type is 5. For Huawei VRPv5 devices, you can run the encapsulation rfc4761-compatible command to configure the devices to be compatible with the encapsulation types of related standards. For Huawei VRPv8 devices, this command is meaningless and is reserved only for upgrade compatibility.

Prerequisites

The VSI-BGP view has been displayed using the pwsignal bgp command.

Example

# Configure a Huawei device to use the encapsulation type defined in relevant standards for BGP VPLS packets.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi bgp1 auto
[HUAWEI-vsi-bgp1] pwsignal bgp
[HUAWEI-vsi-bgp1-bgp] encapsulation rfc4761-compatible

encapsulation vpls-family-compatible

Function

The encapsulation vpls-family-compatible command configures a Huawei device to use encapsulation type 4 or 5 for BGP VPLS packets, depending on whether the user access mode is VLAN or Ethernet.

The undo encapsulation vpls-family-compatible command restores the default configuration.

By default, a Huawei device uses the encapsulation type defined in relevant standards for BGP VPLS packets.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

encapsulation vpls-family-compatible

undo encapsulation vpls-family-compatible

Parameters

None

Views

VSI-BGP view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

By default, VRPv8-based new Huawei devices implement BGP VPLS in compliance with industry standards. That is, the encapsulation type of VPLS packets is 19. VRPv5-based existing Huawei devices implement BGP VPLS based on the Huawei-proprietary encapsulation types, that is, the VLAN encapsulation type is 4, and the Ethernet encapsulation type is 5. To enable VRPv8-based new devices and VRPv5-based existing devices to communicate with each other, you need to run the encapsulation vpls-family-compatible command to change the encapsulation type.

When a device is sending packets, you need to run the encapsulation vpls-family-compatible command to configure the device to covert the encapsulation type from 19 to the Huawei-proprietary one (4 or 5). When the device is receiving packets, the encapsulation type can be changed automatically without any manual configuration.

The packet encapsulation mode on an AC-side interface is determined by the user access mode. User access modes are classified into VLAN access and Ethernet access.

  • VLAN access: Ethernet frames transmitted between a CE and a PE have a VLAN tag. The tag is a service delimiter required by an ISP to differentiate users. It is also called the provider tag (P-tag).
  • Ethernet access: An Ethernet frame header transmitted between a CE and a PE does not have any service delimiter. If the header has a VLAN tag, the tag is the inner VLAN tag of user packets and is meaningless to the PE. The internal user VLAN tag is called the user-tag (U-tag).

Prerequisites

The VSI-BGP view has been displayed using the pwsignal bgp command.

Example

# Configure a Huawei device to use encapsulation type 4 or 5 for BGP VPLS packets, depending on whether the user access mode is VLAN or Ethernet.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi bgp1 auto
[HUAWEI-vsi-bgp1] pwsignal bgp
[HUAWEI-vsi-bgp1-bgp] encapsulation vpls-family-compatible

flow-label (VSI-LDP view)

Function

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

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

By default, flow-label-based load balancing of L2VPN VSIs is disabled.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

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

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

undo flow-label

Parameters

Parameter Description Value
both

Configures the local end to send and receive packets based on flow labels.

-

send

Configures the local end to send packets based on flow labels.

-

receive

Indicates the capability to receive packets based on flow labels on the local device.

-

static

Statically configures flow-label-based load balancing.

-

Views

VSI-LDP view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When multiple links exist between P devices, configure flow-label-based load balancing to improve L2VPN traffic forwarding efficiency. After flow-label-based load balancing is enabled on a PE, the PE adds different labels for different L2VPN data flows to distinguish them one from the other. 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 a VSI, run the flow-label command in the VSI-LDP view.

Prerequisites

MPLS L2VPN has been enabled.

MPLS L2VPN has been enabled.

The mpls (load balancing profile view) command has been run to configure a load balancing mode for MPLS packets in a load balancing profile. This prerequisite applies only to S6780-Hs, S6750-Hs, and S6750-Ss.

Precautions

When configuring flow label-based load balancing for an L2VPN, note the following:

  • Flow label-based load balancing can be successfully configured only when the send and receive parameters configured on both ends of the PW match.
  • 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.
  • Flow label-based load balancing is enabled in the receive and transmit directions on both the local and remote ends.
  • If the static flow label-based load balancing configuration does not match on both ends, the device discards packets carrying flow labels, causing packet loss.
  • During the configuration of flow label-based load balancing, PWs are renegotiated. As a result, services temporarily go down and then up again, and this may cause traffic loss.

Example

# Enable flow-label-based load balancing in both receive and transmit directions on the local end.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[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, a PW has the same L2VPN flow label-based load balancing capability as the VSI to which it belongs.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

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

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

undo flow-label

Parameters

Parameter Description Value
both

Indicates both the send and receive capabilities of flow-label-based load balancing for the local device.

-

send

Configures the local end to send packets based on flow labels.

-

receive

Indicates the capability to receive packets based on flow labels on the local device.

-

static

Statically configures flow-label-based load balancing.

-

Views

VSI-LDP-PW view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When multiple links exist between P devices, configure flow-label-based load balancing to improve L2VPN traffic forwarding efficiency. After flow-label-based load balancing is enabled on a PE, the PE adds different labels for different L2VPN data flows to distinguish them. 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.

To enable flow-label-based load balancing for a specific L2VPN PW, run the flow-label command.

Note that:

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

MPLS L2VPN has been enabled.

The mpls (load balancing profile view) command has been run to configure a load balancing mode for MPLS packets in a load balancing profile. This prerequisite applies only to S6780-Hs, S6750-Hs, and S6750-Ss.

Precautions

When configuring flow label-based load balancing for an L2VPN, pay attention to the following points:

  • Flow label-based load balancing can be successfully configured only when the send and receive parameters configured on both ends of the PW match.
  • 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.
  • Flow label-based load balancing is enabled in both the transmit and receive directions on the local and remote ends.
  • If the static flow label-based load balancing configuration does not match on both ends, the device discards packets carrying flow labels, causing packet loss.
  • After the flow label is configured, the PW is renegotiated. As a result, the service goes Down and then Up.

Example

# Disable flow-label-based load balancing for a PW.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi 1 static
[HUAWEI-vsi-1] pwsignal ldp
[HUAWEI-vsi-1-ldp] vsi-id 10
[HUAWEI-vsi-1-ldp] peer 2.2.2.2
[HUAWEI-vsi-1-ldp] peer 2.2.2.2 pw p1
[HUAWEI-vsi-1-ldp-pw-p1] flow-label disable
# Enable flow-label-based load balancing for a PW.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi 1 static
[HUAWEI-vsi-1] pwsignal ldp
[HUAWEI-vsi-1-ldp] vsi-id 10
[HUAWEI-vsi-1-ldp] peer 2.2.2.2
[HUAWEI-vsi-1-ldp] peer 2.2.2.2 pw p1
[HUAWEI-vsi-1-ldp-pw-p1] flow-label both

holdoff (Protection 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.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

holdoff holdoffTime

undo holdoff

Parameters

Parameter Description Value
holdoffTime

Specifies the switching delay.

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

Views

Protection group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

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

Prerequisites

The PW redundancy mode of the PW protection group has been configured as master/slave.

Configuration Impact

If the holdoff command is run more than once, the latest configuration overrides the previous one.

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.

Precautions

The independent PW redundancy mode does not support delayed switching.

On a VPLS network configured with BFD, if a fault is detected on the working link, a physical link switchover is performed immediately. Therefore, you are advised to configure BFD or delayed switching as required.

After the hold-off time is configured, if the primary link fails, traffic forwarding is interrupted during this period.

Example

# Configure a switching delay of 60s for a PW protection group.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi vsi1
[HUAWEI-vsi-vsi1] pwsignal ldp
[HUAWEI-vsi-vsi1-ldp] vsi-id 12
[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 changes the VSI attribute on an interface from spoke to hub.

The undo hub-mode enable command changes the VSI attribute on an interface from hub to spoke.

By default, the VSI attributes on the AC and PW sides are spoke and hub, respectively.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

hub-mode enable

undo hub-mode enable

Parameters

None

Views

100ge sub-interface view, 100GE interface view, 10GE sub-interface view, 10GE interface view, 25GE sub-interface view, 25GE interface view, 400GE sub-interface view, 400GE interface view, 40GE sub-interface view, 40GE interface view, Eth-Trunk sub-interface view, Eth-Trunk interface view, GE optical interface view, GE sub-interface view, GE interface view, GE electrical interface view, VLANIF interface view,

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

You can run the hub-mode enable command on a PE to change the AC attribute of a VSI from spoke to hub. In this manner, traffic cannot be forwarded between AC interfaces in hub mode, achieving forwarding isolation.

After you run the isolate spoken command, traffic forwarding is prohibited between AC interfaces in a VSI. If traffic forwarding is required between some AC interfaces in the VSI, run the hub-mode enable command to implement on-demand traffic isolation.

Prerequisites

A VSI has been created and bound to an interface.

Precautions

If the hub-mode enable command is run on two local AC interfaces, the two AC interfaces cannot communicate with each other and can only communicate with other AC interfaces that are not configured with the hub-mode enable command.

Example

# Change the VSI attribute on Eth-Trunk 1.1 from spoke to hub.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi vsi1
[HUAWEI-vsi-vsi1] pwsignal ldp
[HUAWEI-vsi-vsi1-ldp] vsi-id 100
[HUAWEI-vsi-vsi1] quit
[HUAWEI] interface Eth-Trunk 1
[HUAWEI-Eth-Trunk1] undo portswitch
[HUAWEI-Eth-Trunk1] quit
[HUAWEI] interface Eth-Trunk 1.1
[HUAWEI-Eth-Trunk1.1] dot1q termination vid 100
[HUAWEI-Eth-Trunk1.1] l2 binding vsi vsi1
[HUAWEI-Eth-Trunk1.1] hub-mode enable

ignore-ac-state

Function

The ignore-ac-state command configures the VSI status not to be affected by AC status changes.

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

By default, AC status changes affect the VSI status.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

ignore-ac-state

undo ignore-ac-state

Parameters

None

Views

VSI-AUTO view, VSI-DEFAULT view, VSI-STATIC view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If the services running on a legacy network need to switch to a new network, you can configure VSIs to ignore the AC status and check whether the VSIs on the new network can work properly. A VSI can be up only if an AC interface or UPE PW is up and the PW status is up. After you configure a VSI to ignore AC interface status changes, the VSI remains up as long as one PW is up, regardless of whether the AC interface status is up or down.

The AC status has two meanings:

  • Status of the physical or logical interface bound to the VSI
  • UPE PW status in a VLL accessing VPLS scenario

To configure all VSIs on a device to ignore the AC interface status, run the vpls ignore-ac-state command.

To configure a VSI on a device to ignore the AC interface status, run the ignore-ac-state command.

Configuration Impact

After the ignore-ac-state command is configured, the VSI status will not be affected by AC status changes. A VSI can go Up even if no AC is connected to the VSI.

Follow-up Procedure

After service switching, run the undo ignore-ac-state command to restore the default configuration.

Example

# Configure the VSI status not to be affected by AC status changes.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi vsi1 static
[HUAWEI-vsi-vsi1] ignore-ac-state

interface-parameter-type vccv

Function

The interface-parameter-type vccv command restores the VCCV byte (an interface parameter) in the Mapping packet.

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

By default, a Mapping packet carries the VCCV byte.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

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 LDP VPLS is configured for a device running V800R005 or later to communicate with the devices running VRP V300R001 or branch versions, configure the undo interface-parameter-type vccv command.

Precautions

Note that the command can be configured only for the corresponding local VPLS.

Example

# When configuring LDP VPLS, delete the VCCV byte in the Mapping packet.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[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-pw1] undo interface-parameter-type vccv

interface-status-change mac-withdraw enable

Function

The interface-status-change mac-withdraw enable command configures a PE 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 a PE from sending LDP MAC Withdraw messages to all peers when the status of the AC interface bound to the VSI changes.

By default, a VSI does not send LDP MAC Withdraw messages.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

interface-status-change [ up | down ] mac-withdraw enable

undo interface-status-change [ up | down ] mac-withdraw enable

Parameters

Parameter Description Value
up

Configures a PE to send MAC Withdraw messages with the 0x404 TLV type to all peers when the bound AC interface goes Up.

After a peer receives a MAC Withdraw message with the 0x404 TLV type, it clears MAC addresses in the VSI.

-

down

Configures a PE to send MAC Withdraw messages with the 0x406 TLV type to all peers when the bound AC interface goes Down.

After a peer receives a MAC Withdraw message with the 0x406 TLV type, it clears MAC addresses learned by the VSI over a specific PW.

-

Views

VSI-AUTO view, VSI-DEFAULT view, VSI-STATIC view

Default Level

2: Configuration level

Usage Guidelines

By default, when the status of an AC interface changes, the PE does not send an LDP MAC Withdraw message to the peer. As a result, the peer cannot detect that the CE corresponding to the AC interface is unreachable, and traffic destined for the CE is lost before the MAC address in the VSI is aged out. To solve this problem, run the interface-status-change mac-withdraw enable command. Then, when the AC interface status changes, the PE sends LDP MAC Withdraw messages to all peers. After receiving the LDP MAC Withdraw messages, the peers clear MAC address information of a VSI based on the types of LDP MAC Withdraw messages:

  • If an AC interface goes down or the binding between an AC interface in the up state and a VSI is canceled, the PE sends an LDP MAC Withdraw message with the type of 406 to the peer. After the peer receives this LDP MAC Withdraw message, it clears the MAC addresses learned from the specified PW in the VSI.
  • If an AC interface goes up or an AC interface in the up state is bound to a VSI, the PE sends an LDP MAC Withdraw message with the type of 404 to the peer. After the peer receives this LDP MAC Withdraw message, it clears MAC addresses in the VSI.

Example

# Enable a 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] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi v1 static
[HUAWEI-vsi-v1] interface-status-change mac-withdraw enable

interface-status-change mac-withdraw enable (VSI-LDP view)

Function

The interface-status-change mac-withdraw enable command configures a PE 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 a PE from sending LDP MAC Withdraw messages to all peers when the status of the AC interface bound to the VSI changes.

By default, a VSI does not send LDP MAC Withdraw messages.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

interface-status-change [ up | down ] mac-withdraw enable

undo interface-status-change [ up | down ] mac-withdraw enable

Parameters

Parameter Description Value
up

Configures a PE to send MAC Withdraw messages with the 0x404 TLV type to all peers when the bound AC interface goes Up.

After a peer receives a MAC Withdraw message with the 0x404 TLV type, it clears MAC addresses in the VSI.

-

down

Configures a PE to send MAC Withdraw messages with the 0x406 TLV type to all peers when the bound AC interface goes Down.

After a peer receives a MAC Withdraw message with the 0x406 TLV type, it clears MAC addresses learned by the VSI over a specific PW.

-

Views

VSI-LDP view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

By default, when the status of an AC interface on a PE changes, the PE does not send MAC Withdraw messages to its peers. As a result, its peers are unaware of the fact that the CE connecting to that AC interface is unreachable. Subsequently, traffic bound to the CE gets lost before MAC addresses in the VSI age out. To solve this problem, run the interface-status-change mac-withdraw enable command. Then, when the AC interface status changes, the PE sends a MAC Withdraw message to all its peers. After a peer receives the MAC Withdraw message, it clears MAC addresses in the VSI based on the MAC Withdraw message type.

  • When the status of an AC interface changes from Up to Down or an AC interface in the Up state leaves a VSI, the PE sends MAC Withdraw messages with the 0x406 TLV type to its peers. Upon receipt, a peer clears the MAC addresses learned over the specified PW from the VSI.
  • When the status of an AC interface changes from Down to Up or an AC interface in the Up state joins a VSI, the PE sends MAC Withdraw messages with the 0x404 TLV type to its peers. Upon receipt, a peer clears MAC addresses in the VSI.

Precautions

This command takes effect only after the mac-withdraw enable command is also used.

Example

# Enable a 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] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[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, between UPE PWs, and between AC interfaces and UPE PWs in a VSI.

The undo isolate spoken command disables forwarding isolation between AC interfaces, between UPE PWs, and between AC interfaces and UPE PWs in a VSI.

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

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

isolate spoken

undo isolate spoken

Parameters

None

Views

VSI-AUTO view, VSI-DEFAULT view, VSI-STATIC view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If users using the same services are bound to the same VSI, you can use the isolate spoken command to prevent the users from communicating with each other. When using the

isolate spoken command, note the following:

  • For ordinary VPLS, communications between AC interfaces are prohibited.
  • For HVPLS, communications between AC interfaces, between AC interfaces and UPE PWs, and between UPE PWs are prohibited.

Prerequisites

A signaling protocol has been configured for the VSI instance.

Precautions

  • If IGMP snooping is disabled in a VSI, running the isolate spoken command isolates all packets, including unicast, broadcast, and multicast packets (IGMP multicast packets are no exception).
  • If IGMP snooping is enabled in a VSI:
  • Running the isolate spoken command isolates all packets except IGMP multicast packets, including unicast and broadcast packets.

Example

# Enable forwarding isolation between AC interfaces in LDP VPLS.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi company1
[HUAWEI-vsi-company1] pwsignal ldp
[HUAWEI-vsi-company1-ldp] vsi-id 1
[HUAWEI-vsi-company1-ldp] quit
[HUAWEI-vsi-company1] isolate spoken

l2 binding vsi

Function

The l2 binding vsi command binds a VSI to an interface.

The undo l2 binding vsi command restores the default configuration.

By default, a VSI instance is not bound to an interface.

By default, a multi-homing site is not bound to any AC interface.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

l2 binding vsi vsi-name

undo l2 binding vsi vsi-name

Parameters

Parameter Description Value
vsi vsi-name

Specifies the name of the VSI to be bound to an interface. The VSI name specified here must be consistent with that specified in the vsi vsi-name command.

The value is a string of 1 to 31 case-sensitive characters without spaces. The character string can contain spaces if it is enclosed with double quotation marks (").

Views

100ge sub-interface view, 100GE interface view, 10GE sub-interface view, 10GE interface view, 25GE sub-interface view, 25GE interface view, 400GE sub-interface view, 400GE interface view, 40GE sub-interface view, 40GE interface view, Eth-Trunk sub-interface view, Eth-Trunk interface view, GE optical interface view, GE sub-interface view, GE interface view, GE electrical interface view, VLANIF interface view,

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After creating and configuring a VSI, you must run the l2 binding vsi command on an AC interface to bind the AC interface to the VSI.

Prerequisites

A VSI has been created and configured. For example, the VSI ID and peer IP address have been configured.

Configuration Impact

After an interface is bound to a VSI, the interface can no longer be configured with Layer 3 services, such as the IP address. VPWS or L3VPN cannot be configured either.

Follow-up Procedure

After an interface is bound to a VSI, you can run the display vsi command to view whether the VSI status is Up, according to which you can find whether the PW is set up successfully for the VSI.

Precautions

The CE interfaces connected to the AC interfaces on the two ends cannot be allocated the same IP address.

VXLAN and VPLS are mutually exclusive. If VXLAN is configured on an AC interface, you cannot run the l2 binding vsi command to bind the AC interface to a VSI.

If the user-queue, qos-profile, car, or qos hard-pipe bandwidth command is run on an interface, the l2 binding vsi command cannot be used to bind the interface to a VSI with hard pipe enabled. Otherwise, an error message is displayed.

A local VSI in P2P mode does not support the use of QinQ/dot1q VLAN tag termination sub-interfaces, QinQ stacking sub-interfaces, QinQ mapping sub-interfaces, flexible sub-interfaces, or VE interfaces as AC interfaces.

VPLS multi-homing blocks data packets on the backup PE's AC interface to prevent loops. There is no need to deploy additional loop protection protocols such as STP or MAC Flapping. If STP/MAC flapping-based loop detection is deployed, the standby PE does not block Layer 2 protocol packets on its AC interface. The AC interfaces of the active and standby PEs may both be blocked, interrupting traffic.

If an Ethernet interface has sub-interfaces, the interface cannot be bound to an L2VPN service.

Example

# Bind a sub-interface to a VSI.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi company1
[HUAWEI-vsi-company1] pwsignal ldp
[HUAWEI-vsi-company1] vsi-id 1
[HUAWEI-vsi-company1] quit
[HUAWEI] interface 10GE1/0/1
[HUAWEI-10GE1/0/1] undo portswitch
[HUAWEI-10GE1/0/1] l2 binding vsi company1

local-mac remove all-but-mine

Function

The local-mac remove all-but-mine command configures a VSI to delete all the MAC address entries learned from PWs and AC interfaces, except the entries learned from the PW that sends the MAC Withdraw message with the TLV type of 0x404.

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

By default, a VSI deletes all the MAC address entries learned from PWs and AC interfaces after receiving a MAC Withdraw message with the TLV type of 0x404.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

local-mac remove all-but-mine

undo local-mac remove all-but-mine

Parameters

None

Views

VSI-AUTO view, VSI-DEFAULT view, VSI-STATIC view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

A CE is dual-homed to two PEs on a 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 the remote PE to update MAC address entries and perform a traffic switchback. In a scenario where a CE is dual-homed to a VPLS network, the primary link is CE1 --> PE2 --> PE1 --> CE2 and the backup link is CE1 --> PE3--> PE1 --> CE2. CE1 connects to CE2 over the primary and backup links. Path PE2 --> PE1 is the primary one, and path PE3 --> PE1 is the backup one. After path CE1 --> PE2 recovers, PE2 sends a MAC Withdraw message with the TLV type of 0x404 to PE1. After receiving the message, PE1 retains only the MAC address corresponding to path PE2 --> PE1 according to related standards, and deletes other MAC addresses. In this manner, downstream traffic is switched back to path PE2 --> PE1.

To provide standard processing for MAC Withdraw messages with the TLV type of 0x404, run the local-mac remove all-but-mine command. You only need to run this command on PE1.

Precautions

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

Example

# Enable a PE to remove all MAC address entries but retain MAC address entries learned from a PW over which the PE receives MAC Withdraw messages with the TLV type of 0x404.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi vsi1
[HUAWEI-vsi-vsi1] local-mac remove all-but-mine

mac-learning

Function

The mac-learning enable command enables MAC address learning.

The mac-learning disable command disables MAC address learning.

The undo mac-learning disable command enables MAC address learning.

By default, MAC address learning is enabled.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

mac-learning enable

mac-learning disable

undo mac-learning disable

Parameters

None

Views

VSI-AUTO view, VSI-DEFAULT view, VSI-STATIC view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After MAC address learning is disabled, VPLS can be simulated as VPWS. For example, if there are only two PEs and each PE is connected to only one CE, disabling MAC address learning on the PEs mitigates the MAC address learning pressure on them.

Configuration Impact

After the mac-learning disable command is run, the device can no longer automatically learn MAC addresses, causing packets to be broadcast on the network. Exercise caution when using this command.

Example

# Disable MAC address learning in the current VSI.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi company1
[HUAWEI-vsi-company1] mac-learning disable

mac-withdraw enable

Function

The mac-withdraw enable command configures a VSI to instruct all the remote peers to delete all the MAC addresses learned from this VSI when an AC or PW fault occurs and the VSI remains up.

The undo mac-withdraw enable command disables a VSI from instructing all the remote peers to delete all the MAC addresses learned from this VSI when an AC or PW fault occurs and the VSI remains up.

By default, MAC Withdraw is disabled.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

mac-withdraw enable

undo mac-withdraw enable

Parameters

None

Views

VSI-AUTO view, VSI-DEFAULT view, VSI-STATIC view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

On an LDP VPLS network, VSIs depend on MAC address entries to transmit traffic. If the AC or PW status changes, VSIs need to update the MAC entries immediately to reduce the traffic loss. The mac-withdraw enable command enables a PE to send a MAC Withdraw message to all its remote peers to inform them of the AC or PW status change (if any). After the peers receive the message, they remove the MAC address entries in their VSIs based on the message.

Configuration Impact

After MAC Withdraw is enabled, the MAC addresses learned from the remote end may be deleted from the local end when the AC or PW goes up or down and packet broadcasting may occur.

Example

# Configure the VSI named v100 to send MAC Withdraw messages to instruct all the remote peers to delete the learned MAC addresses when an AC fault or a UPE fault occurs and the VSI remains Up.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi v100
[HUAWEI-vsi-v100] mac-withdraw enable

mac-withdraw enable (VSI-LDP view)

Function

The mac-withdraw enable command configures a VSI to instruct all the remote peers to delete all the MAC addresses learned from this VSI when an AC or PW fault occurs and the VSI remains up.

The undo mac-withdraw enable command disables a VSI from instructing all the remote peers to delete all the MAC addresses learned from this VSI when an AC or PW fault occurs and the VSI remains up.

By default, MAC Withdraw is disabled.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

mac-withdraw enable

undo mac-withdraw enable

Parameters

None

Views

VSI-LDP view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

On an LDP VPLS network, VSIs depend on MAC address entries to transmit traffic. If the AC or PW status changes, VSIs need to update the MAC entries immediately to reduce the traffic loss. The mac-withdraw enable command enables a PE to send a MAC Withdraw message to all its remote peers to inform them of the AC or PW status change (if any). After the peers receive the message, they remove the MAC address entries in their VSIs based on the message.

Configuration Impact

After MAC Withdraw is enabled, the MAC addresses learned from the remote end may be deleted from the local end when the AC or PW goes up or down and packet broadcasting may occur.

Example

# Configure the VSI named v100 to send MAC Withdraw messages to instruct all the remote peers to delete the learned MAC addresses when an AC fault or a UPE fault occurs and the VSI remains Up.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi v100
[HUAWEI-vsi-v100] pwsignal ldp
[HUAWEI-vsi-v100-ldp] vsi-id 100
[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 its peers.

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

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

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

mac-withdraw propagate enable

undo mac-withdraw propagate enable

Parameters

None

Views

VSI-AUTO view, VSI-DEFAULT view, VSI-STATIC 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. To enable a PE to forward a received MAC Withdraw message to its peers, run the mac-withdraw propagate enable command.

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 rule:
  • 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.
  • The mac-withdraw propagate enable command applies to MAC Withdraw messages carrying either the FEC 128 TLV or the FEC 129 TLV. The upe-upe mac-withdraw enable, upe-npe mac-withdraw enable, and npe-upe mac-withdraw enable commands apply only to MAC Withdraw messages carrying the FEC 128 TLV. The mac-withdraw propagate enable command cannot be used with the upe-upe mac-withdraw enable, upe-npe mac-withdraw enable, or npe-upe mac-withdraw enable command in the same VSI.

Example

# Configure vsi100 on a PE to forward a received MAC Withdraw message to its peers.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi vsi100
[HUAWEI-vsi-vsi100] mac-withdraw propagate enable

mpls l2vpn default vlan

Function

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

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

By default, no default VLAN is configured for a main interface.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

mpls l2vpn default vlan vlanId

undo mpls l2vpn default vlan [ vlanId ]

Parameters

Parameter Description Value
vlanId

Specifies the default VLAN ID for a main interface.

The value is an integer ranging from 1 to 4094.

Views

100GE interface view, 10GE interface view, 25GE interface view, 400GE interface view, 40GE interface view, Eth-Trunk interface view, GE optical interface view, GE interface view, GE electrical interface view, Multi-GE 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 for a main interface:

  • The VPWS or VSI using VLAN encapsulation is configured on the endpoint PEs.
  • The remote PE accepts only tagged packets.
  • The local PE uses the main interface as the AC interface to connect to the PC. In this scenario, the PC sends and receives only untagged packets. After the default 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 PC. A VLAN tag is encapsulated into each user packet and transparently transmitted to the remote PE.
  • The local PE removes VLAN tags from packets sent by the remote PE and forwards these packets to the PC through an AC interface.

Precautions

Before binding a main interface to the VPWS or VSI, you need to run the mpls l2vpn default vlan command to specify the default VLAN for the main interface.

After a main interface is bound to a VSI, the mpls l2vpn default vlan command configuration cannot be modified. To modify the configuration, you must unbind the main interface from the VSI first. This operation will interrupt VPLS services on the main interface. Exercise caution when performing this operation.

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

If the main interface of a switch is used as the AC-side interface of a PE, you need to run the undo portswitch command to switch the Layer 2 interface to a Layer 3 interface before running the mpls l2vpn default vlan command.

This command and the mpls l2vpn vlan-stacking stack-vlan command are mutually exclusive.

Example

# Configure a default VLAN for a main interface.
<HUAWEI> system-view
[HUAWEI] interface 10GE1/0/2
[HUAWEI-10GE1/0/2] undo portswitch
[HUAWEI-10GEt1/0/2] mpls l2vpn default vlan 100

mpls l2vpn vlan-stacking

Function

The mpls l2vpn vlan-stacking command configures a main interface to add a stack VLAN tag to packets passing through the interface.

The undo mpls l2vpn vlan-stacking command disables a main interface from adding a stack VLAN tag to packets.

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

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

mpls l2vpn vlan-stacking stack-vlan vlanId

undo mpls l2vpn vlan-stacking stack-vlan [ vlanId ]

Parameters

Parameter Description Value
stack-vlan vlanId

Specifies the outer stack VLAN ID.

The value is an integer ranging from 1 to 4094.

Views

100GE interface view, 10GE interface view, 25GE interface view, 400GE interface view, 40GE interface view, Eth-Trunk interface view, GE optical interface view, GE interface view, GE electrical interface view, Multi-GE 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 stack VLAN for a main interface:

  • The VPWS or VSI using VLAN encapsulation is configured on the endpoint PEs.
  • The remote PE accepts packets with the stack VLAN tag.
  • The local PE uses the main interface as the AC interface to connect to the PC.

    In this scenario, the PC sends and receives all packets. After a stack 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 PC. A VLAN tag is encapsulated into each user packet and transparently transmitted to the remote PE.
    • The local PE removes outermost VLAN tags from packets sent by the remote PE and forwards these packets to the PC through an AC interface.

Precautions

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

After a main interface is bound to a VSI, the mpls l2vpn vlan-stacking stack-vlan command configuration cannot be modified. To modify the configuration, you must unbind the main interface from the VSI first. This operation will interrupt VPLS services on the main interface. Exercise caution when performing this operation.

When a main interface is used as an AC interface, run the undo portswitch command to switch the Layer 2 interface to a Layer 3 interface.

This command and the mpls l2vpn default vlan command are mutually exclusive.

Example

# Configure a stack VLAN for a main interface, so that the interface can add a stack VLAN tag to packets before forwarding them.
<HUAWEI> system-view
[HUAWEI] interface 10GE1/0/2
[HUAWEI-10GE1/0/2] undo portswitch
[HUAWEI-10GE1/0/2] mpls l2vpn vlan-stacking stack-vlan 80

mtu-negotiate disable

Function

The mtu-negotiate disable command disables the MTU check for a VSI.

The undo mtu-negotiate disable command restores the default configuration.

By default, the MTU check is enabled for a VSI.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

mtu-negotiate disable

undo mtu-negotiate disable

Parameters

None

Views

VSI-BGP view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The default MTU is 1500 bytes for a VSI. On a BGP VPLS network, two PEs cannot establish a PW if their VSI MTUs are different. To prevent this problem, use either of the following methods: - Run the mtu command to set the MTU of the VSI. Ensure that the MTUs at both ends of the VC are the same. - Run the mtu-negotiate disable command to disable the VSI MTU check.

Prerequisites

The VSI-BGP view has been displayed using the pwsignal bgp command.

Configuration Impact

After the mtu-negotiate disable command is run on a PE, the PE does not perform any MTU check on VPLS packets received from the same VSI. If other conditions for establishing a PW are met, the PW goes up.

Example

# Disable the MTU check for VSI vsi1.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi vsi1 auto
[HUAWEI-vsi-vsi1] pwsignal bgp
[HUAWEI-vsi-vsi1-bgp] route-distinguisher 100:1
[HUAWEI-vsi-vsi1-bgp] mtu-negotiate disable

npe-upe mac-withdraw enable

Function

The npe-upe mac-withdraw enable command enables a superstratum provider edge (SPE) to forward the LDP MAC Withdraw messages received from network provider edges (NPEs) to underlayer provider edges (UPEs).

The undo npe-upe mac-withdraw enable command disables an SPE from forwarding the LDP MAC Withdraw messages received from NPEs to UPEs.

By default, an SPE does not forward the LDP MAC Withdraw messages received from other NPEs to UPEs.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

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

This command is mainly used on the gateway on the Metro Ethernet where:

  • NPE 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 NPE.
  • 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

# Configure an NPE to forward the LDP MAC Withdraw messages received from other NPEs to UPEs.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi v1 static
[HUAWEI-vsi-v1] pwsignal ldp
[HUAWEI-vsi-v1-ldp] npe-upe mac-withdraw enable

peer

Function

The peer command configures a static UPE peer in an H-VPLS VSI.

The undo peer command deletes a static UPE peer from an H-VPLS VSI.

By default, no static UPE peer is configured in an H-VPLS VSI.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

peer peer-address [ negotiation-vc-id pwIdValue ] [ tnl-policy policy-name ] { static-npe | static-upe } trans transmit-label recv receive-label

undo peer peer-address [ negotiation-vc-id pwIdValue ] [ tnl-policy policy-name ] { static-npe | static-upe } trans transmit-label recv receive-label

Parameters

Parameter Description Value
peer-address

Specifies the IPv4 address of a static peer. The loopback address of the peer is usually used as its IPv4 address.

The value is in dotted decimal notation.

negotiation-vc-id pwIdValue

Specifies the unique VC ID. This parameter is used when two ends with different VSI IDs need to communicate with each other.

The vc-id value must be different from the IDs of other local VSIs. The VC IDs specified using negotiate-vc-id must be different on a peer.

The value is an integer ranging from 1 to 4294967295.

tnl-policy policy-name

Specifies the name of the tunnel policy used by the static remote peer.

The value is a string of 1 to 39 case-sensitive characters, spaces not supported. If the string is enclosed in quotation marks, the string can contain spaces.

static-npe

Indicates a static NPE peer.

-

static-upe

Indicates a static UPE peer.

-

trans transmit-label

Specifies the value of the inner label sent from the local device to the peer, that is, the outgoing label of the static Layer 2 VC.

The value is an integer ranging from 0 to 1048575.

recv receive-label

Specifies the value of the inner label sent from the peer to the local device, that is, the incoming label of the static Layer 2 VC.

The value is an integer ranging from 16 to 65551.

Views

VSI-LDP view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If devices are unable to support large numbers of LDP sessions or you want to manually manage and allocate VC labels, run the peer static-upe command to configure static VPLS PWs. When VPLS PWs are created using manually configured VC labels, Layer 2 VC or link information does not need to be transmitted using LDP.

Prerequisites

The VSI ID has been configured using the vsi-id vsi-id command.

Precautions

If you specify negotiation-vc-id vc-id during the configuration of a static VPLS PW and the specified vc-id value is different from the vsi-id value configured using the vsi-id command, you must specify negotiation-vc-id vc-id when using the undo peer command to delete a VPLS PW from the VSI.

Example

# Configure a static UPE peer for VSI vsi1 and set the values of the sent and received inner labels to 200.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi vsi1
[HUAWEI-vsi-vsi1] pwsignal ldp
[HUAWEI-vsi-vsi1-ldp] vsi-id 1
[HUAWEI-vsi-vsi1-ldp] peer 3.3.3.3 static-upe trans 200 recv 200
# Configure a static NPE peer for VSI company1 and set the values of the sent and received inner labels to 100.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[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 (VSI-LDP view)

Function

The peer command specifies a peer for a VSI.

The undo peer command deletes the peer specified for a VSI.

By default, no peer is specified for a VSI.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

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 ] [ tnl-policy policy-name ] [ upe ] [ ignore-standby-state ]

Parameters

Parameter Description Value
peer-address

Specifies the IPv4 address of a peer, which is usually the loopback address of the peer. The value must be the same as the destination IP address of the tunnel.

The value is in dotted decimal notation.

negotiation-vc-id vc-id

Specifies the circuit number of a VC. The circuit number uniquely identifies a VC. It is used when two ends with different VSI IDs need to communicate with each other.

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

vc-id cannot be the same as any other local VSI IDs or any other VSI IDs specified by negotiate-vc-id on the local end. That is, vc-id must be an unused one.

If negotiate-vc-id is configured on the local end, negotiate-vc-id or vsi-id configured on the peer end must be the same as negotiate-vc-id configured on the local end.

tnl-policy policy-name

Specifies the tunnel policy name of the peer. The tunnel policy name must be the same as that specified in the tunnel-policy command run in the system view.

The value is a string of 1 to 39 case-sensitive characters, spaces not supported. By default, LDP LSPs are used.

upe

Specifies whether the peer is a client PE. This parameter applies to Hierarchical Virtual Private LAN Service (HVPLS). This parameter is used to specify a UPE peer on an SPE.

-

ignore-standby-state

Configures the created PW to ignore the standby state notified by the remote end.

-

Views

VSI-LDP view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

  • For the VSI that adopts the static member discovery mechanism, you need to manually specify the peer address for the VSI.
  • In HVPLS networking, you need to configure spoke PWs. You can configure the upe keyword in the peer command to create a UPE peer. If the specified peer is a UPE, the peer is on the user side, which does not comply with split horizon.

    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 rule.
  • In VPWS accessing VPLS networking, you can adopt one of the following configurations to create a PW:
  • Configure the VSI ID to be the same as the VC ID of the peer
  • Set negotiation-vc-id to be the same as the VC ID of the peer VPWS PW.

    If the specified negotiation-vc-id value is different from vsi-id configured using the vsi-id command, you still need to specify negotiation-vc-id when running the undo peer command to delete the peer of the VSI. Otherwise, the peer of the VSI cannot be deleted.
  • On a network where PW redundancy is configured, if the primary PW fails, traffic is switched to the secondary PW. If the secondary PW is in the standby state, service traffic cannot be forwarded, resulting in packet loss. If the ignore-standby-state parameter is configured for the PW on dual-homing PEs, the PW will ignore the standby state sent from the peer and stays in the forwarding state. This configuration can prevent packet loss during a primary/secondary PW switchover.
  • A secondary PW can be created to protect the primary PW. When the primary PW fails, traffic can be immediately switched to the secondary PW, preventing traffic interruption.

    Note the following when you specify the secondary PW:
  • The primary PW of the same VSI must exist and be unique, and the primary PW is not configured on a static UPE.
  • After secondary is configured in the peer command, the number of PWs that can be configured for the VSI is restricted. If the secondary PW is configured for a VSI, that VSI can have only two PWs, the primary PW and the secondary PW.
  • To change the primary or secondary attribute of a PW, you need to delete the PW and then reconfigure it. In addition, the primary/secondary attribute specified in the undo peer command must be consistent with the attribute configured for the PW. Before deleting the primary PW, delete the secondary PW of the same VSI first (if there is any).
  • On a PBB VPLS network where PW redundancy is configured, multiple I-VSIs are bound to a B-VSI, and ignore-standby-state is not used during PW configuration, the primary/secondary PW switchover relies on protocol convergence when the primary PW fails.
  • In the scenario where a PW interworks with an EVPN anycast VTEP in active-active mode, as shown in Figure 6 Splicing active/standby PWs with an EVPN anycast VXLAN in Feature Description, PE2 and PE3 are dual-homed to PE1 over a VPLS network, PE2 and PE3 work in active/standby mode. Assume that PW1 is the active PW and PW2 is the standby PW. PE4 is dual-homed to PE2 and PE3, which work in active-active mode. PE2 and PE3 use a virtual anycast VTEP address to establish an anycast VXLAN tunnel with PE4. A bypass VXLAN tunnel is established between PE2 and PE3 to forward traffic in case of a link fault.

    The bypass VXLAN tunnel works in hub PW mode, whereas the anycast VXLAN tunnel works in spoke PW mode. PW1 and PW2 are common VPLS PWs, and they are hub PWs by default. In this case, PW1 does not process traffic forwarded by the bypass VXLAN tunnel. If PW1 is configured to work in spoke PW mode using the peer upe command, PW1 does not process traffic forwarded through the anycast VXLAN tunnel. To enable PW1 to process traffic sent by both the anycast VXLAN tunnel and bypass VXLAN tunnel, run the peer ac-mode command to set PW1 to the AC mode.

Prerequisites

  • LDP sessions have been set up between all the PEs to fully mesh PEs on a VPLS network through PWs.
  • The VSI ID has been set in the VSI-LDP view.
  • The peer [ negotiation-vc-id ] pw command can be used to create the PW view only after the peer [ negotiation-vc-id ] [ tnl-policy ] command has been run to specify the IP address of the peer.

Configuration Impact

  • Specifying the peer address means manually specifying the members in a VPLS domain.
  • The execution of the undo peer command will interrupt traffic of the peer. Exercise caution when using this command.

Precautions

A VPLS network is a point-to-multipoint L2VPN and therefore multiple peers can be specified for one VSI.

Example

# Configure the peer for the current VSI, with both the PW ID and the VSI ID as 100.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi company1
[HUAWEI-vsi-company1] pwsignal ldp
[HUAWEI-vsi-company1-ldp] vsi-id 100
[HUAWEI-vsi-company1-ldp] peer 3.3.3.3
# Configure the peer for the current VSI, with the PW ID as 10 and the VSI ID as 100.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi company1
[HUAWEI-vsi-company1] pwsignal ldp
[HUAWEI-vsi-company1-ldp] vsi-id 100
[HUAWEI-vsi-company1-ldp] peer 3.3.3.3 negotiation-vc-id 10

peer preference

Function

The peer preference command adds a specified PW to a PW protection group and specifies the priority of the PW.

The undo peer command deletes a specified PW from a PW protection group.

By default, no PW is added to a PW protection group.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

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.

The value is in dotted decimal notation.

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 but the two ends are required to communicate.

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

vc-id cannot be the same as any other local VSI IDs or any other VSI IDs specified by negotiate-vc-id on the local end. That is, vc-id must be an unused one.

If negotiate-vc-id is configured on the local end, negotiate-vc-id or vsi-id configured on the peer end must be the same as negotiate-vc-id configured on the local end.

preference-value

Specifies the priority of a peer specified when the peer is added to a PW protection group. The smaller the value, the higher the priority. Between the two peers added to a PW protection group, the one with the higher priority serves as the primary PW.

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

Views

Protection group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After creating a PW protection group and specifying the protection mode for the group, you can add specified PWs to the group for them to work in backup mode.

Master/Slave mode: specifies the priority of a peer when the peer is added to a PW protection group. A smaller value indicates a higher priority, and the PW for the peer with the highest priority becomes the primary PW.

Independent mode: determines the PW priority through signaling negotiation.

1. If the two local PWs are in different states (one is up and the other is down), the PW in the up state is preferentially selected as the primary PW.

2. If the remote device does not notify the PW role, the primary and secondary PWs are selected based on the priority configuration.

3. If the remote device notifies the primary role of a PW, the PW is preferentially selected as the primary PW. If the remote device notifies the secondary role of a PW, the PW is preferentially selected as the secondary PW.

Prerequisites

A PW protection group has been created, and the protection mode has been specified.

Configuration Impact

Master/Slave mode: If you first add a PW with a lower priority to a PW protection group, a PW switchover will occur when you later add the other PW with a higher priority to the group.

Independent mode: If the remote device does not notify the PW role, the primary and secondary PWs are selected based on the priority configuration. If you first add a PW with a lower priority to a PW protection group, a PW switchover will occur when you later add the other PW with a higher priority to the group.

Precautions

Add PWs to a PW protection group in descending order of PW priorities. Do not add the PW with a lower priority to the PW protection group first.

Example

# Add a specified PW to a PW protection group and set the priority of the PW to 1.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi vsi1
[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] protect-group group1
[HUAWEI-vsi-vsi1-ldp-protect-group-group1] protect-mode pw-redundancy master
[HUAWEI-vsi-vsi1-ldp-protect-group-group1] peer 2.2.2.2 preference 1

peer pw (VSI-LDP view)

Function

The peer pw command specifies a peer for a VSI.

The undo peer pw command deletes the peer specified for a VSI.

By default, no peer is specified for a VSI.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

peer peer-address pw pw-name

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-address

Specifies the IPv4 address of a peer. Generally, peer-address is a loopback address of the peer and does not need to be consistent with the destination address of the tunnel.

The address is in dotted decimal notation

pw pw-name

Specifies the name of a PW, which is used to distinguish the PW from other PWs. The PW name must be unique in a VSI, but can be the same as a PW name 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.

negotiation-vc-id vc-id

Specifies the circuit number of a VC. The circuit number uniquely identifies a VC. It is used when two ends with different VSI IDs need to communicate with each other.

The value is an integer ranging from 1 to 4294967295.

pwIdValue cannot be the same as any other local VSI IDs or any other VSI IDs specified by negotiate-vc-id on the local end. That is, pwIdValue must be an unused one.

If negotiate-vc-id is configured on the local end, negotiate-vc-id or vsi-id configured on the peer end must be the same as negotiate-vc-id configured on the local end.

Views

VSI-LDP view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

  • For the VSI that adopts the static member discovery mechanism, you need to manually specify the peer address for the VSI.
  • 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.

    In a split horizon scenario, the data packets received from the PW at the PSN side are not forwarded to other PWs. Instead, they are forwarded to the private network. On a VPLS network, full mesh and split horizon are used to prevent loops. HVPLS partitions the network, and the devices of different levels forward data to each other without complying with the split horizon principle.
  • To configure a VPWS accessing VPLS network, you can adopt one of the following configurations to create a PW:
    • Configuring the VSI ID to be the same as the VC ID of the peer
    • Configuring the value of negotiation-vc-id vc-id to be the same as the VC ID of the peer

      If the value of negotiation-vc-id vc-id is different from the value of vsi-id specified in the vsi-id command, you have to configure negotiation-vc-id vc-id when running the undo peer command to delete the VSI peer. Otherwise, the VSI peer cannot be deleted.
  • On a network where PW redundancy is configured, when the primary PW fails, traffic is switched to the secondary PW. If the secondary PW is in the backup state, traffic cannot be forwarded, resulting in packet loss. If ignore-standby-state is configured for the PWs on the dual-homed PEs, the secondary PW will ignore the secondary state indicated by the peer and be always in the forwarding state, preventing packet loss during a primary/secondary PW switchover.
  • On a PBB VPLS network where PW redundancy is configured, multiple I-VSIs are bound to a B-VSI, and ignore-standby-state is not used during PW configuration, the primary/secondary PW switchover relies on protocol convergence when the primary PW fails.
  • The secondary PW can be created to protect the primary PW. When the primary PW fails, traffic can be immediately switched to the secondary PW, preventing traffic interruption.

    Note the following when you specify the secondary PW:
    • The primary PW of the same VSI must exist and be unique, and the primary PW is not configured on a static U-PE.
    • After secondary is configured in the peer command, the number of PWs that can be configured for the VSI is restricted. If the secondary PW is configured for a VSI, that VSI can have only two PWs, the primary PW and the secondary PW.
    • To change the primary or secondary state of a PW, you need to delete the PW and then reconfigure it. In addition, the state parameter specified in the undo peer command must be consistent with the configured state of the PW.
    • Before deleting the primary PW, delete the secondary PW of the same VSI.
  • In a network on which PWs and an EVPN anycast VTEP interwork and the interworking points (PE2 and PE3) work in active-active mode, PE1 is dual-homed to PE2 and PE3 through a VPLS network. PE2 and PE3 work in master/backup mode, and assume that PW1 is the primary PW and PW2 is the secondary PW. PE2 and PE3 work in active-active mode when PE4 is dual-homed to them. PE2 and PE3 use a virtual anycast VTEP address to establish an anycast VXLAN tunnel with PE4. A bypass VXLAN tunnel is established between PE2 and PE3 to forward traffic in case of a link fault.

    The bypass VXLAN tunnel works in Hub PW mode, whereas the anycast VXLAN tunnel works in Spoke PW mode. PW1 and PW2 are common VPLS PWs, and they are Hub PWs by default. In this case, PW1 does not process traffic forwarded by the bypass VXLAN tunnel. If PW1 is configured as a Spoke PW using the peer peer-address upe command, PW1 does not process traffic forwarded by the anycast VXLAN tunnel. To enable PW1 to process traffic sent by both anycast VXLAN tunnel and bypass VXLAN tunnel, run the peer peer-address ac-mode command to set PW1 to AC mode.

Prerequisites

  • LDP sessions have been set up between all the PEs to fully mesh PEs on a VPLS network through PWs.
  • The VSI ID has been set in the VSI-LDP view.
  • The peer peer-address [ negotiation-vc-id vc-id ] pw pw-name command can be used to create the PW view only after the peer peer-address [ negotiation-vc-id vc-id ] [ tnl-policy policy-name ] command has been run to specify the IP address of the peer.

Configuration Impact

  • Specifying the peer address means manually specifying the members in a VPLS domain.
  • The execution of the undo peer command will interrupt traffic of the peer. Exercise caution when using this command.

Precautions

A VPLS network is a point-to-multipoint L2VPN and therefore multiple peers can be specified for one VSI.

Example

# Configure the peer for the current VSI, with the PW ID as 10 and the VSI ID as 100.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi company1
[HUAWEI-vsi-company1] pwsignal ldp
[HUAWEI-vsi-company1-ldp] vsi-id 100
[HUAWEI-vsi-company1-ldp] peer 3.3.3.3 negotiation-vc-id 10
[HUAWEI-vsi-company1-ldp] peer 3.3.3.3 negotiation-vc-id 10 pw pw1
# Configure the peer for the current VSI, with both the PW ID and the VSI ID as 100.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi company1
[HUAWEI-vsi-company1] pwsignal ldp
[HUAWEI-vsi-company1-ldp] vsi-id 100
[HUAWEI-vsi-company1-ldp] peer 3.3.3.3
[HUAWEI-vsi-company1-ldp] peer 3.3.3.3 pw pw1

peer track admin-vrrp vrid(VSI-LDP view)

Function

The peer track admin-vrrp vrid command binds a service PW in a service VSI to an mVRRP group.

The undo peer track admin-vrrp vrid command unbinds a service PW in a service VSI from an mVRRP group.

By default, no service PW in a service VSI is bound to an mVRRP group.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

peer peer-address [ negotiation-vc-id vc-id ] track admin-vrrp interface { interface-name | interface-type interface-number } vrid virtual-router-id pw-redundancy backup-block-all

undo peer peer-address [ negotiation-vc-id vc-id ] track admin-vrrp [ interface { interface-name | interface-type interface-number } vrid virtual-router-id pw-redundancy backup-block-all ]

Parameters

Parameter Description Value
peer-address

Specifies the IP address of a peer.

The value is in dotted decimal notation.

negotiation-vc-id vc-id

Specifies a VC ID. A VC ID is used when two ends that have different VSI IDs need to communicate.

  • negotiation-vc-id must be different from local VSI IDs or VSI IDs specified locally using the negotiate-vc-id command. Specifically, the specified negotiation-vc-id must be an unused one.
  • The local negotiation-vc-id must be the same as the peer negotiation-vc-id or VSI ID.

The value is an integer ranging from 1 to 4294967295.

interface interface-name

Specifies the name of an interface.

-

interface-type

Specifies the type of an interface.

-

interface-number

Specifies the number of an interface.

-

virtual-router-id

Specifies the ID of an mVRRP group.

The value is an integer ranging from 1 to 255.

pw-redundancy

Indicates a VPLS PW redundancy scenario.

If pw-redundancy is configured, the PW redundancy mechanism determines the active/standby status of a PW based on the master/backup status of the corresponding remote PE in the mVRRP group.

-

backup-block-all

Blocks multicast PW traffic forwarding.

-

Views

VSI-LDP view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In a VLL accessing VPLS+VXLAN scenario where independent PW redundancy is configured, the PW redundancy mechanism determines the active/standby status of PWs based on the master/backup status of the remote PEs in the mVRRP group.

  • The initial status of each PW between the local and remote PEs is active.
  • The mVRRP group determines the master/backup status of the two remote PEs.

After the peer track admin-vrrp vrid command is configured, the PW redundancy mechanism determines the active/standby status of a PW based on the master/backup status of the corresponding remote PE in the mVRRP group.

Precautions

Only a BD VSI allows service PWs to be bound to an mVRRP group.

Example

# Bind a service PW with VC ID 100 to an mVRRP group with VRRP ID 100 and virtual IP address 192.168.10.100.
<HUAWEI> system-view
[HUAWEI] interface 10GE1/0/1
[HUAWEI-10GE1/0/1] undo portswitch
[HUAWEI-10GE1/0/1] ip address 192.168.10.1 24
[HUAWEI-10GE1/0/1] vrrp vrid 100 virtual-ip 192.168.10.100
[HUAWEI-10GE1/0/1] vrrp vrid 100 admin
[HUAWEI-10GE1/0/1] quit
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi v100
[HUAWEI-v100] pwsignal ldp
[HUAWEI-v100-ldp] vsi-id 100
[HUAWEI-v100-ldp] peer 2.2.2.2
[HUAWEI-v100-ldp] peer 2.2.2.2 negotiation-vc-id 100 track admin-vrrp interface 10GE1/0/1 vrid 100 pw-redundancy backup-block-all

protect-group

Function

The protect-group command creates a PW protection group or directly displays the PW protection group view if the PW protection group already exists.

The undo protect-group command deletes a specified PW protection group.

By default, no PW protection group is created in a VSI.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

protect-group group-name

undo protect-group group-name

Parameters

Parameter Description Value
group-name

Specifies the name of a PW protection group.

The value is a string of 1 to 15 case-sensitive characters, spaces and hyphens (-) not supported.

The string can contain spaces if it is enclosed in double quotation marks (").

Views

VSI-LDP view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Multiple PWs can be created in a VSI, every two PWs can form a protection group to protect each other.

You can create multiple PW protection groups for a VSI. After you add two PWs to a PW protection group, the two PWs will work in backup mode.

Prerequisites

The VSI ID has been configured.

Follow-up Procedure

After creating PW protection groups, configure the PW redundancy mode of each PW protection group, add PWs to these groups, and configure revertive switching policies for these groups.

Example

# Create a PW protection group named group1.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi vsi1
[HUAWEI-vsi-vsi1] pwsignal ldp
[HUAWEI-vsi-vsi1-ldp] vsi-id 100
[HUAWEI-vsi-vsi1-ldp] protect-group group1

protect-mode pw-redundancy

Function

The protect-mode pw-redundancy command specifies the PW redundancy mode for a PW protection group.

The undo protect-mode command deletes the PW redundancy mode of a PW protection group.

By default, a PW protection group does not have a PW redundancy mode.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

protect-mode pw-redundancy { master | independent }

undo protect-mode

Parameters

Parameter Description Value
master

Specifies the PW redundancy mode of a PW protection group as master/slave.

-

independent

Specifies the PW redundancy mode of a PW protection group as independent.

-

Views

Protection group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

A PW protection group protects PWs in pairs in a VSI. After the PW protection group is configured, you must specify the protection mode. Currently, only PW redundancy is supported. PW redundancy has two modes: master/slave and independent. The PW redundancy mode must be specified when PW redundancy is used:

  • In master/slave mode, a UPE determines the active/standby status of PWs. This mode applies to scenarios in which the PW status cannot be determined by remote signaling, such as HVPLS scenarios and VPLS accessing VPWS scenarios. In these scenarios, a bypass PW must also be configured.
  • In independent mode, the PW status is determined by the remote signaling. This mode applies to VPLS accessing VLL scenarios in which a CE is dual-homed to two PEs between which E-Trunk/mVRRP is configured.

Prerequisites

The VSI ID and PW protection group have been configured.

Configuration Impact

If the PW redundancy mode of a PW protection group is master/slave, the local UPE determines the active/standby status of PWs based on local configurations.

Follow-up Procedure

Configure a revertive switching policy for the PW protection group and add PWs to the group.

Precautions

After a PW protection group is configured, you must specify the PW redundancy mode before configuring other parameters. Deleting the PW redundancy mode of a PW protection group will clear all the configurations of the group.

Example

# Configure the PW redundancy mode of a PW protection group as master/slave.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi vsi1
[HUAWEI-vsi-vsi1] pwsignal ldp
[HUAWEI-vsi-vsi1-ldp] vsi-id 100
[HUAWEI-vsi-vsi1-ldp] protect-group group1
[HUAWEI-vsi-vsi1-ldp-protect-group-group1] protect-mode pw-redundancy master

protect-switch (Protection group view)

Function

The protect-switch manual command forcibly performs an active/standby PW switching in a PW protection group.

The protect-switch clear command restores the default configuration of a PW protection group.

The protect-switch manual command and its undo form do not have default configurations.

By default, protect-switch manual command and its undo form do not have default configurations.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

protect-switch { clear | manual }

Parameters

Parameter Description Value
clear

Restores the default configuration.

-

manual

Forcibly performs an active/standby PW switching.

-

Views

Protection group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If you want to maintain the device where the primary PW in a PW protection group resides, you must run the protect-switch manual command to switch traffic from the primary PW to the secondary PW first. After the device where the primary PW resides stabilizes, run the protect-switch clear command to switch traffic back from the secondary PW to the primary PW.

Prerequisites

A PW protection group has been created, and the PW redundancy mode has been configured as master/slave. The primary and secondary PWs have been added to the PW protection group and their status is Up.

Configuration Impact

After you run the protect-switch manual command, traffic switches from the primary PW to the secondary PW. After you run the protect-switch clear command, traffic switches from the secondary PW to the primary PW.

Precautions

The interval between running the protect-switch manual and protect-switch clear commands must be longer than 15s.

Example

# Forcibly perform an active/standby PW switching in a PW protection group.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi vsi1
[HUAWEI-vsi-vsi1] pwsignal ldp
[HUAWEI-vsi-vsi1-ldp] vsi-id 100
[HUAWEI-vsi-vsi1-ldp] protect-group group1
[HUAWEI-vsi-vsi1-ldp-protect-group-group1] protect-switch manual

pw (VSI-LDP view)

Function

The pw command displays the PW view.

The undo pw command deletes the PW view.

By default, the PW view is not displayed.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

pw pw-name

undo pw pw-name

Parameters

Parameter Description Value
pw pw-name

Specifies the name of a PW.

The value is a string of 1 to 15 case-sensitive characters, spaces not supported.

The string can contain spaces if it is enclosed in double quotation marks (").

Views

VSI-LDP view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To enter the PW view, run the pw command.

Prerequisites

A PW view has been created using the peer peer-address [ negotiation-vc-id vc-id ] pw pw-name command.

Precautions

The PW name must be unique in a VSI, but can be the same as a PW name in other VSIs.

Example

# Display the PW view.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi aa static
[HUAWEI-vsi-aa] pwsignal ldp
[HUAWEI-vsi-aa-ldp] vsi-id 1
[HUAWEI-vsi-aa-ldp] peer 1.1.1.1
[HUAWEI-vsi-aa-ldp] peer 1.1.1.1 pw pw1
[HUAWEI-vsi-aa-ldp-pw-pw1] quit
[HUAWEI-vsi-aa-ldp] pw pw1

pw spoke-mode

Function

The pw spoke-mode command configures the PWs of a BGP AD VSI as spoke PWs.

The undo pw spoke-mode command restores the default configuration.

By default, the PWs of a BGP AD VSI are hub PWs.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

pw spoke-mode

undo pw spoke-mode

Parameters

None

Views

VSI-BGPAD view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If a BGP AD VPLS needs to be deployed on a network with a star or tree topology (on which one PE that serves as a server or an authorization device is configured as the Hub-PE, and other PEs are configured as Spoke-PEs) the PWs of the VSI on the Hub-PE must be configured as spoke PWs using the pw spoke-mode command to disable split horizon of the PWs.

Prerequisites

The vpls-id command has been run in the VSI-BGPAD view to specify a VPLS ID.

Configuration Impact

After the pw spoke-mode command is run, all PWs of the specified VSI become spoke PWs. Split horizon does not function on spoke PWs. This means that packets sent from spoke PWs can be forwarded to other PWs. If the undo pw spoke-mode command is run, all PWs of the VSI will be changed to hub PWs that abide by split horizon rules.

Precautions

The pw spoke-mode command takes effect on all the PWs of a BGP AD VSI.

Example

# Create a BGP AD VSI named company1 and configure all the PWs of the VSI as spoke PWs.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi company1
[HUAWEI-vsi-company1] bgp-ad
[HUAWEI-vsi-company1-bgpad] vpls-id 65535:1
[HUAWEI-vsi-company1-bgpad] pw spoke-mode

pw-redundancy mac-withdraw rfc-compatible

Function

The pw-redundancy mac-withdraw rfc-compatible command instructs peer PEs to clear MAC addresses for the PWs whose primary/secondary status has been changed in a PW redundancy scenario.

The undo pw-redundancy mac-withdraw rfc-compatible command restores the default configuration.

By default, if the primary/secondary PW status changes in a PW redundancy scenario, the peer PEs are not instructed to clear MAC addresses of the changed PWs.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

pw-redundancy mac-withdraw rfc-compatible

undo pw-redundancy mac-withdraw rfc-compatible

Parameters

None

Views

VSI-AUTO view, VSI-DEFAULT view, VSI-STATIC view

Default Level

2: Configuration level

Usage Guidelines

In a scenario where VXLAN packets are terminated on a VPLS network and PW redundancy is configured, when the primary/secondary status of PE1 and PE2 changes, PE3 needs to notify PE1 and PE2 of the current PW status so that PE1 and PE2 clear their MAC addresses.

Example

# Enable a device to instruct peer PEs to clear MAC addresses for the PWs whose primary/secondary status has been changed.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi v1
[HUAWEI-vsi-v1] pw-redundancy mac-withdraw rfc-compatible

pwsignal bgp

Function

The pwsignal bgp command configures the signaling mode for a VSI or displays the corresponding view.

The undo pwsignal bgp command restores the default configuration.

By default, no signaling mode is configured for a VSI.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

pwsignal bgp

undo pwsignal bgp

Parameters

Parameter Description Value
bgp

Indicates that the VSI uses the BGP signaling for negotiation and PW establishment. A VSI that uses the automatic member discovery mechanism must use the BGP signaling.

-

Views

VSI-AUTO view, VSI-DEFAULT view, VSI-STATIC view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After creating a VSI, you must specify the signaling mode for the VSI before performing other configurations.

Prerequisites

A VSI has been created or the VSI view is displayed using the vsi vsi-name command.

Configuration Impact

After the signaling mode is specified for a VSI, the VSI uses LDP or BGP to negotiate VPN labels and establish PWs.

Follow-up Procedure

After you run this command to enter the VSI-LDP or VSI-BGP view, you also need to set the VSI ID and specify the VSI peer to complete the VSI configuration.

Example

# Configure the signaling mode as BGP for VSI vsi1.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi vsi1 static
[HUAWEI-vsi-vsi1] pwsignal bgp

pwsignal ldp

Function

The pwsignal ldp command configures the signaling mode for a VSI or displays the corresponding view.

The undo pwsignal ldp command restores the default configuration.

By default, no signaling mode is configured for a VSI.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

pwsignal ldp

undo pwsignal ldp

Parameters

Parameter Description Value
ldp

Indicates that the VSI uses the LDP signaling for negotiation and PW establishment. A VSI that uses the static member discovery mechanism must use the LDP signaling.

-

Views

VSI-AUTO view, VSI-DEFAULT view, VSI-STATIC view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After creating a VSI, you must specify the signaling mode for the VSI before performing other configurations.

Configuration Impact

After LDP is specified as the signaling mode for a VSI, the VSI negotiates private network labels and sets up a PW based on the LDP signaling.

Follow-up Procedure

After you run this command to enter the VSI-LDP or VSI-BGP view, you also need to set the VSI ID and specify the VSI peer to complete the VSI configuration.

Example

# Configure the signaling mode as LDP for VSI company1.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi company1
[HUAWEI-vsi-company1] pwsignal ldp

reroute

Function

The reroute command configures a revertive switching policy for a PW protection group with the master/slave PW redundancy mode.

The undo reroute command deletes the revertive switching policy for a PW protection group with the master/slave PW redundancy mode.

The default revertive switching policy for a PW protection group with the master/slave PW redundancy mode is delayed switchback, and the default delay is 30s. The default revertive switching policy for a PW protection group with the independent PW redundancy mode is immediate switchback.

The default revertive switching policy for a PW protection group with the master/slave PW redundancy mode is delayed switchback, and the default delay is 30s.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

reroute { delay delay-time | immediately | never }

undo reroute

Parameters

Parameter Description Value
delay delay-time

Indicates that the revertive switching policy is delayed switchback.

The value is an integer ranging from 10 to 10800, in seconds. The default value is 30s.

immediately

Indicates that the revertive switching policy is immediate switchback.

-

never

Indicates that the revertive switching policy is non-revertive. Traffic is not switched back to the primary PW even after the primary PW recovers. Traffic will be switched back to the primary PW only when the secondary PW fails.

-

Views

Protection group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The reroute command can configure revertive switching policies for only PW protection groups with the master/slave PW redundancy mode. The revertive switching policy for PW protection groups with the independent PW redundancy mode is immediate switchback and cannot be modified.

Currently, three types of revertive switching policies are available:

  • Delayed switchback: Traffic is switched back to the primary PW after the delay time specified by delay-time. After the switching is performed, a UPE notifies the remote PE on the secondary PW of a fault. On a large-scale network, packet loss caused by incomplete route convergence may occur during the switchback. To prevent this problem, configure traffic to be switched back after a delay.
  • Immediate switchback: Traffic is immediately switched back to the primary PW. This revertive switching policy applies to scenarios in which users hope traffic to be restored as soon as possible.
  • Non-revertive: Traffic will not be switched back to the primary PW even after the primary PW recovers. Traffic will be switched back to the primary PW only when the secondary PW fails. If you do not want traffic to be frequently switched between the primary and secondary PWs, use the non-revertive policy.

Prerequisites

The PW redundancy mode of the PW protection group has been configured as master/slave.

Configuration Impact

The revertive switching policy determines the switchback behavior of the traffic after the primary PW recovers.

Example

# Configure the primary and secondary PWs in a PW protection group to perform a switchback after a delay of 60s.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi vsi1
[HUAWEI-vsi-vsi1] pwsignal ldp
[HUAWEI-vsi-vsi1-ldp] vsi-id 1
[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] reroute delay 60

reset traffic-statistics vsi

Function

The reset traffic-statistics command clears the traffic statistics of all VSIs.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

reset traffic-statistics vsi all

Parameters

Parameter Description Value
all

Indicates all VPLS PWs.

-

Views

User view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After the VPLS configuration is complete, you can run the display traffic-statistics vsi command to view PW traffic statistics. To accurately view statistics about the traffic in a specified period, you can run this command to clear the previous statistics.

Prerequisites

The traffic-statistics enable or traffic-statistics peer command must have been run in the VSI-LDP view, if you want to check LDP VPLS PW traffic statistics.

Configuration Impact

After this command is run, the statistics about the traffic on all VPLS PWs are cleared.

Precautions

After this command is run, the statistics about the traffic on all VPLS PWs are cleared.

Example

# Clear the traffic statistics of all VSIs.
<HUAWEI> reset traffic-statistics vsi all

reset traffic-statistics vsi name

Function

The reset traffic-statistics vsi name command clears VPLS PW traffic statistics.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

reset traffic-statistics vsi name vsi-name [ peer peer-address [ negotiation-vc-id vc-id | ldp129 | remote-site remote-site-id ] ]

Parameters

Parameter Description Value
vsi-name

Specifies the name of a VSI.

The value is a string of 1 to 31 case-sensitive characters without spaces. The character string can contain spaces if it is enclosed with double quotation marks (").

peer peer-address

Specifies a peer IP address.

The value is in dotted decimal notation.

negotiation-vc-id vc-id

Specifies the VC ID of a PW. This parameter is used to clear the traffic statistics of an LDP VPLS PW.

The value is an integer ranging from 1 to 4294967295.

ldp129

Indicates the LDP FEC 129 signaling.

-

remote-site remote-site-id

Specifies a remote site ID.

The value is an integer ranging from 0 to 65534.

Views

User view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After the VPLS configuration is complete, you can run the display traffic-statistics vsi command to view PW traffic statistics. To accurately view statistics about the traffic in a specified period, you can run this command to clear the previous statistics. Depending on the signaling protocol used by VPLS, VPLS traffic statistics collection includes LDP VPLS traffic statistics collection and BGP-AD VPLS traffic statistics collection. You can specify command parameters as required.

Prerequisites

The traffic-statistics enable or traffic-statistics peer command must have been run in the VSI-LDP view, if you want to check LDP VPLS PW traffic statistics.

Configuration Impact

After the reset traffic-statistics vsi peer command is run, all the previous statistics on the specified PW are cleared.

Example

# Clear the traffic statistics of PWs in VSI vsi1.
<HUAWEI> reset traffic-statistics vsi name vsi1

route-distinguisher (VSI-BGP-MH view)

Function

The route-distinguisher command configures an RD for a VSI.

The undo route-distinguisher command deletes the RD of a VSI.

By default, no RD is configured for a VSI.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

route-distinguisher rdValue

undo route-distinguisher

Parameters

Parameter Description Value
rdValue

Specifies an RD for a VSI.

The available RD formats are as follows:

  • 2-byte AS number:4-byte user-defined number, such as 101:3. The AS number ranges from 0 to 65535, and the user-defined number ranges from 0 to 4294967295. The AS number and user-defined number cannot be both 0s. Specifically, an RD cannot be 0:0.
  • 4-byte IP address:2-byte user-defined number, such as 192.168.122.15:1. The IP address ranges from 0.0.0.0 to 255.255.255.255, and the user-defined number ranges from 0 to 65535.
  • 4-byte AS number:2-byte user-defined number, such as 65537:3. The AS number ranges from 65536 to 4294967295, and the user-defined number ranges from 0 to 65535. The AS number and user-defined number cannot be both 0s. Specifically, an RD cannot be 0:0.
  • 4-byte AS number in dotted notation:2-byte user-defined number, such as 0.0:3 or 0.1:0. The 4-byte AS number in dotted notation is in the format of x.y, where x and y are integers that range from 0 to 65535. The user-defined number also ranges from 0 to 65535. The AS number and user-defined number cannot be both 0s. Specifically, an RD cannot be 0.0:0.

Views

VSI-BGP view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

On a BGP VPLS network, after creating a VSI, you must configure an RD for the VSI to identify the VSI on a PE.

Prerequisites

The VSI-BGP view has been displayed using the pwsignal bgp command.

Configuration Impact

After an RD is configured for a VSI, you can directly modify the RD.

Precautions

  • On a PE, you need to configure different RDs for different VSIs.
  • VSIs with the same ID on different PEs can have either the same RD or different RDs.

Example

# Configure an RD in the format of "4-byte IP address:2-byte user-defined number" for VSI company2.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi company2 auto
[HUAWEI-vsi-company2] pwsignal bgp
[HUAWEI-vsi-company2-bgp] route-distinguisher 2.2.2.2:1
# Configure an RD in the format of "4-byte AS number in dotted notation:2-byte user-defined number" for VSI company3.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi company3 auto
[HUAWEI-vsi-company3] pwsignal bgp
[HUAWEI-vsi-company3-bgp] route-distinguisher 22.22:22
# Configure an RD in the format of "2-byte AS number:4-byte user-defined number" for VSI company1.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi company1 auto
[HUAWEI-vsi-company1] pwsignal bgp
[HUAWEI-vsi-company1-bgp] route-distinguisher 101:3

shutdown (VSI view)

Function

The shutdown command disables a VSI.

The undo shutdown command enables a VSI.

By default, a VSI is enabled.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

shutdown

undo shutdown

Parameters

None

Views

VSI-AUTO view, VSI-DEFAULT view, VSI-STATIC view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

During service management, for example, service debugging or service halting, you can disable a VSI temporarily, and then add, cancel, or adjust VSI functions.

The shutdown command mainly affects the PW connections of a VSI. After the command is run, the AC is Down and the Layer 2 forwarding table is deleted.

Configuration Impact

After a VSI is disabled, the VSI cannot forward packets and withdraws all PW labels.

Precautions

After a VSI is disabled, packets cannot be forwarded. Therefore, exercise caution when running this command.

Example

# Disable the current VSI.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi company1
[HUAWEI-vsi-company1] shutdown

site

Function

The site command configures a site ID for a VSI.

The undo site command deletes the site ID of a VSI.

By default, no site ID is configured for a VSI.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

site siteId [ range site-range ] [ default-offset offsetValue ]

undo site siteId

Parameters

Parameter Description Value
siteId

Specifies a site ID.

The value is an integer ranging from 0 to 65534.

range site-range

Specifies the number of sites in a VSI.

The value is an integer ranging from 1 to 65535. The default value is 10.

default-offset offsetValue

Specifies the offset value of the initial site ID in a VSI.

The value is 0 or 1. The default value is 0.

Views

VSI-BGP view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

On a BGP VPLS network, after configuring an RD for a VSI, you must configure a site ID for the VSI to calculate VC labels for PWs.

Prerequisites

An RD has been configured using the route-distinguisher (VSI-BGP view) command.

Configuration Impact

In networking scenario where PE1 and PE2 are directly connected and a VSI is created on each PE separately, after the site command is configured, the information exchanged between the PEs is as follows:

  • After an RD is configured for the VSI, PE1 automatically establishes a BGP session with PE2 and sends an Update message that carries the MP-REACH attribute to PE2. The MP-REACH attribute contains the site ID and label block information of PE1.
  • Upon receipt of the Update message with the MP-REACH attribute, PE2 calculates a unique label as its local VC label based on its own site ID and the label block carried in the message. Then, PE2 establishes a unidirectional VC named VC1 to PE1. At the same time, PE2 calculates the VC label of PE1 based on the site ID and label block carried in the Update message and sends an Update message to PE1. Upon receipt of the message, PE1 takes similar actions as PE2 and establishes a unidirectional VC named VC2 to PE2.

Precautions

The site IDs on both ends of a VPLS PW must be different. The local site ID must be smaller than the peer's rangevalue plus default-offset, but greater than or equal to the peer's default-offset.

Example

# Configure the site ID as 1 and site range as 100 for VSI vsi1.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi vsi1 auto
[HUAWEI-vsi-vsi1] pwsignal bgp
[HUAWEI-vsi-vsi1-bgp] route-distinguisher 192.168.1.1:1
[HUAWEI-vsi-vsi1-bgp] site 1 range 100

stream-dual-receiving

Function

The stream-dual-receiving command configures both the active and standby PWs in a protection group to receive packets.

The undo stream-dual-receiving command restores the default configuration.

By default, the standby PW cannot receive packets.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

stream-dual-receiving

undo stream-dual-receiving

Parameters

None

Views

Protection group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

On a network that has PW redundancy configured, to prevent packet loss during a traffic switchback, run the stream-dual-receiving command on a single-homing PE to configure both the active and standby PWs in a protection group to receive packets.

If this command is not run, only the active PW can receive packets. After the primary PW recovers and a traffic switchback is triggered, the secondary PW on the single-homing PE becomes the standby PW and the PE notifies the peer of the status change. As there is a delay in signaling transmission, before the peer PE receives the signaling packet, the peer PE still sends packets along the secondary PW. After the single-homing PE receives packets from the secondary PW, the PE discards the packets.

Prerequisites

The primary and secondary PWs have been configured.

Precautions

This command can be run only when both the primary and secondary PWs exist.

Example

# Configure both the active and standby PWs in a PW protection group to receive packets.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi test
[HUAWEI-vsi-test] pwsignal ldp
[HUAWEI-vsi-test-ldp] vsi-id 100
[HUAWEI-vsi-test-ldp] protect-group GroupA
[HUAWEI-vsi-test-ldp-protect-group-GroupA] protect-mode pw-redundancy master
[HUAWEI-vsi-test-ldp-protect-group-GroupA] stream-dual-receiving

tnl-policy (VSI view)

Function

The tnl-policy command configures a VSI to reference a tunnel policy.

The undo tnl-policy command restores the default configuration.

By default, no tunnel policy is configured for a VSI.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

tnl-policy policy-name

undo tnl-policy

Parameters

Parameter Description Value
policy-name

Specifies the name of a tunnel policy.

The value is a string of 1 to 39 case-sensitive characters without spaces.

Views

VSI-AUTO view, VSI-DEFAULT view, VSI-STATIC view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

By default, VPLS forwards packets over LDP LSPs on the public network, and load balancing is performed if there are more than one LDP LSP to the same destination address.

If you want to change the type of the public network tunnel used for packet forwarding or if you want to enable load balancing among multiple tunnels, you can run the tunnel-policy command in the system view to configure a tunnel policy and the tnl-policy command in the VSI view to reference this tunnel policy.

Prerequisites

The tunnel policy to be referenced has been created.

Configuration Impact

  • After a tunnel policy is referenced, the VPLS traffic is forwarded on the public network using the tunnel specified in the tunnel policy.
  • The undo tnl-policy command restores the default tunnel (LDP LSP) used for packet forwarding.

Precautions

In addition to running this command to reference a tunnel policy, you can run the peer command in the VSI view to specify the peer address and the tunnel policy to be referenced by the VSI. The tunnel policy specified in the peer command has a higher priority than that specified in the tnl-policy command in the VSI view. If tunnel policies are specified in both the tnl-policy and peer commands, the tunnel policy specified in the peer command is preferred.

Example

# Configure a VSI to reference the tunnel policy named policy1.
<HUAWEI> system-view
[HUAWEI] tunnel-policy policy1
[HUAWEI-tunnel-policy-policy1] quit
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi company1
[HUAWEI-vsi-company1] tnl-policy policy1

track admin-vsi

Function

The track admin-vsi command binds a service VSI to the specified mVSI.

The undo track admin-vsi command deletes the binding between a service VSI and the specified mVSI.

By default, a service VSI is not bound to any mVSI.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

track admin-vsi vsi-name

undo track admin-vsi

Parameters

Parameter Description Value
vsi-name

Specifies the name of a VSI.

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

Views

VSI-AUTO view, VSI-DEFAULT view, VSI-STATIC view

Default Level

2: Configuration level

Usage Guidelines

The track admin-vsi command applies only to LDP VPLS. You must run the pwsignal and vsi-id commands before running the track admin-vsi command.

The track admin-vsi command can be used only in the service VSI.

A service VSI can be bound only to one mVSI.

To prevent the service VSI from encountering routing loops in an STP over PW scenario, run this command.

Example

# Bind the service VSI named V200 to the mVSI named V100.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi v100 static
[HUAWEI-vsi-v100] pwsignal ldp
[HUAWEI-vsi-v100-ldp] vsi-id 100
[HUAWEI-vsi-v100-ldp] quit
[HUAWEI-vsi-v100] admin-vsi
[HUAWEI-vsi-v100] quit
[HUAWEI] vsi v200 static
[HUAWEI-vsi-v200] pwsignal ldp
[HUAWEI-vsi-v200-ldp] vsi-id 200
[HUAWEI-vsi-v200-ldp] quit
[HUAWEI-vsi-v200] track admin-vsi v100

track hub-pw

Function

The track hub-pw command associates the spoke PW status with the hub PW status.

The undo track hub-pw command deletes the association between the spoke PW status and the hub PW status.

By default, the spoke PW status is not associated with the hub PW status.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

track hub-pw

undo track hub-pw

Parameters

None

Views

VSI-LDP-PW view

Default Level

2: Configuration level

Usage Guidelines

Figure 1 shows the association between spoke PW and hub PW in the configuration guide, the UPE connects to SPE1 over PW1, a primary PW, and connects to SPE2 over PW2, a secondary PW. PW1 and PW2 work in backup mode. SPEs and NPEs are connected using hub PWs.

Under normal circumstances, if all hub PWs connected to SPE1 go Down but PW1 is Up, the upstream traffic still travels along the primary PW, PW1. As a result, traffic gets lost. To prevent traffic loss, run the track hub-pw command on SPE1 to associate the spoke PW status with the hub PW status. After the track hub-pw command is run, SPE1 instructs the UPE to switch traffic to the secondary spoke PW after detecting that all connected hub PWs go Down.

Example

# Associate the spoke PW status with the hub PW status.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi vsi1
[HUAWEI-vsi-vsi1] pwsignal ldp
[HUAWEI-vsi-vsi1-ldp] vsi-id 100
[HUAWEI-vsi-vsi1-ldp] peer 2.2.2.2 upe
[HUAWEI-vsi-vsi1-ldp] peer 2.2.2.2 pw 1
[HUAWEI-vsi-vsi1-ldp-pw-1] track hub-pw

traffic-statistics enable (VSI-BGPAD view)

Function

The traffic-statistics peer enable command enables VSI-based global traffic statistics collection for BGP AD VPLS PWs.

The undo traffic-statistics peer enable command disables VSI-based global traffic statistics collection for BGP AD VPLS PWs.

By default, VSI-based global traffic statistics collection is disabled for BGP AD VPLS PWs.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

traffic-statistics enable

undo traffic-statistics enable

Parameters

None

Views

VSI-BGPAD view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After a BGP AD VPLS network is configured, if you want to view traffic statistics about all BGP AD PWs in a specified VSI to learn the network running status, you can run this command to enable global traffic statistics collection for all BGP AD VPLS PWs in the specified VSI.

Prerequisites

A VPLS ID has been specified in the VSI-BGP AD view.

Precautions

If the traffic-statistics enable and traffic-statistics peer commands are both run in the VSI-BGP AD view, configuration of the traffic-statistics peer command takes effect on the peer.

Example

# Enable VSI-based global traffic statistics collection for the VSI named company1 in a BGP AD VPLS domain.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi company1
[HUAWEI-vsi-company1] bgp-ad
[HUAWEI-vsi-company1-bgpad] vpls-id 100:1
[HUAWEI-vsi-company1-bgpad] traffic-statistics enable

traffic-statistics enable (VSI-LDP view)

Function

The traffic-statistics enable command globally enables PW traffic statistics collection in the VSI-LDP view.

The undo traffic-statistics enable command disables PW traffic statistics collection in the VSI-LDP view.

By default, PW traffic statistics collection is disabled globally in the VSI-LDP view.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

traffic-statistics enable

undo traffic-statistics enable

Parameters

None

Views

VSI-LDP view

Default Level

2: Configuration level

Usage Guidelines

This command is used in the VSI-LDP view to globally enable PW traffic statistics collection.

The traffic-statistics peer enable command enables peer-based VPLS PW traffic statistics collection. Peer-based VPLS PW traffic statistics collection takes precedence over global VPLS PW traffic statistics collection. That is, even if you run the undo traffic-statistics enable command to disable the function to collect statistics about global VPLS PW traffic, you can still view statistics about peer-based VPLS PW traffic.

The undo traffic-statistics peer enable command clears the configuration of peer-based traffic statistics collection. After the configuration is cleared, the peer-based VPLS PW traffic statistics collection function inherits the status of the global VPLS PW traffic statistics collection function. For example, if you run the traffic-statistics enable command to enable the function to collect statistics about global VPLS PW traffic, you can also view statistics about peer-based VPLS PW traffic.

Example

# Enable the global traffic statistics function of VSI 1.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi 1
[HUAWEI-vsi-1] pwsignal ldp
[HUAWEI-vsi-1-ldp] vsi-id 10
[HUAWEI-vsi-1-ldp] traffic-statistics enable

traffic-statistics peer

Function

The traffic-statistics peer enable command collects statistics about public network traffic on a specified PW in a BGP AD VPLS domain.

The undo traffic-statistics peer enable command cancels the collection of statistics about public network traffic on a specified PW in a BGP AD VPLS domain.

By default, collecting statistics about PW traffic is disabled in a BGP AD VPLS domain.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

traffic-statistics peer peer-address { enable | disable }

undo traffic-statistics peer peer-address { enable | disable }

Parameters

Parameter Description Value
peer-address

Specifies the IP address of the remote PW end.

The value is in dotted decimal notation.

disable

Disables traffic statistics collection for some PWs.

-

Views

VSI-BGPAD view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To collect PW traffic statistics after BGP AD VPLS is configured, run the traffic-statistics peer enable command. peer-address in the command specifies the IP address of the remote PW end.

Prerequisites

A VPLS ID has been specified in the VSI-BGPAD view.

Precautions

If the traffic-statistics enable and traffic-statistics peer commands are both run in the VSI-BGP AD view, configuration of the traffic-statistics peer command takes effect on the peer.

Example

# Create a VSI named company1 in a BGP AD VPLS domain, and collect statistics about the public network traffic bound for the remote PW end at 1.1.1.1 in the VSI.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi company1
[HUAWEI-vsi-company1] bgp-ad
[HUAWEI-vsi-company1-bgpad] vpls-id 100:1
[HUAWEI-vsi-company1-bgpad] traffic-statistics peer 1.1.1.1 enable

traffic-statistics peer (VSI-LDP view)

Function

The traffic-statistics peer enable command enables the function to collect statistics about the public traffic on an LDP VPLS PW.

By default, the function to collect statistics about the public traffic on the LDP VPLS PW is disabled.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

traffic-statistics peer peer-address [ negotiation-vc-id vc-id ] enable

undo traffic-statistics peer peer-address [ negotiation-vc-id vc-id ] enable

Parameters

Parameter Description Value
negotiation-vc-id vc-id

Specifies the ID of the PW.

The value is a decimal integer ranging from 1 to 4294967295.

peer peer-address

Specifies the peer IP address of the PW.

The value is in dotted decimal notation.

Views

VSI-LDP view

Default Level

2: Configuration level

Usage Guidelines

In the VSI-LDP view, you can enable or disable the function to collect statistics about the public traffic of the LDP VPLS PW. The PW is uniquely identified by the VSI name, the next-hop IP address, and the peer PW ID.

The traffic-statistics peer peer-address [ negotiation-vc-id vc-id ] enable command enables peer-based VPLS PW traffic statistics collection, which takes precedence over global VPLS PW traffic statistics collection. That is, even if you run the undo traffic-statistics enable command to disable global VPLS PW traffic statistics collection, you can still view peer-based VPLS PW traffic statistics.

The undo traffic-statistics peer peer-address [ negotiation-vc-id vc-id ] enable command clears the configuration of peer-based traffic statistics collection. After the configuration is cleared, peer-based VPLS PW traffic statistics collection inherits the enabling/disabling status of global VPLS PW traffic statistics collection. For example, if you run the traffic-statistics enable command to enable global VPLS PW traffic statistics collection, you can also view peer-based VPLS PW traffic statistics.

Example

# Enable the function to collect statistics about the public traffic on the specified PW in a VSI.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi newvsi static
[HUAWEI-vsi-newvs] pwsignal ldp
[HUAWEI-vsi-newvsi-ldp] vsi-id 1
[HUAWEI-vsi-newvsi-ldp] traffic-statistics peer 1.1.1.9 negotiation-vc-id 2 enable

traffic-statistics peer remote-site enable

Function

The traffic-statistics peer remote-site enable command enables the traffic statistics collection function for a BGP VPLS PW.

The undo traffic-statistics peer remote-site enable command restores the default configuration.

By default, the traffic statistics collection function is disabled for a specified BGP VPLS PW.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

traffic-statistics peer peer-address remote-site site-id enable

undo traffic-statistics peer peer-address remote-site site-id enable

Parameters

Parameter Description Value
remote-site site-id

Specifies a remote site ID.

The value is an integer ranging from 0 to 65534.

peer peer-address

Specifies a peer IP address of a PW.

The value is in dotted decimal notation.

Views

VSI-BGP view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To collect the traffic statistics of a specified BGP VPLS PW, run the traffic-statistics peer enable command. These statistics help you learn network operating status.

Prerequisites

The BGP signaling has been configured using the pwsignal bgp command.

Example

# Enable the traffic statistics collection function for a specified PW in VSI company1.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi company1 auto
[HUAWEI-vsi-company1] pwsignal bgp
[HUAWEI-vsi-company1-bgp] traffic-statistics peer 2.2.2.9 remote-site 2 enable

unknown-frame

Function

The unknown-frame command specifies the processing mode for received unknown frames.

The undo unknown-frame command restores the default configuration.

By default, the system broadcasts unknown unicast and multicast frames.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

unknown-frame { unicast | multicast } { broadcast | drop }

undo unknown-frame { unicast | multicast } { drop }

Parameters

Parameter Description Value
unicast

Specifies the processing mode for received unknown unicast frames.

-

broadcast

Broadcasts the received unknown frames.

-

drop

Drops the received unknown frames.

-

multicast

Specifies the processing mode for received unknown multicast frames.

-

Views

VSI-AUTO view, VSI-DEFAULT view, VSI-STATIC view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If a VSI cannot find the entry that matches the destination address of the received frame in the MAC address table, the frame is considered an unknown frame.

After the unknown-frame command is run, unknown frames are divided into unknown unicast frames and unknown multicast frames for processing. The processing modes include drop and broadcast.

Sometimes, you are advised to set the processing mode to drop to avoid attacks or to save system resources and network bandwidth.

Precautions

The unknown-frame unicast drop command discards the received unknown unicast frames and disables MAC address learning.

Example

# Configure the VSI to drop the received unknown unicast frames.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi company1
[HUAWEI-vsi-company1] unknown-frame unicast drop

upe-npe mac-withdraw enable

Function

The upe-npe mac-withdraw enable command configures a network provider edge (NPE) to forward the LDP MAC Withdraw messages received from an underlayer provider edge (UPE) to other NPEs.

The undo upe-npe mac-withdraw enable command disables an NPE from forwarding the LDP MAC Withdraw messages received from a UPE to other NPEs.

By default, an NPE does not forward the LDP MAC Withdraw messages received from UPEs to other NPEs.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

upe-npe mac-withdraw enable

undo upe-npe mac-withdraw enable

Parameters

None

Views

VSI-LDP view

Default Level

2: Configuration level

Usage Guidelines

This command is mainly used on the gateway on the Metro Ethernet where:

  • NPE 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 NPE.
  • 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 upe-npe mac-withdraw enable command is not required.

Example

# Configure an NPE to forward the LDP MAC Withdraw messages received from a UPE to other NPEs.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi v1 static
[HUAWEI-vsi-v1] pwsignal ldp
[HUAWEI-vsi-v1-ldp] upe-npe mac-withdraw enable

upe-upe mac-withdraw enable

Function

The upe-upe mac-withdraw enable command configures a network provider edge (NPE) to forward the LDP MAC Withdraw messages received from an underlayer provider edge (UPE) to other UPEs.

The undo upe-upe mac-withdraw enable command disables an NPE from forwarding the LDP MAC Withdraw messages received from a UPE to other UPEs.

By default, an NPE does not forward the LDP MAC Withdraw messages received from a UPE to other UPEs.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

upe-upe mac-withdraw enable

undo upe-upe mac-withdraw enable

Parameters

None

Views

VSI-LDP view

Default Level

2: Configuration level

Usage Guidelines

This command is mainly used on the gateway on the Metro Ethernet where:

  • NPE 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 NPE.
  • 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 upe-upe mac-withdraw enable command is not required.

Example

# Configure an NPE to forward the LDP MAC Withdraw messages received from a UPE to other UPEs.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi v1 static
[HUAWEI-vsi-v1] pwsignal ldp
[HUAWEI-vsi-v1-ldp] upe-upe mac-withdraw enable

vpls ignore-ac-state

Function

The vpls ignore-ac-state command prevents the status of a VSI from being affected by AC status changes.

The undo vpls ignore-ac-state command restores the default configuration.

By default, a service VSI can be Up only if at least one AC interface or UPE PW is Up.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

vpls ignore-ac-state

undo vpls ignore-ac-state

Parameters

None

Views

MPLS-L2VPN view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Before the replacement of CEs, you can configure VSIs on UPEs to temporarily ignore the AC status check. Then, check whether VSIs on UPEs can work properly after new CEs are deployed. A VSI can be Up only if at least one AC interface or one UPE PW is Up. After you configure a VSI to ignore the AC status check, the VSI remains Up provided that; if one UPE PW is Up, regardless of whether the AC interface is Up or Down.

The AC status has two meanings:

  • Status of a physical AC interface or logical AC interface that is bound to the VSI
  • UPE PW status in the scenario of VLL accessing VPLS

    If your want to prevent the status of all the VSIs from being affected by AC status changes, run the vpls ignore-ac-state command.

    If your want to prevent the status of one VSI from being affected by AC status changes, run the ignore-ac-state command.

Follow-up Procedure

After service switching, run the undo vpls ignore-ac-state command to restore the default configuration.

Example

# Configure a VSI to ignore the AC status check.
<HUAWEI> system-view
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] vpls ignore-ac-state

vpls mac-withdraw loop-detect enable

Function

The vpls mac-withdraw loop-detect enable command enables MAC withdraw loop detection.

The undo vpls mac-withdraw loop-detect enable command disables MAC withdraw loop detection.

By default, MAC withdraw loop detection is disabled.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

vpls mac-withdraw loop-detect enable

undo vpls mac-withdraw loop-detect enable

Parameters

None

Views

MPLS-L2VPN view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

On a dual-homing VPLS or HVPLS network, MAC withdraw messages can be forwarded between hub and spoke PWs and between spoke PWs. Incorrect configurations may cause a MAC withdraw message loop, which results in traffic loss. If the loop involves a large number of MAC withdraw messages, denial of service (DoS) attacks may occur. To resolve these problems, run the vpls mac-withdraw loop-detect enable command to enable MAC withdraw loop detection. After you enable MAC withdraw loop detection, a PE immediately discards MAC withdraw messages when it detects a MAC withdraw message loop.

Prerequisites

MPLS L2VPN has been enabled using the mpls l2vpn command.

Example

# Enable MAC withdraw loop detection.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] vpls mac-withdraw loop-detect enable

vpls-id

Function

The vpls-id command specifies the VPLS domain to which a VSI belongs.

The undo vpls-id command disables the specified VPLS domain to which a VSI belongs.

No default value is available, and the VPLS ID needs to be set when a BGP AD VSI is created.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

vpls-id vplsIdValue

undo vpls-id

Parameters

Parameter Description Value
vplsIdValue

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

A VPLS ID is in one of the following formats:

  • 2-byte AS number:4-byte 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 0s. Specifically, a VPLS ID cannot be 0:0.
  • 4-byte AS number:2-byte user-defined number: for example, 65537:3. The AS number ranges from 65536 to 4294967295, and the 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.
  • Dotted decimal 4-byte AS number:2-byte user-defined number, such as 0.0:3 or 0.1:0. The AS number is usually in the format of x.y, where x and y range from 0 to 65535. The user-defined number ranges from 0 to 65535. The AS number and user-defined number cannot be both 0s. Specifically, a VPLS ID cannot be 0.0:0.
  • 4-byte IP address:2-byte user-defined number: for example, 192.168.122.15:1. The IP address ranges from 0.0.0.0 to 255.255.255.255, and the user-defined number ranges from 0 to 65535.

Views

VSI-BGPAD view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

VSIs in a BGP AD VPLS domain use BGP signaling to automatically discover members in the same VPLS domain. A VPLS domain is uniquely identified by a VPLS ID. When creating BGP AD VSIs on different PEs, specify the same VPLS ID for the VSIs so that they can join the same VPLS domain. When creating multiple BGP AD VSIs on a PE, specify different VPLS IDs for the VSIs to allow them to join different VPLS domains. To change the VPLS ID of a VSI, you need to delete the VSI and then recreate it and configure its VPLS ID.

Prerequisites

The bgp-ad command has been run in the VSI view to configure automatic VPLS member discovery and PW deployment for the current VSI and to display the VSI-BGP AD view.

Configuration Impact

A VPLS ID will be specified for the BGP AD VSI after the vpls-id command is run, and the VPLS ID cannot be specified for the other BGP AD VSIs on the same PE.

Precautions

A BGP AD VPLS domain is uniquely identified by a VPLS ID. The VSIs on a PE must be configured with different VPLS IDs. The VSIs that belong to the same VPLS domain and reside on different PEs must be configured with the same VPLS ID.

After a VPLS ID is configured for a VSI, it cannot be directly changed. To change the VPLS ID, you need to delete the VSI and then recreate the VSI.

Example

# Configure a VPLS ID in the format of 32-bit IP address:16-bit user-defined number for the VSI named company2.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi company2
[HUAWEI-vsi-company2] bgp-ad
[HUAWEI-vsi-company2-bgpad] vpls-id 2.2.2.2:1
# Configure a VPLS ID in the format of 16-bit AS number:32-bit user-defined number for the VSI named company1.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi company1
[HUAWEI-vsi-company1] bgp-ad
[HUAWEI-vsi-company1-bgpad] vpls-id 101:3
# Configure a VPLS ID in the format of 4-byte AS number in dotted notation:16-bit user-defined number for the VSI named company3.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi company3
[HUAWEI-vsi-company3] bgp-ad
[HUAWEI-vsi-company3-bgpad] vpls-id 16.20:30

vpn-target (VSI-BGP-MH view)

Function

The vpn-target command associates a VSI with one or more VPN targets.

The undo vpn-target command restores the default configuration.

By default, a VSI is not associated with any VPN targets.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

vpn-target { vpnTargetValue } &<1-16> [ both | import-extcommunity | export-extcommunity ]

undo vpn-target { all | { vpnTargetValue } &<1-16> } [ both | import-extcommunity | export-extcommunity ]

Parameters

Parameter Description Value
vpnTargetValue

Specifies a VPN target.

The available VPN target formats are as follows:

  • 2-byte AS number:4-byte user-defined number, such as 1:3. The AS number ranges from 0 to 65535, and the user-defined number ranges from 0 to 4294967295. The AS number and user-defined number cannot be both 0s. Specifically, a VPN target cannot be 0:0.
  • 4-byte IP address:2-byte user-defined number, such as 192.168.122.15:1. The IP address ranges from 0.0.0.0 to 255.255.255.255, and the user-defined number ranges from 0 to 65535.
  • 4-byte AS number:2-byte user-defined number, such as 65537:3. The AS number ranges from 65536 to 4294967295, and the user-defined number ranges from 0 to 65535.
  • 4-byte AS number in dotted notation:2-byte user-defined number, such as 0.0:3 or 0.1:0. The 4-byte AS number in dotted notation is in the format of x.y, where x and y are integers that range from 0 to 65535. The user-defined number also ranges from 0 to 65535. The AS number and user-defined number cannot be both 0s. Specifically, a VPN target cannot be 0.0:0.
both

Specifies both the import and export VPN targets.

-

import-extcommunity

Specifies the VPN target carried in imported routes.

-

export-extcommunity

Specifies the VPN target carried in exported routes.

-

all

Deletes all VPN targets.

-

Views

VSI-BGP view

Default Level

2: Configuration level

Usage Guidelines

VPN targets are used on a BGP VPLS network to control route advertisement and communication between nodes:

  • A PE adds export VPN targets to routes to be advertised to other PEs.
  • After a PE receives routes from other PEs, it determines whether to import the received routes to local VSIs by comparing the export VPN targets of these routes with the local import VPN targets.

Example

# Create a VSI named vsi1, and configure its import and export VPN targets as 100:100 and 200:200, respectively.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi vsi1 auto
[HUAWEI-vsi-vsi1] pwsignal bgp
[HUAWEI-vsi-vsi1-bgp] route-distinguisher 1:1
[HUAWEI-vsi-vsi1-bgp] vpn-target 100:100 import-extcommunity
[HUAWEI-vsi-vsi1-bgp] vpn-target 200:200 export-extcommunity

vpn-target (VSI-BGPAD view)

Function

The vpn-target command associates a VSI in a BGP AD VPLS domain with one or more VPN targets.

The undo vpn-target command deletes the association between a VSI and VPN targets.

By default, a VSI is not associated with any VPN target. The association must be configured when a VSI is created.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

vpn-target { vpnTargetValue } &<1-16> [ both | import-extcommunity | export-extcommunity ]

undo vpn-target { all | { vpnTargetValue } &<1-16> } [ both | import-extcommunity | export-extcommunity ]

Parameters

Parameter Description Value
vpnTargetValue

Associates a VPN target with a VSI.

The format of a VPN target can be one of the following:

  • 16-bit AS number:32-bit user-defined number. For example, 1: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 0s. This means that the VPN target value cannot be 0:0.
  • 32-bit IP address:16-bit user-defined number. For example, 192.168.122.15:1. An IP address ranges from 0.0.0.0 to 255.255.255.255, and a 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 0 to 65535. The user-defined number also 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.
both

Specifies the extended community attributes of the received and sent routing information.

-

import-extcommunity

Receives routing information carrying specified extended community attributes.

-

export-extcommunity

Specifies the extended community attributes carried in routing information to be sent.

-

all

Deletes all VPN targets.

-

Views

VSI-BGPAD view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

VPN targets can be used in a BGP AD VPLS domain to control the route advertisement and communication between nodes. When a PE advertises routing information to other PEs of different VSIs, it adds export VPN targets to the routing information. When the PE receives routing information from other PEs, it uses import VPN targets to determine whether to import the routing information to the VSIs on it.

Prerequisites

A VPLS ID has been configured for the VSI.

Configuration Impact

After the vpn-target command is run, the PE only advertises the routing information that contains the export VPN targets and imports the routing information that contains the import VPN targets. Two PEs are allowed to communicate with each other only when the VPN targets carried in their exchanged routing information match.

Precautions

A PW can be set up between two VSIs in a BGP AD VPLS domain only when the import VPN target associated with a VSI is the same as the export VPN target associated with the other VSI.

Example

# Configure a VSI named company2, and associate the VSI with import VPN targets 4:4 and 5:5 and with export VPN targets 3:3 and 5:5.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi company2
[HUAWEI-vsi-company2] bgp-ad
[HUAWEI-vsi-company2-bgpad] vpls-id 100:1
[HUAWEI-vsi-company2-bgpad] vpn-target 3:3 export-extcommunity
[HUAWEI-vsi-company2-bgpad] vpn-target 4:4 import-extcommunity
[HUAWEI-vsi-company2-bgpad] vpn-target 5:5 both

vsi (System view)

Function

The vsi command creates a VSI or displays the VSI view.

The undo vsi command deletes a VSI.

By default, no VSI is created.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

vsi vsi-name [ static | auto ]

undo vsi vsi-name

Parameters

Parameter Description Value
vsi-name

Name of a VSI instance.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. The VSI names on one device must be different.

The string can contain spaces if it is enclosed in double quotation marks (").

static

Uses static VPLS member discovery.

-

auto

Uses automatic VPLS member discovery.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

VSIs are essential to VPLS networks. On a device, a VSI must be created for each VPLS network.

Prerequisites

Before creating a VSI, enable MPLS L2VPN on the device.

Configuration Impact

  • After a VSI is configured for a VPLS network, the VPLS packets are forwarded based on the VSI.
  • The execution of the undo vsi command interrupts VPLS traffic. Exercise caution when using this command.

Follow-up Procedure

After creating a VSI, you need to specify the signaling mode and set the VSI ID and peer address to complete the VPLS configuration.

Precautions

On a VPLS network:

  • You can configure different names for the VSIs on different devices.
  • You must configure a unique VSI ID for each VSI on a device. The VSI and VSI ID has a one-to-one mapping relationship.
  • You can specify multiple peers for a VSI on a device.

    If a VSI has been bound to an AC interface, deleting the VSI causes all configurations in the VSI to be deleted and the binding relationship to be removed. Therefore, exercise caution when performing this operation.

Example

# Create a VSI named company1.
<HUAWEI> system-view
[HUAWEI] mpls lsr-id 1.1.1.1
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi company1
# Create a VSI named company2 and configure the VSI to use automatic VPLS member discovery.
<HUAWEI> system-view
[HUAWEI] mpls lsr-id 2.2.2.2
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi company2 auto

vsi-id

Function

The vsi-id command sets a VSI ID.

The undo vsi-id command deletes a VSI ID.

By default, no VSI ID is set for a VSI.

This command is supported only on the S6780-H, S6730-H-V2, S5755-H, S5732-H-V2, S6750-S and S6750-H.

Format

vsi-id vsi-id

undo vsi-id

Parameters

Parameter Description Value
vsi-id

Specifies the ID of a VSI.

The value is an integer ranging from 1 to 4294967295. The VSI ID of each VSI is unique on a device.

Views

VSI-LDP view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If a VSI uses the LDP signaling, the VSI ID must be set.

The IDs of the VSIs in the same VPLS domain must be consistent.

Configuration Impact

A VSI ID uniquely identifies a VSI. The VSIs with the same VSI ID belong to one VPLS domain.

Follow-up Procedure

You can specify a peer for the VSI only after the VSI ID is set.

Precautions

  • The ID of each VSI must be unique on a device.
  • If the IDs of the VSIs on the two ends of a PW are different and the peer command is run to specify the peer, you must run the negotiation-vc-id command to set the same <negotiation-vc-id> for the two ends. Otherwise, PW negotiation fails.

Example

# Set the ID of the current VSI to 1.
<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn] quit
[HUAWEI] vsi company1
[HUAWEI-vsi-company1] pwsignal ldp
[HUAWEI-vsi-company1-ldp] vsi-id 1
Translation
Favorite
Download
Update Date:2025-07-01
Document ID:EDOC1100411548
Views:12815
Downloads:450
Average rating:0.0Points

Digital Signature File

digtal sigature tool