Title | Size | Download |
---|---|---|
03-VPLS Commands | 239.13 KB |
display l2vpn fast-switch-group
display mpls l2vpn fib ac vpls
display mpls l2vpn fib pw vpls
display service-instance interface
route-distinguisher (VSI BGP view)
bandwidth
Syntax
bandwidth vpn-speed
undo bandwidth
View
VSI view
Default level
2: System level
Parameters
vpn-speed: Upper speed limit of the VPLS instance in kbps, in the range of 64 to 4,194,303. The system automatically calculates a speed that is the greatest multiple of 64 kbps between 64 and the specified value.
Description
Use the bandwidth command to set the upper speed limit of a VPLS instance.
Use the undo bandwidth command to restore the default.
By default, the upper speed limit of a VPLS instance is 102,400 kbps.
The bandwidth command, together with the broadcast-restrain command, defines a threshold that is used in suppressing the broadcast traffic (including broadcast, multicast, and unknown unicast traffic) of the VPLS instance. When the speed of the broadcast traffic exceeds the threshold, that is, the product of the speed limit and the broadcast suppression percentage, the extra broadcast traffic will be dropped.
|
NOTE: This feature is available only when the system working mode is SPE. For more information about system working modes, see Fundamentals Configuration Guide. |
Examples
# Set the upper speed limit of VPLS instance aaa to 10 Mbps.
<Sysname> system-view
[Sysname] vsi aaa static
[Sysname-vsi-aaa] bandwidth 10240
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 of 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.
This command, together with the bandwidth command, defines a threshold that is used in suppressing the broadcast traffic (including broadcast, multicast, and unknown unicast traffic) of the VPLS instance. When the speed of the broadcast traffic exceeds the product of the speed limit and this ratio, the extra broadcast traffic will be dropped.
|
NOTE: This feature is available only when the system working mode is SPE. For more information about system working modes, see Fundamentals Configuration Guide. |
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
description
Syntax
description text
undo description
View
VSI view
Default level
2: System level
Parameters
text: Description for a VPLS instance, a string of 1 to 80 characters.
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.
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 ] ] } [ | { begin | exclude | include } regular-expression ]
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, a string of 1 to 47 characters.
ip-address: IP address of the peer.
verbose: Displays detailed information.
route-distinguisher route-distinguisher: Specifies the route distinguisher (RD), a string of 3 to 21 characters in the format of nn:nn or IP_address:nn.
site-id site-id: Specifies the site in the VPLS instance by its ID. The site ID ranges from 0 to 64.
label-offset label-offset: Specifies the label offset value, which is in the range of 0 to 65535.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
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 Output description
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 |
Router distinguisher (RD) |
SITE ID |
ID of a site in the VPLS instance |
LB Offset |
Label offset value |
LB Size |
Size of the label block |
LB Base |
Initial label of the label block |
Nexthop |
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
BFD: Enabled
Routing policy configured:
No routing policy is configured
Table 2 Output description
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 port numbers of the BGP session. |
Configured |
Settings of the local timers |
Received |
Received active hold interval. |
Negotiated |
Negotiated timer settings. |
Peer optional capabilities: Peer support bgp multi-protocol extended Peer support bgp route refresh capability |
Optional peer capabilities. In this example, the peer supports BGP multicast protocol extension and route refresh. |
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. When the number of routes reaches the maximum number of routes allowed multiplied by this threshold value, an alarm is issued. |
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. |
BFD |
Whether BFD is enabled for the peer. |
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 3 Output description
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 |
Size of the label block |
LB Base |
Initial label of the label block |
Nexthop |
Address of the next hop |
LocPref |
Local preference |
# Display the VPLS information for 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 VLAN
Path Attribute : RefCount : 1, MED 133: , AS Path : 200
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 |
Address of the next hop. |
Locpref |
Local preference. |
Metric |
Cost value. |
Flag |
Current status of the label: · 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) When the VSI is in state of UP, the flag is 0x0046. |
LB Offset |
Label offset value. |
LB Size |
Size of the label block. |
LB Base |
Initial label of the label block. |
LB NewBase |
New label block. |
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. |
display l2vpn fast-switch-group
Syntax
display l2vpn fast-switch-group [ group-index ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
group-index: PW group index, in the range of 0 to 4095.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use the display l2vpn fast-switch-group command to display information about one or all fast switching groups.
Examples
# Display information about all fast switching groups in user view.
<Sysname> display l2vpn fast-switch-group
Fast group index :0
Peer router ID :20.0.0.1
Backup-peer router ID :20.0.0.2
In used peer router ID :20.0.0.1
Reference counter :1
Fast group index :1
Peer router ID :30.0.0.1
Backup-peer router ID :30.0.0.2
In used peer router ID :30.0.0.1
Reference counter :1
Table 5 Output description
Field |
Description |
Fast group index |
Index of the fast switching group |
Peer router ID |
Address of the VPLS instance peer |
Backup-peer router ID |
Address of the backup peer |
In used peer router ID |
Address of the peer that is in use |
Reference counter |
Number of times that the group has been referenced |
display mac-address vsi
Syntax
display mac-address vsi [ vsi-name ] [ blackhole | dynamic | static ] [ count ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
vsi-name: Name of the VPLS instance, a case-insensitive string of 1 to 31 characters. Hyphens (-) are not allowed.
blackhole: Black hole MAC forwarding entries.
dynamic: Dynamic MAC forwarding entries.
static: Static MAC forwarding entries.
count: Number of MAC forwarding entries.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use the display mac-address vsi command to display the MAC address table information of a specific VPLS instance or all VPLS instances.
Related commands: vsi; mac-address (Layer 2—LAN Switching Command Reference).
Examples
# Display information about the MAC address table.
<Sysname> display mac-address vsi
MAC ADDR STATE VSI ID Peer AGING
0000-0008-23b3 Dynamic 0 1 AGING
0000-0008-23b2 Dynamic 0 1 AGING
0000-0008-23b1 Dynamic 0 1 AGING
0000-0008-23b0 Dynamic 0 1 AGING
0000-0008-23af Dynamic 0 1 AGING
0000-0008-23ae Dynamic 0 1 AGING
0000-0008-23ad Dynamic 0 1 AGING
0000-0008-23ac Dynamic 0 1 AGING
# Display the total number of entries in the MAC address table.
<Sysname> display mac-address vsi count
100 mac address(es) found
Table 6 Output description
Field |
Description |
MAC ADDR |
MAC address |
STATE |
Status of the MAC address |
VSI ID |
ID of the VPLS instance |
Peer |
Sequence number of the peer in the VPLS instance |
AGING |
Whether the MAC address of the VPLS instance may get aged, AGING or NOAGING |
display mpls l2vpn fib ac vpls
Syntax
display mpls l2vpn fib ac vpls [ vsi vsi-name | interface interface-type interface-number [ service-instance service-instanceid ] [ slot slot-number ] [ verbose ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
vsi vsi-name: Specifies the VPLS instance name, a case-insensitive string of 1 to 31 characters. Hyphens (-) are not allowed.
interface interface-type interface-number: Specifies the interface connecting a CE by its type and number.
service-instance service-instanceid: Displays the AC information of the specified service instance. service-instanceid is the service instance ID, in the range of 1 to 4094. Currently, the router does not support this option.
slot slot-number: Displays the AC information on a card. slot-number indicates the number of the slot where the card resides.
verbose: Displays the detailed information.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use the display mpls l2vpn fib ac vpls command to display the AC information of one or all VPLS instances.
Examples
# Display the AC information of all VPLS instances.
<Sysname> display mpls l2vpn fib ac vpls
Total VSI Entry:1 Total AC Entry:1
In Interface ServID VSIName VSIIndex LinkID
------------------------------------------------------------
GE3/1/1 0 vsi1 1 1
Table 7 Output description
Field |
Description |
Total VSI Entry |
Total number of VSI entries, which is displayed only when you display all VPLS AC entries. |
Total AC Entry |
Total number of VPLS AC entries, which is displayed only when you display all VPLS AC entries. |
In Interface |
Incoming interface—the interface bound to an L2VPN. |
ServID |
Service instance ID. The router does not support this field and displays 0 for this field. |
VSIName |
VPLS instance name. |
VSIIndex |
VPLS instance index. |
LinkID |
Link ID of an AC in the VPLS instance. |
# Display the detailed AC information of all VPLS instances.
<Sysname> display mpls l2vpn fib ac vpls verbose
Total VSI Entry:2 Total AC Entry:2
VSI Name: aaa VSI Index: 0
**In Interface : GE3/1/1
Service Instance ID : 1
Link ID : 9
Access Mode : Vlan
CE Type : Independent
AC Encapsulation : s-vid 300 c-vid 400 to 500 600 700
Hub Spoke Type : ----
GR Count : 0
VSI Name: bbb VSI Index: 1
**In Interface : GE3/1/1
Service Instance ID : 2
Link ID : 9
Access Mode : Vlan
CE Type : Independent
AC Encapsulation : s-vid 4011 4012 to 4050
Hub Spoke Type : ----
GR Count : 0
Table 8 Output description
Field |
Description |
Total VSI Entry |
Total number of VSI entries, which is displayed only when you display all VPLS AC entries. |
Total AC Entry |
Total number of VPLS AC entries, which is displayed only when you display all VPLS AC entries. |
VSI Name |
Name of the VPLS instance. |
VSI Index |
Index of the VPLS instance. |
In Interface |
Incoming interface, that is, the interface bound to an L2VPN |
Link ID |
Link ID of an AC in the VPLS instance. |
Access Mode |
Access mode at the AC side. |
CE Type |
Interface encapsulation type at the AC side, PortVlan or Independent. |
AC Encapsulation |
Encapsulation VLAN information at the AC side. For more information about the values of this field, see Layer 2—LAN Switching Command Reference. |
GR Count |
Number of times that GR occurs. |
display mpls l2vpn fib pw vpls
Syntax
display mpls l2vpn fib pw vpls [ vsi vsi-name [ link link-id ] ] [ slot slot-number ] [ verbose ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
vsi vsi-name: Specifies the VPLS instance name, a case-insensitive string of 1 to 31 characters. Hyphens (-) are not allowed. The specified VPLS instance must have existed.
link link-id: Specifies a PW in the VPLS instance by its link ID. The specified PW must have existed.
slot slot-number: Displays the PW information on a card. slot-number indicates the number of the slot where the card resides.
verbose: Displays the detailed information.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use the display mpls l2vpn fib pw vpls command to display the PW information of one or all VPLS instance.
Examples
# Display the PW information of all VPLS instances.
<Sysname> display mpls l2vpn fib pw vpls
Total VSI Entry:1 Total PW Entry:1
VSI Name VSI Index Link ID ServiceID InVCLabel OutVCLabel TunnelID
--------------------------------------------------------------
vsi1 1 1 0 1000 1002 0x878ad000
Table 9 Output description
Field |
Description |
Total VSI Entry |
Total number of VSI entries, which is displayed only when you display all VPLS PW entries. |
Total PW Entry |
Total number of VPLS PW entries, which is displayed only when you display all VPLS PW entries. |
VSI Name |
VPLS instance name. |
VSI Index |
VPLS instance index. |
Link ID |
Link ID of a PW in the VPLS instance. |
ServiceID |
Service instance ID. |
InVCLabel |
Incoming VC label. |
OutVCLabel |
Outgoing VC label. |
TunnelID |
Public tunnel ID. |
# Display the detailed PW information of all VPLS instances.
<Sysname> display mpls l2vpn fib pw vpls verbose
Total VSI Entry:1 Total PW Entry:1
VSI Name : vsi1 VSI Index: 0
**Link ID : 1
In Interface : GE3/1/1
In VC Label : 1000
Out VC Label : 1002
Encapsulation Type : Ethernet
Hub Spoke Type : Hub
MTU : 1500
Role : Main
State : Active
Dual Link ID : 2
Fast Switch Group ID: 1
Tunnel ID : 0x878ad000(Done)
GrCount:1
Tunnel ID : 0x878ad001(Waiting)
GrCount:1
Table 10 Output description
Field |
Description |
Total VSI Entry |
Total number of VSI entries, which is displayed only when you display all VPLS PW entries. |
Total PW Entry |
Total number of VPLS PW entries, which is displayed only when you display all VPLS PW entries. |
VSI Name |
VPLS instance name. |
VSI Index |
VPLS instance index. |
Link ID |
Link ID of a PW in the VPLS instance. |
In Interface |
Incoming interface—the interface bound to an L2VPN |
In VC Label |
Incoming VC label. |
Out VC Label |
Outgoing VC label. |
MTU |
Maximum transmission unit. |
Role |
PW role: Main, Backup, or Normal. |
State |
PW state, active or standby. |
Dual Link ID |
Link ID of the other PW, which is displayed when main and backup PWs exist in the VPLS instance. |
Fast Switch Group ID |
PW group ID. |
Tunnel ID |
Public tunnel ID and entry state (Done or Waiting). GrCount: Number of times that GR occurs. |
display pw-class
Syntax
display pw-class [ pw-class-name ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
pw-class-name: Name of a PW class template, a case-insensitive string of 1 to 19 characters.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use the display pw-class command to display information about one or all PW class templates.
If no PW class template is specified, the command displays information about all PW class templates.
If you specify a PW class template, the output information of the display command includes an additional field to show the number of times the PW class template has been referenced.
Examples
# Display information about all PW class templates.
<Sysname> display pw-class
Total 1 PW-class(es)
PW-class name Transport mode Tunnel policy
1026 VLAN default
# Display information about the PW class template named 1026.
<Sysname> display pw-class 1026
PW-class name Transport mode Tunnel policy Reference count
1026 VLAN default 0
display service-instance interface
Syntax
display service-instance interface interface-type interface-number [ service-instance service-instance-id ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
interface-type interface-number: Displays information about service instances on a specific interface. interface-type and interface-number indicate the type and number of the interface.
service-instance instance-id: Displays information about the specified service instance. The instance-id argument indicates the ID of the instance, in the range of 1 to 4096. If this option is not specified, information about all service instances on the specified interface will be displayed.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use the display service-instance interface command to display information about one or all service instances created on an interface.
Examples
# Display information about all service instances created on GigabitEthernet 3/1/3.
<Sysname> display service-instance interface GigabitEthernet 3/1/3
Total 2 service instance(s)
Service instance : 1000
Encapsulation : s-vid 100
MTU : 1500
Access-mode : VLAN
Service type : VPLS
Service instance : 1002
Encapsulation : s-vid 103
MTU : 1500
Access-mode : VLAN
Service type : VPLS
Table 11 Output description
Field |
Description |
Service instance |
ID of the service instance. |
Encapsulation |
Packet matching rule, which is based on VLAN tags. |
Service Type |
Service type associated with the service instance, which can be VPLS and VPWS. If no L2VPN connection is associated, -- is displayed for this field. |
display vpls connection
Syntax
display vpls connection [ bgp | ldp | vsi vsi-name ] [ block | down | up ] [ verbose ] [ | { begin | exclude | include } regular-expression ]
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, a case-insensitive string of 1 to 31 characters. Hyphens (-) are not allowed.
block: Specifies VPLS connections that are blocked. A PW in the block state is not used for the moment.
down: Specifies VPLS connections that are down.
up: Specifies VPLS connections that are up.
verbose: Displays detailed information.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
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
Total 1 connection(s),
connection(s): 1 up, 0 block, 0 down, 1 ldp, 0 bgp
VSI Name: aaa Signaling: ldp
VsiID VsiType PeerAddr InLabel OutLabel LinkID VCState
500 vlan 1.1.1.9 131776 131778 1 up
Table 12 Output description
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 |
display vsi
Syntax
display vsi [ vsi-name ] [ verbose ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
vsi-name: Name of the VPLS instance, a case-insensitive string of 1 to 31 characters. Hyphens (-) are not allowed.
verbose: Displays detailed information.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use the display vsi command to display information about a specific or all VPLS instances.
Related commands: vsi.
Examples
# Display information about VPLS instance aaa.
<Sysname> display vsi aaa
Vsi Mem PW Mac Encap Mtu Vsi
Name Disc Type Learn Type Value State
aaa static ldp unqualify vlan 1500 up
Table 13 Output description
Field |
Description |
Vsi Name |
Name of the VSI instance. |
Mem Disc |
Peer discovery mechanism of the VSI: · static—The peer must be configured manually. · auto—The peer automatic discovery mechanism is used. |
PW Type |
PW signaling protocol, ldp or bgp. |
Mac Learn |
MAC address learning type. |
Encap Type |
PW encapsulation type, vlan, ethernet, or bgp-vpls. |
Mtu Value |
Maximum transmission unit. |
Vsi State |
Status of the VSI, up or down. |
# 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
MTU : 1500
Bandwidth : 102400 kbps
BroadcastRestrain : 5%
Multicast Restrain : 50%
Unknown Unicast Restrain : 10%
MacTabLimit : 128
Drop Unknown : enabled
MacLearnEnable : enable
Hub-spoke : unspecified
P2P : unspecified
Wait to Restore Time : 10(Min)
VSI State : up
Local VCCV CC Type : CW, RA
Local VCCV CV Type : LSPV
VSI ID : 100
*Peer Router ID : 2.2.2.2
VC Label : 1024
Session : up
Service : QoS
Inbound CAR name : car1
Inbound CAR ID : 1
Outbound CAR name : car1
Outbound CAR ID : 1
Interface Name : GigabitEthernet3/1/4
State : up
Service instance ID : 100
*Peer Ip Address : 2.2.2.2
PW State : up
Local VC Label : 1024
Remote VC Label : 1027
PW Type : label
Tunnel ID : 0xd2008
Remote VCCV CC Type : RA
Remote VCCV CV Type : LSPV
# 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
MTU : 1500
Bandwidth : 102400 kbps
BroadcastRestrain : 5%
Multicast Restrain : 50%
Unknown Unicast Restrain : 10%
MacTabLimit : 128
Drop Unknown : disabled
MacLearnEnable : enable
Wait to Restore Time : Invalid
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 : 8192/10/0
Interface Name : GigabitEthernet3/1/5
State : down
Service instance ID : 200
Table 14 Output description
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, ldp or bgp. |
Member Discovery Style |
Peer discovery mechanism of the VPLS instance: · static—The peer must be specified manually. · auto—The peer automatic discovery mechanism is used. |
PW MAC Learn Style |
MAC address learning type. |
Encapsulation Type |
PW encapsulation type, vlan, ethernet, or bgp-vpls. |
IntfIndex |
Index of the interface. |
MTU |
Maximum transmission unit. |
Bandwidth |
Bandwidth threshold of the VPLS instance. |
BroadcastRestrain |
Broadcast suppression ratio of the VPLS instance. |
Multicast Restrain |
Multicast suppression ratio of the VPLS instance. |
Unknown Unicast Restrain |
Unknown unicast suppression ratio of the VPLS instance. |
MacTabLimit |
Maximum number of MAC addresses for a VPLS instance. |
Drop Unknown |
Whether to drop packets with unknown source MAC addresses when the VPLS instance has learned the maximum number of MAC addresses allowed. · enabled—Drops packets with unknown source MAC addresses. · disabled—Forwards packets with unknown source MAC addresses. |
MacLearnEnable |
Whether MAC address learning is enable. |
Hub-spoke |
Whether Hub-Spoke capability is enabled when the peer discovery mechanism is static. |
P2P |
Whether P2P capability is enabled when the peer discovery mechanism is static. |
Wait to Restore Time |
PW switchback delay time, in minutes. A value of invalid means that the switchback function is disabled. |
VSI State |
Status of the VPLS instance, down or up. |
Local VCCV CC Type |
Virtual Circuit Connectivity Verification (VCCV) control channel types supported on the local peer, including: · CW—Control word. · RA—Router alert (RA) label. VCCV is a technology like ping. It is used to check the connectivity of L2VPN PWs. |
Local VCCV CV Type |
VCCV connectivity verification types supported on the local peer. Currently, only LSPV is supported, indicating that MPLS LSP ping is used to check the PW connectivity. |
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. |
Service |
Enabled services: · Statistics—The statistics collection service. · QoS—The PW traffic policing service. |
Inbound CAR name |
Name of the CAR action applied in the inbound direction. If no CAR action is specified, this field does not appear. |
Inbound CAR ID |
ID of the CAR action applied in the inbound direction. If no CAR action is specified, this field does not appear. |
Outbound CAR name |
Name of the CAR action applied in the outbound direction. If no CAR action is specified, this field does not appear. |
Outbound CAR ID |
ID of the CAR action applied in the outbound direction. If no CAR action is specified, this field does not appear. |
Fast Switch Group Index |
Index of the fast switching group |
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 |
Interface Name |
Name of the Layer 2 Ethernet interface where the service instance associated with the VPLS instance resides |
State |
Status of the Layer 2 Ethernet interface where the service instance associated with the VPLS instance resides |
Service instance ID |
ID of the service instance associated with the VPLS instance |
PW Type |
PW type: · label—NPW, the PW with a PE · MEHVPLS—UPW, the PW with a UPE |
Remote VCCV CC Type |
VCCV control channel types supported on the remote peer |
Remote VCCV CV Type |
VCCV connectivity verification types supported on the remote peer |
display vsi remote
Syntax
display vsi remote { bgp | ldp } [ | { begin | exclude | include } regular-expression ]
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.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use the display vsi remote command to display information about remote VPLS connections using a specific 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 15 Output description
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 |
dual-npe revertive
Syntax
dual-npe revertive [ wtr-time wtr-time ]
undo dual-npe revertive [ wtr-time ]
View
VSI LDP view
Default level
2: System level
Parameters
wtr-time wtr-time: Specifies the switchback delay time. After the primary PW comes back, the system waits for a period of time dictated by the switchback delay time before switching data from the secondary PW back to the primary PW. The wtr-time argument is in the range of 1 to 720, in minutes. The default is 30 minutes.
Description
Use the dual-npe revertive command to enable the switchback function and set the switchback delay time.
Use the undo dual-npe revertive wtr-time command to restore the default switchback delay time.
Use the undo dual-npe revertive command to disable the switchback function.
By default, the switchback function is disabled.
Examples
# Create a VPLS instance named vpna that uses the peer discovery mechanism of manual configuration and set the switchback delay time to 1 minute.
<Sysname> system-view
[Sysname] vsi vpna static
[Sysname-vsi-vpna] pwsignal ldp
[Sysname-vsi-vpna-ldp] dual-npe revertive wtr-time 1
encapsulation
Syntax
encapsulation { bgp-vpls | ethernet | vlan }
View
VSI view
Default level
2: System level
Parameters
bgp-vpls: Specifies the encapsulation type for a BGP VPLS instance as the standard encapsulation type defined in RFC 4761.
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.
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
encapsulation s-vid
Syntax
encapsulation s-vid vlan-id
undo encapsulation
View
Service instance view
Default level
2: System level
Parameters
s-vid vlan-id: Specifies a service VLAN ID (outer VLAN ID) in the range of 1 to 4094.
Description
Use the encapsulation s-vid command to specify the VLAN ID to be used by the current service instance for packet matching.
Use the undo encapsulation command to remove the packet matching VLAN ID of the current service instance.
By default, no packet matching VLAN ID is specified for a service instance.
The packet matching VLAN ID you specified overwrites the previous configuration, if any.
You must specify different packet matching VLAN IDs for different service instances of the same Layer 2 Ethernet port.
Examples
# Configure service instance 100 on GigabitEthernet 3/1/3 to match packets that carry outer VLAN ID 100.
<Sysname> system-view
[Sysname] interface GigabitEthernet 3/1/3
[Sysname-GigabitEthernet3/1/3] service-instance 100
[Sysname-GigabitEthernet3/1/3-srv100] encapsulation s-vid 100
l2 binding vsi
Syntax
l2 binding vsi vsi-name [ access-mode { ethernet | vlan } | { hub | spoke } ] *
undo l2 binding vsi vsi-name
View
Interface view
Default level
2: System level
Parameters
vsi-name: Name of the VPLS instance, a case-insensitive string of 1 to 31 characters. Hyphens (-) are not allowed.
access-mode: Specifies the access mode of the VPLS instance, which can be ethernet or vlan. If the interface bound with the VPLS instance is a Layer 3 Ethernet subinterface or a VLAN interface, the default access mode is vlan; otherwise, the default access mode is ethernet.
ethernet: Specifies the access mode of Ethernet.
vlan: Specifies the access mode of VLAN.
hub: Specifies that the attached CE is the hub-CE.
spoke: Specifies that the attached CE is a spoke-CE. This is the default when the hub-spoke feature is enabled for the instance.
Description
Use the l2 binding vsi command to bind a VPLS instance on an interface.
Use the undo l2 binding vsi command to remove the binding.
When the hub-spoke feature is enabled for a VPLS instance, you can also specify whether the attached CE is a spoke site or the hub site.
|
CAUTION: · With the l2 binding vsi command configured on an interface, services bound to the interface are considered the internal VPN services of the VPLS instance. · After a routing interface is bound with a VPLS instance, its routing subinterfaces cannot be bound with any L2VPN or VPLS instance. After a routing subinterface is bound with a VPLS instance, the corresponding routing interface cannot be bound with any L2VPN or VPLS instance. |
Related commands: peer and vsi.
Examples
# Bind VPLS instance aaa to VLAN interface GigabitEthernet 3/1/1.
<Sysname> system-view
[Sysname] interface GigabitEthernet 3/1/1
[Sysname-GigabitEthernet3/1/1] l2 binding vsi aaa
mac-learning
Syntax
mac-learning { enable | disable }
View
VSI view
Default level
2: System level
Parameters
enable: Enables MAC address learning for the VPLS instance.
disable: Disables MAC address learning for the VPLS instance.
Description
Use the mac-learning command to enable or disable MAC address learning for a VPLS instance.
With MAC address learning disabled for a VPLS instance, the system does no learn source MAC addresses from the packets received from the VPLS instance.
By default, MAC address learning is enabled.
Examples
# Enables MAC address learning for VPLS instance aaa.
<Sysname> system-view
[Sysname] vsi aaa static
[Sysname-vsi-aaa] mac-learning enable
mac-learn-style
Syntax
mac-learn-style { qualify | unqualify }
View
VSI view
Default level
2: System level
Parameters
qualify: Uses the standard MAC address learning mode.
unqualify: Uses the non-standard MAC address learning mode.
Description
Use the mac-learn-style command to specify the MAC address learning mode for a VPLS instance.
· In standard MAC address learning mode, source MAC addresses of all VPLS instances must be globally unique.
· In non-standard MAC address learning mode, source MAC addresses must be unique within a VPLS instance but can overlap between VPLS instances.
By default, the non-standard MAC address learning mode is used.
|
NOTE: This router supports only the unqualify learning mode. |
Examples
# Specify the MAC address learning mode for VPLS instance aaa as non-standard.
<Sysname> system-view
[Sysname] vsi aaa static
[Sysname-vsi-aaa] mac-learn-style unqualify
mac-table limit
Syntax
mac-table limit mac-limit-number
undo mac-table limit
View
VSI view
Default level
2: System level
Parameters
mac-limit-number: Maximum number of MAC addresses that the router can learn for the VPLS instance, in the range of 0 to 65535.
Description
Use the mac-table limit command to specify the maximum number of MAC addresses that the router can learn for the VPLS instance.
Use the undo mac-table limit command to restore the default.
By default, the threshold is 65535.
Once the number of MAC addresses learned from a VPLS instance reaches this threshold, the system does not learn source MAC addresses any more but broadcasts the received packet in the VPLS instance.
Examples
# Set the maximum number of MAC addresses that the router can learn for the VPLS instance aaa to 1024.
<Sysname> system-view
[Sysname] vsi aaa static
[Sysname-vsi-aaa] mac-table limit 1024
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, in the range of 328 to 8192. The default is 1,500.
Description
Use the mtu command to set the MTU of a VPLS instance.
Use the undo mtu command to restore the default.
The MTU of a VPLS instance is a global attribute and is also the MTU of the PW. In Martini VPLS, the MTUs of VPLS instances of peer PEs must be identical. In Kompella VPLS, the MTUs of VPLS instances of peer PEs can be different.
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
peer (VSI LDP view)
Syntax
peer ip-address [ { hub | spoke } | pw-class class-name | [ pw-id pw-id ] [ upe | backup-peer ip-address [ backup-pw-id pw-id ] ] ] *
undo peer ip-address
View
VSI LDP view
Default level
2: System level
Parameters
ip-address: IP address of the remote VPLS peer PE.
hub: Specifies the peer PE as the hub.
spoke: Specifies the peer PE as a spoke. This is the default when the hub-spoke feature is enabled for the instance.
pw-class class-name: References a PW class template. class-name represents the template name, a case-insensitive string of 1 to 19 characters.
pw-id pw-id: ID of the PW to the VPLS peer PE, in the range of 1 to 4294967295. The default is the VSI ID.
upe: Specifies that the peer PE is a UPE in the H-VPLS model.
backup-peer ip-address: Specifies the IP address of the backup NPE. If you specify this parameter, you create a primary NPE and a backup NPE on the UPE.
backup-pw-id pw-id: Specifies the ID of the PW to the backup NPE. The pw-id argument is in the range of 1 to 4294967295, and the default is the VSI ID.
Description
Use the peer command to create a peer PE for a VPLS instance.
Use the undo peer command to remove a peer PE.
With the hub-spoke feature for a VPLS instance, you can specify the connection mode of the peer PE as hub or spoke.
Related commands: encapsulation, vsi, and vsi-id.
Examples
# Create a peer PE, which is of the UPE type, with the IP address of 4.4.4.4 and the PW 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 pw-id 200 upe
# Create a primary peer PE 1.1.1.1 and a backup peer PE 2.2.2.2, and set the PW ID to the primary peer to 300 and that to the backup peer to 400.
<Sysname> system-view
[Sysname] vsi aaa
[Sysname-vsi-aaa] pwsignal ldp
[Sysname-vsi-aaa-ldp] peer 1.1.1.1 pw-id 300 backup-peer 2.2.2.2 backup-pw-id 400
pw-class
Syntax
pw-class pw-class-name
undo pw-class pw-class-name
View
System view
Default level
2: System level
Parameters
pw-class-name: Name of the PW class template, a case-insensitive string of 1 to 19 characters.
Description
Use the pw-class command to create a PW class template and enter PW class template view.
Use the undo pw-class command to delete an existing PW class template.
By default, no PW class template is created.
Examples
# Create PW class template pw100 and enter its view.
<Sysname> system-view
[Sysname] pw-class pw100
[Sysname-pw-pw100]
pwsignal
Syntax
pwsignal { bgp | ldp }
View
VSI view
Default level
2: System level
Parameters
bgp: Specifies to use BGP signaling, that is, Kompella mode.
ldp: Specifies to use LDP signaling, that is, Martini 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]
pw-tunnel-policy
Syntax
pw-tunnel-policy policy-name
undo pw-tunnel-policy
View
PW class template view
Default level
2: System level
Parameters
policy-name: Name of the tunneling policy, a case-insensitive string of 1 to 19 characters.
Description
Use the pw-tunnel-policy command to specify the tunneling policy for the PW class template.
Use the undo pw-tunnel-policy command to restore the default.
By default, the tunneling policy specified by the tnl-policy command in VSI view is used.
If you specify a non-existent tunneling policy in the pw-tunnel-policy command, the tunneling policy specified by the tnl-policy command in VSI view will be used.
Related commands: tnl-policy, tunnel select-seq load-balance-number.
Examples
# Specify tunneling policy tp100 for PW class template pw100.
<Sysname> system-view
[Sysname] pw-class pw100
[Sysname-pw-pw100] pw-tunnel-policy tp100
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 specific AS. as-number is in the range of 1 to 65535.
ip-address: Resets the VPLS BGP connection to a specific 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 specific or all VPLS BGP connections.
Examples
# Reset all VPLS BGP connections.
<Sysname> reset bgp vpls all
reset mac-address vsi
Syntax
reset mac-address vsi [ vsi-name ]
View
User view
Default level
1: Monitor level
Parameters
vsi-name: Name of a VPLS instance, a case-insensitive string of 1 to 31 characters. Hyphens (-) are not allowed.
Description
Use the reset mac-address vsi command to clear the MAC address table of a specific VPLS instance or all VPLS instances.
Examples
# Clear the MAC address table of VPLS instance aaa.
<Sysname>reset mac-address vsi aaa
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 one of these formats:
· 16-bit AS number:32-bit user-defined number. For example, 101:3.
· 32-bit IP address:16-bit user-defined number. For example, 192.168.122.15:1.
· 32-bit AS number:16-bit user-defined number, where the AS number must be equal to or greater than 65536. For example, 65536: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. A VPLS instance can have the same RD or different RDs on different PEs.
|
NOTE: · RD has no default value. You must configure an RD for a VPLS instance to make the instance take effect. · 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
service-instance
Syntax
service-instance service-instance-id
undo service-instance service-instance-id
View
Layer 2 Ethernet port view, aggregate interface view
Default level
2: System level
Parameters
service-instance-id: Service instance ID in the range of 1 to 4094. A service instance ID uniquely identifies a service instance on a Layer 2 Ethernet port.
Description
Use the service-instance command to create a service instance on the current port and enter service instance view.
Use the undo service-instance command to delete a service instance on the current port.
By default, no service instances have been created on any port.
Service instance IDs of the service instances created on different Layer 2 Ethernet ports can be the same.
Examples
# Create service instance 100 on Layer 2 port GigabitEthernet 3/1/3 and enter service instance view.
<Sysname> system-view
[Sysname] interface GigabitEthernet 3/1/3
[Sysname-GigabitEthernet3/1/3] service-instance 100
[Sysname-GigabitEthernet3/1/3-srv100]
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 a VPLS instance.
Use the undo shutdown command to restart the VPLS service of a VPLS instance.
By default, the VPLS service of a VPLS instance is started.
When a VPLS instance is disabled, the system does not handle any service of 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
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 of the VPLS instance. The valid values range from 0 to 64.
range site-range: Specifies the site range on a PE. site-range is the total number of sites of a VPLS instance. The value ranges from 1 to 65.
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 sites for a VPLS instance.
Use the undo site command to remove sites of a VPLS instance.
Sites of a VPLS instance use natural numbers as the site IDs. In a VPN, each site ID must be unique.
For a VPLS instance, you are not allowed to execute the site command repeatedly.
Examples
# Create sites for VPLS instance aaa 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
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 the tunneling policy for the VPLS instance, a string of 1 to 19 characters without any 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, no tunneling policy is specified for a VPLS instance and the default tunneling policy is used. The default tunneling policy selects only one tunnel (no load balancing) in this order: LSP tunnel, CR-LSP tunnel.
If you specify a tunneling policy name but the tunneling policy is not configured, the default tunneling policy is used.
Related commands: tunnel select-seq load-balance-number.
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
trans-mode
Syntax
trans-mode { ethernet | vlan }
undo trans-mode
View
PW class template view
Default level
2: System Level
Parameters
ethernet: Specifies the PW transport mode as Ethernet.
vlan: Specifies the PW transport mode as VLAN.
Description
Use the trans-mode command to specify the PW transport mode.
Use the undo trans-mode command to restore the default.
By default, the PW transport mode is VLAN.
In Ethernet mode, P-Tag is not transferred on the PW. For a packet from a CE, if it contains the service delimiter, the PE removes the service delimiter and adds a PW label and tunnel label into the packet before forwarding the packet. Otherwise, the PE directly adds a PW label and tunnel label into the packet and then forwards the packet. For a packet to be sent downstream, whether the PE adds the service delimiter into the packet depends on your configuration. However, rewriting and removing of existing tags are not allowed.
In VLAN mode, packets transmitted over the PW must carry a P-Tag. For a packet from a CE, if it contains the service delimiter, the PE keeps the P-Tag unchanged or changes the P-tag to the VLAN tag expected by the peer PE or to a null tag (the tag value is 0), and then adds a PW label and a tunnel label into the packet before sending the packet out. If the packet contains no service delimiter, the PE adds the VLAN tag expected by the peer PE or a null tag, and then a PW label and a tunnel label into the packet before sending the packet out. For a packet to be sent downstream, the PE rewrites, removes, or retains the service delimiter depending on your configuration.
Examples
# Configure the PW transport mode as Ethernet.
<Sysname> system-view
[Sysname] pw-class pw100
[Sysname-pw-pw100] trans-mode ethernet
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]
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 VPN target extended community attributes to the import VPN target extended community attribute list (Import Target) or export VPN target extended community attribute list (Export Target). &<1-16> means that you can add up to 16 VPN targets.
A VPN target attribute can be a string of 3 to 21 characters in one the following formats:
· 16-bit AS number:32-bit user-defined number, such as 101:3.
· 32-bit IP address:16-bit user-defined number, such as 192.168.122.15:1.
· 32-bit AS number:16-bit user-defined number, where the AS number must be equal to or greater than 65536. For example, 65536:1.
both: Uses the specified VPN target values as both import targets and export targets. The both keyword is also used when you do not specify any of both, export-extcommunity, and import-extcommunity.
export-extcommunity: Uses the specified VPN targets as export targets.
import-extcommunity: Uses the specified VPN targets as import targets.
all: Removes all VPN targets.
Description
Use the vpn-target command to configure one or more VPN targets for a VPLS instance.
Use the undo vpn-target command to remove the specified or all VPN targets of a VPLS instance.
By default, no VPN targets are configured and you must configure VPN targets when creating a VPLS instance.
Examples
# Configure VPN targets for the VPLS instance aaa.
<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
vsi
Syntax
vsi vsi-name [ { auto | static [ hub-spoke | p2p ] } | minm i-sid i-sid ] *
undo vsi vsi-name
View
System view
Default level
2: System level
Parameters
vsi-name: Name of the VSI, a case-insensitive string of 1 to 31 characters. Hyphens (-) are not allowed.
auto: Configures the peer discovery mechanism as dynamic. This corresponds to BGP mode.
static: Configures the peer discovery mechanism as static. This corresponds to LDP mode.
hub-spoke: Enables the hub-spoke capability for the instance whose peer discovery mechanism is static.
p2p: Enables the P2P (PW to PW) capability for the VSI whose peer discovery mechanism is static. The P2P feature is used to associate two PWs to set up a multi-hop PW.
|
NOTE: The router does not support the minm i-sid i-sid option. |
Description
Use the vsi command to create a VSI and enter VSI view. If the specified VSI already exits, you enter the VSI view directly.
Use the undo vsi command to remove a VSI.
Note the following when using this command:
· To create a VSI, specify a globally unique name for it, and specify the peer discovery mechanism. If you specify the peer discovery mechanism as static, you can also enable hub-spoke or P2P for the VPLS instance as needed.
· To enter the view of an existing VSI, use the vsi vsi-name command without specifying any other parameters.
· Before creating a VPLS instance, you need to enable L2VPN and MPLS L2VPN by using the l2vpn command and the mpls l2vpn command.
Related commands: display vsi, mpls l2vpn, and l2vpn.
Examples
# Create VPLS instance aaa and specify the peer discovery mechanism of the VPLS instance as static.
<Sysname> system-view
[Sysname] vsi aaa static
[Sysname-vsi-aaa]
# Create VPLS instance bbb, specify the peer discovery mechanism of the VPLS instance as static, and enable the P2P capability.
<Sysname> system-view
[Sysname] vsi bbb static p2p
[Sysname-vsi-bbb]
vsi-id
Syntax
vsi-id vsi-id
View
VSI LDP view
Default level
2: System level
Parameters
vsi-id: ID for the VPLS instance, in the range of 1 to 4294967295.
Description
Use the vsi-id command to specify the ID of a VPLS instance.
On PEs in the same VPN, be sure to specify the same VSI ID for the VPLS instances that correspond to the VPN.
Examples
# Set the VSI 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
xconnect vsi
Syntax
xconnect vsi vsi-name [ access-mode { ethernet | vlan } | { hub | spoke } ] *
undo xconnect vsi
View
Service instance view
Default level
2: System level
Parameters
vsi-name: Name of a VPLS instance, a case-insensitive string of 1 to 31 characters. Hyphens (-) are not allowed.
access-mode: Specifies the access mode of the service instance as Ethernet or VLAN. The default access mode is VLAN.
ethernet: Specifies the Ethernet access mode.
vlan: Specifies the VLAN access mode.
hub: Specifies the access mode of the VPLS instance as hub.
spoke: Specifies the access mode of the VPLS instance as spoke, which is also the default when the VPLS instance is enabled with the hub-spoke capability.
Description
Use the xconnect vsi command to associate a VPLS instance with the service instance on a specific interface.
Use the undo xconnect vsi command to remove the association.
By default, a service instance is not associated with any VPLS instance.
The access mode of a service instance can be either of the following:
· VLAN: The Ethernet header of a packet sent from a CE to a PE or from a PE to a CE includes a VLAN tag that is added in the header as a service delimiter for the service provider network to identify the user. The tag is called a P-Tag.
· Ethernet: The Ethernet header of a packet sent from a CE to a PE or from a PE to a CE does not contain any service delimiter. If the header contains a VLAN tag, it is the internal VLAN tag of the user and means nothing to the PE. Such an internal VLAN tag of a user is called a U-Tag.
Note the following:
· Only when the VPLS instance is enabled with the Hub-Spoke capability, can you further specify the access mode as Hub or Spoke. The default is Spoke.
· In Hub-Spoke networking mode of VPLS, data between Spoke sites must be exchanged through Hub sites. Direct data exchange between Spoke sites is not allowed.
· For VPLS, signaling advertisement uses the MTU of the VPLS instance.
· The xconnect vsi command is available for service instances with the ID in the range of 1 to 4094.
Related commands: service-instance.
Examples
# Associate service instance 200 of GigabitEthernet 3/1/3 with VPLS instance vsi200 and specify the matching external VLAN tag as 200.
<Sysname> system-view
[Sysname] interface GigabitEthernet 3/1/3
[Sysname-GigabitEthernet3/1/3] service-instance 200
[Sysname-GigabitEthernet3/1/3-srv200] encapsulation s-vid 200
[Sysname-GigabitEthernet3/1/3-srv200] xconnect vsi vsi200