- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
03-VPLS Commands | 104.12 KB |
Chapter 1 VPLS Configuration Commands
1.1 VPLS Configuration Commands
1.1.18 route-distinguisher (VSI-BGP view)
1.1.23 vpn-target (VSI-BGP view)
Chapter 1 VPLS Configuration Commands
1.1 VPLS Configuration Commands
1.1.1 bandwidth
Syntax
bandwidth vpn-speed
undo bandwidth
View
VSI view
Default Level
2: System level
Parameters
vpn-speed: Speed limit of the VPLS instance, in kbps.
Description
Use the bandwidth command to set the speed limit of a VPLS instance.
Use the undo bandwidth command to restore the default.
By default, the speed limit of a VPLS instance is 102400 kbps.
Examples
# Set the speed limit of VPLS instance aaa to 10 Mbps.
<Sysname> system-view
[Sysname] vsi aaa static
[Sysname-vsi-aaa] bandwidth 10240
1.1.2 broadcast-restrain
Syntax
broadcast-restrain ratio
undo broadcast-restrain
View
VSI view
Default Level
2: System level
Parameters
ratio: Broadcast suppression percentage of the VPLS instance, in the range 1 to 100.
Description
Use the broadcast-restrain command to set the broadcast suppression percentage of a VPLS instance.
Use the undo broadcast-restrain command to restore the default.
By default, the broadcast suppression percentage of a VPLS instance is 5.
& Note:
With this command configured, the broadcast traffic (including broadcast, multicast, and unknown unicast) of the VPLS instance that is over the threshold will be dropped.
Examples
# Set the broadcast suppression percentage of VPLS instance aaa to 10.
<Sysname> system-view
[Sysname] vsi aaa static
[Sysname-vsi-aaa] broadcast-restrain 10
1.1.3 description
Syntax
description text
undo description
View
VSI view
Default Level
2: System level
Parameters
text: Description for the VPLS instance.
Description
Use the description command to set a description for a VPLS instance.
Use the undo description command to remove the configuration.
By default, no description is set for a VPLS instance.
Examples
# Set the description of VPLS instance aaa to “Aaa_Technologies_Co._Ltd.”.
<Sysname> system-view
[Sysname] vsi aaa static
[Sysname-vsi-aaa] description Aaa_Technologies_Co._Ltd.
1.1.4 display bgp vpls
Syntax
display bgp vpls { all | group [ group-name ] | peer [ [ ip-address ] verbose ] | route-distinguisher route-distinguisher [ site-id site-id [ label-offset label-offset ] ] }
View
Any view
Default Level
1: Monitor level
Parameters
all: Specifies all VPLS information in the BGP routing table.
group group-name: Specifies a peer group by its name.
ip-address: IP address of the peer.
verbose: Displays detailed information.
route-distinguisher route-distinguisher: Specifies the route distinguisher (RD) in the format nn:nn or IP_address:nn.
site-id site-id: Specifies the ID of the site in the VPLS instance.
label-offset label-offset: Specifies the label offset.
Description
Use the display bgp vpls command to display the VPLS information in a BGP routing table.
Examples
# Display all VPLS information in the BGP routing table.
<Sysname> display bgp vpls all
BGP Local Router ID : 2.2.2.9 Local AS number : 100
Origin codes:i – IGP e - EGP ? - incomplete
BGP.VPLS: 1 destination
**Route Distinguisher: 100:1
SITE ID LB Offset LB Size LB Base Nexthop LocPref
1 0 10 131346 3.3.3.9 100
Table 1-1 Description on the fields of the display bgp vpls all command
Field |
Description |
BGP Local Router ID |
Router ID of the local BGP router |
Local AS number |
Number of the local AS |
Origin codes |
Route origin codes. Valid values include: i - IGP (learned from within the AS) e - EGP (learned through EGP) ? - incomplete (learned in any other way) |
BGP.VPLS |
Number of BGP VPLS |
Route Distinguisher |
Route distinguisher (RD) |
SITE ID |
ID of a site in the VPLS instance |
LB Offset |
Label offset value |
LB Size |
Label size |
LB Base |
Initial label of the label base |
Nexthop |
IP address of the next hop |
LocPref |
Local preference |
# Display detailed information about VPLS peer 3.3.3.9 in the BGP routing table.
<Sysname> display bgp vpls peer 3.3.3.9 verbose
Peer: 3.3.3.9 Local: 2.2.2.9
Type: IBGP link
BGP version 4, remote router ID 3.3.3.9
BGP current state: Established, Up for 01h06m42s
BGP current event: KATimerExpired
BGP last state: OpenConfirm
Port: Local - 1040 Remote - 179
Configured: Active Hold Time: 180 sec Keep Alive Time:60 sec
Received : Active Hold Time: 180 sec
Negotiated: Active Hold Time: 180 sec Keep Alive Time:60 sec
Peer optional capabilities:
Peer support bgp multi-protocol extended
Peer support bgp route refresh capability
Graceful Restart Capability: received
Restart Timer Value of Peer: 150 seconds
Forwarding State preserved by Peer for following Address families:
IPv4 Unicast
VPLS
Address family IPv4 Unicast: advertised and received
Address family VPLS: advertised and received
Received: Total 26 messages, Update messages 2
Sent: Total 28 messages, Update messages 2
Maximum allowed prefix number: 4294967295
Threshold: 75%
Minimum time between advertisement runs is 15 seconds
Optional capabilities:
Route refresh capability has been enabled
Connect-interface has been configured
Peer Preferred Value: 0
Routing policy configured:
No routing policy is configured
Table 1-2 Description on the fields of the display bgp vpls peer verbose command
Field |
Description |
Peer |
IP address of the peer |
Local |
IP address of the local router |
Type |
BGP type |
BGP version 4 |
BGP version information |
remote router ID |
IP address of the remote router |
BGP current state |
Current status of the BGP session |
BGP current event |
Current event of the BGP session |
BGP last state |
State that the BGP session was in before transitioning to the current status |
Port |
Local and remote ports of the BGP session |
Configured |
Settings of the local timers |
Received |
Received active hold interval |
Negotiated |
Negotiated settings of the timers |
Peer optional capabilities: Peer support bgp multi-protocol extended Peer support bgp route refresh capability |
Optional peer capabilities, including the support for BGP multicast protocol extension and the support for BGP route refreshing |
Graceful Restart Capability: Restart Timer Value of Peer Forwarding State preserved by Peer for following Address families |
Information about Graceful Restart (GR) capability, including the peer restart timer and the address families for which forwarding state is preserved. |
Address family IPv4 Unicast |
IPv4 unicast address family capability |
Address family VPLS |
VPLS address family |
Received |
Counts of received messages, including the total number of received messages and the number of received update messages. |
Sent |
Counts of sent messages, including the total number of sent messages and the number of sent update messages. |
Maximum allowed prefix number |
Maximum number of routes allowed |
Threshold |
Threshold value |
Minimum time between advertisement runs is XX seconds |
Minimum advertising interval |
Optional capabilities: Route refresh capability has been enabled Connect-interface has been configured |
Optional capabilities. In this example, route refresh capability is enabled and the directly connected interface is configured. |
Peer Preferred Value |
Peer preference value |
Routing policy configured |
Routing policy configured for the peer |
# Display the VPLS information for RD 100:1 in the BGP routing table.
<Sysname> display bgp vpls route-distinguisher 100:1
BGP Local Router ID : 2.2.2.9, Local AS Number : 100
Origin codes:i - IGP, e - EGP, ? - incomplete
BGP.VPLS: 1 destination
SITE ID LB Offset LB Size LB Base Nexthop LocPref
8 0 10 524624 3.3.3.9 100
Table 1-3 Description on the fields of display bgp vpls route-distinguisher
Field |
Description |
BGP Local Router ID |
Router ID of the local BGP router |
Local AS Number |
Number of the local AS |
Origin codes |
Route origin codes. Valid values include: i - IGP (learned from within the AS) e - EGP (learned through EGP) ? - incomplete (learned in any other way) |
BGP.VPLS |
Number of BGP VPLS |
SITE ID |
ID of a site in the VPLS instance |
LB Offset |
Label offset value |
LB Size |
Label size |
LB Base |
Initial label of the label base |
Nexthop |
IP address of the next hop |
LocPref |
Local preference |
# Display the VPLS information for a specified RD, CE number, and label offset in the BGP routing table.
<Sysname> display bgp vpls route-distinguisher 100:1 site-id 4 label-offset 0
BGP Local router ID : 2.2.2.9, local AS number : 100
Origin codes:i - IGP, e - EGP, ? - incomplete
*Nexthop : 3.3.3.9 , Locpref : 100
Metric : 133 , Flag : 0x85
LB Base : 132096 , LB NewBase : 0
LB Size : 10 , Label Offset : 0
MTU : 1500 , Encap Type : Ethernet
Path Attribute : RefCount : 1, MED 133: , AS Path : 200
Table 1-4 Fields of display bgp vpls route-distinguisher site-id label-offset
Field |
Description |
BGP Local router ID |
Router ID of the local BGP router |
local AS number |
Number of the local AS |
Origin codes |
Route origin codes. Valid values include: i - IGP (learned from within the AS) e - EGP (learned through EGP) ? - incomplete (learned in any other way) |
*Nexthop |
IP adddress of the next hop |
Locpref |
Local preference |
Metric |
Cost value |
Flag |
Current status of the label. Possible values are: 0x0001 (BGP_VPLS_LB_NOT_SENTTO_VPLS) 0x0002 (BGP_VPLS_LB_SENTTO_VPLS) 0x0004 (BGP_VPLS_LB_SELECTED) 0x0008 (BGP_VPLS_LB_ASBR_TNLDOWN) 0x0010 (BGP_VPLS_LB_FROM_RR_IBGP) 0x0020 (BGP_VPLS_LB_FROM_RR_EBGP) 0x0040 (BGP_VPLS_LB_FROM_IBGP) 0x0080 (BGP_VPLS_LB_FROM_EBGP) 0x0085 (BGP_VPLS_LB_NOT_SENTTO_VPLS | BGP_VPLS_LB_SELECTED | BGP_VPLS_LB_FROM_EBGP) It is always 0x0046 when the VSI is up. |
LB Offset |
Label offset value |
LB Size |
Label size |
LB Base |
Initial label of the label base |
LB NewBase |
New label base |
RefCount |
Label reference count |
MED |
Cost value |
AS Path |
AS path of the route |
MTU |
Maximum transmission unit at Layer 2 |
Encap Type |
Encapsulation type |
1.1.5 display mac-address vsi
Syntax
display mac-address vsi [ vsi-name ] [ dynamic ] [ count ]
View
Any view
Default Level
1: Monitor level
Parameters
vsi-name: Name of a VPLS instance.
dynamic: Dynamic MAC forwarding entries.
count: Number of MAC forwarding entries.
Description
Use the display mac-address vsi command to display the MAC address table information of a specified VPLS instance or all VPLS instances.
Related commands: vsi, mac-address.
Examples
# Display the MAC address table information of VPLS instances.
<Sysname> display mac-address vsi
MAC ADDR STATE VSI ID PEER IP AGING TIME
0000-0000-000a dynamic 1 Vlan 300 AGING
0000-0000-0009 dynamic 1 LinkId 1 AGING
--- 2 mac address(es) found ---
# Display the total number of entries in the MAC address table for VPLS instances.
<Sysname> display mac-address vsi count
2 mac address(es) found
Table 1-5 Description on the fields of the display mac-address vsi command
Field |
Description |
MAC ADDR |
MAC address |
STATE |
Status of the MAC address |
VSI ID |
ID of the VPLS instance |
PEER IP |
IP address of the peer in the VPLS instance. For a device on the private network side, it is the ID of the VLAN to which the device belongs. For a device on the public network side, it is the PW ID. |
AGING TIME |
Whether the MAC address gets aged. |
XX mac address(es) found |
Total number of MAC addresses in the MAC address table of the VPLS instance |
1.1.6 display vpls connection
Syntax
display vpls connection [ bgp | ldp | vsi vsi-name ] [ block | down | up ] [ verbose ]
View
Any view
Default Level
1: Monitor level
Parameters
bgp: Specifies all Kompella VPLS connections.
ldp: Specifies all Martini VPLS connections.
vsi vsi-name: Specifies a VPLS instance by its name.
block: Specifies VPLS connections that are blocked.
down: Specifies VPLS connections that are down.
up: Specifies VPLS connections that are up.
verbose: Displays detailed information.
Description
Use the display vpls connection command to display information about VPLS connections.
Related commands: vsi.
Examples
# Display information about VPLS connections of VPLS instance aaa.
<Sysname> display vpls connection vsi aaa
1 total connection,
connection: 1 up, 0 block, 0 down
VSI Name: aaa Signaling: ldp
VsiID VsiType PeerAddr InLabel OutLabel LinkID VCState
500 vlan 1.1.1.9 524288 524289 1 up
Table 1-6 Description on the fields of the display vpls connection command
Field |
Description |
VSI Name |
Name of the VPLS instance |
Signaling |
Type of the PW signaling protocol used by the VPLS instance |
VsiID |
ID of the VPLS instance |
VsiType |
Access type of the VPLS instance |
PeerAddr |
Address of the peer in the VPLS instance |
InLabel |
Incoming label of the VPLS instance |
OutLabel |
Outgoing label of the VPLS instance |
LinkID |
ID of the PW in the VPLS instance |
VCState |
Status of the VC |
1.1.7 display vpls fib
Syntax
display vpls fib [ vsi vsi-name [ link link-id ] ] [ verbose ]
View
Any view
Default Level
1: Monitor level
Parameters
vsi vsi-name: Specifies a VPLS instance by its name.
link link-id: Specifies ID of the PW in the VPLS instance.
verbose: Displays detailed information.
Description
Use the display vpls fib command to display the forwarding information base (FIB) information of a specified VPLS instance or all VPLS instances.
Related commands: vsi.
Examples
# Display the FIB information of VPLS instance aaa.
<Sysname> display vpls fib vsi aaa
VsiName LinkId Inlabel OutLabel TnlIdx NextHop
aaa 1 524288 524289 149946398 60.12.12.1
Table 1-7 Description on the fields of the display vpls fib command
Field |
Description |
VsiName |
Name of the VPLS instance |
LinkId |
ID of the PW in the VPLS instance |
Inlabel |
Incoming label of the VPLS instance |
OutLabel |
Outgoing label of the VPLS instance |
TnlIdx |
Index of the tunnel of the VPLS instance |
NextHop |
Next hop for forwarding |
1.1.8 display vsi
Syntax
display vsi [ vsi-name ] [ verbose ]
View
Any view
Default Level
1: Monitor level
Parameters
vsi-name: Name of a VPLS instance.
verbose: Displays detailed information.
Description
Use the display vsi command to display information about a specified or all VPLS instances.
Related commands: vsi.
Examples
# Display configuration information about VPLS instance aaa, which uses LDP as the PW signaling protocol.
<Sysname> display vsi aaa
Vsi Mem PW Mac Encap Mtu Vsi
Name Disc Type Learn Type Value State
aaa static ldp unqualify vlan 1500 down
Table 1-8 Description on the fields of the display vsi command
Field |
Description |
Vsi Name |
Name of the VPLS instance |
Mem Disc |
Peer discovery mechanism of the VPLS instance |
PW Type |
Type of the PW signaling protocol used by the VPLS instance |
Mac Learn |
MAC address learning type |
Encap Type |
Encapsulation type of the VPLS instance |
Mtu Value |
Maximum transmission unit |
Vsi State |
Status of the VPLS instance |
# Display detailed configuration information about VPLS instance aaa, which uses LDP as the PW signaling protocol.
<Sysname> display vsi aaa verbose
***VSI Name : aaa
VSI Index : 0
VSI Description : 1
PW Signaling : ldp
Member Discovery Style : static
PW MAC Learn Style : unqualify
Encapsulation Type : vlan
IntfIndex : 4294967295
MTU : 1500
Bandwidth : 102400 kbps
BroadcastRestrain : 5%
MacTabLimit : 128
MacLearnEnable : enable
QoSLevel : 0
QoSTable : 0 0 0 1 1 1 1 2
VSI State : down
VSI ID : 100
*Peer Router ID : 2.2.2.2
VC Label : 524288
Session : up
# Display detailed configuration information about VPLS instance bbb, which uses BGP as the PW signaling protocol.
<Sysname> display vsi bbb verbose
***VSI Name : bbb
VSI Index : 1
PW Signaling : bgp
Member Discovery Style : auto
PW MAC Learn Style : unqualify
Encapulation Type : vlan
IntfIndex : 4294967295
MTU : 1500
Bandwidth : 102400 kbps
BroadcastRestrain : 5%
MacTabLimit : 128
MacLearnEnable : enable
QoSLevel : 0
QoSTable : 0 0 0 1 1 1 1 2
VSI State : down
BGP RD : 111:1
SiteID/Range/Offset : 100/10/0
Import vpn target : 111:1
Export vpn target : 111:1
Local Label Block : 524288/10/0,
Table 1-9 Description on the fields of the display vsi verbose command
Field |
Description |
VSI Name |
Name of the VPLS instance |
VSI Index |
Index of the VPLS instance |
VSI Description |
Description of the VPLS instance |
PW Signaling |
Type of the PW signaling protocol used by the VPLS instance |
Member Discovery Style |
Peer discovery mechanism of the VPLS instance |
PW MAC Learn Style |
MAC address learning type |
Encapulation Type |
Encapsulation type of the VPLS instance |
IntfIndex |
Index of the interface |
MTU |
Maximum transmission unit |
Bandwidth |
Bandwidth threshold of the VPLS instance |
BroadcastRestrain |
Broadcast suppression percentage of the VPLS instance |
MacTabLimit |
Maximum number of MAC addresses for a VPLS instance |
MacLearnEnable |
Whether MAC address learning is enable |
QoSLevel |
QoS level |
QoSTable |
QoS level mapping table for the VPLS instance |
VSI State |
Status of the VPLS instance |
VSI ID |
ID of the VPLS instance |
Peer Router ID |
ID of the peer |
VC Label |
Label of the VC |
Session |
Status of the session |
BGP RD |
BGP router distinguisher |
SiteID/Range/Offset |
Site ID/site range/CE offset of a site in the VPLS instance |
Import vpn target |
Incoming routing information from the destination VPN extended community |
Export vpn target |
Outgoing routing information to the destination VPN extended community |
Local Label Block |
Local label block |
& Note:
Valid value ranges of the parameters displayed varies by device.
1.1.9 display vsi remote
Syntax
display vsi remote { bgp | ldp }
View
Any view
Default Level
1: Monitor level
Parameters
bgp: Displays information about remote VPLS connections using the signaling protocol of BGP.
ldp: Displays information about remote VPLS connections using the signaling protocol of LDP.
Description
Use the display vsi remote command to display information about remote VPLS connections using a specified signaling protocol.
Related commands: vsi.
Examples
# Display information about remote VPLS connections using LDP.
<Sysname> display vsi remote ldp
Vsi Peer VC Group Vsi MTU Vsi
ID RouterID Label ID Type Value Index
500 60.1.1.1 524688 0 vlan 1500 0
Table 1-10 Description on the fields of the display vsi remote command
Field |
Description |
Vsi ID |
ID of the VPLS instance |
Peer Router ID |
ID of the peer |
VC Label |
Label of the VC |
Group ID |
ID of the group |
Vsi Type |
Encapsulation type of the VPLS instance |
MTU Value |
Maximum transmission unit |
Vsi Index |
Index of the VPLS instance |
1.1.10 encapsulation
Syntax
encapsulation { ethernet | vlan }
View
VSI view
Default Level
2: System level
Parameters
ethernet: Uses the encapsulation type of Ethernet. This type corresponds to the VPLS instance PW encapsulation type of raw.
vlan: Uses the encapsulation type of VLAN. This type corresponds to the VPLS instance PW encapsulation type of tagged.
Description
Use the encapsulation command to specify the encapsulation type of a VPLS instance.
By default, the encapsulation type of a VPLS instance is VLAN, which corresponds to the VPLS instance PW encapsulation type of tagged.
Examples
# Set the VPLS instance encapsulation type to Ethernet.
<Sysname> system-view
[Sysname] vsi aaa static
[Sysname-vsi-aaa] pwsignal ldp
[Sysname-vsi-aaa-ldp] vsi-id 500
[Sysname-vsi-aaa-ldp] quit
[Sysname-vsi-aaa] encapsulation ethernet
1.1.11 l2 binding vsi
Syntax
l2 binding vsi vsi-name [ access-mode { ethernet | vlan } ]
undo l2 binding vsi vsi-name
View
VLAN interface view
Default Level
2: System level
Parameters
vsi-name: Name of a VPLS instance.
access-mode: Specifies the access mode for the VPLS instance, which can be ethernet or vlan.
Description
Use the l2 binding vsi command to bind a VPLS instance to a VLAN interface.
Use the undo l2 binding vsi command to remove the binding.
By default, the access mode of a VPLS instance is ethernet.
Caution:
With the l2 binding vsi command configured on a VLAN interface, services bound to the VLAN are considered the internal VPN services of the VPLS instance.
Related commands: vsi, peer.
Examples
# Bind VPLS instance aaa to VLAN-interface 100.
<Sysname> system-view
[Sysname] vlan 100
[Sysname-vlan100] port Ethernet 3/1/1
[Sysname-vlan100] quit
[Sysname] interface vlan-interface 100
[Sysname-Vlan-interface100] l2 binding vsi aaa
1.1.12 mac-table limit
Syntax
mac-table limit mac-limit-num
undo mac-table limit
View
VSI view
Default Level
2: System level
Parameters
mac-limit-num: Maximum number of MAC addresses in the VPLS instance
Description
Use the mac-table limit command to set the maximum number of MAC addresses in the VPLS instance.
Use the undo mac-table limit command to restore the default setting.
By default, the maximum number of MAC addresses in a VPLS instance is 128.
Once the number of MAC addresses learned in a VPLS instance reaches this threshold, the system does not learn source MAC addresses any more.
Examples
# Set the maximum number of MAC addresses in VPLS instance aaa to 1024.
<Sysname> system-view
[Sysname] vsi aaa static
[Sysname-vsi-aaa] mac-table limit 1024
1.1.13 mtu (VSI view)
Syntax
mtu mtu
undo mtu
View
VSI view
Default Level
2: System level
Parameters
mtu: Maximum transmission unit (MTU) for the VPLS instance. The default is 1,500.
Description
Use the mtu command to set the MTU of the VPLS instance.
Use the undo mtu command to restore the default.
Note that the MTU of a VPLS instance is a global attribute and is also the MTU of PWs. For Martini VPLS, the MTUs set for the instances on peer PEs must be identical; while for Kompella VPLS, this is not required.
Examples
# Set the MTU of VPLS instance aaa to 1400.
<Sysname> system-view
[Sysname] vsi aaa static
[Sysname-vsi-aaa] pwsignal ldp
[Sysname-vsi-aaa-ldp] vsi-id 500
[Sysname-vsi-aaa-ldp] quit
[Sysname-vsi-aaa] mtu 1400
1.1.14 peer (VSI-LDP view)
Syntax
peer ip-address [ negotiation-vc-id pw-id ] [ tnl-policy tunnel-policy-name ] [ upe | dual-npe ] [ trans-mode { raw | tagged } ]
undo peer ip-address
View
VSI LDP view
Default Level
2: System level
Parameters
ip-address: IP address of the VPLS remote peer PE.
pw-id: ID of the PW to the VPLS peer PE. The default is VSI ID.
tunnel-policy-name: Name of a tunneling policy, containing no blank space. If you do not specify this argument or no tunneling policy with that name exists, the system uses the policy specified by the tnl-policy command in VSI view.
upe: Specifies that the peer PE is a UPE in the H-VPLS model. This is the default setting.
dual-npe: Specifies the peer PE is the primary or secondary NPE.
trans-mode: Specifies the PW encapsulation type. By default, the PW encapsulation type is that specified by the encapsulation command.
raw: Uses raw mode.
tagged: Uses tagged mode.
Description
Use the peer command to create a peer PE for a VPLS instance.
Use the undo peer command to remove a peer PE.
Caution:
l If the PW encapsulation type specified by the peer command is not that specified by the encapsulation command, the former takes precedence.
l If the tunneling policy specified by the peer command is not that specified by the tnl-policy command in VSI view, the former takes precedence.
Related commands: vsi, vsi-id, encapsulation.
Examples
# Create a peer PE, which is of the UPE type, with the IP address of 4.4.4.4 and the VC ID of 200.
<Sysname> system-view
[Sysname] vsi aaa static
[Sysname-vsi-aaa] pwsignal ldp
[Sysname-vsi-aaa-ldp] vsi-id 500
[Sysname-vsi-aaa-ldp] peer 4.4.4.4 negotiation-vc-id 200 upe
1.1.15 pwsignal
Syntax
pwsignal { ldp | bgp }
View
VSI view
Default Level
2: System level
Parameters
ldp: Specifies to use LDP signaling, that is, Martini mode.
bgp: Specifies to use BGP signaling, that is, Kompella mode.
Description
Use the pwsignal command to specify the PW signaling protocol for VPLS to use, and enter VSI LDP view (Martini mode) or VSI BGP view (Kompella mode).
Examples
# Specify that VPLS instance aaa uses the connection mode of Martini and enter VSI LDP view.
<Sysname> system-view
[Sysname] vsi aaa static
[Sysname-vsi-aaa] pwsignal ldp
[Sysname-vsi-aaa-ldp]
1.1.16 reset bgp vpls
Syntax
reset bgp vpls { as-number | ip-address | all | external | internal }
View
User view
Default Level
2: System level
Parameters
as-number: Resets VPLS BGP connections to peers in a specified AS.
ip-address: Resets the VPLS BGP connection to a specified peer.
all: Resets all VPLS BGP connections.
external: Resets VPLS EBGP session.
internal: Resets VPLS IBGP session.
Description
Use the reset bgp vpls command to reset a specified or all VPLS BGP connections.
Examples
# Reset all VPLS BGP connections.
<Sysname> reset bgp vpls all
1.1.17 reset mac-address vsi
Syntax
reset mac-address vsi [ vsi-name ]
View
User view
Default Level
2: System level
Parameters
vsi-name: Name of a VPLS instance.
Description
Use the reset mac-address vsi command to clear the MAC address table of a specified VPLS instance or all VPLS instances.
Examples
# Clear the MAC address table of VPLS instance aaa.
<Sysname>reset mac-address vsi aaa
1.1.18 route-distinguisher (VSI-BGP view)
Syntax
route-distinguisher route-distinguisher
View
VSI BGP view
Default Level
2: System level
Parameters
route-distinguisher: Route distinguisher (RD), a string of 3 to 21 characters in the format of nn:nn or IP_address:nn.
An RD can be either of these two formats:
l 16-bit AS number:32-bit user-defined number. For example, 101:3.
l 32-bit IP address:16-bit user-defined number. For example, 192.168.122.15:1.
Description
Use the route-distinguisher command to configure an RD for a VPLS instance.
Different VPLS instances on a PE must have different RDs, while a VPLS instance can have the same RD or different RDs on different PEs.
& Note:
l RD has no default value. You must configure an RD for a VPLS instance to make the instance take effect.
l To change the RD of a VPLS instance, you must remove the VPLS instance and then reconfigure the VPLS instance and RD.
Examples
# Set the RD to 111:1.
<Sysname> system-view
[Sysname] vsi aaa auto
[Sysname-vsi-aaa] pwsignal bgp
[Sysname-vsi-aaa-bgp] route-distinguisher 111:1
1.1.19 shutdown (VSI view)
Syntax
shutdown
undo shutdown
View
VSI view
Default Level
2: System level
Parameters
None
Description
Use the shutdown command to shut down the VPLS service of the VPLS instance.
Use the undo shutdown command to restart the VPLS service of the VPLS instance.
By default, the VPLS service of a VPLS instance is started.
Note that when a VPLS instance is shut down, the system does not handle any traffic in the VPLS instance.
Examples
# Shut down the VPLS service of VPLS instance aaa.
<Sysname> system-view
[Sysname] vsi aaa static
[Sysname-vsi-aaa] pwsignal ldp
[Sysname-vsi-aaa-ldp] vsi-id 500
[Sysname-vsi-aaa-ldp] quit
[Sysname-vsi-aaa] shutdown
1.1.20 site
Syntax
site site-id [ range site-range ] [ default-offset { 0 | 1 } ]
undo site site-id
View
VSI BGP view
Default Level
2: System level
Parameters
site-id: ID of a site in the VPLS instance.
site-range: Maximum number of sites (including this site and its peer sites) supported on the PE. The default is 10.
default-offset { 0 | 1 }: Default initial CE offset. It can be 0 or 1 and defaults to 0.
Description
Use the site command to create a site for the VPLS instance.
Use the undo site command to remove a site of the VPLS instance.
Only one site can be created for a VPLS instance. You can use natural numbers as the site IDs.
Examples
# Create a site and set the site range to 20.
<Sysname> system-view
[Sysname] vsi aaa auto
[Sysname-vsi-aaa] pwsignal bgp
[Sysname-vsi-aaa-bgp] route-distinguisher 101:3
[Sysname-vsi-aaa-bgp] site 1 range 20
1.1.21 tnl-policy
Syntax
tnl-policy tunnel-policy-name
undo tnl-policy
View
VSI view
Default Level
2: System level
Parameters
tunnel-policy-name: Name of a tunneling policy for the VPLS instance, containing no blank space.
Description
Use the tnl-policy command to specify a tunneling policy for a VPLS instance.
Use the undo tnl-policy command to remove the configuration.
By default, the tunneling policy is used, which prefers LSP tunnels and the load balancing route number is 1. If a tunneling policy name is specified but no policy is configured, the default policy is used.
Related commands: refer to MPLS L3VPN Commands.
Examples
# Specify that VPLS instance aaa uses the tunneling policy of policy1.
<Sysname> system-view
[Sysname] vsi aaa static
[Sysname-vsi-aaa] pwsignal ldp
[Sysname-vsi-aaa-ldp] vsi-id 500
[Sysname-vsi-aaa-ldp] quit
[Sysname-vsi-aaa] tnl-policy policy1
1.1.22 vpls-family
Syntax
vpls-family
View
BGP view
Default Level
2: System level
Parameters
None
Description
Use the vpls-family command to enter VPLS address family view.
Examples
# Enter VPLS address family view.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] vpls-family
[Sysname-bgp-af-vpls]
1.1.23 vpn-target (VSI-BGP view)
Syntax
vpn-target vpn-target &<1-16> [ both | export-extcommunity | import-extcommunity ]
undo vpn-target { all | vpn-target &<1-16> } [ both | export-extcommunity | import-extcommunity ]
View
VSI BGP view
Default Level
2: System level
Parameters
vpn-target&<1-16>: Adds the VPN target extended community attribute to the import or export VPN target extended community list. &<1-16> means that you can enter the argument before it up to 16 times.
A VPN target can be either of the following formats:
l 16-bit AS number:32-bit user-defined number, such as 101:3.
l 32-bit IP address:16-bit user-defined number, such as 192.168.122.15:1.
both: Specifies both the incoming and outgoing routing information from and to the destination VPN extended community. The both keyword is the default setting.
export-extcommunity: Specifies the outgoing routing information to the destination VPN extended community.
import-extcommunity: Specifies the incoming routing information from the destination VPN extended community.
all: Specifies all routing information from and to the destination VPN extended community.
Description
Use the vpn-target command to associate a VPLS instance with one or more VPN targets.
Use the undo vpn-target command to delete the VPN target(s) associated with a VPLS instance.
VPN Target has no default value, and you need to configure it when creating VPN.
Examples
# Associate VPLS instance aaa with multiple VPN targets.
<Sysname> system-view
[Sysname] vsi aaa auto
[Sysname-vsi-aaa] pwsignal bgp
[Sysname-vsi-aaa-bgp] route-distinguisher 101:3
[Sysname-vsi-aaa-bgp] vpn-target 100:1
[Sysname-vsi-aaa-bgp] vpn-target 1:1 2:2 export-extcommunity
[Sysname-vsi-aaa-bgp] vpn-target 1.2.3.4:11 12:12 import-extcommunity
1.1.24 vsi
Syntax
vsi vsi-name [ auto | static ]
undo vsi vsi-name
View
System view
Default Level
2: System level
Parameters
vsi-name: Name of the VPLS instance.
static: Configures the peer discovery mechanism as static. This corresponds to LDP mode.
auto: Configures the peer discovery mechanism as dynamic. This corresponds to BGP mode.
Description
Use the vsi command to create a VPLS instance and enter VSI view.
Use the undo vsi command to remove a VPLS instance.
The VPLS instance name must be globally unique. When creating a VPLS instance, you must specify the peer discovery mechanism.
Related commands: display vsi.
Examples
# Create a VPLS instance named aaa that uses the peer discovery mechanism of manual configuration.
<Sysname> system-view
[Sysname] vsi aaa static
[Sysname-vsi-aaa]
# Create a VPLS instance named bbb that uses the peer discovery mechanism of auto.
<Sysname> system-view
[Sysname] vsi bbb auto
[Sysname-vsi-bbb]
1.1.25 vsi-id
Syntax
vsi-id vsi-id
View
VSI LDP view
Default Level
2: System level
Parameters
vsi-id: ID for the VPLS instance.
Description
Use the vsi-id command to specify the ID of a VPLS instance. Make sure that the VSI ID of the VPLS instance is consistent in a VPN.
Examples
# Set the ID of VPLS instance aaa to 100.
<Sysname> system-view
[Sysname] vsi aaa static
[Sysname-vsi-aaa] pwsignal ldp
[Sysname-vsi-aaa-ldp] vsi-id 100