Download as pdf or txt
Download as pdf or txt
You are on page 1of 23

Command Manual MPLS VPLS

Quidway S8500 Series Routing Switches Table of Contents



Huawei Proprietary and Confidential
Copyright (c) Huawei Technologies Co., Ltd
i

Table of Contents
Chapter 1 VPLS Configuration Commands................................................................................ 1-1
1.1 VPLS Configuration Commands........................................................................................ 1-1
1.1.1 bandwidth................................................................................................................ 1-1
1.1.2 broadcast-restrain ................................................................................................... 1-2
1.1.3 cos........................................................................................................................... 1-2
1.1.4 description............................................................................................................... 1-2
1.1.5 debugging mpls l2vpn ............................................................................................. 1-2
1.1.6 display ldsh state..................................................................................................... 1-2
1.1.7 display mac-address vsi .......................................................................................... 1-2
1.1.8 display vpls connection ........................................................................................... 1-2
1.1.9 display vsi ................................................................................................................ 1-2
1.1.10 encapsulation........................................................................................................ 1-2
1.1.11 label-range ............................................................................................................ 1-2
1.1.12 l2 binding vsi.......................................................................................................... 1-2
1.1.13 mac-address state................................................................................................. 1-2
1.1.14 mac-table limit ....................................................................................................... 1-2
1.1.15 mtu ........................................................................................................................ 1-2
1.1.16 peer ....................................................................................................................... 1-2
1.1.17 rule permit mpls l2label-range............................................................................... 1-2
1.1.18 vpls-load-share...................................................................................................... 1-2
1.1.19 pwsignal ................................................................................................................ 1-2
1.1.20 reset mac-address vsi ........................................................................................... 1-2
1.1.21 shutdown............................................................................................................... 1-2
1.1.22 undo mac-address vsi ........................................................................................... 1-2
1.1.23 vsi .......................................................................................................................... 1-2
1.1.24 vsi-id...................................................................................................................... 1-2

Command Manual MPLS VPLS
Quidway S8500 Series Routing Switches Chapter 1 VPLS Configuration Commands

Huawei Proprietary and Confidential
Copyright (c) Huawei Technologies Co., Ltd
1-1

Chapter 1 VPLS Configuration Commands
Note:
The service processor cards mentioned in this chapter mainly refer to LSB1VPNB0
cards.

1.1 VPLS Configuration Commands
1.1.1 bandwidth
Syntax
bandwidth bw-limit
View
VSI view
Parameters
bw-limit: Limit on Virtual Switching Instance (VSI) rate, which is in kbps. The system
automatically takes the smallest number that can be exactly divided by 64. By default,
VSI rate is limited at 102,400 kbps.
Description
Use the bandwidth command to configure a limit on VSI bandwidth. .
Note that the rate actually supported ranges from 64 kbps to 2,097,152 kbps. If the rate
you set is above 2,097,152 kbps, no rate limitation is performed, and the part of traffic
that is under the VSI and exceeding this bandwidth restriction is discarded by the
system.
Examples
# Configure the bandwidth of VSI Test as 20 Mbps.
<Quidway> system-view
[Quidway] vsi Test static
[Quidway-vsi-Test] bandwidth 20480
Chapter 1 VPLS Configuration Commands
Command Manual MPLS VPLS
Quidway S8500 Series Routing Switches

1-2 Huawei Proprietary and Confidential
Copyright (c) Huawei Technologies Co., Ltd

1.1.2 broadcast-restrain
Syntax
broadcast-restrain percent
View
VSI view
Parameters
percent: Percentage of VSI broadcast suppression. It ranges from 1 to 100 and defaults
to 5, which means the percentage is 5%.
Description
Use the broadcast-restrain command to configure the percentage of VSI broadcast
suppression. In the VSI, the part of broadcast traffic (including broadcast, multicast,
unknown unicast) beyond the suppression percentage is discarded.
Examples
# Set the broadcast suppression percentage of VSI Test to 10%.
<Quidway> system-view
[Quidway] vsi Test static
[Quidway-vsi-Test] broadcast-restrain 10
1.1.3 cos
Syntax
cos { cos-value | user-defined-table p p p p p p p p }
View
VSI view
Parameters
cos-value: Specifies Class of Service (CoS). CoS ranges from 1 to 8 and defaults to 1.
p p p p p p p p: User-defined CoS mapping table.
Description
Use the cos command to map user priority 802.1Q COS to PSN COS (PSN: Public
Switching Network; COS: Class Of Service). When you specify a COS mapping
relationship, use the mapping table recommended by the protocol. The protocol
recommends the following COS mapping table.
Command Manual MPLS VPLS
Quidway S8500 Series Routing Switches Chapter 1 VPLS Configuration Commands

Huawei Proprietary and Confidential
Copyright (c) Huawei Technologies Co., Ltd
1-3

Table 1-1 IEEE 802.1Q COS service mapping table
Available classes of service
User Priority
1 2 3 4 5 6 7 8
0 Best Effort
(Default)
0 0 0 1 1 1 1 2
1 Background 0 0 0 0 0 0 0 0
2 Spare 0 0 0 0 0 0 0 1
3 Excellent Effort 0 0 0 1 1 2 2 3
4 Controlled Load 0 1 1 2 2 3 3 4
5 Interactive
Multimedia
0 1 1 2 3 4 4 5
6 Interactive Voice 0 1 2 3 4 5 5 6
7 Network Control 0 1 2 3 4 5 6 7

With this mapping table, the cos command specifies available classes of service from 1
to 8 and the CoS and the user priority specified combine to determine the COS of user
data transmitted over PSN.
You can also customize the mapping relationship between user priority and PSN COS
and directly specify the COS for user data transmitted over PSN for each of the user
priorities 0 to 7 by configuring p-p-p-p-p-p-p-p.
Examples
# Set the COS of VSI Test to 8.
<Quidway> system-view
[Quidway] vsi test static
[Quidway-vsi-test] cos 8
1.1.4 description
Syntax
description text
undo description
View
VSI view
Chapter 1 VPLS Configuration Commands
Command Manual MPLS VPLS
Quidway S8500 Series Routing Switches

1-4 Huawei Proprietary and Confidential
Copyright (c) Huawei Technologies Co., Ltd

Parameters
text: Description text for the VSI, an alphanumeric character string of up to 80
characters.
Description
Use the description command to set the description of current VSI.
Use the undo description command to remove the description.
Examples
# Set the description of VSI Test to hello.
<Quidway> system-view
[Quidway] vsi Test static
[Quidway-vsi-Test] description hello
1.1.5 debugging mpls l2vpn
Syntax
debugging mpls l2vpn { advertisement | all | connections [ interface
vlan-interface vlan-id ] | error | event | loadshare | switchover }
undo debugging mpls l2vpn { advertisement | all | connections [ interface
vlan-interface vlan-id ] | error | event | loadshare | switchover }
View
User view
Parameters
advertisement: Enables debugging for BGP/LDP advertisement information of
L2VPN.
all: Enables all types of debugging concerning L2VPN module.
connections: Enables debugging for MPLS layer 2 VC connections.
vlan-id: Specifies a VLAN.
error: Enables debugging for L2VPN errors.
event: Enables debugging for event notification among modules.
loadshare: Enables debugging for load sharing.
switchover: Enables debugging for L2VPN protection switchover
Description
Use the debugging mpls l2vpn command to enable individual kinds of L2VPN
debugging.
Command Manual MPLS VPLS
Quidway S8500 Series Routing Switches Chapter 1 VPLS Configuration Commands

Huawei Proprietary and Confidential
Copyright (c) Huawei Technologies Co., Ltd
1-5

Use the undo debugging mpls l2vpn command to disable the corresponding
debugging.
By default, all L2VPN debugging is disabled.
Examples
# Enable debugging for L2VPN errors.
<Quidway> debugging mpls l2vpn error
1.1.6 display ldsh state
Syntax
display ldsh state
View
Any view
Parameters
None
Description
Use the display ldsh state command to view the operation status information of the
VPLS service cards working in the VPLS load sharing mode.
This command displays the mapping relationship between the faulty VPLS service
cards and the VPLS service cards that have taken over and the status of the service
cards.
Example
# View the status of all VPLS service cards in the system.
<Quidway> display ldsh state
Slot BoardType State WorkSlot Flushed Timer
0 ---- -- 0 F F
1 ---- -- 1 F F
2 ---- -- 2 F F
3 ---- -- 3 F F
4 VPLS OK 4 T F
5 ---- -- 5 F F
6 ---- -- 6 F F
Chapter 1 VPLS Configuration Commands
Command Manual MPLS VPLS
Quidway S8500 Series Routing Switches

1-6 Huawei Proprietary and Confidential
Copyright (c) Huawei Technologies Co., Ltd

Table 1-2 Description on the fields of the display ldsh state command
Field Description
Slot VPLS slot number
BoardType
Card type. Currently this command supports only VPLS service
cards.
State
State of the VPLS service card:
--: The VPLS service card is out of position or the card is a
non-VPLS service card
OK: The card is working normally
WorkSlot
Slot number of the working VPLS service card
Normally Slot and WorkSlot give the same indication; when the
service card on Slot is faulty, WorkSlot indicates the card that
has taken over
Flushed
Delivery status of VPLS service forwarding entries:
T: Delivered
F: Not delivered
Timer
Protection timer status after card fault recovery:
T: Timer started
F: Timer stopped

1.1.7 display mac-address vsi
Syntax
display mac-address vsi [ vsi-name ] [ peer { peer-ip | dual-npe } | local |
vlan-interface vlan-id ] ] [ dynamic | static ] [ count ]
View
Any view
Parameters
peer: Specifies the peer IP address.
peer-ip: Peer IP address.
dual-npe: Specifies the peer PE as a NPE in the H-VPLS model.
local: All local MAC addresses.
vlan-interface: Specifies the VLAN interface whose MAC address corresponds with
the locally bound VSI.
vlan-id: VLAN interface number.
vsi: Specifies the VSI to be displayed.
vsi-name: VSI Name.
Command Manual MPLS VPLS
Quidway S8500 Series Routing Switches Chapter 1 VPLS Configuration Commands

Huawei Proprietary and Confidential
Copyright (c) Huawei Technologies Co., Ltd
1-7

dynamic: Displays only dynamic VSI MAC forwarding entries.
static: Displays only static VSI MAC forwarding entries.
count: Displays only the number of VSI MAC forwarding entries.
Description
Use the display mac-address vsi command to display VSI MAC forwarding
information. You can display the MAC forwarding entries of either all VSIs or a specific
VSI.
If a remote MAC address is configured, and the peer dual-npe keyword is specified (or
the default mode for the MAC is dual-npe), the dual-npe will be displayed in the MAC
forwarding entries.
Related commands: vsi, mac-address static.
Examples
# Display the MAC forwarding entries of VSI Test.
<Quidway> display mac-address vsi Test
MAC ADDR STATE VPN ID PEER AGING TIME
0004-0000-005b dynamic 150 Vlan-interface10 AGING
--- 1 mac address(es) found ---
1.1.8 display vpls connection
Syntax
display vpls connection [ vsi vsi-name ] [ peer peer-ip ] [ up | down | block ]
[ verbose | statistics ]
View
Any view
Parameters
vsi: Specifies a VSI.
vsi-name: VSI name.
peer: Specifies a peer PE.
peer-ip: IP address of the peer PE.
up: Displays only the information of the Pseudowires (PWs) in Up state.
down: Displays only the information of the Pseudowires in Down state.
block: Displays only the information of the Pseudowires in Block state.
verbose: Displays the details of Pseudowires.
statistics: Displays the statistics of Pseudowires.
Chapter 1 VPLS Configuration Commands
Command Manual MPLS VPLS
Quidway S8500 Series Routing Switches

1-8 Huawei Proprietary and Confidential
Copyright (c) Huawei Technologies Co., Ltd

Description
Use the display vpls connection command to display the Pseudowire information of
the VSI. You can query the information of statistics of Pseudowires by any combination
of VSI name, peer IP address, and Pseudowire state.
Examples
# Display the VC information of VSI Test.
<Quidway> display vpls connection vsi test
VSI name : test
MTU : 2000
Status : open
VCID EncapType PeerAddr state Lcl-Label/Rmt-Label TnlType/TnlID
200 vlan 2.2.2.2 down 131514/0 LSP/1
100 ethernet 3.3.3.3 down 131515/0 LSP/2

2 total connection(s):0 up, 0 block, 2 down
Table 1-3 Description on the fields of the display vpls connection command
Field Description
VSI name VSI name
MTU Specifies the MTU of the VSI
Status VSI service status: open (enabled) or shutdown (closed)
VCID Virtual circuit ID
EncapType Encapsulation type
PeerAddr IP address of peer PE
state VC state (up/block/down)
Lcl-Label Local label, namely, label that the local device assigns the peer PE.
Rmt-Label
Remote label, namely, label that the remote PE assigns the local
device.
TnlType Tunnel type, such as LSP
TnlID Tunnel ID

1.1.9 display vsi
Syntax
display vsi [ vsi-name vsi-name | vsi-id vsi-id ]
Command Manual MPLS VPLS
Quidway S8500 Series Routing Switches Chapter 1 VPLS Configuration Commands

Huawei Proprietary and Confidential
Copyright (c) Huawei Technologies Co., Ltd
1-9

View
Any view
Parameters
vsi-name: VSI name.
vsi-id: VSI ID, which is locally unique.
Description
Use the display vsi command to display the information about a VSI or all the VSIs.
Related commands: vsi.
Examples
# Display the configuration of VSI Test.
<Quidway> display vsi vsi-name Test
VPLS-Instance : Test
VSI service status : Open
Vsi ID : 1000
Vpn ID : 54
MTU : 900
Label Range ID : 0
VPLS BOARD ID : 4
Description : Test Technologies Co., Ltd.
VPLS Peers : 2
3.3.3.3 1000 npe
4.4.4.4 1000 npe
Interface :
Vlan-interface1000
Bandwidth: 20480kbps
Broadcast-restrain: 10%
CoS : 8
CoS-table : [2 0 1 3 4 5 6 7]
Mac-table limit : 128
Table 1-4 Description on the fields of the display vsi command
Field Description
VPLS-Instance VPLS instance name
VSI service status Service status of the current VSI
Vsi ID ID of this VPLS instance
Vpn ID Internal ID of this VPLS instance in the device
Chapter 1 VPLS Configuration Commands
Command Manual MPLS VPLS
Quidway S8500 Series Routing Switches

1-10 Huawei Proprietary and Confidential
Copyright (c) Huawei Technologies Co., Ltd

Field Description
MTU MTU of the VSI
Label Range ID Label Range of the VSI
VPLS BOARD ID VPN card of the VPLS instance
Description Description of the VPLS instance
VPLS Peers Peer configured in this instance
Interface Interface bound to the VSI
Bandwidth VSI bandwidth limit
Broadcast-restrain Percentage of VSI broadcast suppression
CoS Class of Service
CoS-table CoS mapping table of user priority on the PSN
Mac-table limit Limit on the number of MAC forwarding entries of the VSI

1.1.10 encapsulation
Command
encapsulation { vlan | ethernet }
View
VSI view
Parameters
encapsulation: Specifies the VC encapsulation type of the VSI.
vlan: Sets the encapsulation type of the VC to Ethernet Tagged mode.
ethernet: Sets the encapsulation type of the VC to Ethernet Raw mode. By default, it is
in Ethernet mode.
Description
Use the encapsulation command to specify the VC encapsulation type of the VSI. By
default, the VC encapsulation type in the VSI takes this value.
Examples
# Specify the encapsulation type of VSI Test as VLAN.
<Quidway> system-view
[Quidway] vsi Test static
[Quidway-vsi-Test] encapsulation vlan
Command Manual MPLS VPLS
Quidway S8500 Series Routing Switches Chapter 1 VPLS Configuration Commands

Huawei Proprietary and Confidential
Copyright (c) Huawei Technologies Co., Ltd
1-11

1.1.11 label-range
Syntax
label-range label-range-id
View
VSI view
Parameters
label-range-id: Specifies label range ID.
Description
Use the label-range command to manually configure the label range ID corresponding
to the VSI.
After label range redirection is configured, you can change the direction of VSI flow by
changing the label range corresponding to the VSI, namely, redirect the new label
range to the VPLS board for VSI flow processing so that the load on the VPLS board is
shared.
Examples
# Configure the label range ID corresponding to the VSI as 2.
<Quidway> system-view
[Quidway] vsi Test static
[Quidway-vsi-Test] label-range 2
1.1.12 l2 binding vsi
Syntax
l2 binding vsi vsi-name [ access-mode { vlan | ethernet } ]
undo l2 binding vsi vsi-name [ encapsulation { vlan | ethernet } ]
View
VLAN interface view
Parameters
vsi-name: VSI name.
access-mode: Specifies the user access encapsulation type. The default access
encapsulation type is Ethernet.
ethernet: Specifies the user access encapsulation mode as Ethernet.
vlan: Specifies the user access encapsulation mode as VLAN.
Chapter 1 VPLS Configuration Commands
Command Manual MPLS VPLS
Quidway S8500 Series Routing Switches

1-12 Huawei Proprietary and Confidential
Copyright (c) Huawei Technologies Co., Ltd

Description
Use the l2 binding vsi command to bind a VSI to a VLAN interface. The services
provided by the VLAN will be regarded as the VPN internal services of the specified
VSI.
Use the undo l2 binding vsi command to remove the binding relation between a VLAN
and a VSI.
You can specify the access type of VPLS. The default access type is Ethernet access.
The port configuration on a VLAN interface differs depending on user access modes. If
user gets access by Ethernet, you must enable VLAN-VPN on the access port of the
VLAN. If user makes H-VPLS access by VLAN, or user's convergence multi-tenant unit
(MTU) makes H-VPLS access by VLAN-VPN, you need not enable VLAN-VPN on the
access port; instead, you must configure the port as Trunk; in this case, the VLAN Tag
(VLAN ID currently configured for the user) carried in uplink packets must be consistent
with that of the VLAN bound with the Trunk. If convergence UPE makes H-VPLS
access by LSP, you can bind a VPLS instance to a VLAN containing no port.
Related commands: vsi, peer.
Examples
# Bind VSI Test to VLAN 100 in VLAN view. Enabled VLAN VPN on the port of the
VLAN indicates the VSI can be accessed through Ethernet.
<Quidway> system-view
[Quidway] interface GigabitEthernet3/1/4
[Quidway-GigabitEthernet3/1/4] vlan-vpn enable
[Quidway-GigabitEthernet3/1/4] port access vlan 100
[Quidway-GigabitEthernet3/1/4] interface vlan-interface 100
[Quidway-Vlan-interface100] undo ip address
[Quidway-Vlan-interface100] L2 binding vsi Test

Command Manual MPLS VPLS
Quidway S8500 Series Routing Switches Chapter 1 VPLS Configuration Commands

Huawei Proprietary and Confidential
Copyright (c) Huawei Technologies Co., Ltd
1-13

Caution:
If you have enabled GVRP, STP or 802.1x protocol for a port, you are prohibited
from enabling VLAN VPN feature for the port.
If you have enabled IGMP Snooping or IGMP for the VLAN which the port belongs
to, you are prohibited to enable VLAN VPN feature for the port. Similarly, if you have
enabled VLAN VPN feature for the port, you are prohibited from enabling IGMP
Snooping or IGMP for the VLAN which the port belongs to.
If you want to add the ports with VLAN VPN enabled to a VLAN, you cannot enable
IGMP Snooping in the VLAN and enable IGMP for the VLAN interface.
You cannot configure an IP address for a VLAN interface with a VSI bound to it.
Similarly, you cannot bind a VSI to a VLAN interface with an IP address configured.
You can bind one VSI to up to eight VLANs.
You cannot bind any VSI to Vlan-interface1.

1.1.13 mac-address state
Syntax
mac-address { static H-H-H } vsi vsi-name { peer { peer-ip | dual-npe } |
vlan-interface vlan-id }
undo mac-address { static H-H-H } vsi vsi-name
View
System view
Parameters
static: Specifies a static MAC address. Only static VSI MAC addresses are allowed at
present.
H-H-H: Value of the static MAC address.
vsi: Specifies a VSI name.
vsi-name: VSI name.
peer: Specifies that the static MAC address corresponds to a remote peer.
peer-ip: IP address of the remote peer.
dual-npe: Specifies the peer PE as a NPE in the H-VPLS model.
vlan-interface: Specifies the VLAN interface of the local peer corresponding to the
static MAC address.
vlan-id: Number of the specified VLAN interface
Chapter 1 VPLS Configuration Commands
Command Manual MPLS VPLS
Quidway S8500 Series Routing Switches

1-14 Huawei Proprietary and Confidential
Copyright (c) Huawei Technologies Co., Ltd

Description
Use the mac-address command to configure a static MAC address for a VSI. The
address you configured can be either a MAC address on a local VSI or a MAC address
on a remote peer.
Use the undo mac-address command to disable the configuration.
Note that when you configure a MAC address for a remote peer with the peer keyword
provided, if you specify the VLAN-interface, the command configures the MAC address
for a local peer.
You are not recommended to configure a remote static MAC address when there are
more than one peer relationship to the same remote system for a VSI instance.
In case you have configured a remote static MAC address and the peer IP address you
specified is the same as that of one of the NPEs in the H-VPLS of the instance, the
remote peer defaults to use dual-npe and the word dual-npe will be displayed when
you view the MAC forwarding entries. You may not delete the MAC configuration
thoroughly by specifying the peer IP address. To delete the MAC configuration
completely, you need to specify the MAC address.
Related commands: vsi, display mac-address vsi.
Examples
# Configure to bind the static MAC entries of VLAN interface 10 and the remote peer to
the local peer of VSI Test.
<Quidway> system-view
[Quidway] mac-address static 0000-fc39-a9b5 vsi Test vlan-interface 10
[Quidway] mac-address static 0000-fc39-a9b4 vsi Test peer 2.2.2.2
1.1.14 mac-table limit
Syntax
mac-table limit mac-limit
View
VSI view
Parameters
mac-limit: Maximum number of the MAC addresses of a specific VSI.
Description
Use the mac-table limit command to configure the maximum number of the MAC
addresses in the VSI. This number ranges from 0 to 65,535 and defaults to 128. When
the total number of the MAC addresses of the VSI exceeds this number, the system no
Command Manual MPLS VPLS
Quidway S8500 Series Routing Switches Chapter 1 VPLS Configuration Commands

Huawei Proprietary and Confidential
Copyright (c) Huawei Technologies Co., Ltd
1-15

longer learns any new source MAC address; instead, it directly broadcasts the packet
in the VSI.
Examples
# Set the maximum number of MAC addresses of the VSI Test to 1,024.
<Quidway> system-view
[Quidway] vsi Test static
[Quidway-vsi-Test] mac-table limit 1024
1.1.15 mtu
Syntax
mtu mtu
undo mtu
View
VSI view
Parameters
mtu: Value of the access maximum transmission unit (MTU) of a VSI, in the range of
128 bytes to 8,192 bytes. By default, MTU is 1,500 bytes.
Description
Use the mtu command to specify the MTU value for user access packets of this VSI.
This mtu value is also that for PW.
MTU value is an integral characteristic of a VSI, and all MTU values of the peer PEs of
the instance must be consistent.
Use the undo mtu command to restore the default MTU value.
Examples
# Set the MTU for VSI Test to 1,400 bytes.
<Quidway> system-view
[Quidway] vsi Test static
[Quidway-vsi-Test] mtu 1400
1.1.16 peer
Syntax
peer peer-ip [ vc-id vc-id ] [ upe | dual-npe ] [ encapsulation { ethernet | vlan } ]
undo peer peer-ip [ vc-id vc-id ]
Chapter 1 VPLS Configuration Commands
Command Manual MPLS VPLS
Quidway S8500 Series Routing Switches

1-16 Huawei Proprietary and Confidential
Copyright (c) Huawei Technologies Co., Ltd

View
VSI-LDP View
Parameters
peer: Specifies the IP address of the peer PE of the VSI.
peer-ip: IP address of a VSI remote peer PE.
vc-id: Specifies the ID of the VC between the VSI and the peer PE. It defaults to VSI-ID.
vc-id: VSI VC ID.
upe: Specifies the peer PE as the user convergence node UPE in the H-VPLS model.
dual-npe: Specifies the peer PE as an NPE in the H-VPLS model. You can specify up
to two NPEs.
encapsulation: Specifies the VC encapsulation type.
ethernet: Specifies the VC encapsulation type as Ethernet Raw mode. By default, the
Raw mode is used.
vlan: Specifies the VC encapsulation type as Ethernet Tagged mode.
Description
Use the peer command to create a VPLS peer PE contained in an instance. When you
create a VPLS peer PE, you must specify an IP address and peer type for the peer PE.
Use the undo peer command to remove the specified VPLS peer PE. Note that, for the
undo peer command, if there are multiple peers for the same PE in an instance, you
must specify the corresponding VC-ID when you remove a peer; if there is only one
peer, you do not need to specify a VC-ID.
By default, the peer type is NPE. When you specify UPE as the peer type, it indicates
the peer is a user convergence node UPE in hierarchical VPLS architecture. You can
also specify an ID for a VC to the peer, and the ID must be consistent with that of the
remote. Multipoint-to-multipoint connections are needed among specified multiple
remote peer NPEs, but not needed between UPEs and NPEs.
By default, VC-ID is VSI-ID.
Related commands: vsi, vsi-id.
Examples
# In VPLS-LDP view, create a user convergence node UPE whose IP address is 4.4.4.4
in hierarchical architecture and set the VC ID for the UPE to 200.
<Quidway> system-view
[Quidway] vsi Test static
[Quidway-vsi-Test] pwsignal ldp
[Quidway-vsi-Test-ldp] vsi-id 1000
[Quidway-vsi-Test-ldp] peer 4.4.4.4 vc-id 200 upe
Command Manual MPLS VPLS
Quidway S8500 Series Routing Switches Chapter 1 VPLS Configuration Commands

Huawei Proprietary and Confidential
Copyright (c) Huawei Technologies Co., Ltd
1-17

# For H-VPLS networking, specify two PEs, 4.4.4.4 and 5.5.5.5, as peer PEs (up to two)
that serve as primary/backup links so that when the primary link is unavailable, the
backup link is switched on.
<Quidway> system-view
[Quidway] vsi test static
[Quidway-vsi-test] pwsignal ldp
[Quidway-vsi-test-ldp] vsi-id 200
[Quidway-vsi-test-ldp] peer 4.4.4.4 dual-npe
[Quidway-vsi-test-ldp] peer 5.5.5.5 dual-npe
1.1.17 rule permit mpls l2label-range
Syntax
rule [ rule-id ] permit mpls l2label-range [ range-id ] ingress any egress any
View
Link ACL view
Parameters
rule-id: ACL rule ID.
range-id: Label range ID.
Description
Use the rule permit mpls l2label-range command to add a rule for the Link ACL.
On an S8500 series switch, the entire VPLS supported label range is divided into 8
label ranges with equal space. These 8 ranges correspond to range IDs 0 through 7.
The range-id argument specifies an MPLS label range corresponding to the rule. In this
case, the corresponding label range is 128K + range-id 16K ~ 128K + (range-id + 1)
16K - 1. If no range-id is provided, by default, the label range corresponding to the rule
is 128K ~ 256K - 1.
Examples
# Create a rule of the Link ACL. The label range corresponding to the rule is 128K ~
256K - 1.
<Quidway> system-view
[Quidway]acl number 4000
[Quidway-acl-link-4000] rule 0 permit mpls l2label-range
Chapter 1 VPLS Configuration Commands
Command Manual MPLS VPLS
Quidway S8500 Series Routing Switches

1-18 Huawei Proprietary and Confidential
Copyright (c) Huawei Technologies Co., Ltd

1.1.18 vpls-load-share
Syntax
vpls-load-share enable
vpls-load-share disable
View
System view
Parameters
None
Description
Use the vpls-load-share enable command to enable VPLS load sharing and allow
VPLS board switchover upon failure.
Use the vpls-load-share disable command to disable VPLS load sharing and prohibit
VPLS board switchover upon failure.
By default, VPLS load sharing is enabled; that is, switchover upon failure is allowed. If
the service on a VPLS board has been switched over to another board, you cannot
prohibit switchover upon failure.
Examples
# Enables VPLS load sharing.
<Quidway> system-view
[Quidway] vpls-load-share enable
1.1.19 pwsignal
Syntax
pwsignal [ ldp ]
View
VSI view
Parameters
ldp: Configures the VSI to use LDP as the PW signaling protocol.
Description
Use the pwsignal command to specify a PW signaling protocol for a VSI and enter
VSI-LDP view.
Specifying LDP as the PW signaling protocol for the VSI takes you to the VSI-LDP view.
Command Manual MPLS VPLS
Quidway S8500 Series Routing Switches Chapter 1 VPLS Configuration Commands

Huawei Proprietary and Confidential
Copyright (c) Huawei Technologies Co., Ltd
1-19

By default, the VSI uses LDP as the PW signaling protocol.
Examples
# Set LDP as the PW signaling protocol for VSI Test and enter the VSI-LDP view.
<Quidway> system-view
[Quidway] vsi test static
[Quidway-vsi-test] pwsignal ldp
1.1.20 reset mac-address vsi
Syntax
reset mac-address vsi [ vsi-name [ peer { peer-ip | dual-npe } | vlan-interface
vlan-num ] ] { static | dynamic | all }
View
User view
Parameters
vsi-name: VPN instance name.
vlan-id: VLAN interface ID.
static: Specifies static MAC addresses.
dynamic: Specifies dynamic MAC addresses.
Description
Use the reset mac-address vsi command to batch remove VPLS MAC addresses.
The reset mac-address vsi command performs the same function as the undo
mac-address vsi command does.
Related commands: undo mac-address vsi.
Examples
# Remove all dynamic VPLS MAC addresses on Vlan-interface10 in VSI VPN1.
<Quidway> reset mac-address vsi vpn1 vlan-interface 10 dynamic
1.1.21 shutdown
Syntax
shutdown
undo shutdown
Chapter 1 VPLS Configuration Commands
Command Manual MPLS VPLS
Quidway S8500 Series Routing Switches

1-20 Huawei Proprietary and Confidential
Copyright (c) Huawei Technologies Co., Ltd

View
VSI view
Parameters
None
Description
Use the shutdown command to shut down the service of the VSI. When the service of
the VSI is shut down, the system does not process any traffic for this VSI.
Use the undo shutdown command to restore the service for the VSI.
Examples
# Shut down the service of VSI Test.
<Quidway> system-view
[Quidway] vsi test static
[Quidway-vsi-Test] shutdown
# Restore the service of VSI Test.
<Quidway> system-view
[Quidway] vsi test static
[Quidway-vsi-Test] undo shutdown
1.1.22 undo mac-address vsi
Syntax
undo mac-address vsi [ vsi-name [ peer peer-ip | vlan-interface vlan-id ] ] [ static |
dynamic ]
View
System view
Parameters
peer: Specifies that the static MAC address corresponds to a remote peer.
peer-ip: IP address of the remote peer.
dual-npe: Specifies the peer PE as a NPE in the H-VPLS model.
vsi-name: VSI name.
vlan-id: VLAN interface ID.
static: Specifies static MAC addresses.
dynamic: Specifies dynamic MAC addresses.
Command Manual MPLS VPLS
Quidway S8500 Series Routing Switches Chapter 1 VPLS Configuration Commands

Huawei Proprietary and Confidential
Copyright (c) Huawei Technologies Co., Ltd
1-21

Description
Use the undo mac-address vsi command to batch remove all VPLS MAC addresses,
or remove a MAC address identified by peer IP address or VLAN ID.
Related commands: display mac-address vsi, reset mac-address vsi.
Examples
# Remove all dynamic VPLS MAC addresses on Vlan-interface10 in VSI VPN1.
<Quidway> system-view
[Quidway] undo mac-address vsi vpn1 vlan-interface 10 dynamic
1.1.23 vsi
Syntax
vsi vsi-name [ static ]
undo vsi vsi-name
View
System view
Parameters
vsi: Creates a VSI or enter the VSI view.
vsi-name: VSI name, a locally unique string of 1 to 20 alphanumeric characters.
static: Indicates that the peer discovery mechanism is static manual configuration.
When you create a VSI, you must specify to manually configure the mechanism, but
you do not need to specify the configuration mode after the VSI is created and you are
in the VSI view.
Description
Use the vsi command to create a VSI or enter the VSI view. When you create an
instance, you must specify the mechanism for discovering VSIs and the peers. At
present, you can only configure the mechanism statically and manually and must
specify the configuration mode explicitly.
Use the undo vsi command to delete a VSI.
Related commands: display vsi.
Examples
# Create a VSI named Test and specify to manually configure the mechanism for
discovering the peers of the VSI.
<Quidway> system-view
[Quidway] vsi test static
Chapter 1 VPLS Configuration Commands
Command Manual MPLS VPLS
Quidway S8500 Series Routing Switches

1-22 Huawei Proprietary and Confidential
Copyright (c) Huawei Technologies Co., Ltd

1.1.24 vsi-id
Syntax
vsi-id vsi-id
View
VSI-LDP view
Parameters
vsi-id: VSI ID. The value of vsi-id is locally unique and ranges from 1 to 4294967295.
For a VC in the current VSI, by default, VC ID defaults to vsi-id.
Description
Use the vsi-id command to configure the ID of the current VSI. If you do not specify a
VC-ID when configuring Peer, VC-ID takes the value of VSI-ID.
Examples
# Configure the VSI-ID of VSI "Test" as 100.
<Quidway> system-view
[Quidway] vsi test static
[Quidway-vsi-test] pwsignal ldp
[Quidway-vsi-test-ldp] vsi-id 100

You might also like