- Table of Contents
-
- 09-MPLS Command Reference
- 00-Preface
- 01-Basic MPLS commands
- 02-Static LSP commands
- 03-LDP commands
- 04-MPLS TE commands
- 05-Static CRLSP commands
- 06-RSVP commands
- 07-Tunnel policy commands
- 08-MPLS L3VPN commands
- 09-MPLS L2VPN commands
- 10-VPLS commands
- 11-L2VPN access to L3VPN or IP backbone commands
- 12-MPLS OAM commands
- 13-MCE commands
- Related Documents
-
Title | Size | Download |
---|---|---|
09-MPLS L2VPN commands | 538.56 KB |
Contents
description (cross-connect group view)
display l2vpn pw state-machine
display l2vpn service-instance
display l2vpn traffic-statistics interface
display l2vpn traffic-statistics pw
pw-class (auto-discovery cross-connect group view)
shutdown (cross-connect group view)
statistics enable (cross-connect PW view)
statistics enable (Ethernet service instance view)
tunnel-policy (auto-discovery cross-connect view)
MPLS L2VPN commands
ac interface
Use ac interface in cross-connect view to bind a Layer 3 interface or an Ethernet service instance to a cross-connect and enter cross-connect AC view, or enter an existing cross-connect AC view.
Use ac interface in auto-discovery cross-connect view to bind a Layer 3 interface or an Ethernet service instance to a cross-connect.
Use undo ac interface to remove the binding.
Syntax
ac interface interface-type interface-number [ service-instance instance-id ] [ access-mode { ethernet | vlan } ] [ track track-entry-number&<1-15> ]
undo ac interface interface-type interface-number [ service-instance instance-id ]
Default
No Layer 3 interface or Ethernet service instance is bound to a cross-connect.
Views
Cross-connect view
Auto-discovery cross-connect view
Predefined user roles
network-admin
Parameters
interface-type interface-number: Specifies an interface by its type and number.
service-instance instance-id: Specifies an Ethernet service instance by its ID in the range of 1 to 4096.
access-mode: Specifies an access mode. When the AC is a Layer 3 interface, you cannot specify this keyword. When the AC is a Layer 3 subinterface or Ethernet service instance, you can specify this keyword and the default access mode is VLAN.
ethernet: Specifies the Ethernet access mode.
vlan: Specifies the VLAN access mode.
track track-entry-number&<1-15>: Specifies a space-separated list of up to 15 track entry numbers in the range of 1 to 1024. The AC is up only if a minimum of one associated track entry is in positive state.
Usage guidelines
After you execute this command, packets received from the Layer 3 interface or those matching the Ethernet service instance are forwarded to the bound PW or another AC.
The Ethernet service instance specified in this command must have a packet match criterion configured by the encapsulation command.
The access mode determines how the PE treats the VLAN tag in Ethernet frames received from the AC. It also determines how the PE forwards Ethernet frames to the AC.
· VLAN access mode—Ethernet frames received from the AC must carry a VLAN tag in the Ethernet header. The VLAN tag is called a P-tag assigned by the service provider. Ethernet frames sent to the AC must also carry the P-tag.
· Ethernet access mode—If Ethernet frames from the AC have a VLAN tag in the header, the VLAN tag is called a U-tag, and the PE ignores it. Ethernet frames sent to the AC do not carry the P-tag.
Examples
# Bind Ten-GigabitEthernet 3/0/1 to cross-connect aaa in cross-connect group vpna.
[Sysname] xconnect-group vpna
[Sysname-xcg-vpna] connection aaa
[Sysname-xcg-vpna-aaa] ac interface ten-gigabitethernet 3/0/1
[Sysname-xcg-vpna-aaa-Ten-GigabitEthernet3/0/1]
# Configure Ethernet service instance 200 on Ten-GigabitEthernet 3/0/1 to match packets with an outer VLAN tag of 200. Bind the Ethernet service instance to cross-connect actopw in cross-connect group vpn1.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 3/0/1
[Sysname-Ten-GigabitEthernet3/0/1] service-instance 200
[Sysname-Ten-GigabitEthernet3/0/1-srv200] encapsulation s-vid 200
[Sysname-Ten-GigabitEthernet3/0/1-srv200] quit
[Sysname-Ten-GigabitEthernet3/0/1] quit
[Sysname] xconnect-group vpn1
[Sysname-xcg-vpn1] connection actopw
[Sysname-xcg-vpn1-actopw] ac interface ten-gigabitethernet 3/0/1 service-instance 200
[Sysname-xcg-vpn1-actopw-Ten-GigabitEthernet3/0/1-srv200]
# Configure Ethernet service instance 200 on Ten-GigabitEthernet 3/0/1 to match packets with an outer VLAN tag of 200. Bind the Ethernet service instance to the auto-discovery cross-connect in cross-connect group vpwsbgp.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 3/0/1
[Sysname-Ten-GigabitEthernet3/0/1] service-instance 200
[Sysname-Ten-GigabitEthernet3/0/1-srv200] encapsulation s-vid 200
[Sysname-Ten-GigabitEthernet3/0/1-srv200] quit
[Sysname-Ten-GigabitEthernet3/0/1] quit
[Sysname] xconnect-group vpwsbgp
[Sysname-xcg-vpwsbgp] auto-discovery bgp
[Sysname-xcg-vpwsbgp-auto] site 1 range 10 default-offset 0
[Sysname-xcg-vpwsbgp-auto-1] connection remote-site-id 2
[Sysname-xcg-vpwsbgp-auto-1-2] ac interface ten-gigabitethernet 3/0/1 service-instance 200
[Sysname-xcg-vpwsbgp-auto-1-2-Ten-GigabitEthernet3/0/1-srv200]
Related commands
connection
display l2vpn interface
display l2vpn service-instance
encapsulation
pw-type
ac statistics enable
Use ac statistics enable to enable packet statistics on a Layer 3 interface.
Use undo ac statistics enable to disable packet statistics a Layer 3 interface.
Syntax
ac statistics enable
undo ac statistics enable
Default
Packet statistics is disabled on a Layer 3 interface.
Views
Layer 3 Ethernet interface view
Layer 3 aggregate interface view
Layer 3 subinterface view
Predefined user roles
network-admin
Usage guidelines
This command enables packet statistics only on a Layer 3 interface that has been bound to a cross-connect. If you change the bound cross-connect during the statistics collection, the packet statistics are re-collected.
To display the collected packet statistics, use the display l2vpn interface verbose command.
Examples
# Enable packet statistics on Layer 3 interface Ten-GigabitEthernet 3/0/1.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 3/0/1
[Sysname-Ten-GigabitEthernet3/0/1] ac statistics enable
Related commands
display l2vpn interface verbose
reset l2vpn statistics ac
address-family l2vpn
Use address-family l2vpn to create the BGP L2VPN address family and enter its view, or enter the view of the existing BGP L2VPN address family view.
Use undo address-family l2vpn to delete the BGP L2VPN address family and all settings from BGP L2VPN address family view.
Syntax
address-family l2vpn
undo address-family l2vpn
Default
No BGP L2VPN address family exists.
Views
BGP instance view
Predefined user roles
network-admin
Usage guidelines
To establish a BGP PW to a remote PE, you must execute the peer enable command in BGP L2VPN address family view to enable the remote PE.
Examples
# Create the BGP L2VPN address family and enter BGP L2VPN address family view.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp-default] address-family l2vpn
[Sysname-bgp-default-l2vpn]
peer enable (Layer 3—IP Routing Command Reference)
auto-discovery
Use auto-discovery to enable a cross-connect group to automatically discover neighbors and create PWs through BGP, and enter auto-discovery cross-connect group view.
Use undo auto-discovery to restore the default.
Syntax
auto-discovery bgp
undo auto-discovery
Default
A cross-connect group does not use BGP to automatically discover neighbors and create PWs.
Views
Cross-connect group view
Predefined user roles
network-admin
Parameters
bgp: Enables the cross-connect group to automatically discover neighbors and create PWs through BGP.
Usage guidelines
In auto-discovery cross-connect group view, you can configure parameters such as the local site, remote site, and route target for BGP. The local PE can use BGP to discover remote PEs and create PWs.
Examples
# Enable cross-connect group bbb to automatically discover neighbors and create PWs through BGP, and enter auto-discovery cross-connect group view.
<Sysname> system-view
[Sysname] xconnect-group bbb
[Sysname-xcg-bbb] auto-discovery bgp
[Sysname-xcg-bbb-auto]
Related commands
display l2vpn pw
display l2vpn xconnect-group
backup-peer
Use backup-peer to configure a backup PW for a cross-connect and enter cross-connect backup PW view, or enter the view of an existing cross-connect backup PW.
Use undo backup-peer to remove a backup PW.
Syntax
backup-peer ip-address pw-id pw-id [ in-label label-value out-label label-value ] [ pw-class class-name | tunnel-policy tunnel-policy-name ] *
undo backup-peer ip-address pw-id pw-id
Default
No backup PW exists for a cross-connect.
Views
Cross-connect PW view
Predefined user roles
network-admin
Parameters
ip-address: Specifies the LSR ID of the peer PE on the backup PW.
pw-id pw-id: Specifies a PW ID for the backup PW, in the range of 1 to 4294967295.
in-label label-value: Specifies the incoming label for the backup PW. The value range for the label-value argument is 16 to 1023.
out-label label-value: Specifies the outgoing label for the backup PW, in the range of 16 to 1048575.
pw-class class-name: Specifies a PW class by its name, a case-sensitive string of 1 to 19 characters. You can specify a PW class to configure the PW data encapsulation type and control word for the backup PW. If you do not specify a PW class, the PW data encapsulation type is determined by the link type of the interface. The control word feature is not supported for PW data encapsulation types that do not require using control word.
tunnel-policy tunnel-policy-name: Specifies a tunnel policy by its name, a case-sensitive string of 1 to 126 characters. If you do not specify a tunnel policy, the default tunnel policy is used for the backup PW.
Usage guidelines
This command configures a backup PW to implement PW redundancy. The backup PW is used when the primary PW fails.
To configure a backup static PW, you must specify the in-label and out-label. To configure a backup LDP PW, you do not need to specify the in-label and out-label.
The peer LSR ID and PW ID for a backup PW must be different from those for an existing VPLS PW, cross-connect bypass PW, or cross-connect PW.
PW redundancy and bypass PW are mutually exclusive with each other. If you have configured a backup PW for a cross-connect PW by using the backup-peer command, you cannot configure a bypass PW for the cross-connect PW by using the bypass-peer command, and vice versa.
PW redundancy and multi-segment PW are mutually exclusive with each other. If you have configured two PWs by using the peer command, you cannot configure a backup PW for the PWs by using the backup-peer command, and vice versa.
A static PW must have a different incoming label than an existing static LSP or static CRLSP. If they are the same, the static PW is not available, even if you change the incoming label of the static LSP or the static CRLSP. To make the static PW available, delete the static PW, and reconfigure it with an unused incoming label.
Examples
# Configure a primary PW and a backup PW for cross-connect pw2pw in cross-connect group vpn2. The primary PW is destined to 6.6.6.6 and has a PW ID of 100. The backup PW is destined to 7.7.7.7 and has a PW ID of 200.
<Sysname> system-view
[Sysname] xconnect-group vpn2
[Sysname-xcg-vpn2] connection pw2pw
[Sysname-xcg-vpn2-pw2pw] peer 6.6.6.6 pw-id 100 in-label 16 out-label 17
[Sysname-xcg-vpn2-pw2pw-6.6.6.6-100] backup-peer 7.7.7.7 pw-id 200 in-label 18 out-label 19
[Sysname-xcg-vpn2-pw2pw-6.6.6.6-100-backup]
Related commands
bypass-peer
display l2vpn ldp
display l2vpn pw
binding admin-pw
Use binding admin-pw to bind a PW to an administration PW.
Use undo binding admin-pw to unbind a PW from the administration PW.
Syntax
binding admin-pw interface interface-type interface-number
undo binding admin-pw
Default
A PW is not bound to an administration PW.
Views
Cross-connect PW view
Predefined user roles
network-admin
Parameters
interface interface-type interface-number: Specifies an administration PW by its associated interface.
Examples
# Configure an LDP PW destined for 6.6.6.6 for cross-connect aaa in cross-connect group vpn2, set the PW ID to 100, and bind the LDP PW to an administration PW.
<Sysname> system-view
[Sysname] xconnect-group vpn2
[Sysname-xcg-vpn2] connection aaa
[Sysname-xcg-vpn2-aaa] peer 6.6.6.6 pw-id 100
[Sysname-xcg-vpn2-aaa-6.6.6.6-100] binding admin-pw interface LoopBack 0
bypass-peer
Use bypass-peer to configure a bypass PW for a cross-connect and enter cross-connect bypass PW view, or enter the view of an existing cross-connect bypass PW.
Use undo bypass-peer to remove a bypass PW.
Command
In cross-connect PW view:
bypass-peer ip-address pw-id pw-id [ pw-class class-name | tunnel-policy tunnel-policy-name ] * [ pw-bypass ]
undo bypass-peer ip-address pw-id pw-id [ pw-bypass ]
In cross-connect AC view:
bypass-peer ip-address pw-id pw-id [ pw-class class-name | tunnel-policy tunnel-policy-name ] * ac-bypass
undo bypass-peer ip-address pw-id pw-id ac-bypass
Default
No bypass PW exists for a cross-connect.
Views
Cross-connect PW view
Cross-connect AC view
Predefined user roles
network-admin
Parameters
ip-address: Specifies the LSR ID of the peer PE on the bypass PW.
pw-id pw-id: Specifies a PW ID for the bypass PW, in the range of 1 to 4294967295.
pw-class class-name: Specifies a PW class by its name, a case-sensitive string of 1 to 19 characters. You can specify a PW class to configure the PW data encapsulation type and control word for the bypass PW. If you do not specify a PW class, the PW data encapsulation type is determined by the link type of the interface. The control word feature is not supported for PW data encapsulation types that do not require using control word.
tunnel-policy tunnel-policy-name: Specifies a tunnel policy by its name, a case-sensitive string of 1 to 126 characters. If you do not specify a tunnel policy, the default tunnel policy is used for the bypass PW.
pw-bypass: Configures the PW as a PW bypass. If you do not specify this keyword, the bypass PW provides both PW bypass and AC bypass.
ac-bypass: Configures the bypass PW as an AC bypass.
Usage guidelines
The peer LSR ID and PW ID for a bypass PW must be different from those for an existing VPLS PW, cross-connect PW, or cross-connect backup PW.
In a double bypass PWs network, the PW ID of the AC bypass specified on the local PE must be the same as the PW ID of the PW bypass specified on the remote PE, and vice versa.
Bypass PW and PW redundancy are mutually exclusive with each other. If you have configured a backup PW for a cross-connect PW by using the backup-peer command, you cannot configure a bypass PW for the cross-connect PW by using the bypass-peer command, and vice versa.
AC-bypass PW and local connection are mutually exclusive with each other. If you have associated two ACs by in a cross-connect, you cannot configure AC-bypass PWs for those two ACs in the cross-connect, and vice versa. (To associate two ACs in a cross-connect, use the ac interface command in cross-connect view. To configure AC-bypass PWs, use the bypass-peer command in cross-connect AC view.)
Bypass PW and multi-segment PW are mutually exclusive with each other. If you have configured two PWs by using the peer command, you cannot configure a bypass PW for the PWs by using the bypass-peer command, and vice versa.
A static PW must have a different incoming label than an existing static LSP or static CRLSP. If they are the same, the static PW is not available, even if you change the incoming label of the static LSP or the static CRLSP. To make the static PW available, delete the static PW, and reconfigure it with an unused incoming label.
Examples
# Configure a primary PW and a bypass PW for cross-connect pw2pw in cross-connect group vpn2. The primary PW is destined for 6.6.6.6 and has a PW ID of 100. The bypass PW is destined for 7.7.7.7 and has a PW ID of 200.
<Sysname> system-view
[Sysname] xconnect-group vpn2
[Sysname-xcg-vpn2] connection pw2pw
[Sysname-xcg-vpn2-pw2pw] peer 6.6.6.6 pw-id 100
[Sysname-xcg-vpn2-pw2pw-6.6.6.6-100] bypass-peer 7.7.7.7 pw-id 200
[Sysname-xcg-vpn2-pw2pw-6.6.6.6-100-bypass]
Related commands
backup-peer
display l2vpn ldp
display l2vpn pw
peer
connection
Use connection to create a cross-connect and enter its view, or enter the view of an existing cross-connect.
Use undo connection to remove a cross-connect.
Syntax
connection connection-name
undo connection connection-name
Default
No cross-connects exist.
Views
Cross-connect group view
Predefined user roles
network-admin
Parameters
connection-name: Specifies the name of the cross-connect, a case-sensitive string of 1 to 20 characters, excluding hyphens.
Usage guidelines
A cross-connect is a point-to-point connection.
You can perform the following operations in cross-connect view:
· Execute ac interface and peer to connect an AC to a PW, so the PE can forward packets between the AC and the PW.
· Execute ac interface twice to connect two ACs, so the PE can forward packets between the two ACs.
· Execute peer twice to connect two PWs to form a multi-segment PW.
Examples
# Create cross-connect ac2pw for cross-connect group vpn1 and enter cross-connect view.
<Sysname> system-view
[Sysname] xconnect-group vpn1
[Sysname-xcg-vpn1] connection ac2pw
[Sysname-xcg-vpn1-ac2pw]
connection remote-site-id
Use connection remote-site-id to create an auto-discovery cross-connect and enter its view, or enter the view of an existing auto-discovery cross-connect.
Use undo connection remote-site-id to remove the auto-discovery cross-connect.
Syntax
connection remote-site-id remote-site-id
undo connection remote-site-id remote-site-id
Default
No auto-discovery cross-connects exist.
Views
Site view
Predefined user roles
network-admin
Parameters
remote-site-id: Specifies a remote site by its ID in the range of 0 to 256.
Usage guidelines
This command creates an auto-discovery cross-connect that uses BGP to establish a PW from the local site to the specified remote site.
In auto-discovery cross-connect view, you can execute ac interface to bind an AC to the auto-discovery cross-connect. The PE can forward packets between the AC and the PW.
Examples
# Create an auto-discovery cross-connect from site 1 to site 3 in site view, and enter auto-discovery cross-connect view.
<Sysname> system-view
[Sysname] xconnect-group bbb
[Sysname-xcg-bbb] auto-discovery bgp
[Sysname-xcg-bbb-auto] site 1 range 10
[Sysname-xcg-bbb-auto-1] connection remote-site-id 3
[Sysname-xcg-bbb-auto-1-3]
control-word enable
Use control-word enable to enable the control word feature.
Use undo control-word enable to disable the control word feature.
Syntax
control-word enable
undo control-word enable
Default
The control word feature is disabled.
Views
PW class view
Predefined user roles
network-admin
Usage guidelines
The control word field is between the MPLS label stack and the Layer 2 data. It carries control information for the Layer 2 frame, for example, the sequence number.
The control word feature has the following functions:
· Avoids fragment disorder. In multipath forwarding, fragments received might be disordered. You can configure the control word feature so the device reorders the fragments according to the sequence number carried in the control word field.
· Transfers specific Layer 2 frame flags.
· Identifies the original payload length for packets that include padding.
For some PW data encapsulation types, packets on the PW always carry the control word field, and the control word feature cannot be disabled.
When the PW data encapsulation type is Ethernet or VLAN, the control word field is optional. Packets transmitted on the PW carry the control word field only when control word is enabled on both PEs.
Examples
# Enable the control word feature for PW class pw100.
<Sysname> system-view
[Sysname] pw-class pw100
[Sysname-pw-pw100] control-word enable
Related commands
display l2vpn pw-class
description (cross-connect group view)
Use description to configure a description for a cross-connect group.
Use undo description to restore the default.
Syntax
description text
undo description
Default
No description is configured for a cross-connect group.
Views
Cross-connect group view
Predefined user roles
network-admin
Parameters
text: Specifies a description, a case-sensitive string of 1 to 80 characters.
Examples
# Configure a description of vpws for vpn2 for cross-connect group vpn2.
<Sysname> system-view
[Sysname] xconnect-group vpn2
[Sysname-xcg-vpn2] description vpws for vpn2
Related commands
display l2vpn xconnect-group
display bgp l2vpn signaling
Use display bgp l2vpn signaling to display MPLS L2VPN label block information discovered by BGP.
Syntax
display bgp [ instance instance-name ] l2vpn signaling [ peer ip-address { advertised | received } [ statistics ] | route-distinguisher route-distinguisher [ site-id site-id [ label-offset label-offset [ advertise-info ] ] ] | statistics ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
instance instance-name: Displays MPLS L2VPN label block information in a BGP instance. The instance-name argument specifies the BGP instance name, a case-sensitive string of 1 to 31 characters. If you do not specify a BGP instance, this command displays MPLS L2VPN label block information in the default BGP instance.
peer ip-address: Displays MPLS L2VPN label block information advertised to or received from a BGP peer. The ip-address argument specifies the peer IP address.
advertised: Displays MPLS L2VPN label block information advertised to the BGP peer.
received: Displays MPLS L2VPN label block information received from the BGP peer.
statistics: Displays BGP MPLS L2VPN label block statistics.
route-distinguisher route-distinguisher: Displays BGP MPLS L2VPN label block information for the route distinguisher (RD), which is a string of 3 to 21 characters. You can specify an RD in one of the following 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.
site-id site-id: Displays BGP MPLS L2VPN label block information for a site. The site-id argument specifies the site ID. The site ID range is 0 to 65535.
label-offset label-offset: Displays information about the BGP MPLS L2VPN label block with an offset. The label-offset argument specifies the offset in the range of 0 to 65535.
advertise-info: Displays BGP MPLS L2VPN label block advertisement information.
Usage guidelines
If you do not specify any parameters, this command displays brief information about all BGP MPLS L2VPN label blocks.
Examples
# Display brief information about all BGP MPLS L2VPN label blocks.
<Sysname> display bgp l2vpn signaling
BGP local router ID is 192.168.1.135
Status codes: * - valid, > - best, d - dampened, h - history,
s - suppressed, S - stale, i - internal, e - external
Origin: i - IGP, e - EGP, ? - incomplete
Total number of label blocks: 2
Route distinguisher: 2:2
Total number of label blocks: 2
Site ID LB offset LB range LB base Nexthop
* > 1 0 10 1034 0.0.0.0
* >i 2 0 10 1162 192.3.3.3
Table 1 Command output
Field |
Description |
Status codes |
Status codes: · * – valid—Valid route. · > – best—Best route. · d – damped—Dampened route. · h – history—History route. · s – suppressed—Suppressed route. · S – Stale—Stale route. · i – internal—Internal route. · e – external—External route. |
Origin |
Origin of the label block: · i – IGP—Originated in the AS. · e – EGP—Learned through EGP. · ? – incomplete—Unknown origin. |
LB offset |
Offset of the label block. |
LB range |
Size of the label block. |
LB base |
Initial value of the label block. |
<Sysname> display bgp l2vpn signaling route-distinguisher 2:2 site-id 2 label-offset 0
BGP local router ID: 192.168.1.135
Local AS number: 100
Route distinguisher: 2:2
Total number of label blocks: 1
Paths: 1 available, 1 best
From : 192.3.3.3 (192.168.1.140)
Original nexthop: 192.3.3.3
Ext-Community : <RT: 2:2>, <L2VPN info: MTU 1500, Encap type VLAN>
AS-path : (null)
Origin : igp
Attribute value : localpref 100, pref-val 0
Site ID : 2
LB offset : 0
LB base : 1162
LB range : 10
State : valid, internal, best
CSV : 0x01000ABFFF
Table 2 Command output
Field |
Description |
Paths |
Number of label block messages: · available—Number of available label block messages. · best—Number of best label block messages. |
From |
IP address of the peer from which the label block was received. |
Original nexthop |
Original next hop. If the label block was obtained from a BGP route update, this field displays the next hop address in that BGP route update. |
Ext-Community |
Extended community attribute: · RT—Route target. · L2VPN info—L2VPN information, including the MTU and encapsulation type. |
AS-path |
AS path attribute, which records all ASs that the label block passed to prevent routing loops. |
Origin |
Origin of the label block: · igp—Originated in the AS. · egp—Learned through EGP. · incomplete—Unknown origin. |
Attribute value |
Attribute of the label block: · MED—Multi-Exit Discriminator attribute. · localpref—Local preference value. · pref-val—Preferred value. · pre—Preference value. |
LB offset |
Offset of the label block. |
LB base |
Initial value of the label block. |
LB range |
Size of the label block. |
State |
State of the label block: · valid. · internal. · external. · local. · best. |
CSV |
Circuit status vector. |
# Display BGP advertisement information for the specified MPLS L2VPN label block.
<Sysname> display bgp l2vpn signaling route-distinguisher 2:2 site-id 1 label-offset 0 advertise-info
BGP local router ID: 192.168.1.135
Local AS number: 100
Route distinguisher: 2:2
Total number of label blocks: 1
Paths: 1 best
Site ID : 1
LB offset : 0
LB base : 1034
LB range : 10
CSV : 0x01000ADFFF
Advertised to peers (1 in total):
192.3.3.3
Table 3 Command output
Field |
Description |
Paths |
Number of label block messages: · available—Number of available label block messages. · best—Number of best label block messages. |
LB offset |
Offset of the label block. |
LB base |
Initial value of the label block. |
LB range |
Size of the label block. |
CSV |
Circuit status vector. |
Advertised to peers (1 in total) |
Peers to which the label block has been advertised. |
display l2vpn bgp
Use display l2vpn bgp to display MPLS L2VPN label block information.
Syntax
display l2vpn bgp [ local | peer ip-address ] [ xconnect-group group-name ] [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
local: Displays local MPLS L2VPN label block information.
peer ip-address: Displays MPLS L2VPN label block information received from the remote peer.
xconnect-group group-name: Displays MPLS L2VPN label block information for a cross-connect group. The group-name argument specifies the cross-connect group name, a case-sensitive string of 1 to 31 characters. If you do not specify a cross-connect group, this command displays MPLS L2VPN label block information for all cross-connect groups.
verbose: Displays detailed information. If you do not specify this keyword, the command displays brief information.
Usage guidelines
If you specify a peer, this command displays both the label block received from the peer and the local label block that matches the received label block.
If you do not specify a peer or local, this command displays label blocks received from all peers and local label blocks that match the received ones. If no local label block matches the received ones, the command only displays the label blocks received from all peers.
A local label block matches a received label block if the following condition is met: local label block LO ≤ remote site ID ≤ local label block LO + local label block LR – 1.
Examples
# Display brief information about label blocks received from all peers.
<Sysname> display l2vpn bgp
Total number of BGP PWs: 1, 1 up, 0 down
Xconnect-group Name: vpnb, Site ID:1
Rmt Site Offset RD Nexthop In/Out Label State
2 0 2:2 192.3.3.3 1036/1163 Up
Table 4 Command output
Field |
Description |
Rmt Site |
ID of the remote site. |
Offset |
Offset of the label block. |
# Display detailed information about label blocks received from all peers.
<Sysname> display l2vpn bgp verbose
Xconnect-group Name: vpnb, Site ID:1
Remote Site ID : 2
Offset : 0
RD : 2:2
PW State : Up
Encapsulation : VLAN
MTU : 1500
Nexthop : 192.3.3.3
Local VC Label : 1036
Remote VC Label : 1163
Local Control Word : Disabled
Remote Control Word: Disabled
Link ID : 1
Local Label Block : 1034/10/0
Remote Label Block : 1162/10/0
Local Flow Label : Send
Reomote Flow Label : Recv
Export Route Target: 2:2
Table 5 Command output
Field |
Description |
Local VC Label |
Incoming label of the PW. |
Remote VC Label |
Outgoing label of the PW. |
Link ID |
Link ID of the PW. |
Local Label Block |
Local label block: label base/label range/Label-block offset. |
Remote Label Block |
Remote label block: label base/label range/Label-block offset. |
Local Control Word |
Whether the local end is enabled with the control word feature. |
Remote Control Word |
Whether the remote end is enabled with the control word feature. |
Local Flow Label |
Flow label capability of the local PE: · Both—Flow label sending and receiving capabilities. · Send—Flow label sending capability. · Recv—Flow label receiving capability. This field displays a hyphen (-) if the flow label feature is disabled. |
Remote Flow Label |
Flow label capability of the remote PE: · Both—Flow label sending and receiving capabilities. · Send—Flow label sending capability. · Recv—Flow label receiving capability. This field displays a hyphen (-) if the flow label feature is disabled. |
Export Route Target |
Route target of the remote label block. |
# Display brief information about all local label blocks.
<Sysname> display l2vpn bgp local
Xconnect-group Name: vpnb
Site Offset Range Label Base RD
1 0 10 1034 2:2
# Display detailed information about all local label blocks.
<Sysname> display l2vpn bgp local verbose
Xconnect-group Name: vpnb
Site ID : 1
Offset : 0
RD : 2:2
Range : 10
Label Base : 1034
Link ID : 1
Table 6 Command output
Field |
Description |
Offset |
Offset of the label block. |
RD |
RD of the label block. If no RD is configured, this field displays a hyphen (-). |
Range |
Range of the label block. |
Label Base |
Initial value of the label block. |
Link ID |
Link ID of the PW established using the label block. The link ID is fixed to 1 because an MPLS L2VPN cross-connect can establish only one BGP PW. |
Related commands
display l2vpn pw
display l2vpn forwarding
Use display l2vpn forwarding to display cross-connect forwarding information.
Syntax
display l2vpn forwarding { ac | pw } [ xconnect-group group-name ] [ slot slot-number ] [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
ac: Displays AC forwarding information.
pw: Displays PW forwarding information.
xconnect-group group-name: Displays forwarding information for a cross-connect group. The group-name argument specifies the cross-connect group name, a case-sensitive string of 1 to 31 characters. If you do not specify a group, this command displays forwarding information for all cross-connect groups.
slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command displays cross-connect forwarding information on the active MPU.
verbose: Displays detailed information. If you do not specify this keyword, the command displays brief information.
Examples
# Display brief AC forwarding information for all cross-connect groups.
<Sysname> display l2vpn forwarding ac
Total number of cross-connections: 2
Total number of ACs: 2
AC Xconnect-group Name Link ID
XGE3/0/1 vpn1 0
XGE3/0/2 vpn2 0
Table 7 Command output
Field |
Description |
Total number of cross-connections |
Total number of cross-connects, including cross-connects not bound to any ACs. |
AC |
AC type: · Layer 3 interface. · Ethernet service instance on a Layer 2 interface. |
# Display detailed AC forwarding information for all cross-connect groups.
<Sysname> display l2vpn forwarding ac verbose
Xconnect-group Name: vpws1
Connection Name: actopw
Interface: XGE3/0/1
Link ID : 1
Access Mode : Ethernet
Connection Name: actoac
Interface: XGE3/0/2
Link ID : 0
Access Mode : Ethernet
Interface: XGE3/0/3
Link ID : 1
Access Mode : Ethernet
Reflector :
IP Address : 100.1.1.4
MAC Address : 8850-fc51-5cee
Src Port : 200
Dst Port : 201
State : Ready
Table 8 Command output
Field |
Description |
Xconnect-group Name |
Cross-connect group name. |
Connection Name |
Cross-connect name. |
Service Instance |
The field is available only when the AC is an Ethernet service instance on a Layer 2 interface. |
Access Mode |
AC access mode: · VLAN. · Ethernet. |
AC VNID |
ID of the virtual next hop for the AC. This field is displayed only when the AC is configured with an AC bypass. |
Encapsulation |
Match criterion of the Ethernet service instance. This field is displayed only when the AC type is Ethernet service instance on a Layer 2 interface. |
Reflector |
Packet reflection information. |
IP Address |
Destination IP address to be reflected. |
MAC Address |
Destination MAC address to be reflected. |
Src Port |
Source UDP port to be reflected. |
Dst Port |
Destination UDP port to be reflected. |
State |
Packet reflection deployment state: · Ready—The packet reflection information has been deployed to the drive. · Not ready—The packet reflection information has not been deployed to the drive. |
# Display brief PW forwarding information for all cross-connect groups.
<Sysname> display l2vpn forwarding pw
Total number of cross-connections: 1
Total number of PWs: 2, 2 up, 0 blocked, 0 down
Xconnect-group Name In/Out Label NID Link ID State
vpn1 1279/1151 1025 0 Up
vpn1 1278/1151 1027 1 Up
Table 9 Command output
Field |
Description |
Total number of cross-connections |
Total number of cross-connects, including those not bound to any PW. |
In/Out Label |
Incoming and outgoing labels of the PW. A hyphen (-) indicates that no label exists. |
NID |
NHLFE ID for the public tunnel that carries the PW. If equal-cost tunnels are available, this field displays multiple NIDs. If no tunnel is available, this field displays None. |
State |
PW state: Up, Down, or Blocked. Blocked indicates that the PW is a backup PW or bypass PW. |
# Display detailed PW forwarding information for all cross-connect groups.
<Sysname> display l2vpn forwarding pw verbose
Xconnect-group Name: vpn1
Connection Name: ldp
Link ID: 0
PW Type : VLAN PW State : Up
In Label : 1279 Out Label: 1151
MTU : 1500
PW Attributes : Main
VCCV CC : Router-Alert
VCCV BFD : Fault Detection with BFD
Flow Label : Send
Tunnel Group ID : 0x60000000
Tunnel NHLFE IDs: 1025
Link ID: 1
PW Type : VLAN PW State : Up
In Label : 1278 Out Label: 1151
MTU : 1500
PW Attributes : Main
VCCV CC : Router-Alert
VCCV BFD : Fault Detection with BFD
Flow Label : Send
Tunnel Group ID : 0x160000001
Tunnel NHLFE IDs: 1027
Table 10 Command output
Field |
Description |
PW State |
PW state: Up, Down, or Blocked. Blocked indicates that the PW is a backup PW or bypass PW. |
In Label |
Incoming label of the PW. A hyphen (-) indicates that no label exists. |
Out Label |
Outgoing label of the PW. A hyphen (-) indicates that no label exists. |
PW Attributes |
PW attribute: · Main—Primary PW. · Backup—Backup PW. · Bypass—Bypass PW. · AC-bypass—The PW is an AC bypass. · PW-bypass—The PW is a PW bypass. · ECMP—The PW is an ECMP PW. |
VCCV CC |
VCCV CC type: · Control-Word—Control word. · Router-Alert—MPLS Router Alert Label. · TTL—TTL expiry (MPLS PW Label with TTL=1.) This field displays a hyphen (-) if no VCCV CC type is specified. |
VCCV BFD |
VCCV BFD type: · Fault Detection with BFD. BFD packets use IP/UDP encapsulation (with IP/UDP headers). This field displays a hyphen (-) if BFD is not used to verify PW connectivity. |
Flow Label |
Flow label capability: · Both—Flow label sending and receiving capabilities. · Send—Flow label sending capability. · Recv—Flow label receiving capability. This field displays a hyphen (-) if the flow label feature is disabled. |
Tunnel Group ID |
ID of the tunnel group for the PW. |
Tunnel NHLFE IDs |
NHLFE IDs of the public tunnels that carry the PW. If equal-cost tunnels are available, this field displays multiple tunnel NHLFE IDs. If no tunnel is available, this field displays None. |
display l2vpn interface
Use display l2vpn interface to display L2VPN information for Layer 3 interfaces bound to cross-connects.
Syntax
display l2vpn interface [ xconnect-group group-name | interface-type [ interface-number | interface-number.subnumber ] ] [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
xconnect-group group-name: Displays L2VPN information for Layer 3 interfaces bound to cross-connects in a cross-connect group. The group-name argument specifies the cross-connect group name, a case-sensitive string of 1 to 31 characters.
interface-type [ interface-number | interface-number.subnumber ]: Displays L2VPN information for the specified interface.
verbose: Displays detailed information. If you do not specify this keyword, the command displays brief information.
Usage guidelines
If you do not specify any parameters, this command displays L2VPN information for all Layer 3 interfaces bound to cross-connects.
Examples
# Display brief L2VPN information for all Layer 3 interfaces bound to cross-connects.
<Sysname> display l2vpn interface
Total number of interfaces: 2, 2 up, 0 down
Interface Owner Link ID State Type
XGE3/0/1 vpws1 1 Up VPWS
XGE3/0/2 vpws2 1 Up VPWS
# Display detailed L2VPN information for all Layer 3 interfaces bound to cross-connects.
<Sysname> display l2vpn interface verbose
Interface : XGE3/0/1
Owner : vpws1
Connection Name : bb
Link ID : 1
State : UP
Type : VPWS
AC VNID : -
Statistics : Enabled
Input Statistics:
Octets :0
Packets :0
UcastPkt : 0
BrdcastPkt : 0
MuticastPkt : 0
Errors :0
Discards :0
Output Statistics:
Octets :0
Packets :0
UcastPkt : 0
BrdcastPkt : 0
MuticastPkt : 0
Errors :0
Discards :0
Interface : XGE3/0/2
Owner : vpws2
Connection Name : cc
Link ID : 1
State : UP
Type : VPWS
AC VNID : -
Statistics : Enabled
Input Statistics:
Octets :0
Packets :0
UcastPkt : 0
BrdcastPkt : 0
MuticastPkt : 0
Errors :0
Discards :0
Output Statistics:
Octets :0
Packets :0
UcastPkt : 0
BrdcastPkt : 0
MuticastPkt : 0
Errors :0
Discards :0
Table 11 Command output
Field |
Description |
Owner |
Cross-connect group name. |
Connection Name |
Cross-connect name. |
Link ID |
Link ID of the AC. |
Type |
L2VPN type. The value can only be VPWS for an MPLS L2VPN network. |
AC VNID |
Virtual next hop ID. This field is displayed only when the AC is configured with an AC bypass. |
Statistics |
Packet statistics state on the Layer 3 interface: · Enabled. · Disabled. |
Input Statistics |
Incoming packet statistics on the Layer 3 interface: · Octets—Number of incoming octets. · Packets—Number of incoming packets. · UcastPkt—Number of incoming unicast packets. · BrdcastPkt—Number of incoming broadcast packets. · MulticastPkt—Number of incoming multicast packets. · Errors—Number of incoming error packets. · Discards—Number of discarded incoming packets. |
Output Statistics |
Outgoing packet statistics on the Layer 3 interface: · Octets—Number of outgoing octets. · Packets—Number of outgoing packets. · UcastPkt—Number of outgoing unicast packets. · BrdcastPkt—Number of outgoing broadcast packets. · MulticastPkt—Number of outgoing multicast packets. · Errors—Number of outgoing error packets. · Discards—Number of discarded outgoing packets. |
display l2vpn ldp
Use display l2vpn ldp to display LDP PW label information.
Syntax
display l2vpn ldp [ peer ip-address [ pw-id pw-id ] | xconnect-group group-name ] [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
peer ip-address: Displays LDP PW label information advertised by a peer PE. The ip-address argument specifies the LSR ID of the peer PE. If you do not specify a peer PE, this command displays LDP PW label information advertised by all peer PEs.
pw-id pw-id: Displays LDP PW label information for a PW. The pw-id argument specifies the PW ID in the range of 1 to 4294967295. If you specify peer ip-address without this option, the command displays all LDP PW label information advertised by the peer PE.
xconnect-group group-name: Displays LDP PW label information for a cross-connect group. The group-name argument specifies the cross-connect group name, a case-sensitive string of 1 to 31 characters. If you do not specify a cross-connect group, this command displays LDP PW label information for all cross-connect groups.
verbose: Displays detailed information. If you do not specify this keyword, the command displays brief information.
Examples
# Display brief information about all LDP PW labels.
<Sysname> display l2vpn ldp
Total number of LDP PWs: 5, 4 up, 1 down
Peer PW ID/VPLS ID In/Out Label State Owner
192.3.3.3 1001 775125/775126 Up vpws1
192.3.3.3 1001 775125/775126 Up vpws1
192.3.3.3 1003 775117/775122 Up vpws3
192.3.3.3 1004 775120/775120 Up vpws4
192.4.4.4 1000 775116/unknown Down vpws5
Table 12 Command output
Field |
Description |
PW ID/VPLS ID |
This field displays the PW ID for FEC 128, and displays the VPLS ID for FEC 129. Only VPLS supports FEC 129. |
Owner |
Cross-connect group of the PW. |
# Display detailed information about all LDP PW labels.
<Sysname> display l2vpn ldp verbose
Peer: 192.2.2.2 PW ID: 1000
Xconnect-group: vpn1
Connection : ldp
PW State : Up
PW Status Communication: Notification method
PW Preferential Forwarding Status Bit: Process
PW ID FEC (Local/Remote):
PW Type : VLAN/VLAN
Group ID : 0/0
Label : 1151/1279
Control Word : Disabled/Disabled
VCCV CC Type : -/-
VCCV CV Type : -/-
Flow Label : Send/Recv
MTU : 1500/1500
MTU Negotiation : Enabled
PW Status : PW forwarding/PW forwarding
Table 13 Command output
Field |
Description |
Xconnect-group |
Cross-connect group of the PW. |
Connection |
Cross-connect of the PW. |
PW Status Communication |
PW state communicate: · Notification method—Uses notifications to communicate PW states. · Label withdraw method—Assigns a PW label to the PW when the AC is up and withdraws the PW label when the AC goes down. |
PW Preferential Forwarding Status Bit |
PW state processing mode: · Process—Process the received PW states. · Ignore—Ignore the received PW states. |
VCCV CC Type |
VCCV CC type: · Control-Word—Control word. · Router-Alert—MPLS Router Alert Label. · TTL—TTL expiry (MPLS PW Label with TTL=1.) This field displays a hyphen (-) if no VCCV CC type is specified. For information about VCCV, see MPLS Configuration Guide. |
VCCV CV Type |
VCCV CV type: · LSP Ping—Uses MPLS LSP ping to verify PW connectivity. · BFD—Uses BFD to verify PW connectivity. BFD packets use IP/UDP encapsulation (with IP/UDP headers). This field displays a hyphen (-) if VCCV is not performed on the PW. |
Flow Label |
Flow label capability: · Both—Flow label sending and receiving capabilities. · Send—Flow label sending capability. · Recv—Flow label receiving capability. This field displays a hyphen (-) if the flow label feature is disabled. |
MTU Negotiation |
Whether PW MTU negotiation is enabled. |
display l2vpn pw
Use display l2vpn pw to display L2VPN PW information.
Syntax
display l2vpn pw [ xconnect-group group-name ] [ protocol { bgp | evpn | ldp | static } ] [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
xconnect-group group-name: Displays L2VPN PW information for a cross-connect group. The group-name argument specifies the cross-connect group name, a case-sensitive string of 1 to 31 characters. If you do not specify a group, this command displays L2VPN PW information for all cross-connect groups.
protocol: Displays L2VPN PW information established by a protocol. If you do not specify a protocol, this command displays L2VPN PW information established by all protocols.
bgp: Displays BGP PW information.
evpn: Displays EVPN PW information.
ldp: Displays LDP PW information.
static: Displays static PW information.
verbose: Displays detailed information. If you do not specify this keyword, the command displays brief information.
Usage guidelines
After you enable PW statistics, you can use the display l2vpn pw verbose command to display PW statistics.
Examples
# Display brief information about all L2VPN PWs.
<Sysname> display l2vpn pw
Flags: M - main, B - backup, E - ecmp, BY - bypass, H - hub link, S - spoke link
N - no split horizon, A - administration, ABY – ac-bypass
PBY – pw-bypass
Total number of PWs: 3
3 up, 0 blocked, 0 down, 0 defect, 0 idle, 0 duplicate
Xconnect-group Name: ldp
Peer PWID/RmtSite/SrvID In/Out Label Proto Flag Link ID State
192.3.3.3 500 1299/1299 LDP M 0 Up
192.3.3.2 600 1292/1291 LDP ABY 0 Up
Xconnect-group Name: vpnb
Peer PWID/RmtSite/SrvID In/Out Label Proto Flag Link ID State
192.3.3.3 2 1036/1163 BGP M 1 Up
Table 14 Command output
Field |
Description |
Flags |
PW flag. |
PWID/RmtSite/SrvID |
This field displays the PW ID for a static or LDP PW, displays the remote site ID for a BGP PW, and displays the remote service ID for an EVPN PW. |
Proto |
Protocol that established the PW: LDP, Static, BGP, or EVPN. |
Flag |
PW attribute: · M - Main—The PW is a primary PW. · B - Backup—The PW is a backup PW. · E - ECMP—The PW is an ECMP PW. · BY - Bypass—The PW is a bypass PW. · H - Hub link—The PW is the hub link in a hub-spoke VPLS network. · S - Spoke link—The PW is a spoke link in a hub-spoke VPLS network. · N - No-split-horizon—Split horizon forwarding is disabled. · A - Administration—The PW is an administration PW. · ABY - AC-bypass—The PW is an bypass PW for AC bypass. · PBY - PW-bypass—The PW is a bypass PW for PW bypass. |
Link ID |
Link ID of the PW. |
State |
PW state: · Up—The PW is available. · Down—The PW is not available. · Blocked—The PW is a backup PW. · Defect—BFD has detected a defect on the PW. · Idle—The incoming label of the PW is not available. · Dup—The incoming label of the static PW is used by a static LSP or a static CRLSP. |
# Display detailed information about all PWs.
<Sysname> display l2vpn pw verbose
Xconnect-group Name: ldp
Connection Name: ldp
Peer: 192.3.3.3 PW ID: 500
Signaling Protocol : LDP
Link ID : 0 PW State : Up
In Label : 1299 Out Label: 1299
MTU : 1500
PW Attributes : Main
VCCV CC : -
VCCV BFD : -
Flow Label : Send
Control Word : Disabled
Tunnel Group ID : 0x800000160000000
Tunnel NHLFE IDs : 1026
Admin PW : -
Input statistics :
Octets : 10600
Packets : 100
UcastPkt : 0
BrdcastPkt : 0
MuticastPkt : 0
Errors : 0
Discards : 0
Output statistics :
Octets : 12600
Packets : 100
UcastPkt : 0
BrdcastPkt : 0
MuticastPkt : 0
Errors : 0
Discards : 0
Xconnect-group Name: vpnb
Connection of auto-discovery: Site 1
Peer: 192.3.3.3 Remote Site: 2
Signaling Protocol : BGP
Link ID : 1 PW State : Up
In Label : 1036 Out Label: 1163
MTU : 1500
PW Attributes : Main
VCCV CC : -
VCCV BFD : -
Flow Label : Recv
Control Word : Disabled
Tunnel Group ID : 0x800000160000000
Tunnel NHLFE IDs : 1026
Admin PW : -
Xconnect-group Name: ccc
Connection Name: 1
Peer: 13.13.13.9 Remote Service ID: 4011
Signaling Protocol : EVPN
Link ID : 1 PW State : Down
In Label : 710126 Out Label: 1424
MTU : 1500
PW Attributes : AC-bypass, No-split-horizon
VCCV CC : -
VCCV BFD : -
Flow Label : -
Control Word : Disabled
Tunnel Group ID : 0x2000000130000001
Tunnel NHLFE IDs : 4
Admin PW : -
Color : -
Table 15 Command output
Field |
Description |
|
Xconnect-group Name |
Cross-connect group name. |
|
Connection Name |
Cross-connect name, which is displayed for LDP, static, and EVPN PWs. |
|
Peer |
IP address of the peer PE of the PW. |
|
Remote Service ID |
Remote service ID used for EVPN PW establishment. |
|
Signaling Protocol |
Protocol that established the PW: LDP, Static, BGP, or EVPN. |
|
PW State |
PW state: · Up—The PW is available. · Down—The PW is not available. · Blocked—The PW is a backup PW. · Defect—BFD has detected a defect on the PW. · Idle—The incoming label of the PW is not available. · Duplicate—The incoming label of the static PW is used by a static LSP or a static CRLSP. |
|
Wait to Restore Time |
Wait time to switch traffic from the backup PW to the primary PW when the primary PW recovers, in seconds. If the switchover is disabled, this field displays Infinite. This field is available when both primary and backup PW exist, and is displayed only for the primary PW. |
|
Remaining Time |
Remaining wait time for traffic switchover, in seconds. |
|
PW Attributes |
PW attribute: · Main—Primary PW. · Backup—Backup PW. · ECMP—ECMP PW. · Bypass—Bypass PW. · Administration—Administration PW. · AC-bypass—Bypass PW for AC bypass. · PW-bypass—Bypass PW for PW bypass. |
|
VCCV CC |
VCCV CC type: · Control-Word—Control word. · Router-Alert—MPLS Router Alert Label. · TTL—TTL expiry (MPLS PW Label with TTL=1.) This field displays a hyphen (-) if no VCCV CC type is specified. |
|
VCCV BFD |
VCCV BFD type: · Fault Detection with BFD. BFD packets use IP/UDP encapsulation (with IP/UDP headers). This field displays a hyphen (-) if BFD is not used to verify PW connectivity. |
|
Flow Label |
Flow label capability: · Both—Flow label sending and receiving capabilities. · Send—Flow label sending capability. · Recv—Flow label receiving capability. This field displays a hyphen (-) if the flow label feature is disabled. |
|
Control Word |
Whether the control word feature is enabled. |
|
Tunnel Group ID |
ID of the tunnel group for the PW. |
|
Tunnel NHLFE IDs |
NHLFE IDs of the public tunnels that carry the PW. If equal-cost tunnels are available, this field displays multiple tunnel NHLFE IDs. If no tunnel is available, this field displays None. |
|
Admin PW |
Administration PW to which the PW is bound. This field displays a hyphen (-) if the PW is not bound to an administration PW. |
|
Connection of auto-discovery |
The PW is a BGP PW. |
|
Site |
Local site ID. |
|
Remote site |
Remote site ID. |
|
Down Reason |
Reason why the PW is down: · BFD session for PW down—The BFD session for PW detection is down. · BGP RD was deleted—The BGP RD has been deleted. · BGP RD was empty—No BGP RD is configured. · Control word not match—The control word configuration on the two ends of the PW is inconsistent. · Encapsulation not match—The encapsulation types on the two ends of the PW are inconsistent. · EVPN VPWS AD per EVI route not received from peer—In the EVPN VPWS network, the local end does not receive the A-D per EVI routes from the remote end. · EVPN VPWS AD per ES route not received from peer—In the EVPN VPWS network, the local end does not receive the A-D per ES routes from the remote end. · Label not allocated—No label is allocated. · LDP interface parameter not match—The LDP negotiation parameters on the two ends of the PW are inconsistent. · Local and remote LDP PWs have different AII—The local SAII and remote TAII are different. · Non-existent remote LDP PW—The remote device has deleted the LDP PW. · Local AC Down—The local AC is down. · Local AC was non-existent—No local AC is configured. · Local LDP PW Virtual Nexthop defect—The local LDP PW has virtual next hop defects. · Local LDP PW was not sent mapping message—The local end did not send the LDP mapping message. · Local VSI Down—The local VSI is down. · MTU not match—The MTU configuration on the two ends of the PW is inconsistent. · Remote AC Down—The remote AC is down. · Remote LDP PW Virtual Nexthop defect—The remote LDP PW has virtual next hop defects. · PW down after created—The initial state of the PW is down. · Tunnel Down—The tunnel that carries the PW is down. |
|
Input statistics |
Incoming packet statistics for the PW: · Octets—Number of incoming octets. · Packets—Number of incoming packets. · UcastPkt—Number of incoming unicast packets. · BrdcastPkt—Number of incoming broadcast packets. · MulticastPkt—Number of incoming multicast packets. · Errors—Number of error packets. · Discards—Number of discarded packets. |
|
Output statistics |
Outgoing packet statistics for the PW: · Octets—Number of outgoing octets. · Packets—Number of outgoing packets. · UcastPkt—Number of outgoing unicast packets. · BrdcastPkt—Number of outgoing broadcast packets. · MulticastPkt—Number of outgoing multicast packets. · Errors—Number of error packets. · Discards—Number of discarded packets. |
|
Color |
Color attribute expected to be recursed to the SR-MPLS TE policy. If no color attribute exists, this field displays a hyphen (-). |
|
statistics enable (cross-connect PW view)
display l2vpn pw state-machine
Use display l2vpn pw state-machine to display MPLS L2VPN PW state machine information.
Syntax
display l2vpn pw state-machine [ xconnect-group group-name ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
xconnect-group group-name: Specifies a cross-connect group by its name, a case-sensitive string of 1 to 31 characters. If you do not specify a group, this command displays L2VPN PW state machine information for all cross-connect groups.
Examples
# Display MPLS L2VPN PW state machine information.
<Sysname> display l2vpn pw state-machine
PW Group State:
Idle - Idle, N - Normal, UA - Unavailable, PA - Protecting administrative
PF - Protecting failure, WTR - Wait-to-Restore, DNR - Do-not-Revert
SWT - Switchover wait, SWTR - Switchover wait Restore
M - Manual switch, P - Protection PW failure, W - Working PW failure
L - Local, R - Remote
Total number of PWs: 1
Xconnect-group Name: ldp
Connection Name: ldp
PW Group Link ID : 0
Main PW : Peer: 192.3.3.3 PW ID: 500
Backup PW : -
Signaling Protocol : LDP
Main PW Defect State : No defect
Backup PW Defect State : -
Switch Flag : 0x01
Switch Result : None
Switch Reason : PW down
SWT Expiry Count : 0
SWTR Expiry Count : 0
Remote Event : None
Local Event : None
Remaining Wait Restore Time : 2
PW Group Old State : Idle
PW Group State : Normal
Table 16 Command output
Field |
Description |
Connection Name |
Cross-connect name. This field is displayed for LDP PWs and static PWs. |
Connection of auto-discovery |
BGP PW. |
Site |
Local site ID. |
Peer |
IP address of the peer PE of the PW. |
Backup PW |
If no backup PWs exist, this field displays a hyphen (-). |
Signaling Protocol |
Protocol that established the PW: LDP, Static, or BGP. |
Main PW Defect State |
Primary PW defect state: · No defect—The primary PW does not have defects. · Signal defect—The signaling protocol detects a defect on the primary PW. · VN defect—The virtual next hop (VN) detects a defect on the primary PW. · OAM defect—OAM detects a defect on the primary PW. · Admin PW defect—The administration PW detects a defect on the primary PW. · Remote defect—The remote end of the PW has defects. |
Backup PW Defect State |
Backup PW defect state. The options of this field are the same as those of the Main PW Defect State field. If no backup PWs exist, this field displays a hyphen (-). |
Switch Flag |
Primary/backup PW switchover flag: · Local manual switching—A manual primary/backup PW switchover is performed at the local end. · Signaling switching—A primary/backup PW switchover is triggered by the signaling protocol. · Remote manual switching—A manual primary/backup PW switchover is performed at the remote end. |
Switch Result |
Primary/backup PW switchover result: · None—Neither the primary nor the backup PW is used to forward traffic. · Main—The primary PW is used to forward traffic. · Backup—The backup PW is used to forward traffic. |
Switch Reason |
Reason for the primary/backup PW switchover: · Manual force switch—The l2vpn switchover command was executed. · Config changed—A PW was added or removed in the set of redundant PWs. · Fault detected—BFD or VCCV detected a PW failure. · PW down—The PW went down. · PW up—The PW came up. · Receive notification message—A notification was received. · Restore manual force switch—Restored to the PW state prior to the last manual switchover (triggered by the l2vpn switchover command). · None—No primary/backup PW switchover occurred. |
SWT Expiry Count |
Number of times that the switchover wait timer expired. This value is used to determine whether to re-initiate a request switchover. This counter is reset when a primary/backup PW switchover occurs. |
SWTR Expiry Count |
Number of times that the switchover wait-to-restore timer expired. This value is used to determine whether to re-initiate a request switchover. This counter is reset when a primary/backup PW switchover occurs. |
Remaining Wait Reply Time |
Remaining wait time for the request switchover acknowledgment, in seconds. This field is displayed after the switchover wait timer is started. |
Remaining Wait Restore Time |
Remaining wait-to-restore time, in seconds. This field is displayed after the switchover wait-to-restore timer is started. |
Remote Event |
Event received from the remote state machine: · SFW—The primary PW has defects. · SFP—The backup PW has defects. · SFCW—The primary PW came up. · SFCP—The backup PW came up. · MS—Traffic is manually switched from the primary PW to the backup PW. · MR—Traffic is manually switched from the backup PW to the primary PW. · None—No event was received. |
Local Event |
Event received from the local state machine: · SFW—The primary PW has defects. · SFP—The backup PW has defects. · SFCW—The primary PW came up. · SFCP—The backup PW came up. · MS—Traffic is manually switched from the primary PW to the backup PW. · MR—Traffic is manually switched from the backup PW to the primary PW. · WTREXP—The wait-to-restore timer expired. · WTR—The wait-to-restore timer was set to a non-zero value. · DNR—The switchover mode was set to non-revertive, which indicates that traffic is not switched from the backup PW to the primary PW after the primary PW recovers. · SWTEXP—The switchover wait timer expired. · None—No event was received. |
PW Group Old State |
PW state before the primary/backup PW switchover: · Idle—Neither the primary nor the backup PW is available. · Normal—Both the primary and backup PWs are available. The primary PW is up. · UA:P:L—The local end of the backup PW has defects. The primary PW is up. · UA:P:R—The remote end of the backup PW has defects. The primary PW is up. · PF:W:L—The local end of the primary PW has defects. The backup PW is up. · PF:W:R—The remote end of the primary PW has defects. The backup PW is up. · PA:M:L—Both the primary and backup PWs are available. A switchover command is executed at the local end to switch traffic from the primary PW to the backup PW. · PA:M:R—Both the primary and backup PWs are available. A switchover command is executed at the remote end to switch traffic from the primary PW to the backup PW. · WTR—Waiting for the expiration of the wait-to-restore timer. · DNR—Non-revertive state. In this state, traffic is not switched back from the backup PW to the primary PW after the primary PW recovers. · SWT—Waiting for acknowledgment for the primary-to-backup switchover request. · SWTR—Waiting for acknowledgment for the backup-to-primary switchover request. |
PW Group State |
PW state after the primary/backup PW switchover. Options of this field are the same as those of the PW Group Old State field. |
display l2vpn pw-class
Use display l2vpn pw-class to display PW class information.
Syntax
display l2vpn pw-class [ class-name ] [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
class-name: Displays information about the PW class specified by its name, a case-sensitive string of 1 to 19 characters. If you do not specify a PW class, this command displays information about all PW classes.
verbose: Displays detailed information. If you do not specify this keyword, the command displays brief PW class information.
Examples
# Display information about all PW classes.
<Sysname> display l2vpn pw-class
Total number of PW classes: 2
PW Class Name PW Type Control Word VCCV CC VCCV BFD
pw1 Ethernet Enabled Router-Alert BFD
pw2 VLAN Disabled Router-Alert BFD
Table 17 Command output
Field |
Description |
|
PW Type |
PW data encapsulation type. Options include Ethernet, VLAN, TDM-CESoPSN-Basic, and TDM-SAToP-E1. |
|
VCCV CC |
VCCV CC type: · Control-Word—Control word. · Router-Alert—MPLS Router Alert Label. · TTL—TTL expiry (MPLS PW Label with TTL=1.) This field displays a hyphen (-) if no VCCV CC type is specified. |
|
VCCV BFD |
VCCV BFD type: · BFD—BFD packets use IP/UDP encapsulation (with IP/UDP headers). This field displays a hyphen (-) if BFD is not used to verify PW connectivity. |
|
# Display detailed information about all PW classes.
<Sysname> display l2vpn pw-class verbose
PW Class Name : pw1
PW Type : Ethernet
Control Word: Enabled
VCCV CC : Router-Alert
VCCV BFD : BFD
Sequencing : Both
Flow Label : Both
PW Class Name : pw2
PW Type : VLAN
Control Word: Disabled
VCCV CC : Router-Alert
VCCV BFD : BFD
Sequencing : -
Flow Label : Send
Table 18 Command output
Field |
Description |
PW Type |
PW data encapsulation type: Ethernet, VLAN, TDM-CESoPSN-Basic, or TDM-SAToP-E1. |
Control Word |
Whether control word is enabled. |
VCCV CC |
VCCV CC type: · Control-Word—Control word. · Router-Alert—MPLS Router Alert Label. · TTL—TTL expiry (MPLS PW Label with TTL=1.) This field displays a hyphen (-) if no VCCV CC type is specified. |
VCCV BFD |
VCCV BFD type: · BFD—BFD packets use IP/UDP encapsulation (with IP/UDP headers). This field displays a hyphen (-) if BFD is not used to verify PW connectivity. |
Sequencing |
Packet sequencing on the PW. The value is Both, which means sequencing is enabled for both incoming and outgoing packets on a PW. A hyphen (-) in this field indicates that packet sequencing is disabled on the PW. |
Flow Label |
Flow label capability: · Both—Flow label sending and receiving capabilities. · Send—Flow label sending capability. · Recv—Flow label receiving capability. This field displays a hyphen (-) if the flow label feature is disabled. |
Related commands
pw-class
display l2vpn service-instance
Use display l2vpn service-instance to display Ethernet service instance information.
Syntax
display l2vpn service-instance [ interface interface-type interface-number [ service-instance instance-id ] ] [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
interface interface-type interface-number: Displays Ethernet service instance information for the specified Layer 2 Ethernet interface or Layer 2 aggregate interface. If you do not specify an interface, this command displays Ethernet service instance information for all Layer 2 Ethernet interfaces and Layer 2 aggregate interfaces.
service-instance instance-id: Displays information about the Ethernet service instance specified by its ID. The instance ID is in the range of 1 to 4096. If you specify interface interface-type interface-number without this option, the command displays information about all Ethernet service instances on the specified Layer 2 Ethernet interface or Layer 2 aggregate interface.
verbose: Displays detailed information. If you do not specify this keyword, the command displays brief information.
Examples
# Display brief information about all Ethernet service instances.
<Sysname> display l2vpn service-instance
Total number of service-instances: 5, 5 up, 0 down
Total number of ACs: 2, 2 up, 0 down
Interface ID Owner LinkID State Type
XGE3/0/1 1 vpws1 1 Up VPWS
XGE3/0/1 2 vpws2 1 Up VPWS
Table 19 Command output
Field |
Description |
ID |
Ethernet service instance ID. |
Owner |
Name of the cross-connect group bound to the Ethernet service instance. This field is empty if no cross-connect group is bound. |
Link ID |
Link ID of the AC. |
State |
State of the service instance: UP or Down. |
Type |
L2VPN type. The value can only be VPWS for an MPLS L2VPN network. |
# Display detailed information about all Ethernet service instances on Layer 2 Ethernet interface Ten-GigabitEthernet 3/0/1.
<Sysname> display l2vpn service-instance interface ten-gigabitethernet 3/0/1 verbose
Interface: XGE3/0/1
Service Instance : 1
Encapsulation : s-vid 16
Xconnect-group : vpws1
Connection : actopw
Link ID : 1
State : Up
AC VNID : -
Statistics : Enabled
Input Statistics:
Octets : 0
Packets : 0
UcastPkt : 0
BrdcastPkt : 0
MuticastPkt : 0
Errors : 0
Discards : 0
Output Statistics:
Octets : 0
Packets : 0
UcastPkt : 0
BrdcastPkt : 0
MuticastPkt : 0
Errors : 0
Discards : 0
Table 20 Command output
Field |
Description |
Interface |
Layer 2 Ethernet interface or Layer 2 aggregate interface. |
Encapsulation |
Packet match criterion of the Ethernet service instance. This field is not displayed if no packet match criterion is configured. |
Xconnect-group |
Name of the cross-connect group bound to the Ethernet service instance. |
AD connection |
Name of the auto-discovery cross-connect bound to the Ethernet service instance, identified by the local and remote site IDs. |
Link ID |
Link ID of the AC. |
State |
State of the Ethernet service instance: UP or Down. |
AC VNID |
Virtual next hop ID of the AC. This field is displayed only when a bypass is configured for the AC. |
Statistics |
Packet statistics state: · Enabled—Packet statistics is enabled for the Ethernet service instance. · Disabled—Packet statistics is disabled for the Ethernet service instance. |
Input Statistics |
Incoming packet statistics for the Ethernet service instance: · Octets—Number of incoming octets. · Packets—Number of incoming packets. · UcastPkt—Number of incoming unicast packets. · BrdcastPkt—Number of incoming broadcast packets. · MulticastPkt—Number of incoming multicast packets. · Errors—Number of incoming error packets. · Discards—Number of discarded incoming packets. |
Output Statistics |
Outgoing packet statistics for the Ethernet service instance: · Octets—Number of outgoing octets. · Packets—Number of outgoing packets. · UcastPkt—Number of outgoing unicast packets. · BrdcastPkt—Number of outgoing broadcast packets. · MulticastPkt—Number of outgoing multicast packets. · Errors—Number of outgoing error packets. · Discards—Number of discarded outgoing packets. |
Related commands
service-instance
display l2vpn traffic-statistics interface
Use display l2vpn traffic-statistics interface to display traffic statistics for Layer 3 interfaces associated with a cross-connect group.
Syntax
display l2vpn traffic-statistics interface [ xconnect-group group-name ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
xconnect-group group-name: Displays traffic statstics for Layer 3 interfaces associated with a cross-connect group. The group-name argument specifies the cross-connect group name, a case-sensitive string of 1 to 31 characters. If you do not specify a cross-connect group, this command displays traffic statstics for Layer 3 interfaces associated with all cross-connect groups.
Examples
# Display traffic statistics for Layer 3 interfaces associated with all cross-connect groups.
<Sysname> display l2vpn traffic-statistics interface
Interface: XGE3/0/1
Owner: vpws0
Connection Name: pw1
Input : 0 bytes, 57128 packets
Output : 0 bytes, 57132 packets
Input :
Unicast : 57104 packets
Multicast: 57108 packets
Broadcast: 57112 packets
Errors : 0 packets
Discards : 0 packets
Output :
Unicast : 57116 packets
Multicast: 57120 packets
Broadcast: 57124 packets
Errors : 0 packets
Discards : 0 packets
Table 21 Command output
Field |
Description |
Interface |
Interface name. |
Owner |
Cross-connect group name. |
Input |
Incoming traffic statistics for the AC: · bytes—Number of incoming bytes. · packets—Number of incoming packets. · Unicast—Number of incoming unicast packets. · Multicast—Number of incoming multicast packets. · Broadcast—Number of incoming broadcast packets. · Errors—Number of incoming error packets. · Discards—Number of discarded incoming packets. |
Output |
Outgoing traffic statistics for the AC: · bytes—Number of outgoing bytes. · packets—Number of outgoing packets. · Unicast—Number of outgoing unicast packets. · Multicast—Number of outgoing multicast packets. · Broadcast—Number of outgoing broadcast packets. · Errors—Number of outgoing error packets. · Discards—Number of discarded outgoing packets. |
Related commands
· l2vpn statistics interval
· reset l2vpn statistics ac
· ac statistics enable
display l2vpn traffic-statistics pw
Use display l2vpn traffic-statistics pw to display traffic statistics for PWs in a cross-connect group.
Syntax
display l2vpn traffic-statistics pw [ xconnect-group group-name ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
xconnect-group group-name: Displays traffic statistics for PWs in a cross-connect group. The group-name argument specifies the cross-connect group name, a case-sensitive string of 1 to 31 characters. If you do not specify a cross-connect group, this command displays traffic statstics for PWs in all cross-connect groups.
Examples
# Display traffic statistics for PWs in all cross-connect groups.
Xconnect-group Name: xcldp1
Connection Name: pw1
Connection Name: pw1
Peer-address: 2.2.2.2
Input : 0 bytes, 48528 packets
Output : 0 bytes, 48532 packets
Input :
Unicast : 48504 packets
Multicast: 48508 packets
Broadcast: 48512 packets
Errors : 0 packets
Discards : 0 packets
Output :
Unicast : 48516 packets
Multicast: 48520 packets
Broadcast: 48524 packets
Errors : 0 packets
Discards : 0 packets
Table 22 Command output
Field |
Description |
Input |
Incoming traffic statistics for the PW: · bytes—Number of incoming bytes. · packets—Number of incoming packets. · Unicast—Number of incoming unicast packets. · Multicast—Number of incoming multicast packets. · Broadcast—Number of incoming broadcast packets. · Errors—Number of incoming error packets. · Discards—Number of discarded incoming packets. |
Output |
Outgoing traffic statistics for the PW: · bytes—Number of outgoing bytes. · packets—Number of outgoing packets. · Unicast—Number of outgoing unicast packets. · Multicast—Number of outgoing multicast packets. · Broadcast—Number of outgoing broadcast packets. · Errors—Number of outgoing error packets. · Discards—Number of discarded outgoing packets. |
Related commands
· l2vpn statistics interval
· reset l2vpn statistics pw
· statistics enable
display l2vpn xconnect-group
Use display l2vpn xconnect-group to display cross-connect group information.
Syntax
display l2vpn xconnect-group [ name group-name | evpn-srv6 | evpn-vpws | vpws ] [ count | verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
name group-name: Displays information about a cross-connect group. The group-name argument specifies the cross-connect group name, a case-sensitive sting of 1 to 31 characters. If you do not specify a group, this command displays information about all cross-connect groups.
connection connection-name: Displays information about a cross-connect. The connection-name argument specifies the cross-connect name, a case-sensitive string of 1 to 20 characters excluding hyphens (-). If you do not specify a cross-connect, this command displays information about all cross-connects.
evpn-srv6: Displays information about cross-connect groups in the EVPN VPWS over SRv6 network. For more information about this keyword, see SRv6 commands in Segment Routing Command Reference.
evpn-vpws: Displays information about cross-connect groups in the EVPN VPWS network.
vpws: Displays information about cross-connect groups in the MPLS L2VPN network.
count: Displays the number of cross-connect groups.
verbose: Displays detailed information. If you do not specify this keyword, the command displays brief information.
Usage guidelines
If you do not specify the evpn-srv6, evpn-vpws, or vpws keyword for this command, the command displays information about all cross-connect groups.
Examples
# Display brief information about all cross-connect groups.
<Sysname> display l2vpn xconnect-group
Status Codes: UP - Up, DN - Down, DF - Defect, BD - Blocked, AD - Admin Down,
DL - Idle, DP - Duplicate
Total number of Xconnect-group: 1
Total number of cross-connections: 1, 1 up, 0 down, 0 admin down
Xconnect-group Connection ST
Segment1 ST Segment2 ST
--------------------------------------------------------------------------------
1111 yyy UP
Static 192.2.2.2 5 UP Static 192.3.3.3 4 UP --------------------------------------------------------------------------------
# Display cross-connect group statistics.
<Sysname> display l2vpn xconnect-group count
Total number of cross-connections: 1, 1 up, 0 down, 0 admin down
Table 23 Command output
Field |
Description |
Xconnect-group |
Cross-connect group name. |
Connection |
Cross-connect name. |
ST |
Cross-connect state: · UP—The cross-connect is up. · DN—The cross-connect is down. · AD—The cross-connect has been shut down by using the shutdown command. |
Segment1 / Segment2 |
· AC information—Layer 3 interface name or Ethernet service instance name. · PW information—PW establishment mode, IP address of the remote PE, and PW ID. |
When this field displays the AC state, options include the following: · UP—The AC is up. · DN—The AC is down. When this field displays the PW state, options include the following: · UP—The PW is up. · DN—The PW is down. · DF—BFD has detected faults on the PW. · BD—The PW is a backup PW and does not forward traffic. · DL—The incoming label of the PW is unavailable. · DP—The incoming label of the PW is the same as the incoming label of a static LSP or static CRLSP. |
# Display detailed information about all cross-connect groups.
<Sysname> display l2vpn xconnect-group verbose
Xconnect-group Name: 1
Connection Name : 1
Connection ID : 0
State : Up
MTU : 1500
Diffserv Mode : -
LDP PWs:
Peer PW ID Link ID State Flag
1.1.1.1 20001 0 Down Main
Create time: 2018-10-12 09:06:59
Last time status changed: 2018-10-12 09:06:59
Last time PW went down: 2018-10-12 09:06:59
3.3.3.3 30001 0 Up PW-bypass
Create time: 2018-10-12 09:04:27
Last time status changed: 2018-10-12 09:04:27
Last time PW went down: 2018-10-12 09:04:27
3.3.3.3 10001 1 Blocked AC-bypass
Create time: 2018-10-12 09:04:27
Last time status changed: 2018-10-12 09:04:27
Last time PW went down: 2018-10-12 09:04:27
ACs:
AC Link ID State
XGE3/0/1 0x0 Up
Statistics: Disabled
Table 24 Command output
Field |
Description |
Xconnect-group Name |
Cross-connect group name. |
Description |
Description for the cross-connect group. If no description is configured, this field is not displayed. |
Connection Name |
Cross-connect name. |
Connection of auto-discovery |
Auto-discovery cross-connect. |
Site |
Local site ID. |
Remote site |
Remote site ID. |
Connection ID |
Cross-connect ID. |
State |
Cross-connect group state: Up, Down, or Admin down. Admin down indicates that the cross-connect group has been shut down by using the shutdown command. |
Create time |
Time when the PW was established. |
Last time status changed |
Time when the PW state most recently changed. |
Last time PW went down |
Time when the PW most recently went down. |
Statistics |
AC or PW statistics state: Enabled or Disabled. If AC or PW statistics is enabled, the following information is displayed: · Octets—Numbers of incoming and outgoing bytes. · Packets—Numbers of incoming and outgoing packets. · Errors—Numbers of incoming and outgoing error packets. · Discards—Numbers of discarded incoming and outgoing packets. |
PW Redundancy Mode |
PW redundancy operation mode: · Slave—Master/slave mode and the local PE operates as the slave node. · Master—Master/slave mode and the local PE operates as the master node. · Independent—Independent mode. |
Diffserv Mode |
DiffServ mode. Options include the following: · ingress—MPLS DiffServ mode for the inbound direction. · egress—MPLS DiffServ mode for the outbound direction. · pipe—Pipe mode. · short-pipe—Short-pipe mode. · uniform—Uniform mode · trust—Priority trust mode ¡ inner-dot1p—Trusts the inner 802.1p priority in packets. ¡ dscp—Trusts the DSCP in packets. af1, af2, af3, af4, be, cs6, cs7, or ef represents the MPLS EXP value. If no DiffServ mode is configured, this field displays a hyphen (-). |
EVPN PWs |
EVPN PW information. |
Remote Service ID |
Remote service ID used for EVPN PW establishment. |
State |
PW state: Up, Down, Blocked, or Defect. |
Flag |
PW type: · Main—Primary PW. · BackUp—Backup PW. · Bypass—Bypass PW. · AC-bypass—Bypass PW for AC bypass. · PW-bypass—Bypass PW for PW bypass. |
AC |
AC type: · Layer 3 interface. · Ethernet service instance on a Layer 2 interface. |
Related commands
xconnect-group
encapsulation
Use encapsulation to configure a packet match criterion for an Ethernet service instance.
Use undo encapsulation to restore the default.
Syntax
encapsulation s-vid vlan-id
encapsulation s-vid vlan-id c-vid vlan-id
undo encapsulation
Default
No packet match criterion is configured for an Ethernet service instance.
Views
Ethernet service instance view
Predefined user roles
network-admin
Parameters
s-vid vlan-id: Matches packets with the specified outer VLAN ID. The value range for the vlan-id argument is 1 to 4094.
s-vid vlan-id c-vid vlan-id: Matches packets with the specified outer VLAN ID and the specified inner VLAN ID. The value range for the vlan-id argument is 1 to 4094.
Usage guidelines
The match criteria of Ethernet service instances on an interface cannot overlap.
An Ethernet service instance can contain only one match criterion. To modify the match criterion, execute the undo encapsulation command to remove the criterion and then execute the encapsulation command. When you remove the match criterion in an Ethernet service instance, the mapping between the Ethernet service instance and the cross-connect is removed automatically.
Examples
# Configure Ethernet service instance 1 on Ten-GigabitEthernet 3/0/1 to match packets that have an outer VLAN ID of 111.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 3/0/1
[Sysname-Ten-GigabitEthernet3/0/1] service-instance 1
[Sysname-Ten-GigabitEthernet3/0/1-srv1] encapsulation s-vid 111
Related commands
display l2vpn service-instance
flow-label
Use flow-label to enable the flow label feature and configure flow label capabilities.
Use undo flow-label to disable the flow label feature.
Syntax
flow-label { both | receive | send } [ static ]
undo flow-label
Default
The flow label feature is disabled.
Views
PW class view
Predefined user roles
network-admin
Parameters
both: Enables flow label sending and receiving capabilities on the local PE.
receive: Enables the flow label receiving capability on the local PE. The local PE can identify the flow label in a received packet and removes the flow label before forwarding the packet.
send: Enables the flow label sending capability on the local PE. The local PE adds a flow label before it adds a PW label to a packet during PW encapsulation.
static: Configures the local and remote PEs to use configured flow label capabilities for dynamic PWs. If you do not specify this keyword, the local and remote PEs negotiate the flow label capabilities for dynamic PWs. This keyword does not take effect on static PWs, and static PWs always use configured flow label capabilities.
Usage guidelines
Packets carrying different types of traffic might be transmitted through the same PW and encapsulated with the same PW label. The P devices forward the traffic flows of a PW over the same path even if Equal Cost Multiple Paths (ECMPs) exist.
The L2VPN flow label feature can enable a P device to perform load sharing on packets based on the flow types.
After you configure this command, the P and PE devices process packets as follows:
· When the ingress PE encapsulates a packet, it adds a flow label before it adds a PW label.
· The P devices perform load sharing on packets based on the flow labels.
· The egress PE removes both the PW and flow labels from a packet before forwarding the packet.
If you do not specify the static keyword, the local and remote PEs negotiate the flow label capabilities by exchanging signaling protocol packets. The flow label feature does not take effect if the negotiation fails.
For two PEs to successfully negotiate the flow label capabilities, make sure one end has the sending capability and the other end has the receiving capability.
Examples
# Enable the flow label sending capability on the local PE.
<Sysname> system-view
[Sysname] pw-class test
[Sysname-pw-test] flow-label send
Related commands
display l2vpn pw-class
mpls load-sharing mode
peer
l2vpn bandwidth-based-sharing
Use l2vpn bandwidth-based-sharing to enable bandwidth-based load sharing.
Use undo l2vpn bandwidth-based-sharing to disable bandwidth-based load sharing.
Syntax
l2vpn bandwidth-based-sharing
undo l2vpn bandwidth-based-sharing
Default
Bandwidth-based load sharing is disabled.
Views
System view
Predefined user roles
network-admin
Usage guidelines
If an L2VPN PW is carried by multiple equal-cost LDP LSPs, the PW evenly transmits packets through the LSPs. After you enable this feature, packets are transmitted through the LSPs in the proportion calculated based on the bandwidth of the egress interfaces.
This feature is available only when the public tunnels that carry a PW are LDP LSPs.
Examples
# Enable bandwidth-based load sharing.
<Sysname> system-view
[Sysname] l2vpn bandwidth-based-sharing
l2vpn enable
Use l2vpn enable to enable L2VPN.
Use undo l2vpn enable to disable L2VPN.
Syntax
l2vpn enable
undo l2vpn enable
Default
L2VPN is disabled.
Views
System view
Predefined user roles
network-admin
Usage guidelines
You must enable L2VPN before configuring other L2VPN settings.
Examples
# Enable L2VPN.
<Sysname> system-view
[Sysname] l2vpn enable
l2vpn switchover
Use l2vpn switchover to switch traffic from a PW to its backup or primary PW.
Syntax
l2vpn switchover peer ip-address pw-id pw-id
Views
User view
Predefined user roles
network-admin
Parameters
peer ip-address: Specifies the LSR ID of the peer PE.
pw-id pw-id: Specifies a PW by its ID in the range of 1 to 4294967295.
Usage guidelines
The specified LSR ID and PW ID uniquely identify a PW.
If a PW has a backup PW or primary PW, this command switches traffic from the PW to the backup or primary PW. If the PW does not have a backup or primary PW, this command does not perform the switchover.
Examples
# Switch traffic from PW 100 destined for 3.3.3.3 to its backup PW.
<Sysname> l2vpn switchover peer 3.3.3.3 pw-id 100
mtu
Use mtu to set an MTU for PWs established on a cross-connect or auto-discovery cross-connect.
Use undo mtu to restore the default.
Syntax
mtu size
undo mtu
Default
A PW has an MTU of 1500 bytes.
Views
Cross-connect view
Auto-discovery cross-connect group view
Predefined user roles
network-admin
Parameters
size: Specifies an MTU value. The value range for this argument is 300 to 65535.
Usage guidelines
The specified MTU applies to all PWs established in the cross-connect view or the auto-discovery cross-connect group view.
The MTU specifies the maximum packet length, including the control word, PW label, and network layer packet.
When PW MTU negotiation is enabled, you can establish an LDP or BGP PW between two PEs only when you configure the same PW MTU on the two PEs. When PW MTU negotiation is disabled, you can establish an LDP or BGP PW between two PEs even if you configure different PW MTUs on the two PEs.
Examples
# Set the MTU to 1400 bytes for cross-connect ac2pw in cross-connect group vpn1.
<Sysname> system-view
[Sysname] xconnect-group vpn1
[Sysname-xcg-vpn1] connection ac2pw
[Sysname-xcg-vpn1-ac2pw] mtu 1400
# Set the MTU to 1400 bytes for the auto-discovery cross-connect in cross-connect group bbb.
<Sysname> system-view
[Sysname] xconnect-group bbb
[Sysname-xcg-bbb] auto-discovery bgp
[Sysname-xcg-bbb-auto] mtu 1400
Related commands
display l2vpn xconnect-group
mtu-negotiate disable
mtu-negotiate disable
Use mtu-negotiate disable to disable PW MTU negotiation.
Use undo mtu-negotiate disable to enable PW MTU negotiation.
Syntax
mtu-negotiate disable
undo mtu-negotiate disable
Default
PW MTU negotiation is enabled.
Views
Cross-connect view
Auto-discovery cross-connect group view
Predefined user roles
network-admin
Usage guidelines
By default, the establishment of an LDP or BGP PW requires the same PW MTU on the two PEs of the PW. Execute this command if you want to establish a PW between two PEs that are configured with different PW MTUs. If the PW MTUs of the two PEs of a PW are different, the PEs use their respective local PW MTUs to forward packets.
Examples
# In cross-connect view, disable PW MTU negotiation.
<Sysname> system-view
[Sysname] xconnect-group 1
[Sysname-xcg-1] connection ldp
[Sysname-xcg-1-ldp] mtu-negotiate disable
Related commands
mtu
peer
Use peer to configure a PW for a cross-connect and enter cross-connect PW view, or enter the view of an existing cross-connect PW.
Use undo peer to delete a PW for a cross-connect.
Syntax
peer ip-address pw-id pw-id [ ignore-standby-state | in-label label-value out-label label-value ] [ admin | pw-class class-name | tunnel-policy tunnel-policy-name ] *
undo peer ip-address pw-id pw-id
Default
No PWs exist for a cross-connect.
Views
Cross-connect view
Predefined user roles
network-admin
Parameters
ip-address: Specifies the LSR ID of the peer PE.
pw-id pw-id: Specifies a PW ID for the PW, in the range of 1 to 4294967295.
ignore-standby-state: Ignores the PW active/standby status bit received from the remote PE. If you do not specify this keyword, the local PE does not ignore the PW active/standby status bit received from the remote PE. This keyword is applicable only to LDP PWs.
in-label label-value: Specifies the incoming label of the PW. The value range for the label-value argument is 16 to 1023.
out-label label-value: Specifies the outgoing label of the PW, in the range of 16 to 1048575.
admin: Specifies the PW as an administration PW. If you do not specify this keyword, the PW is a service PW.
pw-class class-name: Specifies a PW class by its name, a case-sensitive string of 1 to 19 characters. You can specify a PW class to configure the PW data encapsulation type and control word. If you do not specify a PW class, the PW data encapsulation type is determined by the interface type. The control word feature is not supported for PW data encapsulation types that do not require using control word.
tunnel-policy tunnel-policy-name: Specifies a tunnel policy by its name, a case-sensitive string of 1 to 126 characters. If you do not specify a tunnel policy, the default tunnel policy is used.
Usage guidelines
A PE uses the PW Preferential Forwarding Status bit in LDP messages to advertise the local PWs' active/standby states. When the bit is set, it indicates that the local PW is in standby state. When the bit is cleared, it indicates that the local PW is in active state.
In independent mode, a PE considers the status bits received from the remote PEs when it selects the the forwarding PW among the set of redundant PWs. If you specify the ignore-standby-state keyword, the PE ignores the status bits received from the remote PEs and selects the forwarding PW using its own local rule.
In master/slave mode, a slave PE selects the forwarding PW among the set of redundant PWs based on the status bit received from the remote PEs. If you specify the ignore-standby-state keyword, the PE ignores the status bit received from the remote PEs and uses the primary PW to forward packets as long as the primary PW is up.
To create a static PW, you must specify the incoming and outgoing labels. To enter the view of an existing static PW, you do not need to specify the incoming and outgoing labels.
If you do not specify the incoming and outgoing labels when you create a new PW, LDP is used to create the PW.
The PW ID for a PW must be the same on the PEs at the ends of the PW.
On a PE, the LSR ID of the peer PE and the PW ID uniquely identify a PW. The peer LSR ID and PW ID combination of a PW must be unique among all VPLS PWs and cross-connect PWs.
PW redundancy and multi-segment PW are mutually exclusive with each other. If you have configured two PWs by using the peer command, you cannot configure a backup PW for the PWs by using the backup-peer command, and vice versa.
PW redundancy and bypass PW are mutually exclusive with each other. If you have configured a backup PW for a cross-connect PW by using the backup-peer command, you cannot configure a bypass PW for the cross-connect PW by using the bypass-peer command, and vice versa.
A static PW must have a different incoming label than an existing static LSP or static CRLSP. If they are the same, the static PW is not available, even if you change the incoming label of the static LSP or the static CRLSP. To make the static PW available, delete the static PW, and reconfigure it with an unused incoming label.
Examples
# Configure an LDP PW destined for 4.4.4.4 for cross-connect pw2pw in cross-connect group vpn1 and enter cross-connect PW view. The PW ID is 200.
<Sysname> system-view
[Sysname] xconnect-group vpn1
[Sysname-xcg-vpn1] connection pw2pw
[Sysname-xcg-vpn1-pw2pw] peer 4.4.4.4 pw-id 200
[Sysname-xcg-vpn1-pw2pw-4.4.4.4-200]
# Configure a static PW destined for 5.5.5.5 for cross-connect pw2pw in cross-connect group vpn1 and enter cross-connect PW view. The static PW has an ID of 200, an incoming label of 100, and an outgoing label of 200.
<Sysname> system-view
[Sysname] xconnect-group vpn1
[Sysname-xcg-vpn1] connection pw2pw
[Sysname-xcg-vpn1-pw2pw] peer 5.5.5.5 pw-id 200 in-label 100 out-label 200
[Sysname-xcg-vpn1-pw2pw-5.5.5.5-200]
Related commands
display l2vpn ldp
display l2vpn pw
pw-class
peer signaling
Use peer signaling to enable BGP to exchange label block information with the specified peer or peer group.
Use undo peer signaling to disable BGP to exchange label block information with the specified peer or peer group.
Syntax
peer { group-name | ip-address [ mask-length ] } signaling [ non-standard ]
undo peer { group-name | ip-address [ mask-length ] } signaling
Default
BGP can exchange label block information with an L2VPN peer or peer group through RFC 4761 MP_REACH_NLRI.
Views
BGP L2VPN address family view
Predefined user roles
network-admin
Parameters
group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. The specified peer group must have been created.
ip-address: Specifies a peer by its IP address. The specified peer must have been created.
mask-length: Specifies a mask length in the range of 0 to 32. You can use the ip-address and mask-length arguments together to specify a subnet. If you specify a subnet, this command enables BGP to exchange label block information with all dynamic peers in the subnet.
non-standard: Uses draft-kompella-ppvpn-l2vpn-03 MP_REACH_NLRI to exchange label block information. If you do not specify this keyword, RFC 4761 MP_REACH_NLRI is used to exchange label block information.
Usage guidelines
L2VPN uses MP-BGP to exchange label blocks when creating a BGP PW.
To enable BGP to exchange label blocks with the specified peers through RFC 4761 MP_REACH_NLRI, you can also use the peer enable command in BGP L2VPN address family view. To disable the capability, use the undo peer signaling command.
Examples
# Enable BGP to exchange label block information with the peer 3.3.3.9 through draft-kompella-ppvpn-l2vpn-03 MP_REACH_NLRI.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp-default] address-family l2vpn
[Sysname-bgp-default-l2vpn] peer 3.3.3.9 signaling non-standard
Related commands
display bgp l2vpn signaling
policy vpn-target
Use policy vpn-target to enable route target-based filtering of incoming BGP L2VPN information.
Use undo policy vpn-target to disable route target-based filtering of incoming BGP L2VPN information.
Syntax
policy vpn-target
undo policy vpn-target
Default
Route target-based filtering of incoming BGP L2VPN information is enabled.
Views
BGP L2VPN address family view
Predefined user roles
network-admin
Usage guidelines
If route target-based filtering is enabled, L2VPN accepts only the incoming BGP L2VPN information whose export route target attribute matches the local import route target attribute. If route target-based filtering is disabled, L2VPN accepts all incoming BGP L2VPN information.
To establish a BGP PW between two MP-IBGP peers that use a route reflector, you must disable route target-based filtering of incoming BGP L2VPN information on the route reflector.
Examples
# Disable route target-based filtering of incoming BGP L2VPN information.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp-default] address-family l2vpn
[Sysname-bgp-default-l2vpn] undo policy vpn-target
protection dual-receive
Use protection dual-receive to enable the dual receive feature for PW redundancy. After the dual receive feature is enabled, both the primary and backup PWs can receive packets, but only the primary PW sends packets.
Use undo protection dual-receive to restore the default.
Syntax
protection dual-receive
undo protection dual-receive
Default
The dual receive feature is disabled. When the primary PW is normal, the backup PW does not send or receive packets.
Views
Cross-connect view
Predefined user roles
network-admin
Examples
# Enable the dual receive feature for cross-connect ac2pw in cross-connect group vpn1.
<Sysname> system-view
[Sysname] xconnect-group vpn1
[Sysname-xcg-vpn1] connection ac2pw
[Sysname-xcg-vpn1-ac2pw] protection dual-receive
pw-class (auto-discovery cross-connect group view)
Use pw-class to specify a PW class for an auto-discovery cross-connect group.
Use undo pw-class to restore the default.
Syntax
pw-class class-name
undo pw-class
Default
No PW class is specified.
Views
Auto-discovery cross-connect group view
Predefined user roles
network-admin
Parameters
class-name: Specifies a PW class by its name, a case-sensitive string of 1 to 19 characters.
Usage guidelines
The specified PW class will be used to establish all PWs in the auto-discovery cross-connect group.
Examples
# Specify a PW class named pw100 for auto-discovery cross-connect group bbb.
<Sysname> system-view
[Sysname] pw-class pw100
[Sysname-pw-pw100] quit
[Sysname] xconnect-group bbb
[Sysname-xcg-bbb] auto-discovery bgp
[Sysname-xcg-bbb-auto] pw-class pw100
Related commands
control-word enable
display l2vpn pw-class
pw-class
pw-type
pw-class (system view)
Use pw-class to create a PW class and enter its view, or enter the view of an existing PW class.
Use undo pw-class to delete a PW class.
Syntax
pw-class class-name
undo pw-class class-name
Default
No PW classes exist.
Views
System view
Predefined user roles
network-admin
Parameters
class-name: Specifies a name for the PW class, a case-sensitive string of 1 to 19 characters.
Usage guidelines
In PW class view, you can configure PW attributes such as the PW data encapsulation type and whether to enable control word. You can configure PWs to use the same PW class to simplify PW attribute configuration.
Examples
# Create a PW class named pw100 and enter PW view.
<Sysname> system-view
[Sysname] pw-class pw100
[Sysname-pw-class-pw100]
Related commands
control-word enable
display l2vpn pw-class
pw-type
pw-redundancy
Use pw-redundancy to specify a PW redundancy operation mode.
Use undo pw-redundancy to restore the default.
Syntax
pw-redundancy { independent | master }
undo pw-redundancy
Default
The PW redundancy operation mode is master/slave and the local PE operates as the slave node.
Views
Cross-connect view
Predefined user roles
network-admin
Parameters
independent: Specifies the independent PW redundancy operation mode.
master: Specifies the master/slave PW redundancy operation mode and uses the local PE as the master node.
Usage guidelines
This command is applicable only to LDP PWs.
LDP PWs support the independent and master/slave PW redundancy operation modes.
· Independent mode—The two PEs of a PW use LDP to advertise their respective PW active/standby state to each other. A PW can forward traffic only when it is up and active at both ends of the PW. In this mode, make sure both PEs of a PW use the independent PW redundancy operation mode.
· Master/slave mode—One PE of a PW operates as the master node and the other PE operates as the slave node. The master PE determines the PW active/standby state and then uses LDP to advertise the PW state to the slave PE. The slave PE uses the same PW state as the master PE based on the information received from the master PE. In this way, the master and slave PEs for the set of redundant PWs can use the same active PW to forward user packets.
A slave node does not advertise the PW active/standby state to the master node, and the master node ignores the PW active/standby state received from the slave nodes.
Examples
# In cross-connect view of cross-connect pw2pw in cross-connect group vpn1, specify the master/slave PW redundancy operation mode and use the local PE as the master node.
<Sysname> system-view
[Sysname] xconnect-group vpn1
[Sysname-xcg-vpn1] connection pw2pw
[Sysname-xcg-vpn1-pw2pw] pw-redundancy master
Related commands
backup-peer
display l2vpn ldp
display l2vpn pw
peer
pw-type
Use pw-type to specify a PW data encapsulation type for a PW class.
Use undo pw-type to restore the default.
Syntax
pw-type { ethernet | vlan }
undo pw-type
Default
The PW data encapsulation type is VLAN.
Views
PW class view
Predefined user roles
network-admin
Parameters
ethernet: Specifies the PW data encapsulation type as Ethernet.
vlan: Specifies the PW data encapsulation type as VLAN.
Usage guidelines
When the PW data encapsulation type is Ethernet, P-tag is not transferred on a PW.
· For a packet from a CE:
¡ If the packet contains a P-tag, the PE removes the P-tag, and adds a PW label and an outer tag into the packet before forwarding it.
¡ If the packet contains no P-tag, the PE directly adds a PW label and an outer tag into the packet before forwarding it.
· For a packet to a CE:
¡ If the access mode is configured as VLAN by using the ac interface command, the PE adds a P-tag into the packet before sending it to the CE.
¡ If the access mode is configured as Ethernet by using the ac interface command, the PE directly sends the packet to the CE.
You cannot rewrite or remove existing tags.
When the PW data encapsulation type is VLAN, packets transmitted over a PW must carry a P-tag.
· For a packet from a CE:
¡ If the peer PE does not require the ingress to rewrite the P-tag, the PE keeps the P-tag unchanged for the packet, and then encapsulates the packet. If the packet contains no P-tag, the PE adds a null label (the label value is 0) into the packet, and then encapsulates the packet.
¡ If the peer PE requires the ingress to rewrite the P-tag, the PE changes the P-tag to the expected VLAN tag (the tag value might be 0), and then adds a PW label and an outer tag into the packet. If the packet contains no P-tag, the PE adds a VLAN tag expected by the peer PE (the tag value might be 0), and then adds a PW label and an outer tag into the packet.
· For a packet to a CE:
¡ If the access mode is configured as VLAN by using the ac interface command, the PE rewrites or retains the P-tag before forwarding the packet.
¡ If the access mode is configured as Ethernet by using the ac interface command, the PE removes the P-tag before forwarding the packet.
Examples
# Configure the PW data encapsulation type as Ethernet.
<Sysname> system-view
[Sysname] pw-class pw100
[Sysname-pw-pw100] pw-type ethernet
Related commands
ac-interface
display l2vpn pw-class
reset l2vpn statistics ac
Use reset l2vpn statistics ac to clear packet statistics for ACs.
Syntax
reset l2vpn statistics ac [ interface interface-type interface-number [ service-instance instance-id ] ]
Views
User view
Predefined user roles
network-admin
Parameters
interface interface-type interface-number: Specifies a Layer 2 interface or a Layer 3 interface by its type and number.
service-instance instance-id: Specifies an Ethernet service instance on the specified Layer 2 interface. The value range for the instance-id argument is 1 to 4096.
Usage guidelines
If you do not specify any parameters, this command clears packet statistics for all ACs.
If you specify a Layer 3 interface, you cannot specify the service-instance instance-id option. If you specify a Layer 2 interface, you must specify the service-instance instance-id option.
Examples
# Clear packet statistics on Layer 3 interface Ten-GigabitEthernet 3/0/1.
<Sysname> reset l2vpn statistics ac interface ten-gigabitethernet 3/0/1
Related commands
ac statistics enable
display l2vpn interface verbose
display l2vpn service-instance verbose
statistics enable (Ethernet service instance view)
reset l2vpn statistics pw
Use reset l2vpn statistics pw to clear packet statistics for PWs.
Syntax
reset l2vpn statistics pw [ xconnect-group group-name [ connection connection-name ] ]
Views
User view
Predefined user roles
network-admin
Parameters
xconnect-group group-name: Specifies a cross-connect group by its name, a case-sensitive string of 1 to 31 characters. If you do not specify a cross-connect group, this command clears packet statistics for all PWs.
connection connection-name: Specifies a cross-connect by its name, a case-sensitive string of 1 to 20 characters. If you do not specify a cross-connect, this command clears packet statistics for all cross-connects in a cross-connect group.
Usage guidelines
If a PW has a backup PW, this command clears packet statistics for both the PW and its backup PW.
Examples
# Clear packet statistics for all PWs.
<Sysname> reset l2vpn statistics pw
Related commands
statistics enable
revertive
Use revertive to specify the switchover mode and set the switchover wait time.
Use undo revertive to restore the default.
Syntax
revertive { wtr wtr-time | never }
undo revertive { wtr | never }
Default
The switchover mode is revertive and the switchover wait time is 0 seconds. When the primary PW recovers, traffic is immediately switched from the backup PW to the primary PW.
Views
Cross-connect view
Predefined user roles
network-admin
Parameters
wtr wtr-time: Specifies the switchover mode as revertive and specifies the wait time in the range of 0 to 3600 seconds. When the primary PW recovers, the PE waits for the specified time before switching traffic from the backup PW to the primary PW.
never: Specifies the switchover mode as non-revertive. After the primary PW recovers, traffic is not switched from the backup PW to the primary PW.
Examples
# Specify the revertive mode and set the switchover wait time to 120 seconds for cross-connect ac2pw in cross-connect group vpn1.
<Sysname> system-view
[Sysname] xconnect-group vpn1
[Sysname-xcg-vpn1] connection ac2pw
[Sysname-xcg-vpn1-ac2pw] revertive wtr 120
Related commands
display l2vpn pw
rewrite inbound tag
Use rewrite inbound tag to configure the VLAN tag processing rule for incoming traffic.
Use undo rewrite inbound tag to restore the default.
Syntax
rewrite inbound tag { nest s-vid vlan-id [ c-vid vlan-id ] | remark { { 1-to-1 | 2-to-1 } s-vid vlan-id | { 1-to-2 | 2-to-2 } s-vid vlan-id c-vid vlan-id | offset { decrease offset-vid | increase offset-vid } } | strip s-vid [ c-vid ] | swap } [ symmetric ]
undo rewrite inbound tag
Default
VLAN tags of incoming traffic are not processed.
Views
Layer 3 Ethernet interface view
Layer 3 aggregate interface view
Layer 3 subinterface view
Ethernet service instance view
Predefined user roles
network-admin
Parameters
nest: Adds VLAN tags.
c-vid: Specifies an inner VLAN tag.
s-vid: Specifies an outer VLAN tag.
vlan-id: Specifies a VLAN ID in the range of 1 to 4094.
remark: Maps VLAN tags.
1-to-1: Performs one-to-one mapping to replace one VLAN tag of packets with the specified VLAN tag.
2-to-1: Performs two-to-one mapping to replace the outer and inner VLAN tags of double tagged packets with the specified VLAN tag.
1-to-2: Performs one-to-two mapping to replace the VLAN tag of single tagged packets with the specified outer and inner VLAN tags.
2-to-2: Performs two-to-two mapping to replace the outer and inner VLAN tags of double tagged packets with the specified outer and inner VLAN tags.
offset: Maps the outer label based on the offset value.
decrease: Maps the outer label with the offset value decreased.
increase: Maps the outer label with the offset value added.
offset-vid: Specifies the offset value in the range of 1 to 4093.
strip: Removes VLAN tags.
swap: Swaps the inner and outer labels.
Symmetric: Applies the reverse VLAN tag processing rule to outgoing traffic.
Usage guidelines
Only ACs that use the Ethernet access mode support this feature.
Configure this feature before you associate the AC with a cross-connect.
To delete the VLAN tag processing rule for incoming packets by using the undo rewrite inbound tag command, you must first disassociate the AC from the cross-connect by using the undo ac interface command.
To edit the VLAN tag processing rule for incoming packets, you must first delete the rule by using the undo rewrite inbound tag command, and then execute the rewrite inbound tag command to configure the rule again.
After you execute this command on an Ethernet service instance, the Layer 2 Ethernet interface or Layer 2 aggregate interface to which the Ethernet service instance belongs does not support the qinq enable command. For more information about the qinq enable command, see QinQ commands in Layer 2—LAN Switching Command Reference.
This command is not available for CFD or NQA.
In Layer 3 subinterface view, support for the keywords in the rewrite inbound tag command depends on the VLAN termination configuration, as shown in Table 25. For more information about VLAN termination, see VLAN termination configuration in Layer 2—LAN Switching Configuration Guide.
In Ethernet service instance view, support for the keywords in the rewrite inbound tag command depends on the match criteria of the Ethernet service instance, as shown in Table 25. If you specify only the s-vid keyword when executing the encapsulation command, the Ethernet service instance uses Dot1q termination. If you specify both the s-vid and c-vid keywords when executing the encapsulation command, the Ethernet service instance uses QinQ termination.
Unambiguous Dot1q or QinQ termination is used when the vlan-id-list argument specifies only one VLAN ID. Ambiguous Dot1q termination is used when the vlan-id-list argument specifies multiple VLAN IDs.
Keyword |
Layer 3 interface |
Layer 3 subinterface |
Ethernet service instance |
|||
Unambiguous Dot1q termination |
Ambiguous Dot1q termination |
Untagged termination |
Unambiguous Dot1q termination |
Unambiguous QinQ termination |
||
nest s-vid |
Supported |
Supported |
Supported |
Supported |
Supported |
Supported |
nest s-vid c-vid |
Supported |
Supported |
Supported |
Supported |
Supported |
Supported |
strip s-vid |
Not supported |
Supported |
Not supported |
Not supported |
Supported |
Supported |
strip s-vid c-vid |
Not supported |
Not supported |
Not supported |
Not supported |
Not supported |
Supported |
swap |
Not supported |
Not supported |
Not supported |
Not supported |
Not supported |
Supported |
remark 1-to-1 |
Not supported |
Supported |
Not supported |
Not supported |
Supported |
Supported |
remark 2-to-1 |
Not supported |
Not supported |
Not supported |
Not supported |
Not supported |
Supported |
remark 1-to-2 |
Not supported |
Supported |
Not supported |
Not supported |
Supported |
Supported |
remark 2-to-2 |
Not supported |
Not supported |
Not supported |
Not supported |
Not supported |
Supported |
remark offset |
Not supported |
Supported |
Supported |
Not supported |
Supported |
Supported |
Examples
# Configure Layer 3 Ethernet interface GigabitEthernet 3/1/1 to add outer VLAN tag 100 to incoming packets.
<Sysname> system-view
[Sysname] interface gigabitethernet 3/1/1
[Sysname-GigabitEthernet3/1/1] rewrite inbound tag nest s-vid 100
route-distinguisher
Use route-distinguisher to configure a route distinguisher (RD) for a BGP cross-connect group.
Use undo route-distinguisher to restore the default.
Syntax
route-distinguisher route-distinguisher
undo route-distinguisher
Default
No RD is configured for a BGP cross-connect group.
Views
Auto-discovery cross-connect group view
Predefined user roles
network-admin
Parameters
route-distinguisher: Specifies an RD, a string of 3 to 21 characters. An RD can be in one of the following 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.
· 32-bit AS number in dotted decimal format:16-bit user-defined number, for example, 10.1:1.
Usage guidelines
MPLS L2VPN uses RDs to differentiate the sites with the same site ID but in different VPNs.
BGP adds the configured RD before the site ID. The RD and the site ID uniquely identify a VPN site.
You cannot configure the same RD for different BGP cross-connect groups.
To modify an RD, execute the undo route-distinguisher command to remove the RD, and then execute the route-distinguisher command.
Examples
# Configure the RD 22:2 for BGP cross-connect group bbb.
<Sysname> system-view
[Sysname] xconnect-group bbb
[Sysname-xcg-bbb] auto-discovery bgp
[Sysname-xcg-bbb-auto] route-distinguisher 22:2
rr-filter
Use rr-filter to create a route reflector (RR) reflection policy.
Use undo rr-filter to restore the default.
Syntax
rr-filter { ext-comm-list-name | ext-comm-list-number }
undo rr-filter
Default
An RR does not filter reflected L2VPN information.
Views
BGP L2VPN address family view
Predefined user roles
network-admin
Parameters
ext-comm-list-name: Specifies an extended community list name, a string of 1 to 63 case-sensitive characters. The string cannot contain only digits.
ext-comm-list-number: Specifies an extended community list number in the range of 1 to 65535.
Usage guidelines
After this command is executed, only the L2VPN information that is permitted by the specified extended community list is reflected.
By configuring different RR reflection policies on RRs in a cluster, you can implement load balancing among the RRs.
For more information about extended community lists, see Layer 3—IP Routing Configuration Guide.
Examples
# Configure the RR to reflect only the BGP L2VPN information that is permitted by extended community list 10.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp-default] address-family l2vpn
[Sysname-bgp-default-l2vpn] rr-filter 10
Related commands
ip extcommunity-list (Layer 3—IP Routing Command Reference)
service-instance
Use service-instance to create an Ethernet service instance on an interface and enter its view, or enter the view of an existing Ethernet service instance.
Use undo service-instance to delete an Ethernet service instance on an interface.
Syntax
service-instance instance-id
undo service-instance instance-id
Default
No Ethernet service instances exist.
Views
Layer 2 Ethernet interface view
Layer 2 aggregate interface view
Predefined user roles
network-admin
Parameters
instance-id: Specifies an ID for the Ethernet service instance, in the range of 1 to 4096.
Examples
# Create Ethernet service instance 1 on Layer 2 Ethernet interface Ten-GigabitEthernet 3/0/1, and enter Ethernet service instance 1 view.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 3/0/1
[Sysname-Ten-GigabitEthernet3/0/1] service-instance 1
[Sysname-Ten-GigabitEthernet3/0/1-srv1]
Related commands
display l2vpn service-instance
shutdown (cross-connect group view)
Use shutdown to disable a cross-connect group.
Use undo shutdown to enable a cross-connect group.
Syntax
shutdown
undo shutdown
Default
A cross-connect group is enabled.
Views
Cross-connect group view
Predefined user roles
network-admin
Usage guidelines
After you disable a cross-connect group, all cross-connects in the group cannot provide L2VPN services.
Use the shutdown command when you want to temporarily disable L2VPN. When a cross-connect group is disabled, you can still configure the cross-connect group. After the configuration, use the undo shutdown command to enable the cross-connect group. The cross-connect group will provide L2VPN services using the new settings.
Examples
# Disable cross-connect group vpn2.
<Sysname> system-view
[Sysname] xconnect-group vpn2
[Sysname-xcg-vpn2] shutdown
Related commands
display l2vpn xconnect-group
site
Use site to create a local site and enter its view, or enter the view of an existing local site.
Use undo site to delete a local site.
Syntax
site site-id [ range range-value ] [ default-offset default-offset ]
undo site site-id
Default
No sites exist.
Views
Auto-discovery cross-connect group view
Predefined user roles
network-admin
Parameters
site-id: Specifies a local site ID in the range of 0 to 256.
range range-value: Specifies the maximum number of sites in a VPN, in the range of 2 to 257. The default value is 10.
default-offset default-offset: Specifies the start site ID, 0 or 1. The default value is 0.
Usage guidelines
The range range-value and default-offset default-offset options determine the label block of the site.
· If you execute the site command with the range-value of range1, a label block with LR of range1 and LO of default-offset is assigned to the site.
· If you execute another site command with range-value of range2 (range2 is larger than range1), a second label block with LR of range2 to range1 and LO being range1 + default-offset is assigned to the site.
For example, if you execute the following commands, three label blocks LB1/0/10, LB2/10/12, and LB3/22/14 are assigned to site 1. LB1, LB2, and LB3 are automatically selected.
site 1 range 10 default-offset 0
site 1 range 22
site 1 range 36
You can create multiple local sites for a cross-connect group.
You can use the site command to increase the range value for an existing site. You cannot decrease the range value for an existing site with the site command. To decrease the range value, execute the undo site command to delete the site and then execute the site command.
Select a large range value to reduce future modifications for VPN expansion.
You cannot modify the default-offset for a site with the site command. To modify it, execute the undo site command to delete the site and then execute the site command.
Examples
# Create site 1, configure the VPN to contain a maximum of 30 sites, set the start site ID to 0 for cross-connect group bbb, and enter site view.
<Sysname> system-view
[Sysname] xconnect-group bbb
[Sysname-xcg-bbb] auto-discovery bgp
[Sysname-xcg-bbb-auto] site 1 range 30 default-offset 0
[Sysname-xcg-bbb-auto-1]
Related commands
display l2vpn pw
display l2vpn xconnect-group
snmp-agent trap enable l2vpn
Use snmp-agent trap enable l2vpn to enable SNMP notifications for L2VPN PW.
Use undo snmp-agent trap enable l2vpn to disable SNMP notifications for L2VPN PW.
Syntax
snmp-agent trap enable l2vpn [pw-delete | pw-switch | pw-up-down ] *
undo snmp-agent trap enable l2vpn [pw-delete | pw-switch | pw-up-down ] *
Default
SNMP notifications for L2VPN PW are disabled.
Views
System view
Predefined user roles
network-admin
Parameters
pw-delete: Enables PW deletion notifications.
pw-switch: Enables PW primary/backup switchover notifications.
pw-up-down: Enables PW up-down notifications.
Usage guidelines
This feature enables L2VPN to generate SNMP notifications whenPW deletions, PW status changes, or PW switchovers occur. For L2VPN event notifications to be sent correctly, you must also configure SNMP on the device. For more information about SNMP configuration, see the network management and monitoring configuration guide for the device.
If you do not specify a notification type, this command enables all types of notifications for L2VPN PW.
Examples
# Enable PW up-down notifications.
<Sysname> system-view
[Sysname] snmp-agent trap enable l2vpn pw-up-down
Related commands
display snmp-agent trap-list (Network Management and Monitoring Command Reference)
statistics enable (cross-connect PW view)
Use statistics enable to enable packet statistics for a PW.
Use undo statistics enable to disable packet statistics for a PW.
Syntax
statistics enable
undo statistics enable
Default
Packet statistics is disabled for PWs created from the CLI, and is enabled for PWs created from the MIB.
Views
Cross-connect PW view
Predefined user roles
network-admin
Usage guidelines
Enabling/disabling packet statistics for the primary PW automatically enables/disables packet statistics for the backup PW.
To display the collected packet statistics, use the display l2vpn pw verbose command.
Examples
# Enable packet statistics for a PW.
<Sysname> system-view
[Sysname] xconnect-group vpws
[Sysname-xcg-vpws] connection ldp
[Sysname-xcg-vpws-ldp] peer 5.5.5.5 pw-id 120
[Sysname-xcg-vpws-ldp-5.5.5.5-120] statistics enable
Related commands
display l2vpn pw
reset l2vpn statistics pw
statistics enable (Ethernet service instance view)
Use statistics enable to enable packet statistics for an Ethernet service instance.
Use undo statistics enable to disable packet statistics for an Ethernet service instance.
Syntax
statistics enable
undo statistics enable
Default
Packet statistics is disabled for an Ethernet service instance.
Views
Ethernet service instance view
Predefined user roles
network-admin
Usage guidelines
This command enables packet statistics only for an Ethernet service instance that has been configured with a packet match criterion and bound to a cross-connect. If you change the packet match criterion or the bound cross-connect during the statistics collection, the packet statistics are re-collected.
To display the collected packet statistics, use the display l2vpn service-instance verbose command.
Examples
# Enable packet statistics for Ethernet service instance 200 on Ten-GigabitEthernet 3/0/1.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 3/0/1
[Sysname-Ten-GigabitEthernet3/0/1] service-instance 200
[Sysname-Ten-GigabitEthernet3/0/1-srv200] statistics enable
Related commands
display l2vpn service-instance verbose
reset l2vpn statistics ac
tunnel-policy (auto-discovery cross-connect view)
Use tunnel-policy to specify a tunnel policy for an auto-discovery cross-connect.
Use undo tunnel-policy to restore the default.
Syntax
tunnel-policy tunnel-policy-name
undo tunnel-policy
Default
No tunnel policy is specified.
Views
Auto-discovery cross-connect view
Predefined user roles
network-admin
Parameters
tunnel-policy-name: Specifies a tunnel policy by its name, a case-sensitive string of 1 to 126 characters.
Usage guidelines
The PWs on the auto-discovery cross-connect use the specified tunnel policy to select public tunnels.
If you do not specify a tunnel policy or specify a nonexistent tunnel policy, the default tunnel policy applies. The default tunnel policy selects only one public tunnel for a PW in this order: LSP tunnel, GRE tunnel, CRLSP tunnel, and SRLSP tunnel.
Examples
# Specify tunnel policy policy1 for the auto-discovery cross-connect in cross-connect group bbb.
<Sysname> system-view
[Sysname] tunnel-policy policy1
[Sysname-tunnel-policy-policy1] quit
[Sysname] xconnect-group bbb
[Sysname-xcg-bbb] auto-discovery bgp
[Sysname-xcg-bbb-auto] site 2 range 10 default-offset 0
[Sysname-xcg-bbb-auto-2] connection remote-site-id 3
[Sysname-xcg-bbb-auto-2-3] tunnel-policy policy1
Related commands
tunnel-policy (system view)
vpn-target
Use vpn-target to configure route targets for a cross-connect group.
Use undo vpn-target to remove the specified or all route targets for a cross-connect group.
Syntax
vpn-target vpn-target&<1-8> [ both | export-extcommunity | import-extcommunity ]
undo vpn-target { vpn-target&<1-8> | all } [ both | export-extcommunity | import-extcommunity ]
Default
No route targets are configured for a cross-connect group.
Views
Auto-discovery cross-connect group view
Predefined user roles
network-admin
Parameters
vpn-target&<1-8>: Specifies a space-separated list of a maximum of eight route targets.
A route target is a string of 3 to 21 characters in one of the following 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.
· 32-bit AS number in dotted decimal format:16-bit user-defined number, for example, 10.1:1.
both: Uses the specified route targets as both import targets and export targets. The both keyword is used when you do not specify any of both, export-extcommunity, and import-extcommunity.
export-extcommunity: Uses the specified route targets as export targets.
import-extcommunity: Uses the specified route targets as import targets.
all: Removes all route targets.
Usage guidelines
A local PE sets the route targets as export targets in BGP update messages when it advertises L2VPN information through the update messages to a remote peer. The peer uses its import targets to match the received export targets. If a match is found, the peer accepts the L2VPN information.
You can repeat the vpn-target command to configure multiple route targets for a cross-connect group.
Examples
# Configure import route targets as 10:1 100:1 1000:1 and export route targets as 20:1 200:1 2000:1 for BGP cross-connect group bbb.
<Sysname> system-view
[Sysname] xconnect-group bbb
[Sysname-xcg-bbb] auto-discovery bgp
[Sysname-xcg-bbb-auto] vpn-target 10:1 100:1 1000:1 import-extcommunity
[Sysname-xcg-bbb-auto] vpn-target 20:1 200:1 2000:1 export-extcommunity
xconnect-group
Use xconnect-group to create a cross-connect group and enter its view, or enter the view of an existing cross-connect group.
Use undo xconnect-group to delete a cross-connect group.
Syntax
xconnect-group group-name
undo xconnect-group group-name
Default
No cross-connect groups exist.
Views
System view
Predefined user roles
network-admin
Parameters
group-name: Specifies a name for the cross-connect group, a case-sensitive string of 1 to 31 characters excluding hyphens.
Usage guidelines
L2VPN can create multiple LDP, BGP, and static PWs for a cross-connect group.
Examples
# Create a cross-connect group named vpn1 and enter cross-connect group view.
<Sysname> system-view
[Sysname] xconnect-group vpn1
[Sysname-xcg-vpn1]
Related commands
display l2vpn xconnect-group