- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
03-VPLS Commands | 235.45 KB |
display l2vpn fast-switch-group
display mpls l2vpn fib ac vpls
display mpls l2vpn fib pw vpls
display service-instance interface
encapsulation (service instance view)
mac-withdraw null-ip-address-tlv·
reset service-instance statistics
route-distinguisher (VSI BGP view)
The term "router" in this document refers to both routers and Layer 3 switches.
car
Syntax
car { inbound | outbound } name car-name
undo car { inbound | outbound }
View
Service instance view
Default level
2: System level
Parameters
inbound: Applies a global CAR action in the inbound direction.
outbound: Applies a global CAR action in the outbound direction.
name car-name: Specifies a global CAR action by name, a string of 1 to 31 characters.
Description
Use car to apply a global CAR action in the inbound or outbound traffic on an attachment circuit (AC).
Use undo car to restore the default.
By default, no global CAR action is applied to an AC.
Examples
# Apply global CAR action car1 to inbound traffic and car2 to outbound traffic for service instance 200 on the interface GigabitEthernet 3/0/1.
<Sysname> system-view
[Sysname] interface GigabitEthernet 3/0/1
[Sysname-GigabitEthernet3/0/1] service-instance 200
[Sysname-GigabitEthernet3/0/1-srv200] car inbound name car1
[Sysname-GigabitEthernet3/0/1-srv200] car outbound name car2
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 description to set a description for a VPLS instance.
Use undo description 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
[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.
label-offset label-offset: Specifies the label offset value 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 display bgp vpls 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 Command output
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. |
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 Command output
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 Command output
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 :0 , Encap Type :Unknown or Reserved
Path Attribute : RefCount : 1, MED 133: , AS Path : 200
The following table gives the description on the fields of the display bgp vpls route-distinguisher site-id label-offset command.
Table 4 Command output
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) |
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: Fast switching 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 display l2vpn fast-switch-group to display information about one or all fast switching groups.
|
NOTE: The switch does not support this command. |
Examples
# Display information about all fast switching groups.
<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 Command output
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 display mac-address vsi to display the MAC address table information for a specific VPLS instance or all VPLS instances.
Related commands: vsi; mac-address (Layer 2—LAN Switching Command Reference).
|
NOTE: The switch does not support black hole MAC forwarding entries (blackhole) and static MAC forwarding entries (static). If you specify the blackhole and static keywords, no information is output for them. |
Examples
# Display information about the MAC address table.
<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.
<Sysname> display mac-address vsi count
2 mac address(es) found
Table 6 Command output
Field |
Description |
MAC ADDR |
MAC address. |
STATE |
Status of the MAC address. |
MACTYPE |
MAC address type of the VPLS instance. |
Vsilndex |
VSI index. |
LINK ID |
Link ID. |
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 switch belongs. For a device on the public network side, it is the PW ID. |
AGING TIME |
Whether the MAC address of the VPLS instance get aged, AGING or NOAGED. |
XX mac address(es) found |
Total number of MAC addresses in the MAC address table of the VPLS instance. |
display mpls l2vpn fib ac vpls
Syntax
In standalone mode:
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 ]
In IRF mode:
display mpls l2vpn fib ac vpls [ vsi vsi-name | interface interface-type interface-number [ service-instance service-instanceid ] ] [ chassis chassis-number 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: Specifies a service instance. service-instanceid is the service instance ID in the range of 1 to 4094.
verbose: Displays the detailed information.
slot slot-number: Displays the AC information on a card. slot-number represents the number of the slot that holds the card. Use this option when your switch is operating in standalone (the default) mode.
chassis chassis-number slot slot-number: Displays the AC entries of a card on an IRF member switch. The chassis-number argument represents the ID of the IRF member switch, and the slot-number argument represents the number of the slot that holds the card. You can display the chassis number and slot number with the display device command. Use this option when your switch is operating in IRF mode.
|: 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 display mpls l2vpn fib ac vpls to display the AC entry information for one or all VPLS instances.
When you use this command, note these guidelines:
· If you specify an interface but do not specify a service instance, the command displays the AC entries of the VPLS connection created on the Layer 3 interface.
· If you specify both an interface and a service instance, the command displays the AC entries of the VPLS connection created for the service instance on the Layer 2 interface.
· If you do not specify any parameter, the command displays the AC entries of all VPLS connections.
Examples
# Display the AC entry information for 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 1000 vsi1 1 1
Table 7 Command output
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. |
VSIName |
VPLS instance name. |
VSIIndex |
VPLS instance index. |
LinkID |
Link ID of an AC in the VPLS instance. |
# Display the detailed AC entry information for 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/0/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/0/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 Command output
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, 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, which can be PortVlan or Independent. |
AC Encapsulation |
Encapsulation VLAN information at the AC side. |
GR Count |
Number of times that GR occurs. |
display mpls l2vpn fib pw vpls
Syntax
In standalone mode:
display mpls l2vpn fib pw vpls [ vsi vsi-name [ link link-id ] ] [ slot slot-number ] [ verbose ] [ | { begin | exclude | include } regular-expression ]
In IRF mode:
display mpls l2vpn fib pw vpls [ vsi vsi-name [ link link-id ] ] [ chassis chassis-number 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.
verbose: Displays the detailed information.
slot slot-number: Displays the PW information on a card. The slot-number argument represents the number of the slot that holds the card. Use this option when your switch is operating in standalone (the default) mode.
chassis chassis-number slot slot-number: Displays the PW entries of a card on an IRF member switch. The chassis-number represents the ID of the IRF member switch, and the slot-number argument represents the number of the slot that holds the card. You can display the chassis number and slot number with the display device command. Use this option when your switch is operating in IRF mode.
|: 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 display mpls l2vpn fib pw vpls to display the PW entry information for one or all VPLS instances.
Examples
# Display the PW entry information for all VPLS instance.
<Sysname> display mpls l2vpn fib pw vpls
Total VSI Entry:1 Total PW Entry:1
VSI Name VSI Index Link ID InVCLabel OutVCLabel TunnelID
--------------------------------------------------------------
vsi1 1 1 1000 1002 0x878ad000
Table 9 Command output
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. |
InVCLabel |
Incoming VC label. |
OutVCLabel |
Outgoing VC label. |
TunnelID |
Public tunnel ID. |
# Display the detailed PW entry information for 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 Command output
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, which can be 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, 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 display pw-class to display information about one or all PW classes.
If no PW class is specified, the command displays information about all PW classes.
If you specify a PW class, the command output includes an additional field to show the number of times the PW class has been referenced.
Examples
# Display information about all PW classes.
<Sysname> display pw-class
Total 3 PW-class(es)
PW-class name Transport mode Tunnel policy
1234 Ethernet abc
1025 VLAN abc
1026 VLAN -
# Display information about the PW class named 1234.
<Sysname> display pw-class 1234
PW-class name Transport mode Tunnel policy Reference count
1234 Ethernet abc 0
Table 11 Command output
Field |
Description |
Tunnel policy |
Name of the tunneling policy used by the PW class. If no tunneling policy is specified for the PW class, this field displays a hyphen (-). |
Reference count |
Number of times that the PW class are referenced. |
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: Specifies an interface by it type and number.
service-instance service-instance-id: Specifies a service instance configured on the specified interface. service-instance-id is in the range of 1 to 4094. If you do not specify any service instance, the command displays information about all service instances configured on the specified interface.
|: 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 display service-instance interface to display information about one or all service instances configured on an interface.
Examples
# Display information about all service instances configured on GigabitEthernet 3/0/3.
<Sysname> display service-instance interface GigabitEthernet 3/0/3
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 12 Command output
Field |
Description |
Encapsulation |
Packet matching rule. |
Service Type |
Service type associated with the service instance. The service type can be VPLS or VPWS, and is displayed as – when the service instance is not associated with L2VPN. |
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 display vpls connection 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 1024 1024 1 up
Table 13 Command output
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 detailed information about VPLS connections of VPLS instance aaa.
<Sysname> display vpls connection vsi aaa verbose
VSI Name: aaa Signaling: ldp
**Remote Vsi ID : 500
VC State : up
Encapsulation : vlan
Group ID : 0
MTU : 1500
Peer Ip Address : 1.1.1.9
PW Type : label
Local VC Label : 1024
Remote VC Label : 1024
Link ID : 1
Tunnel Policy : --
Tunnel ID : 0x3703ae
Local VCCV CC Type : CW, RA
Local VCCV CV Type : LSPV
Remote VCCV CC Type : CW, RA
Remote VCCV CV Type : LSPV
Table 14 Command output
Field |
Description |
VSI Name |
Name of the VPLS instance. |
Signaling |
PW signaling protocol used by the VPLS instance. |
Remote Vsi ID |
ID of the VPLS instance. |
VC State |
Status of the virtual circuit. |
Encapsulation |
Encapsulation type of the VPLS instance. |
MTU |
Maximum transmission unit of the VPLS instance. |
Peer Ip Address |
IP address of the peer of the VPLS instance. |
PW Type |
PW type: · label—NPW, the PW with a PE. · MEHVPLS—UPW, the PW with a UPE. |
Link ID |
ID of the PW in the VPLS instance. |
Local VCCV CC Type |
Virtual Circuit Connectivity Verification (VCCV) control channel (CC) types supported on the local peer: · CW—Control word. · RA—Router alert (RA) label. VCCV is technology like ping. It is used to check the connectivity of L2VPN PWs. |
Local VCCV CV Type |
VCCV connectivity verification (CV) types supported on the local peer. Only LSPV is supported, indicating that MPLS LSP ping is used to check the PW connectivity. |
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. |
|
NOTE: You can use VCCV to verify the connectivity of a PW only if the two peers support at least one identical CC type and one identical CV type. |
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 display vsi to display information about a specific VPLS instance 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 15 Command output
Field |
Description |
Vsi Name |
Name of the VSI. |
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, unqualify or qualify. |
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 : down
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/0/3
State : down
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
Encapsulation 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/0/4
State : down
Service instance ID : 200
Table 16 Command output
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, which can be 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, unqualify or qualify. |
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 enabled. |
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: · 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. 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 display vsi remote 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 17 Command output
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, or the wait-to-restore 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 dual-npe revertive to enable the switchback function and set the switchback delay time.
Use undo dual-npe revertive wtr-time to restore the default switchback delay time.
Use undo dual-npe revertive 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 (service instance view)
Syntax
encapsulation { s-vid vlan-id [ only-tagged ] | port-based | tagged | untagged }
undo encapsulation
View
Service instance view
Default level
2: System level
Parameters
s-vid vlan-id: Specifies the outer VLAN ID. VLAN ID is in the range of 1 to 4094.
only-tagged: Matches only tagged packets. If the specified VLAN ID is the default VLAN of the port and the only-tagged keyword is not specified, the service instance matches untagged packets as well as packets carrying the current port's default VLAN ID.
port-based: Matches packets by port.
tagged: Matches tagged packets.
untagged: Matches untagged packets.
Description
Use encapsulation to configure a packet matching rule for the current service instance.
Use undo encapsulation to remove the packet matching rule of the current service instance.
By default, no packet matching rule is configured for a service instance.
If you configure this command for a service instance for multiple times, only the last configuration will take effect.
On a port, if you have configured a rule to match packets carrying the port's PVID tag in a service instance without specifying the only-tagged keyword, and to match untagged packets in another service instance, untagged packets will be matched in the service instance where this command was configured first. H3C recommends that you also specify the only-tagged keyword to match packets carrying specific VLAN tags. Otherwise, untagged packets might be matched to a different service instance than the one you expected.
Specify different VLAN IDs for different service instances on the same Layer 2 Ethernet interface.
Examples
# Configure service instance 100 to match VLAN 100.
<Sysname> system-view
[Sysname] interface GigabitEthernet 3/0/3
[Sysname-GigabitEthernet3/0/3] service-instance 100
[Sysname-GigabitEthernet3/0/3-srv100] encapsulation s-vid 100
encapsulation (VSI view)
Syntax
encapsulation { bgp-vpls | ethernet | vlan }
View
VSI view
Default level
2: System level
Parameters
bgp-vpls: Specifies the PW encapsulation type of the current BGP VPLS instance as the standard encapsulation type defined in RFC 4761, which corresponds to the PW encapsulation type of Ethernet.
ethernet: Specify the PW encapsulation type of the current VPLS instance as Ethernet.
vlan: Specifies the PW encapsulation type of the current VPLS instance as VLAN.
Description
Use encapsulation to specify the PW encapsulation type for a VPLS instance.
By default, the PW encapsulation type of a VPLS instance is VLAN.
Examples
# Set the VPLS instance encapsulation type to Ethernet.
<Sysname> system-view
[Sysname] vsi aaa
[Sysname-vsi-aaa] encapsulation ethernet
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. When the interface bound with the VPLS instance is a routing interface, the default access mode is Ethernet. When interface bound with the VPLS instance is a routing subinterface, the default access mode is VLAN.
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 l2 binding vsi to bind a VPLS instance on an interface.
Use undo l2 binding vsi to remove the binding.
When the hub-spoke feature is enabled for a VPLS instance (the hub-spoke keyword included in the vsi static command), you can also specify whether the attached CE is a spoke site or the hub site.
|
IMPORTANT: · 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 Layer 3 interface is bound with a VPLS instance, its Layer 3 subinterfaces cannot be bound with an L2VPN or VPLS instance. After a Layer 3 subinterface is bound with a VPLS instance, the corresponding Layer 3 interface cannot be bound with an L2VPN or VPLS instance. |
Related commands: peer and vsi.
Examples
# Bind VPLS instance aaa on GigabitEthernet 3/0/1.
<Sysname> system-view
[Sysname] interface GigabitEthernet 3/0/1
[Sysname-GigabitEthernet3/0/1] port link-mode route
[Sysname-GigabitEthernet3/0/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 mac-learning to enable or disable MAC address learning for a VPLS instance.
With MAC address learning disabled for a VPLS instance, the system does not 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
[Sysname-vsi-aaa] mac-learning enable
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 switch can learn for the VPLS instance. The value range depends on the system working mode. For more information, see Fundamentals Configuration Guide.
Description
Use mac-table limit to specify the maximum number of MAC addresses that the switch can learn for the VPLS instance.
Use undo mac-table limit to restore the default.
By default, the maximum number depends on the system working mode. For more information, see Fundamentals Configuration Guide.
Once the number of MAC addresses learned for a VPLS instance reaches this limit, the switch 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 switch can learn for VPLS instance aaa to 1024.
<Sysname> system-view
[Sysname] vsi aaa
[Sysname-vsi-aaa] mac-table limit 1024
mac-withdraw null-ip-address-tlv
Syntax
mac-withdraw null-ip-address-tlv
undo mac-withdraw null-ip-address-tlv
View
PW class view
Default level
2: System level
Parameters
None
Description
Use mac-withdraw null-ip-address-tlv to configure the signaling protocol to carry an empty IP address list TLV in MAC address withdraw messages.
Use undo mac-withdraw null-ip-address-tlv to configure the signaling protocol to not carry an empty IP address list TLV in MAC address withdraw messages.
By default, a MAC address withdraw message carries an empty IP address list TLV.
Use the mac-withdraw null-ip-address-tlv command or its undo form on your device to make sure the two end devices of a PW have the same implementation on whether a MAC address withdraw message will carry an empty IP address list TLV. Otherwise, when a primary/backup PW switchover occurs, the local device cannot receive the MAC address withdraw message from the peer device.
For more information about the Address List TLV, see "Address Withdraw Message" in RFC 5036.
Examples
# Configure the signaling protocol to not carry an empty IP address list TLV in MAC address withdraw messages.
<Sysname> system-view
[Sysname] pw-class pw100
[Sysname-pw-pw100] undo mac-withdraw null-ip-address-tlv
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 1500.
Description
Use mtu to set the MTU of a VPLS instance.
Use undo mtu 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
[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. 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 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 peer to create a peer PE for a VPLS instance.
Use undo peer 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: 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
[Sysname-vsi-aaa] pwsignal ldp
[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
ping lsp pw (for VPLS)
ping lsp [ -a source-ip | -c count | -exp exp-value | -h ttl-value | -m wait-time | -r reply-mode | -s packet-size | -t time-out | -v ] * pw ip-address pw-id pw-id
View
Any view
Default level
0: Visit level
Parameters
-a source-ip: Specifies the source IP address of the Echo Request messages to be sent.
-c count: Specifies the number of request messages to be sent. The count argument is in the range of 1 to 4294967295 and defaults to 5.
-exp exp-value: Specifies the EXP value for the Echo Request messages. The exp-value argument is in the range of 0 to 7 and defaults to 0.
-h ttl-value: Specifies the TTL value for the Echo Request messages. The ttl-value argument is in the range of 1 to 255 and defaults to 255.
-m wait-time: Specifies the interval for sending Echo Request messages. The wait-time argument is in the range of 1 to 10000 and defaults to 200, in milliseconds.
-r reply-mode: Specifies the reply mode of the receiver in response to an Echo Request message. The reply-mode argument can be 1 or 2, where 1 means "Do not respond" and 2 means "Respond using a UDP packet". The default is 2.
-s packet-size: Specifies the payload length of the Echo Request message. The packet-size argument is in the range of 65 to 8100 and defaults to 100, in bytes.
-t time-out: Specifies the timeout interval for waiting for the response to an echo request message. The time-out argument is in the range of 0 to 65535 and defaults to 2000, in milliseconds.
-v: Displays detailed response information.
pw ip-address: Specifies the IP address of the peer PE.
pw-id pw-id: Specifies the ID of the PW to the peer PE. The pw-id argument is in the range of 1 to 4294967295.
Description
Use ping lsp pw to check the connectivity of a Martini PW.
Examples
# Check the connectivity of the PW to peer PE 3.3.3.9 that uses the PW ID of 301.
<Sysname> ping lsp pw 3.3.3.9 pw-id 301
LSP Ping FEC: FEC 128 PSEUDOWIRE (NEW) 3.3.3.9 301 : 100 data bytes, press CTRL_C to break
Reply from 100.1.2.1: bytes=100 Sequence=0 time = 31 ms
Reply from 100.1.2.1: bytes=100 Sequence=1 time = 62 ms
Reply from 100.1.2.1: bytes=100 Sequence=2 time = 62 ms
Reply from 100.1.2.1: bytes=100 Sequence=3 time = 62 ms
Reply from 100.1.2.1: bytes=100 Sequence=4 time = 62 ms
--- FEC: FEC 128 PSEUDOWIRE (NEW) 3.3.3.9 301 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 31/55/62 ms
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, a case-insensitive string of 1 to 19 characters.
Description
Use pw-class to create a PW class and enter PW class view.
Use undo pw-class to delete an existing PW class.
By default, no PW class is created.
Examples
# Create PW class 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 (Kompella mode).
ldp: Specifies to use LDP signaling (Martini mode).
Description
Use pwsignal 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
[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 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 pw-tunnel-policy to specify the tunneling policy for the PW class.
Use undo pw-tunnel-policy 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. For information about configuring a tunneling policy, see MPLS Configuration Guide.
Related commands: tnl-policy and tunnel-policy.
Examples
# Specify tunneling policy tp100 for PW class 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 4294967295.
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 reset bgp vpls to reset a specific VPLS BGP connection 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 reset mac-address vsi 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
reset service-instance statistics
Syntax
reset service-instance statistics [ interface interface-type interface-number [ service-instance instance-id [ inbound | outbound ] ] ]
View
User view
Default level
1: Monitor level
Parameters
interface interface-type interface-number: Clears the traffic statistics for the specified service instance or all service instances on the specified interface. The interface-type interface-number arguments specify an interface by its type and number.
service-instance instance-id: Clears the traffic statistics for the specified service instance on the interface. The instance-id argument represents the ID of a service instance, in the range of 1 to 4094.
inbound: Clears inbound traffic statistics.
outbound: Clears outbound traffic statistics.
Description
Use reset service-instance statistics to clear the traffic statistics for one or all service instances on an interface.
Examples
# Clear the traffic statistics of service instance 200 on the interface GigabitEthernet 3/0/1.
<Sysname> reset service-instance statistics interface GigabitEthernet 3/0/1 service-instance 200
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 route-distinguisher to configure an RD for a VPLS instance.
Different VPLS instances on a PE must have different RDs, but 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
[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 interface view, aggregate interface view
Default level
2: System level
Parameters
service-instance-id: Service instance ID for uniquely identifying a service instance on a Layer 2 Ethernet interface. It is in the range of 1 to 4094.
Description
Use service-instance to create a service instance and enter service instance view.
Use undo service-instance to delete an existing service instance.
By default, no service instance is created.
The service instances created on different Layer 2 Ethernet interfaces can have the same service instance ID.
Examples
# On Layer 2 interface GigabitEthernet 3/0/3, create service instance 100 and enter its view.
<Sysname> system-view
[Sysname] interface GigabitEthernet 3/0/3
[Sysname-GigabitEthernet3/0/3] service-instance 100
[Sysname-GigabitEthernet3/0/3-srv100]
shutdown (VSI view)
Syntax
shutdown
undo shutdown
View
VSI view
Default level
2: System level
Parameters
None
Description
Use shutdown to shut down the VPLS service of a VPLS instance.
Use undo shutdown 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
[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.
range site-range: Specifies the site range on a PE. The site-range argument is the total number of sites of a VPLS instance. The default is 10.
default-offset { 0 | 1 }: Default initial CE offset. It can be 0 or 1 and defaults to 0.
Description
Use site to create sites for a VPLS instance.
Use undo site 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
[Sysname-vsi-aaa] pwsignal bgp
[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 tnl-policy to specify a tunneling policy for a VPLS instance.
Use undo tnl-policy 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. For information about configuring a tunneling policy, see MPLS Configuration Guide.
Related commands: tunnel-policy.
Examples
# Specify that VPLS instance aaa uses the tunneling policy of policy1.
<Sysname> system-view
[Sysname] vsi aaa
[Sysname-vsi-aaa] tnl-policy policy1
trans-mode
Syntax
trans-mode { ethernet | vlan }
undo trans-mode
View
PW class view
Default level
2: System Level
Parameters
ethernet: Specifies the PW transport mode as Ethernet mode.
vlan: Specifies the PW transport mode as VLAN mode.
Description
Use trans-mode to specify the PW transport mode.
Use undo trans-mode 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 a tunnel label into the packet before forwarding the packet. Otherwise, the PE adds a PW label and a 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 vpls-family 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 targets 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 vpn-target to configure one or more VPN targets for a VPLS instance.
Use undo vpn-target 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
[Sysname-vsi-aaa] pwsignal bgp
[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 [ pxp ] ] *
undo vsi vsi-name
View
System view
Default level
2: System level
Parameters
vsi-name: Name of the VSI instance, 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 VSI 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.
minm: Enables the MAC-in-MAC function for the VSI.
i-sid i-sid: Specifies an I-SID for the VSI enabled with MAC-in-MAC. The value range for the i-sid argument is 1 to 16777215.
pxp: Learns only the backbone source MAC address of the packet that arrives first. You cannot specify this keyword when you create a VSI that supports VPLS and MAC-in-MAC dual-stack.
Description
Use vsi to create a VSI and enter VSI view. If the specified VSI already exits, you enter the VSI view directly.
Use undo vsi to remove a VSI.
VSI instances include two categories:
· VPLS instance—A VSI created by using the vsi command with the auto or static keyword. A VPLS instance discovers a peer PE automatically or statically, and establishes a VPLS PW to the peer PE.
· MAC-in-MAC instance—A VSI created by using the vsi command with the minm keyword. Such a VSI supports the MAC-in-MAC function.
If you specify the pxp keyword, when a BEB receives a broadcast or an unknown unicast from the customer side, the BEB encapsulates the frame with the broadcast MAC address, and it broadcasts the frame in the backbone.
If you do not specify the pxp keyword, when a BEB receives a broadcast or an unknown unicast from the customer side, the BEB encapsulates the frame with the learned backbone source MAC address being the backbone destination MAC address, and it unicasts the frame.
To enter the view of an existing VSI, use the vsi vsi-name command without specifying any other parameters.
To create a VSI, you must specify a globally unique name for it, and specify the peer discovery mechanism (by specifying the auto or static keyword) or enable MAC-in-MAC (by specifying the minm keyword). If you specify the peer discovery mechanism as static, you can also enable hub-spoke or P2P for the VPLS instance as needed.
When creating a VSI, you can specify the peer discovery mechanism and then enable MAC-in-MAC for the VSI. Such a VSI then supports VPLS and MAC-in-MAC dual-stack.
Before creating a VSI that supports VPLS and MAC-in-MAC dual-stack, you need to enable L2VPN and MPLS L2VPN through the l2vpn command and the mpls l2vpn command. Before creating a VSI that supports only MAC-in-MAC, you just need to enable L2VPN through the l2vpn command.
Related commands: display vsi, mpls l2vpn, and l2vpn.
Examples
# Create VPLS instance aaa, and specify the peer discovery mechanism as static.
<Sysname> system-view
[Sysname] vsi aaa static
[Sysname-vsi-aaa]
# Create VPLS instance bbb, specify the peer discovery mechanism as static, and enable P2P capability for the VPLS instance.
<Sysname> system-view
[Sysname] vsi bbb static p2p
[Sysname-vsi-bbb]
# Create a VSI that supports VPLS and MAC-in-MAC dual-stack, specifying its name as dualstack, peer discovery mechanism as static, and I-SID as 500.
<Sysname> system-view
[Sysname] vsi dualstack static minm i-sid 500
[Sysname-vsi-dualstack]
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 vsi-id 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
[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 xconnect vsi to associate a VPLS instance with the service instance on a specific interface.
Use undo xconnect vsi 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 VLAN or Ethernet:
· VLAN access—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 access—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.
You further specify the access mode as hub or spoke only when the VPLS instance is enabled with the hub-spoke capability. The default access mode spoke.
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/0/3 with VPLS instance vsi200 and specify the matching external VLAN tag as 200.
<Sysname> system-view
[Sysname] interface GigabitEthernet 3/0/3
[Sysname-GigabitEthernet3/0/3] service-instance 200
[Sysname-GigabitEthernet3/0/3-srv200] encapsulation s-vid 200
[Sysname-GigabitEthernet3/0/3-srv200] xconnect vsi vsi200 hub