- 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 |
---|---|---|
10-VPLS commands | 743.22 KB |
Contents
display bgp l2vpn auto-discovery
display l2vpn pw state-machine
display l2vpn service-instance
display l2vpn traffic-statistics interface
display l2vpn traffic-statistics pw
mac-limit (Ethernet service instance view)
peer (VSI auto-discovery LDP view or VSI auto-discovery BGP view)
peer (VSI LDP view or VSI static view)
pw-class (auto-discovery VSI view)
statistics enable (Ethernet service instance view)
statistics enable (VSI LDP PW view/VSI static PW view)
tunnel-policy (auto-discovery VSI view)
VPLS commands
ac mac-limit
Use ac mac-limit to set the maximum number of MAC addresses that a Layer 3 interface type AC can learn and the actions performed when the maximum is reached.
Use undo ac mac-limit to restore the default.
Syntax
ac mac-limit { action { discard | forward } | alarm { disable | enable } | maximum mac-limit } *
undo ac mac-limit
Default
No limit is set to the number of MAC addresses that a Layer 3 interface type AC can learn.
Views
Layer 3 Ethernet interface view
Layer 3 aggregate interface view
Layer 3 subinterface view
Predefined user roles
network-admin
Parameters
action: Specifies the action to be taken on frames with unknown source MAC addresses when the AC has learned the maximum number of MAC addresses.
· discard—Drops the frames.
· forward—Forwards the frames. This is the default action.
alarm: Enables or disables the alarm feature. The alarm feature generates a log message when the number of MAC address entries on the AC reaches the maximum or drops below 90% of the maximum.
· disable—Disables the alarm feature. This is the default setting.
· enable—Enables the alarm feature.
maximum mac-limit: Specifies the maximum number of MAC addresses that a Layer 3 interface type AC can learn. The value range for the mac-limit argument is 0 to 1048575.
Usage guidelines
Use this command to prevent a single AC from occupying too many MAC address entry resources.
Examples
# On interface Ten-GigabitEthernet 3/0/1 associated with VSI aaa, limit the maximum number of MAC addresses that the interface can learn to 1024. Configure the interface to drop frames with unknown source MAC addresses when the limit is reached, and enable the alarm feature.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 3/0/1
[Sysname-Ten-GigabitEthernet3/0/1] xconnect vsi aaa
[Sysname-Ten-GigabitEthernet3/0/1] ac mac-limit action discard alarm enable maximum 1024
Related commands
display l2vpn forwarding ac
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 VSI. If you change the bound VSI 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 bound to VSI vsia.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 3/0/1
[Sysname-Ten-GigabitEthernet3/0/1] xconnect vsi vsia
[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.
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]
# Create the BGP L2VPN address family and enter BGP L2VPN address family view.
<Sysname> system-view
[Sysname] bgp 100 instance abc
[Sysname-bgp-abc] address-family l2vpn
[Sysname-bgp-abc-l2vpn]
peer enable (Layer 3—IP Routing Command Reference)
auto-discovery
Use auto-discovery to enable a VSI to automatically discover neighbors through BGP and enter auto-discovery VSI view.
Use undo auto-discovery to restore the default.
Syntax
auto-discovery bgp
undo auto-discovery
Default
A VSI does not use BGP to automatically discover neighbors.
Views
VSI view
Predefined user roles
network-admin
Parameters
bgp: Enables the VSI to automatically discover neighbors through BGP.
Usage guidelines
After the remote PEs are discovered through BGP, you can use the signaling-protocol command to specify the signaling protocol (LDP or BGP) to establish PWs to the discovered remote PEs.
Examples
# Enable VSI aaa to automatically discover neighbors through BGP and enter auto-discovery VSI view.
<Sysname> system-view
[Sysname] vsi aaa
[Sysname-vsi-aaa] auto-discovery bgp
[Sysname-vsi-aaa-auto]
Related commands
display l2vpn pw
display l2vpn vsi
backup-peer
Use back-peer in VSI LDP PW view to configure a VSI LDP backup PW and enter its view, or enter the view of an existing VSI LDP backup PW.
Use back-peer in VSI static PW view to configure a VSI static backup PW and enter its view, or enter the view of an existing VSI static backup PW.
Use undo backup-peer to restore the default.
Syntax
In VSI LDP PW view:
backup-peer ip-address [ pw-id pw-id ] [ pw-class class-name | tunnel-policy tunnel-policy-name ] *
undo backup-peer ip-address pw-id pw-id
In VSI static PW view:
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 PWs exist for VPLS.
Views
VSI LDP PW view
VSI static 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 of the backup PW is VLAN and the backup PW does not support control word.
tunnel-policy tunnel-policy-name: Specifies a tunnel policy by its name, a case-insensitive string of 1 to 126 characters. If you do not specify a tunnel policy, the backup PW uses the default tunnel policy.
Usage guidelines
This command configures a backup PW for a PW to implement PW redundancy. The backup PW is used when the primary PW fails.
You must assign the backup PW a different peer LSR ID and PW ID than any existing VPLS PWs or cross-connect PWs.
A backup PW has the same hub and no-split-horizon attributes as its primary PW.
If both the default PW ID in the default-pw-id command and a PW ID in the backup-peer command are configured, the PW ID in the backup-peer command is used. If only the default PW ID is configured, the default PW ID is used. If no default PW ID is configured, you must provide a PW ID in the backup-peer command.
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.
The PW classes used by the primary and backup PWs must be consistent in L2VPN flow label configuration.
Examples
# Configure a primary and a backup LDP PW for VSI vpn1, and specify the peer PE address and PW ID of the primary PW as 4.4.4.4 and 100, and those of the backup PW as 5.5.5.5 and 200.
<Sysname> system-view
[Sysname] vsi vpn1
[Sysname-vsi-vpn1] pwsignaling ldp
[Sysname-vsi-vpn1-ldp] peer 4.4.4.4 pw-id 100
[Sysname-vsi-vpn1-ldp-4.4.4.4-100] backup-peer 5.5.5.5 pw-id 200
[Sysname-vsi-vpn1-ldp-4.4.4.4-100-backup]
Related commands
default-pw-id
display l2vpn ldp
display l2vpn pw
peer
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
VSI LDP PW view
VSI static 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 4.4.4.4, set the PW ID to 200, and bind the LDP PW to an administration PW.
<Sysname> system-view
[Sysname] vsi vpn1
[Sysname-vsi-vpn1] pwsignaling ldp
[Sysname-vsi-vpn1-ldp] peer 4.4.4.4 pw-id 200
[Sysname-vsi-vpn1-ldp-4.4.4.4-200] binding admin-pw interface LoopBack 0
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
Control word 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 extra control information about 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 on the device, so the device can reorder the fragments according to the sequence number carried in the control word field.
· Identifies the original payload length for packets that include padding.
Packets transmitted on a PW to carry the control word field only when control word is enabled on both PEs.
Examples
# Enable control word for PW class pw100.
<Sysname> system-view
[Sysname] pw-class pw100
[Sysname-pw-pw100] control-word enable
Related commands
display l2vpn pw-class
default-pw-id
Use default-pw-id to set the default PW ID for a VSI.
Use undo default-pw-id to restore the default.
Syntax
default-pw-id default-pw-id
undo default-pw-id
Default
No default PW ID is set for a VSI.
Views
VSI view
Predefined user roles
network-admin
Parameters
default-pw-id: Specifies the default PW ID for the VSI, in the range of 1 to 4294967295.
Usage guidelines
After you set the default PW ID for a VSI, you do not need to provide a PW ID in the backup-peer and peer commands.
Examples
# Set the default PW ID to 200 for VSI vpn1.
<Sysname> system-view
[Sysname] vsi vpn1
[Sysname-vsi-vpn1] default-pw-id 200
Related commands
backup-peer
peer
description
Use description to configure a description for a VSI.
Use undo description to restore the default.
Syntax
description text
undo description
Default
No description is configured for a VSI.
Views
VSI 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 vsi for vpn1 for VSI vpn1.
<Sysname> system-view
[Sysname] vsi vpn1
[Sysname-vsi-vpn1] description vsi for vpn1
Related commands
display l2vpn vsi
display bgp l2vpn auto-discovery
Use display bgp l2vpn auto-discovery to display VPLS PE information discovered by BGP.
Syntax
display bgp [ instance instance-name ] l2vpn auto-discovery [ peer ip-address { advertised | received } [ statistics ] | route-distinguisher route-distinguisher [ pe-address ip-address [ advertise-info ] ] | statistics ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
instance instance-name: Displays VPLS PE 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 VPLS PE information in the default BGP instance.
peer ip-address: Displays VPLS PE information advertised to or received from a BGP peer specified by its IP address.
advertised: Displays VPLS PE information advertised to the BGP peer.
received: Displays VPLS PE information received from the BGP peer.
statistics: Displays BGP VPLS PE statistics.
route-distinguisher route-distinguisher: Displays BGP VPLS PE 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.
pe-address ip-address: Displays BGP VPLS PE information for a PE. The ip-address argument specifies the PE address.
advertise-info: Displays BGP VPLS PE advertisement information.
Usage guidelines
If you do not specify any parameters, this command displays brief information about all VPLS PEs discovered by BGP.
Examples
# Display brief information about all VPLS PEs discovered by BGP in the default BGP instance.
<Sysname> display bgp l2vpn auto-discovery
BGP local router ID is 192.168.1.140
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 automatically discovered PEs: 3
Route distinguisher: 2:2
Total number of automatically discovered PEs: 3
PE address Nexthop VPLS ID
* > 1.1.1.9 0.0.0.0 100:100
* >i 2.2.2.9 2.2.2.9 100:100
* >i 3.3.3.9 3.3.3.9 100:100
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. |
# Display detailed information about the VPLS PE that has RD 2:2 and IP address 2.2.2.9 in the default BGP instance.
<Sysname> display bgp l2vpn auto-discovery route-distinguisher 2:2 pe-address 2.2.2.9
BGP local router ID: 192.168.1.140
Local AS number: 100
Route distinguisher: 2:2
Total number of automatically discovered PEs: 1
Paths: 1 available, 1 best
From : 2.2.2.9 (192.168.1.135)
Original nexthop: 2.2.2.9
Ext-Community : <RT: 2:2>, <VPLS ID: 100:100>
AS-path : (null)
Origin : igp
Attribute value : localpref 100, pref-val 0
PE address : 2.2.2.9
State : valid, internal, best
Table 2 Command output
Field |
Description |
Original nexthop |
Original next hop. If the VPLS PE information was obtained from a BGP update, this field displays the next hop address in the received update. |
Ext-Community |
Extended community attribute: · RT—Route Target. · VPLS ID—VPLS instance identifier. |
AS-path |
AS path attribute, which records all ASs that the VPLS PE information 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 VPLS PE information: · MED—Multi-Exit Discriminator attribute. · localpref—Local preference value. · pref-val—Preferred value. · pre—Preference value. |
State |
State of the VPLS PE information: · valid. · internal. · external. · local. · best. |
# Display BGP advertisement information for the specified VPLS PE in the default BGP instance.
<Sysname> display bgp l2vpn auto-discovery route-distinguisher 2:2 pe-address 1.1.1.9 advertise-info
BGP local router ID: 192.168.1.140
Local AS number: 100
Route distinguisher: 2:2
Total number of automatically discovered PEs: 1
Paths: 1 best
VPLS ID : 100:100
PE address : 1.1.1.9
Advertised to peers (2 in total):
2.2.2.9
3.3.3.9
display bgp l2vpn signaling
Use display bgp l2vpn signaling to display VPLS label block information maintained 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 VPLS 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 VPLS label block information in the default BGP instance.
peer ip-address: Displays VPLS label block information advertised to or received from a BGP peer. The ip-address argument specifies the peer address.
advertised: Displays VPLS label block information advertised to the BGP peer.
received: Displays VPLS label block information received from the BGP peer.
statistics: Displays VPLS label block statistics.
route-distinguisher route-distinguisher: Displays BGP VPLS 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 VPLS 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 VPLS label block with an offset. The label-offset argument specifies the offset in the range of 0 to 65535.
advertise-info: Displays BGP VPLS label block advertisement information.
Usage guidelines
If you do not specify any parameters, this command displays brief information about all BGP VPLS label blocks.
Examples
# Display brief information about all BGP VPLS label blocks in the default BGP instance.
<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 192.1.1.1
* >i 2 0 10 1162 192.3.3.3
Table 3 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. |
# Display detailed information about the BGP VPLS label block that has RD 1:1, site ID 2, and offset 0 in the default BGP instance.
<Sysname> display bgp l2vpn signaling route-distinguisher 1:1 site-id 2 label-offset 0
BGP local router ID: 192.168.1.140
Local AS number: 100
Route distinguisher: 1:1
Total number of label blocks: 1
Paths: 1 available, 1 best
From : 2.2.2.9 (192.168.1.135)
Original nexthop: 2.2.2.9
Ext-Community : <RT: 1:1>, <L2VPN info: MTU 1500, Encap type BGP VPLS>
AS-path : (null)
Origin : igp
Attribute value : localpref 100, pref-val 0
Site ID : 2
LB offset : 0
LB base : 1418
LB range : 10
State : valid, internal, best
Table 4 Command output
Field |
Description |
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. |
# Display BGP advertisement information for the specified VPLS label block in the default BGP instance.
<Sysname> display bgp l2vpn signaling route-distinguisher 1:1 site-id 1 label-offset 0 advertise-info
BGP local router ID: 192.168.1.140
Local AS number: 100
Route distinguisher: 1:1
Total number of label blocks: 1
Paths: 1 best
Site ID : 1
LB offset : 0
LB base : 1418
LB range : 10
Advertised to peers (2 in total):
2.2.2.9
3.3.3.9
Field |
Description |
LB offset |
Offset of the label block. |
LB base |
Initial value of the label block. |
LB range |
Size of the label block. |
display l2vpn auto-discovery
Use display l2vpn auto-discovery to display information about automatically discovered VPLS PEs.
Syntax
display l2vpn auto-discovery [ peer ip-address ] [ vsi vsi-name ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
peer ip-address: Displays information about the specified VPLS PE. If you do not specify a PE, this command displays information about all automatically discovered VPLS PEs.
vsi vsi-name: Displays automatically discovered VPLS PEs for a VSI. The vsi-name argument specifies the VSI name, a case-sensitive string of 1 to 31 characters. If you do not specify a VSI, this command displays automatically discovered VPLS PEs for all VSIs.
Examples
# Display information about all automatically discovered VPLS PEs.
<Sysname> display l2vpn auto-discovery
Total number of automatically discovered peers: 2
VSI Name: bbb
RD PE_address VPLS ID Nexthop
2:2 1.1.1.9 100:100 1.1.1.9
2:2 3.3.3.9 100:100 3.3.3.9
Related commands
route-distinguisher
vpls-id
display l2vpn bgp
Use display l2vpn bgp to display VPLS label block information.
Syntax
display l2vpn bgp [ local | peer ip-address ] [ vsi vsi-name ] [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
local: Displays local VPLS label block information.
peer ip-address: Displays VPLS label block information received from a remote peer. The ip-address argument specifies the peer address.
vsi vsi-name: Displays VPLS label block information for a VSI. The vsi-name argument specifies the VSI name, a case-sensitive string of 1 to 31 characters. If you do not specify a VSI, this command displays VPLS label block information for all VSIs.
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 the local keyword, this command displays label blocks received from all peers and local label blocks that match the received ones.
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: 2, 2 up, 0 down
VSI Name: aaa
Rmt Site Offset RD Nexthop In/Out Label State
1 0 1:1 1.1.1.9 1419/1420 Up
3 0 1:1 3.3.3.9 1421/1282 Up
Table 6 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
VSI Name: aaa
Remote Site ID : 1
Offset : 0
RD : 1:1
PW State : Up
Encapsulation : BGP-VPLS
MTU : 1500
Nexthop : 1.1.1.9
Local VC Label : 1419
Remote VC Label : 1420
Local Control Word : Disabled
Remote Control Word: Disabled
Link ID : 9
Local Label Block : 1418/10/0
Remote Label Block : 1418/10/0
Local Flow Label : Send
Reomote Flow Label : Recv
Export Route Target: 1:1
Table 7 Command output
Field |
Description |
Local VC Label |
Incoming label of the PW. |
Remote VC Label |
Outgoing label of the PW. |
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. |
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 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 display 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 display 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
VSI Name: aaa
Site Offset Range Label Base RD
2 0 10 1418 1:1
Table 8 Command output
Field |
Description |
Offset |
Offset of the label block. |
Range |
Range of the label block. |
Label Base |
Initial value of the label block. |
RD |
RD of the label block. If no RD is configured, this field displays a hyphen (-). |
# Display detailed information about all local label blocks.
<Sysname> display l2vpn bgp local verbose
VSI Name: aaa
Site ID : 2
Offset : 0
RD : 1:1
Range : 10
Label Base : 1418
Link ID : 8,9,10,11,12,13,14,15,16
Table 9 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 IDs of the PWs established using the label block. |
Related commands
display l2vpn pw
display l2vpn forwarding
Use display l2vpn forwarding to display L2VPN forwarding information.
Syntax
display l2vpn forwarding { ac | pw } [ vsi vsi-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.
vsi vsi-name: Displays L2VPN forwarding information for a VSI. The vsi-name argument specifies the VSI name, a case-sensitive string of 1 to 31 characters. If you do not specify a VSI, this command displays L2VPN forwarding information for all VSIs.
slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command displays L2VPN forwarding information for 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 VSIs.
<Sysname> display l2vpn forwarding ac
Total number of VSIs: 1
Total number of ACs: 2
AC VSI Name Link ID
XGE3/0/1 test 3
XGE3/0/2 test 4
Table 10 Command output
Field |
Description |
Total number of VSIs |
Total number of VSIs, including VSIs that are not bound to any ACs. |
AC |
AC type: · Layer 3 interface. · Layer 2 interface and Ethernet service instance. |
Link ID |
Link ID of the AC in the VSI. |
# Display detailed AC forwarding information for all VSIs.
<Sysname> display l2vpn forwarding ac verbose
VSI Name: vpls1
Interface: XGE3/0/1
Link ID : 0
Access Mode : Ethernet
MAC limit : maximum=1024 alarm=enabled action=discard
E-Tree Role : Leaf
Interface: XGE3/0/2
Link ID : 1
Access Mode : Ethernet
Redundancy Mode : All-active
DF State : DF
BCR : 2560 kbps
MCR : 2560 kbps
UCR : 2560 kbps
MAC limit : maximum=500 alarm=disabled action=forward
Table 11 Command output
Field |
Description |
Service Instance |
Ethernet service instance ID. This field is displayed only when the AC is an Ethernet service instance on a Layer 2 interface. |
Link ID |
Link ID of the AC in the VSI. |
Access Mode |
AC access mode: · VLAN. · Ethernet. |
AC Attributes |
Hub-spoke attribute of the AC: · Hub link—The AC is the hub link in the VPLS hub-spoke network. · Spoke link—The AC is a spoke link in the VPLS hub-spoke network. This field is displayed only when the VSI bound to the AC has the hub-spoke attribute. |
Encapsulation |
Match criterion of the Ethernet service instance. This field is displayed only when the AC is an Ethernet service instance on a Layer 2 interface. |
Redundancy Mode |
Redundancy mode of the Ethernet segment (ES): · All-active—All-active mode. · Single-active—Single-active mode. This field is not displayed if the interface is not configured with an Ethernet Segment Identifier (ESI). |
DF State |
Designated forwarder (DF) role of the EVPN ES: · DF—The ES is a DF. · BDF—The ES is a backup designated forwarder (BDF). · DF (BFD)—BDF has detected faults on the DF-side AC by monitoring the static BFD session state and switched the AC to DF. This field is not displayed if the interface is not configured with an ESI. |
BCR |
Broadcast suppression bandwidth value for the AC, in kbps. |
MCR |
Multicast suppression bandwidth value for the AC, in kbps. |
UCR |
Unknown unicast suppression bandwidth value for the AC, in kbps. |
MAC limit |
MAC address learning restrictions on the AC: · maximum—Maximum number of MAC addresses that the AC can learn. If no limit is set, this field displays unlimited. The default value is unlimited. · alarm—Status of alarm: enabled or disabled. The default value is disabled. · action—Action to be taken on frames with unknown source MAC addresses when the number of MAC addresses that the AC has learned reaches the maximum. The default value is forward. ¡ discard—Drops the frames. ¡ forward—Forwards the frames. The MAC limit field is not displayed if the maximum, alarm, and action parameters all use the default values. |
E-Tree Role |
The AC acts as a leaf AC in the E-Tree network. This field is not displayed if the AC acts as a root AC. |
# Display brief PW forwarding information for all VSIs.
<Sysname> display l2vpn forwarding pw
Total number of VSIs: 1
Total number of PWs: 2, 2 up, 0 blocked, 0 down
VSI Name In/Out Label NID Link ID State
aaa 1272/1275 1034 8 Up
aaa 1271/1273 1035 9 Up
Table 12 Command output
Field |
Description |
Total number of VSIs |
Total number of VSIs, including VSIs that do not contain PWs. |
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. |
Link ID |
Link ID of the PW in the VSI. |
State |
PW state: Up, Down, or Blocked. Blocked indicates that the PW is blocked. |
# Display detailed PW forwarding information for all VSIs.
<Sysname> display l2vpn forwarding pw verbose
VSI Name: aaa
Link ID: 8
PW Type : VLAN PW State : Up
In Label : 1272 Out Label: 1275
MTU : 1500
PW Attributes : Main
VCCV CC : Router-Alert
VCCV BFD : Fault Detection with BFD
Flow Label : Send
Tunnel Group ID : 0x960000000
Tunnel NHLFE IDs: 1034
MAC limit : maximum=2000 alarm=enabled action=discard
BCR : 2560 kbps
MCR : 2560 kbps
UCR : 2560 kbps
Table 13 Command output
Field |
Description |
Link ID |
Link ID of the PW in the VSI. |
PW Type |
Data encapsulation type of the PW. |
PW State |
PW state: Up, Down, or Blocked. Blocked indicates that the PW is blocked. |
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—The PW is the primary PW. · Backup—The PW is the backup PW. · No-split-horizon—Split horizon forwarding is disabled. · Hub link—The PW is the hub link in the VPLS hub-spoke network. · Spoke link—The PW is a spoke link in the VPLS hub-spoke network. |
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 display a hyphen (-) if the flow label feature is disabled. |
Tunnel Group ID |
ID of the tunnel group for the PW. |
Tunnel NHLFE IDs |
NHLFE ID of 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. |
MAC limit |
MAC address learning restrictions on the PW: · maximum—Maximum number of MAC addresses that the PW can learn. If no limit is set, this field displays unlimited. The default value is unlimited. · alarm—Status of alarm: enabled or disabled. The default value is disabled. · action—Action to be taken on frames with unknown source MAC addresses when the number of MAC addresses that the PW has learned reaches the maximum. The default value is forward. ¡ discard—Drops the frames. ¡ forward—Forwards the frames. The MAC limit field is not displayed if the maximum, alarm, and action parameters all use the default values. |
BCR |
Broadcast suppression bandwidth value for the PW, in kbps. |
MCR |
Multicast suppression bandwidth value for the PW, in kbps. |
UCR |
Unknown unicast suppression bandwidth value for the PW, in kbps. |
display l2vpn interface
Use display l2vpn interface to display L2VPN information for Layer 3 interfaces bound to VSIs.
Syntax
display l2vpn interface [ vsi vsi-name | interface-type [ interface-number | interface-number.subnumber ] ] [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
vsi vsi-name: Displays L2VPN information for the Layer 3 interfaces bound to a VSI. The vsi-name argument specifies the VSI name, a case-sensitive string of 1 to 31 characters.
interface-type [ interface-number | interface-number.subnumber ]: Displays L2VPN information for an interface specified by its type and number.
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 VSIs.
Examples
# Display brief L2VPN information for all Layer 3 interfaces bound to VSIs.
<Sysname> display l2vpn interface
Total number of interfaces: 2, 2 up, 0 down
Interface Owner Link ID State Type
XGE3/0/1 vpls1 1 Up VSI
XGE3/0/2 vpls1 2 Down VSI
Table 14 Command output
Field |
Description |
Owner |
VSI name. |
Link ID |
Link ID of the AC in the VSI. |
Type |
L2VPN type. The value can only be VSI on a VPLS network. |
# Display detailed L2VPN information for all Layer 3 interfaces bound to VSIs.
<Sysname> display l2vpn interface verbose
Interface: XGE3/0/1
Owner : vsi1
Link ID : 0
State : Up
Type : VSI
E-Tree Role : root
AC VNID : -
End.Dx2 SID : -
End.Dx2l SID : -
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 15 Command output
Field |
Description |
Owner |
VSI name. |
Link ID |
Link ID of the AC in the VSI. |
State |
Physical status of the interface: Up or Down. |
Type |
L2VPN type. The value can only be VSI on a VPLS network. |
E-Tree Role |
The role of the AC in the E-Tree network: · Root. · Leaf. |
AC VNID |
Virtual next hop ID of the AC. This field is displayed only when the AC is configured with an AC bypass. |
End.Dx2 SID |
In an EVPN VPLS over SRv6 network, this field represents the End.DX2 SID allocated to the AC. In an EVPN VPLS network, this field displays a hyphen (-). |
End.Dx2l SID |
In an EVPN VPLS over SRv6 network, this field represents the End.DX2L SID allocated to the AC. In an EVPN VPLS network, this field displays a hyphen (-). |
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 | vpls-id vpls-id ] | vsi vsi-name ] [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
peer ip-address: Displays information about PW labels advertised by a peer PE through LDP. The ip-address argument specifies the LSR ID of the peer PE. If you do not specify a peer PE, this command displays information about LDP PW labels advertised by all peer PEs.
pw-id pw-id: Displays FEC 128 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 the peer ip-address option without the pw-id pw-id option, this command displays all LDP PW label information advertised by the specified peer PE.
vpls-id vpls-id: Displays FEC 129 LDP PW label information for a VPLS instance. The vpls-id argument specifies the VPLS instance ID, a string of 3 to 21 characters. You can specify a VPLS ID 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.
vsi vsi-name: Displays LDP PW label information for a VSI. The vsi-name argument specifies the VSI name, a case-sensitive string of 1 to 31 characters. If you do not specify a VSI, this command displays LDP PW label information for all VSIs.
verbose: Displays detailed information. If you do not specify this keyword, the command displays brief information.
Usage guidelines
LDP advertises FEC-to-PW label bindings in the following ways:
· After you specify a remote PE with the peer command, LDP advertises an FEC 128-to-PW label binding to the remote PE.
· After BGP discovers a remote PE, LDP advertises an FEC 129-to-PW label binding to the remote PE.
This command can display PW labels as follows:
· If you specify the pw-id pw-id option, this command displays PW labels for FEC 128.
· If you specify the vpls-id vpls-id option, this command displays PW labels for FEC 129.
· If you do not specify pw-id pw-id or vpls-id vpls-id, this command displays PW labels for both FEC 128 and FEC 129.
Examples
# Display brief information about all PW labels advertised by LDP.
<Sysname> display l2vpn ldp
Total number of LDP PWs: 2, 2 up, 0 down
Peer PW ID/VPLS ID In/Out Label State Owner
192.3.3.3 1001 775125/775126 Up vpls1
192.3.3.3 1003 775117/775122 Up vpls3
Table 16 Command output
Field |
Description |
PW ID/VPLS ID |
PW ID for FEC 128, or VPLS ID of the PE for FEC 129. |
State |
PW state: Up or Down. |
Owner |
Name of the VSI to which the PW belongs. |
# Display detailed information about all PW labels advertised by LDP.
<Sysname> display l2vpn ldp verbose
Peer: 2.2.2.9 PW ID: 500
VSI Name: ccc
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 : 1552/1552
Control Word : Disabled/Disabled
VCCV CV Type : -/-
VCCV CC Type : -/-
Flow Label : Send/Recv
MTU : 1500/1500
MTU Negotiation : Enabled
PW Status : PW forwarding/PW forwarding
VLAN Mapping : Disabled/Disabled
Leaf-only : No/No
Root VLAN : -
Leaf VLAN : -
Peer: 2.2.2.9 VPLS ID: 100:100
VSI Name: bbb
PW State: Up
PW Status Communication: Notification method
PW ID FEC (Local/Remote):
Local AII : (1.1.1.9, 2.2.2.9)
Remote AII : (2.2.2.9, 1.1.1.9)
PW Type : VLAN/VLAN
Group ID : 0/0
Label : 1553/1553
Control Word : Disabled/Disabled
VCCV CV Type : -/-
VCCV CC Type : -/-
Flow Label : Both/Both
MTU : 1500/1500
MTU Negotiation : Enabled
PW Status : PW forwarding/PW forwarding
VLAN Mapping : Disabled/Disabled
Leaf-only : No/No
Root VLAN : -
Leaf VLAN : -
Table 17 Command output
Field |
Description |
PW Status Communication |
PW status communication method: · Notification method—Notifies the PW status through Notification messages. · Label withdraw method—Assigns a PW label to the PW when the AC associated with PW comes 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. |
PW ID FEC (Local/Remote) |
PW ID FEC information advertised from the local PE to the peer PE/PW ID FEC information advertised from the peer PE to the local PE. |
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. |
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. VCCV is an MPLS OAM technology. For more information about VCCV, see MPLS Configuration Guide. |
Flow Label |
Flow label capability: · Both—Flow label sending and receiving capabilities. · Send—Flow label sending capability. · Recv—Flow label receiving capability. This field display a hyphen (-) if the flow label feature is disabled. |
MTU |
Maximum transmission unit of the VSI. |
MTU Negotiation |
Whether PW MTU negotiation is enabled. |
PW Status |
PW status: · PW forwarding—PW is ready for packet forwarding. · PW not forwarding—PW is not ready for packet forwarding. · AC receive fault—AC cannot receive packets. · AC transmit fault—AC cannot send packets. · PW receive fault—PW cannot receive packets. · PW transmit fault—PW cannot send packets. · PW standby—The PW is in standby state. · PW request switchover—The PW is requesting a switchover. · Unknown—Unknown protocol. |
VPLS ID |
ID of the VPLS instance. |
Local AII |
Source Attachment Individual Identifier (SAII) and Target Attachment Individual Identifier (TAII) advertised to the remote PE. |
Remote AII |
SAII and TAII received from the remote PE. |
VLAN Mapping |
Whether VLAN mapping is enabled: · Enabled. · Disabled. |
Leaf-only |
Whether the node is a leaf-only node: · Yes. · No. |
Root VLAN |
E-Tree root VALN ID. |
Leaf VLAN |
E-Tree leaf VLAN ID. |
display l2vpn mac-address
Use display l2vpn mac-address to display MAC address entries for L2VPNs.
Syntax
display l2vpn mac-address [ interface interface-type inteface-number [ service-instance instance-id ] | mac-address | peer ip-address pw-id pw-id | vsi vsi-name [ ac | mac-address | pw ] ] [ dynamic ] [ count ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
interface interface-type interface-number: Specifies an interface by its type and number.
service-instance instance-id: Specifies an Ethernet service instance ID in the range of 1 to 4096. This option is unavailable if the interface interface-type interface-number option specifies a Layer 3 interface. This option is required if the interface interface-type interface-number option specifies a Layer 2 Ethernet interface or a Layer 2 aggregate interface.
mac-address: Specifies a MAC address in H-H-H format. When entering a MAC address, you can omit the leading zeros in each H section. For example, enter f-e2-1 for 000f-00e2-0001.
peer ip-address pw-id pw-id: Specifies a PW. The peer ip-address option specifies the LSR ID of the remoted PE on the PW. The pw pw-id option specifies the ID of the PW, in the range of 1 to 4294967295.
vsi vsi-name: Specifies a VSI by its name, a case-sensitive string of 1 to 31 characters. If you do not specify the ac, mac-address, and pw parameters, this command displays all MAC address entries in the specified VSI.
ac: Displays MAC address entries on all ACs in the specified VSI.
mac-address: Specifies a MAC address in H-H-H format. When entering a MAC address, you can omit the leading zeros in each H section. For example, enter f-e2-1 for 000f-00e2-0001.
pw: Displays MAC address entries on all PWs in the specified VSI.
dynamic: Displays dynamically generated MAC address entries. If you do not specify this keyword, the command displays all types of MAC address entries. The device supports only dynamic MAC address entries in the current software version.
count: Displays the number of the MAC address entries. If you do not specify this keyword, the command displays detailed information about the MAC address entries.
Usage guidelines
If you do not specify the interface interface-type interface-number, service-instance instance-id, peer ip-address pw-id pw-id, and vsi vsi-name options, this command displays MAC address entries for all L2VPNs.
Examples
# Display MAC address entries for all L2VPNs.
<Sysname> display l2vpn mac-address
MAC Address State VSI Name Link ID/Name/Peer
Aging
0000-0000-000a Dynamic vpn1 XGE3/0/1
Aging
0000-0000-0009 Dynamic vpn1 XGE3/0/1
Aging
--- 2 mac address(es) found ---
# Display the total number of MAC address entries for all L2VPNs.
<Sysname> display l2vpn mac-address count
2 mac address(es) found
Table 18 Command output
Field |
Description |
State |
MAC address type. The MAC address type can only be Dynamic in the current software version, which indicates that the MAC address is dynamically learned. |
Link ID/Name/Peer |
For a MAC address in the local site, this field displays the following information: · When the AC is a Layer 3 interface, this field displays the name of the interface. · When the AC is an Ethernet service instance, this field displays the name of the interface to which the Ethernet service instance belongs. For a MAC address in the remote site, this field displays the following information: · In an EVPN VPLS over SRv6 network, this field displays the peer address of the SRv6 PW corresponding to the MAC address. · In a VPLS/EVPN VPLS network, this field displays the link ID of the PW in the VSI. When the MAC address is unreachable, this field displays a hyphen (-). |
Aging |
Whether the MAC address entry will be aged. |
XX mac address(es) found |
Total number of MAC address entries. |
Related commands
reset l2vpn mac-address
display l2vpn pw
Use display l2vpn pw to display L2VPN PW information.
Syntax
display l2vpn pw [ vsi vsi-name ] [ protocol { bgp | evpn | ldp | static } ] [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
vsi vsi-name: Displays L2VPN PW information for a VSI. The vsi-name argument specifies the VSI name, a case-sensitive string of 1 to 31 characters. If you do not specify a VSI, this command displays L2VPN PW information for all VSIs.
protocol: Displays PWs created by a signaling protocol. If you do not specify a protocol, this command displays PWs created by all protocols.
bgp: Displays BGP PW information.
evpn: Displays EVPN PW information.
ldp: Displays LDP PW information, including PWs for FEC 128 (LDP PWs) and FEC 129 (BGP auto-discovery LDP PWs).
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 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: 5
5 up, 0 blocked, 0 down, 0 defect, 0 idle, 0 duplicate
VSI Name: aaa
Peer PWID/RmtSite/SrvID In/Out Label Proto Flag Link ID State
2.2.2.9 2 1420/1419 BGP M 9 Up
3.3.3.9 3 1421/1281 BGP M 10 Up
Table 19 Command output
Field |
Description |
PWID/RmtSite/SrvID |
This field displays the following: · PW ID for an LDP PW (FEC 128) or a static PW. · A hyphen (-) for a BGP auto-discovery LDP PW (FEC 129). · Remote site ID for a BGP PW. · Remote service ID for an EVPN PW. |
Proto |
Protocol used to establish the PW: LDP, Static, or BGP. |
Flag |
PW attribute flag: · M—Primary PW. · B—Backup PW. · E—ECMP PW. (This value does not apply to VPLS.) · BY—Bypass PW. (This value does not apply to VPLS.) · H—The PW is the hub link in the VPLS hub-spoke network. · S—The PW is a spoke link in the VPLS hub-spoke network. · N—Split horizon forwarding is disabled. · A—The PW is an administration PW. · ABY—The PW is a bypass PW for AC bypass. (This value does not apply to VPLS.) · PBY—The PW is a bypass PW for PW bypass. (This value does not apply to VPLS.) |
Link ID |
Link ID of the PW in the VSI. |
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 occupied by a static LSP or a static CRLSP. |
# Display detailed information about all L2VPN PWs.
<Sysname> display l2vpn pw verbose
VSI Name: aaa
Peer: 2.2.2.9 Remote Site: 2
Signaling Protocol : BGP
Link ID : 9 PW State : Up
In Label : 1420 Out Label: 1419
MTU : 1500
PW Attributes : Main
VCCV CC : -
VCCV BFD : -
Flow Label : Send
Control Word : Disabled
Tunnel Group ID : 0x800000960000000
Tunnel NHLFE IDs : 1038
Admin PW : -
E-Tree Mode : -
E-Tree Role : root
Root VLAN : -
Leaf VLAN : -
VSI Name: bbb
Peer: 2.2.2.9 VPLS ID: 100:100
Signaling Protocol : LDP
Link ID : 8 PW State : Up
In Label : 1553 Out Label: 1553
MTU : 1500
PW Attributes : Main
VCCV CC : -
VCCV BFD : -
Flow Label : Recv
Control Word : Disabled
Tunnel Group ID : 0x800000960000000
Tunnel NHLFE IDs : 1038
Admin PW : -
E-Tree Mode : -
E-Tree Role : root
Root VLAN : -
Leaf VLAN : -
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
VSI Name: ccc
Peer: 2.2.2.9 PW ID: 500
Signaling Protocol : LDP
Link ID : 8 PW State : Up
In Label : 1552 Out Label: 1552
MTU : 1500
PW Attributes : Main
VCCV CC : -
VCCV BFD : -
Flow Label : Both
Control Word : Disabled
Tunnel Group ID : 0x800000960000000
Tunnel NHLFE IDs : 1038
Admin PW : -
E-Tree Mode : -
E-Tree Role : root
Root VLAN : -
Leaf VLAN : -
Table 20 Command output
Field |
Description |
Peer |
IP address of the peer PE to which the PW is destined. |
Signaling Protocol |
Protocol used to establish the PW: LDP, Static, or BGP. |
Link ID |
Link ID of the PW in the VSI. |
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 occupied 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. This field is displayed after the switchover wait timer is started. |
MTU |
Negotiated MTU of the PW. |
PW Attributes |
PW attribute: · Main—The PW is the primary PW. · Backup—The PW is the backup PW. · Administration—Administration PW. · Hub link—The PW is the hub link in the VPLS hub-spoke network. · Spoke link—The PW is a spoke link in the VPLS hub-spoke network. · No-split-horizon—Split horizon forwarding is disabled. |
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 display 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 ID of 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. |
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. |
E-Tree Mode |
PW E-Tree mode. If a mode is followed by (s), the mode is manually configured. A hyphen (-) represents the normal mode. |
E-Tree Role |
The role of the PW in the E-Tree network: · Root. · Leaf. |
Root VLAN |
Local root VLAN ID. |
Leaf VLAN |
Local leaf VLAN ID. |
VPLS ID |
ID of the VPLS instance. |
Remote Site |
ID of the remote site. |
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. · 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 (-). |
Related commands
statistics enable (VSI LDP PW view/VSI static 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 [ vsi vsi-name ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
vsi vsi-name: Specifies a VSI by its name, a case-sensitive string of 1 to 31 characters. If you do not specify a VSI, this command displays L2VPN PW state machine information for all VSIs.
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
VSI Name: 1004
PW Group Link ID : 2
Main PW : Peer: 3.3.3.3 PW ID: 1004
Backup PW : Peer: 2.2.2.2 PW ID: 11004
Signaling Protocol : LDP
Main PW Defect State : No defect
Backup PW Defect State : No defect
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 : Normal
PW Group State : SWT
Table 21 Command output
Field |
Description |
VSI Name |
VSI name. |
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 PW class 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 Control-Word BFD
pw2 VLAN Disabled Control-Word BFD
Table 22 Command output
Field |
Description |
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. |
# 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 23 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. |
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 display 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: 8, 8 up, 0 down
Total number of ACs: 2, 2 up, 0 down
Interface ID Owner LinkID State Type
XGE3/0/3 1 vpls1 1 Up VSI
XGE3/0/3 2 vpls2 1 Up VSI
Table 24 Command output
Field |
Description |
Interface |
Layer 2 Ethernet interface or Layer 2 aggregate interface. |
ID |
Ethernet service instance ID. |
Owner |
Name of the VSI bound to the Ethernet service instance. This field is empty if no VSI is bound. |
LinkID |
Link ID of the AC in the VSI. |
State |
Ethernet service instance state. |
Type |
L2VPN type of the Ethernet service instance: VSI or VPWS. |
# Display detailed information about all Ethernet service instances on Layer 2 Ethernet interface Ten-GigabitEthernet 3/0/3.
<Sysname> display l2vpn service-instance interface ten-gigabitethernet 3/0/3 verbose
Interface: XGE3/0/3
Service Instance : 1
Encapsulation : s-vid 16
VSI Name : vpls1
Link ID : 1
State : Up
E-Tree Role : root
End.DX2 SID : -
End.DX2l SID : -
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 25 Command output
Field |
Description |
Interface |
Layer 2 Ethernet interface or Layer 2 aggregate interface. |
Service Instance |
Ethernet service instance ID. |
Encapsulation |
Match criteria of the Ethernet service instance. If no match criteria are configured, the field is not displayed. |
VSI Name |
Name of the VSI bound to the Ethernet service instance. |
Link ID |
Link ID of the AC in the VSI. |
State |
Ethernet service instance state: Up and Down. |
E-Tree Role |
The role of the AC in the E-Tree network: · Root. · Leaf. |
End.Dx2 SID |
In an EVPN VPLS over SRv6 network, this field represents the End.DX2 SID allocated to the AC. In an EVPN VPLS network, this field displays a hyphen (-). |
End.Dx2l SID |
In an EVPN VPLS over SRv6 network, this field represents the End.DX2L SID allocated to the AC. In an EVPN VPLS network, this field displays a hyphen (-). |
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: · Octets—Number of incoming bytes. · 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: · Octets—Number of outgoing bytes. · 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
statistics enable (Ethernet service instance view)
display l2vpn traffic-statistics interface
Use display l2vpn traffic-statistics interface to display traffic statistics for Layer 3 interfaces associated with a VSI.
Syntax
display l2vpn traffic-statistics interface [ vsi vsi-name ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
vsi vsi-name: Displays traffic statistics for Layer 3 interfaces associated with a VSI. The vsi-name argument specifies the VSI name, a case-sensitive string of 1 to 31 characters. If you do not specify a VSI, this command displays traffic statstics for Layer 3 interfaces associated with all VSIs.
Examples
# Display traffic statistics for Layer 3 interfaces associated with all VSIs.
<Sysname> display l2vpn traffic-statistics interface
Interface: XGE3/0/1
Owner: svpls0
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 26 Command output
Field |
Description |
Interface |
Interface name. |
Owner |
VSI 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 VSI.
Syntax
display l2vpn traffic-statistics pw [ vsi vsi-name ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
vsi vsi-name: Displays traffic statistics for PWs in a VSI. The vsi-name argument specifies the VSI name, a case-sensitive string of 1 to 31 characters. If you do not specify a VSI, this command displays traffic statstics for PWs in all VSIs.
Examples
# Display traffic statistics for PWs in all VSIs.
<Sysname> display l2vpn traffic-statistics pw
VSI Name: ldppw1
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 27 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 (VSI LDP PW view/VSI static PW view)
display l2vpn vsi
Use display l2vpn vsi to display VSI information.
Syntax
display l2vpn vsi [ name vsi-name | evpn-srv6 | evpn-vpls | evpn-vxlan | vpls | vxlan ] [ count | verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
name vsi-name: Displays information about a VSI. The vsi-name argument specifies the VSI name, a case-sensitive string of 1 to 31 characters. If you do not specify a VSI, this command displays information about all VSIs.
evpn-srv6: Displays information about VSIs in the EVPN VPLS over SRv6 network. For more information about this keyword, see SRv6 commands in Segment Routing Command Reference.
evpn-vpls: Displays information about VSIs in the EVPN VPLS network.
evpn-vxlan: Displays information about VSIs in the EVPN VXLAN network.
vpls: Displays information about VSIs in the VPLS network.
vxlan: Displays information about VSIs in the VXLAN network.
count: Displays VSI statistics.
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-vpls, evpn-vxlan, vpls, or vxlan keyword for this command, the command displays information about all VSIs.
Examples
# Display brief information about all VSIs.
<Sysname> display l2vpn vsi
Total number of VSIs: 2, 1 up, 1 down, 0 admin down
VSI Name VSI Index MTU State
vpls1 0 1500 Up
vpls2 1 1500 Down
# Display VSI statistics.
<Sysname> display l2vpn vsi count
Total number of VSIs: 1, 1 up, 0 down, 0 admin down
Table 28 Command output
Field |
Description |
State |
VSI state: · Up. · Down. · Admin down—The VSI is manually brought down by using the shutdown command. |
# Display detailed information about all VSIs.
<Sysname> display l2vpn vsi verbose
VSI Name: vpls1
VSI Index : 0
VSI Description : vsi for vpls1
VSI State : Up
MTU : 1500
Diffserv Mode : -
Bandwidth : Unlimited
Broadcast Restrain : 5120 kbps
Multicast Restrain : 5120 kbps
Unknown Unicast Restrain: 5120 kbps
MAC Learning : Enabled
MAC Table Limit : Unlimited
MAC Learning rate : Unlimited
Local MAC aging time : 300 sec
Remote MAC aging time : 600 sec
Drop Unknown : Disabled
PW Redundancy Mode : Independent
Flooding : Enabled
ESI : 0001.0001.0001.0001.0001
Redundancy Mode : All-active
Statistics : Disabled
VXLAN ID : -
EVPN Encapsulation : MPLS
EVPN MPLS BCR : 100kbps
EVPN MPLS UCR : 100kbps
EVPN MPLS MCR : 100kbps
EVPN SRv6 BCR : -
EVPN SRv6 UCR : -
EVPN SRv6 MCR : -
VXLAN BCR : 100kbps
VXLAN UCR : 100kbps
VXLAN MCR : 100kbps
LDP PWs:
Peer PW ID Link ID State
192.3.3.3 1 8 Up
192.3.3.3 1001 8 Blocked
BGP PWs:
Peer Remote Site Link ID State
192.4.4.4 1 9 Up
ACs:
AC Link ID State
XGE3/0/1 0x1 Up
Table 29 Command output
Field |
Description |
VSI Description |
If no description is configured for the VSI, this field is not displayed. |
VSI State |
VSI state: · Up. · Down. · Admin down—The VSI is manually brought down by using the shutdown command. |
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 (-). |
Bandwidth |
This field is not supported in the current software version. Maximum bandwidth for known unicast traffic in the VSI, in kbps. |
Broadcast Restrain |
Broadcast suppression bandwidth for the VSI, in kbps. |
Multicast Restrain |
Multicast suppression bandwidth for the VSI, in kbps. |
Unknown Unicast Restrain |
Unknown unicast suppression bandwidth for the VSI, in kbps. |
MAC Table Limit |
Maximum number of MAC addresses that the VSI can learn. This field displays Unlimited if no limit is set on the number of MAC addresses that the VSI can learn. |
MAC Learning rate |
MAC address learning rate of the VSI. |
Local MAC aging time |
Aging time (in seconds) for local dynamic MAC address entries learned by the VSI. If no aging time is set, this field displays NotAgin and the local dynamic MAC address entries never age. |
Remote MAC aging time |
Aging time (in seconds) for remote dynamic MAC address entries learned by the VSI. If no aging time is set, this field displays NotAgin and the remote dynamic MAC address entries never age. |
Drop Unknown |
Whether the VSI drops packets with unknown source MAC addresses after it has leaned the maximum number of MAC addresses: · Enabled—Drops packets with unknown source MAC addresses. · Disabled—Forwards packets with unknown source MAC addresses. |
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. |
Hub-Spoke |
Hub-spoke capability. If the hub-spoke capability is enabled, this field displays Enabled. If the hub-spoke capability is disabled, this field is not displayed. |
Flooding |
VPLS does not support this field. |
ESI |
ESI of the VSI. |
Redundancy mode |
ES redundancy mode: · All-active. · Single-active. |
Statistics |
VSI statistics status: Enabled or Disabled. |
Input Statistics |
Inbound VSI packet statistics, including received bytes, packets, unicast packets, broadcast packets, multicast packets, and error packets, and discarded received packets. |
Output Statistics |
Outbound VSI packet statistics, including sent bytes, packets, unicast packets, broadcast packets, multicast packets, and error packets, and discarded sent packets. |
Input Rate |
Inbound VSI packet rate statistics, including received bytes per second and received packets per second. |
Output Rate |
Outbound VSI packet rate statistics, including sent bytes per second and sent packets per second. |
VXLAN ID |
VPLS does not support this field. |
EVPN Encapsulation |
EVPN encapsulation type: · VXLAN. · MPLS. · SRv6. |
EVPN MPLS BCR |
Broadcast suppression bandwidth value for EVPN MPLS, in kbps. |
EVPN MPLS MCR |
Multicast suppression bandwidth value for EVPN MPLS, in kbps. |
EVPN MPLS UCR |
Unknown unicast suppression bandwidth value for EVPN MPLS, in kbps. |
EVPN SRv6 BCR |
Broadcast suppression bandwidth value for EVPN SRv6, in kbps. |
EVPN SRv6 MCR |
Multicast suppression bandwidth value for EVPN SRv6, in kbps. |
EVPN SRv6 UCR |
Unknown unicast suppression bandwidth value for EVPN SRv6, in kbps. |
VXLAN BCR |
Broadcast suppression bandwidth value for VXLAN, in kbps. |
VXLAN MCR |
Multicast suppression bandwidth value for VXLAN, in kbps. |
VXLAN UCR |
Unknown unicast suppression bandwidth value for VXLAN, in kbps. |
State |
PW state: Up, Down, Blocked, or BFD Defect. |
AC |
AC type: · Layer 3 interface. · Layer 2 interface and Ethernet service instance. |
Related commands
vsi
display vsi e-tree
Use display vsi e-tree to display VSI E-Tree information.
Syntax
display vsi e-tree
Views
Any view
Predefined user roles
network-admin
network-operator
Examples
# Display VSI E-Tree information.
<Sysname> display vsi e-tree
Total E-Tree VSI number : 2
VSI Name : V1
VSI Index : 0
VSI State : down
E-Tree Type : static
E-Tree Root VLAN : 100
E-Tree Leaf VLAN : 101
LDP PWs:
Peer : 3.3.3.3
PW Attributes : Main
E-Tree Mode : compatible
E-Tree Role : Leaf
ACs:
AC : XGE3/0/1
State : up
E-Tree Role : leaf
Table 30 Command output
Field |
Description |
Total E-Tree VSI number is |
Number of VSIs enabled with E-Tree. |
VSI Name |
VSI name. |
VSI Index |
VSI index. |
VSI State |
VSI state: · Up—The VSI is up. · Down—The VSI is down. · Administratively down—The VSI has been shut down by using the shutdown command. |
E-Tree Type |
E-Tree mode: · Dynamic. · Static. |
E-Tree Root VLAN |
Local root VLAN ID. |
E-Tree Leaf VLAN |
Local leaf VLAN ID. |
LDP PWs |
LDP PWs in the VSI. |
Peer |
IP address of the remote PE. |
PW Attributes |
PW attribute: · Main—Primary PW. · Backup—Backup PW. · Administration—The PW is an administration PW. · Hub link—The PW is the hub link in the VPLS hub-spoke network. · Spoke link—The PW is a spoke link in the VPLS hub-spoke network. · No-split-horizon—Split horizon forwarding is disabled. |
E-Tree Mode |
PW E-Tree mode. If a mode is followed by (s), the mode is manually configured. A hyphen (-) represents the normal mode. |
E-Tree Role |
The role of the AC or PW in the E-Tree network: · Root. · Leaf. |
ACs |
ACs in the VSI. |
AC |
AC type: · Layer 3 interface. · Layer 2 interface and Ethernet service instance. |
State |
AC state, up or down. |
Related commands
e-tree leaf
e-tree mode
root-vlan
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-list
encapsulation s-vid vlan-id c-vid vlan-id-list
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-list: Matches packets with the specified outer VLAN IDs.
s-vid vlan-id c-vid vlan-id-list: Matches packets with the specified outer VLAN IDs and the specified inner VLAN IDs.
· The vlan-id argument specifies a VLAN ID in the range of 1 to 4094.
· The vlan-id-list argument specifies a space-separated list of up to eight VLAN items. Each item specifies a VLAN ID or a range of VLAN IDs in the format of start-VLAN-ID to end-VLAN-ID. The value range for VLAN IDs 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 VSI is removed automatically.
Examples
# Configure Ethernet service instance 1 on Layer 2 Ethernet interface 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
e-tree
Use e-tree to enable Ethernet Tree (E-Tree) for a VSI and enter VSI E-Tree view.
Use undo e-tree to disable E-Tree for a VSI.
Syntax
e-tree { dynamic | static }
undo e-tree
Default
E-Tree is disabled for a VSI.
Views
VSI view
Predefined user roles
network-admin
Parameters
dynamic: Specifies the dynamic E-Tree mode.
static: Specifies the static E-Tree mode.
Usage guidelines
In a VPLS network, ACs can communicate whether they are connected to the same PE or to different PEs. To improve security and isolate ACs, execute this command to enable E-Tree on the PEs. Then, communication is allowed only between root links and between root and leaf links. Leafs cannot communicate with each other.
You cannot modify the E-Tree mode for a VSI by repeating the e-tree mode. To modify the E-Tree mode, execute the undo e-tree command and then execute the e-tree command.
Examples
# Enable E-Tree for VSI vsi1.
<Sysname> system-view
[Sysname] vsi vsi1
[Sysname-vsi-vsi1] e-tree static
[Sysname-vsi-vsi1-etree]
Related commands
e-tree leaf
e-tree mode
root-vlan
e-tree leaf
Use e-tree leaf to configure a PW as a leaf PW.
Use undo e-tree leaf to restore the default.
Syntax
e-tree leaf
undo e-tree leaf
Default
A PW is a root PW.
Views
VSI LDP PW view
VSI static PW view
Predefined user roles
network-admin
Usage guidelines
This command is applicable to static E-Tree networks that use the compatible PW E-Tree mode.
As a best practice, execute this command if the remote PE does not support E-Tree and receives packets only from root links.
Examples
# Configure the PW as a leaf PW.
<Sysname> system-view
[Sysname] vsi vpn1
[Sysname-vsi-vpn1] pwsignaling ldp
[Sysname-vsi-vpn1-ldp] peer 4.4.4.4 pw-id 100
[Sysname-vsi-vpn1-ldp-4.4.4.4-100] e-tree mode compatible
[Sysname-vsi-vpn1-ldp-4.4.4.4-100] e-tree leaf
Related commands
e-tree
e-tree mode
root-vlan
e-tree mode
Use e-tree mode to configure the PW E-Tree mode.
Use undo e-tree mode to restore the default.
Syntax
e-tree mode { compatible | optimized }
undo e-tree mode
Default
No PW E-Tree mode is configured. Before forwarding a packet to the remote PE, the local PE replaces the VLAN ID in the packet with the local root or leaf VLAN ID.
Views
VSI LDP PW view
VSI static PW view
Predefined user roles
network-admin
Parameters
compatible: Specifies the compatible E-Tree mode. Before forwarding a packet to the remote PE, the local PE does not modify the VLAN ID in the packet.
optimized: Specifies the optimized E-Tree mode. PWs in this mode cannot communicate with leaf ACs or leaf PWs.
Usage guidelines
You can execute this command in a static E-Tree network to specify a PW E-Tree mode. In a dynamic E-Tree network, the local and remote PEs can negotiate a PW E-Tree mode or you can execute this command to specify a PW E-Tree mode. The manually specified PW E-Tree mode takes precedence over the negotiated mode.
If you specify the compatible E-Tree mode on the local PE and the remote PE supports E-Tree, E-Tree does not take effect.
Examples
# Configure the PW to operate in compatible E-Tree mode.
<Sysname> system-view
[Sysname] vsi vpn1
[Sysname-vsi-vpn1] pwsignaling ldp
[Sysname-vsi-vpn1-ldp] peer 4.4.4.4 pw-id 100
[Sysname-vsi-vpn1-ldp-4.4.4.4-100] e-tree mode compatible
Related commands
e-tree
e-tree leaf
root-vlan
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.
This command is applicable to static PWs, LDP PWs, BGP PWs, and BGP auto-discovery LDP PWs.
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
interface-status-change
Use interface-status-change to enable the local PE to send a MAC Withdraw message to all peer PEs upon an AC interface status change.
Use undo interface-status-change to disable the local PE from sending a MAC Withdraw message to all peer PEs upon an AC interface status change.
Syntax
interface-status-change [ up | down ] mac-withdraw enable
undo interface-status-change [ up | down ] mac-withdraw enable
Default
The local PE does not send MAC Withdraw messages to all peer PEs upon an AC interface status change.
Views
VSI view
Predefined user roles
network-admin
Parameters
up: Configures the local PE to send a MAC Withdraw message that contains 0x404 TLV to all peer PEs when the status of the AC changes to up. Upon receiving the message, the peer PEs clear all MAC entries in the VSI.
down: Configures the local PE to send a MAC Withdraw message that contains 0x404 TLV and 0x406 TLV to all peer PEs when the status of the AC changes to down. Upon receiving the message, the peer PEs clear all MAC entries in the VSI that are learned from a specified PW.
Usage guidelines
In a VPLS network that contains LDP PWs, BGP PWs, and BGP auto-discovery LDP PWs, this feature enables the local PE to send a MAC Withdraw message to all peer PEs upon an AC interface status change. Upon receiving the message, the peer PEs clear all MAC address entries.
Examples
# Enable the local PE to send a MAC Withdraw message to all peer PEs upon an AC interface status change in VSI vpna.
<Sysname> system-view
[Sysname] vsi vpna
[Sysname-vsi-vpna] interface-status-change up mac-withdraw enable
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 log enable
Use l2vpn log enable to enable L2VPN logging.
Use undo l2vpn log enable to disable L2VPN logging.
Syntax
l2vpn log enable
undo l2vpn log enable
Default
L2VPN logging is enabled.
Views
System view
Predefined user roles
network-admin
Usage guidelines
This feature enables L2VPN to generate logs for running state changes. The generated logs are sent to the information center. The information center processes the logs according to user-defined output rules (whether to output logs and where to output).
For more information about the information center, see information center configuration in Network Management and Monitoring Configuration Guide.
Examples
# Enable L2VPN logging.
<Sysname> system-view
[Sysname] l2vpn log 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
local-mac remove all-from-me
Use local-mac remove all-from-me to enable the device to remove only the MAC address of the PW that sent the MAC Withdraw message that contains only the 0x404 TLV after it receives the message.
Use undo local-mac remove all-from-me to restore the default.
Syntax
local-mac remove all-from-me
undo local-mac remove all-from-me
Default
The device removes all MAC address entries in a VSI after it receives a MAC Withdraw message that contains only the 0x404 TLV in the VSI.
Views
VSI view
Predefined user roles
network-admin
Usage guidelines
In a VPLS network that contains LDP PWs, BGP PWs, and BGP auto-discovery LDP PWs, when an AC or PW fails, the PE sends a MAC Withdraw message with the 0x404 TLV to notify the peer PE to clear the learned MAC entries in the VSI. In this case, the service traffic will be re-broadcasted. If the number of learned MAC addresses in the VSI is large, this practice can cause long-time service traffic broadcasting, wasting bandwidth. This command enables the PE to clear only the MAC of the PW that sent the MAC Withdraw message, avoiding the re-broadcasting of all service traffic and effectively preventing excessive broadcast traffic.
Examples
# Enable the device to remove only the MAC address of the PW that sent the MAC Withdraw message that contains only the 0x404 TLV after it receives the message in VSI vpna.
<Sysname> system-view
[Sysname] vsi vpna
[Sysname-vsi-vpna] interface-status-change up mac-withdraw enable
mac-learning enable
Use mac-learning enable to enable MAC address learning for a VSI.
Use undo mac-learning enable to disable MAC address learning for a VSI.
Syntax
mac-learning enable
undo mac-learning enable
Default
MAC address learning is enabled for a VSI.
Views
VSI view
Predefined user roles
network-admin
Usage guidelines
If MAC address learning is disabled for a VSI, the VSI does not learn the source MAC addresses of received packets.
Examples
# Disable MAC address learning for VSI vpn1.
<Sysname> system-view
[Sysname] vsi vpn1
[Sysname-vsi-vpn1] undo mac-learning enable
Related commands
display l2vpn vsi
mac-limit (Ethernet service instance view)
Use mac-limit to set the maximum number of MAC addresses that an Ethernet service instance type AC can learn and the actions performed when the maximum is reached.
Use undo mac-limit to restore the default.
Syntax
mac-limit { action { discard | forward } | alarm { disable | enable } | maximum mac-limit } *
undo mac-limit
Default
No limit is set to the number of MAC addresses that an Ethernet service instance type AC can learn.
Views
Ethernet service instance view
Predefined user roles
network-admin
Parameters
action: Specifies the action to be taken on frames with unknown source MAC addresses when the AC has learned the maximum number of MAC addresses.
· discard—Drops the frames.
· forward—Forwards the frames. This is the default action.
alarm: Enables or disables the alarm feature. The alarm feature generates a log message when the number of MAC address entries on the AC reaches the maximum or drops below 90% of the maximum.
· disable—Disables the alarm feature. This is the default setting.
· enable—Enables the alarm feature.
maximum mac-limit: Specifies the maximum number of MAC addresses that an Ethernet service instance type AC can learn. The value range for the mac-limit argument is 0 to 1048575.
Usage guidelines
Use this command to prevent a single AC from occupying too many MAC address entry resources.
Examples
# In Ethernet service instance 10 associated with VSI aaa on interface Ten-GigabitEthernet 3/0/1, limit the maximum number of MAC addresses that the instance can learn to 1024. Configure the instance to drop frames with unknown source MAC addresses when the limit is reached, and enable the alarm feature.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 3/0/1
[Sysname-Ten-GigabitEthernet3/0/1] service-instance 10
[Sysname-Ten-GigabitEthernet3/0/1-srv10] encapsulation s-vid 100
[Sysname-Ten-GigabitEthernet3/0/1-srv10] xconnect vsi aaa
[Sysname-Ten-GigabitEthernet3/0/1-srv10] mac-limit action discard alarm enable maximum 1024
Related commands
display l2vpn forwarding ac
mac-limit (VSI LDP PW view, VSI static PW view, auto-discovery VSI LDP signaling view, or auto-discovery VSI BGP signaling view)
Use mac-limit to set the maximum number of MAC addresses that a PW can learn and the actions performed when the maximum is reached.
Use undo mac-limit to restore the default.
Syntax
mac-limit { action { discard | forward } | alarm { disable | enable } | maximum mac-limit } *
undo mac-limit
Default
No limit is set to the number of MAC addresses that a PW can learn.
Views
VSI LDP PW view
VSI static PW view
Auto-discovery VSI LDP signaling view
Auto-discovery VSI BGP signaling view
Predefined user roles
network-admin
Parameters
action: Specifies the action to be taken on frames with unknown source MAC addresses when the PW has learned the maximum number of MAC addresses.
· discard—Drops the frames.
· forward—Forwards the frames. This is the default action.
alarm: Enables or disables the alarm feature. The alarm feature generates a log message when the number of MAC address entries on the AC reaches the maximum or drops below 90% of the maximum.
· disable—Disables the alarm feature. This is the default setting.
· enable—Enables the alarm feature.
maximum mac-limit: Specifies the maximum number of MAC addresses that a PW can learn. The value range for the mac-limit argument is 0 to 1048575.
Usage guidelines
Use this command to prevent a PW from occupying too many MAC address entry resources.
Examples
# On LDP PW with peer PE address 2.2.2.3 and PW ID 30, limit the maximum number of MAC addresses that the PW can learn to 1024. Configure the PW to drop frames with unknown source MAC addresses when the maximum is reached, and enable the alarm feature.
<Sysname> system-view
[Sysname] vsi aaa
[Sysname-vsi-aaa] pwsignaling ldp
[Sysname-vsi-aaa-ldp] peer 2.2.2.3 pw-id 30
[Sysname-vsi-aaa-ldp-2.2.2.3-30] mac-limit action discard alarm enable maximum 1024
Related commands
display l2vpn forwarding pw
peer (VSI auto-discovery LDP view or VSI auto-discovery BGP view)
mac-table limit (VSI view)
Use mac-table limit to set the maximum number of MAC addresses that a VSI can learn and the action performed when the maximum is reached.
Use undo mac-table limit to restore the default.
Syntax
mac-table limit { mac-limit | alarm { disable | enable } } *
undo mac-table limit
Default
No limit is set on the number of MAC addresses that a VSI can learn.
Views
VSI view
Predefined user roles
network-admin
Parameters
mac-limit: Specifies the maximum number of MAC addresses that the VSI can learn. The value range for this argument is 0 to 1048575.
alarm: Enables or disables the alarm feature. The alarm feature generates a log message when the number of MAC address entries on the AC reaches the maximum or drops below 90% of the maximum.
· disable—Disables the alarm feature. This is the default setting.
· enable—Enables the alarm feature.
Usage guidelines
Using this command can prevent a single VSI from occupying too many MAC address entry resources.
Examples
# Set the maximum number of MAC addresses that VSI vpn1 can learn to 1024.
<Sysname> system-view
[Sysname] vsi vpn1
[Sysname-vsi-vpn1] mac-table limit 1024
Related commands
display l2vpn vsi
mac-table limit drop-unknown
Use mac-table limit drop-unknown to enable a VSI to drop packets from unknown source MAC addresses after it has leaned the maximum number of MAC addresses. For packets whose source MAC addresses are in the MAC address table, the VSI forwards them.
Use undo mac-table limit drop-unknown to restore the default.
Syntax
mac-table limit drop-unknown
undo mac-table limit drop-unknown
Default
A VSI forwards packets from unknown source MAC addresses but does not learn the MAC addresses after it has learned the maximum number of MAC addresses.
Views
VSI view
Predefined user roles
network-admin
Usage guidelines
The mac-table limit drop-unknown command takes effect only when the mac-table limit command is configured to set the maximum number of MAC addresses that a VSI can learn.
The mac-table limit drop-unknown command does not take effect on traffic received from EVPN VXLAN tunnel peers and EVPN PW peers. When the number of MAC addresses learned by a VSI reaches the upper limit, the device will still forward packets received from EVPN VXLAN tunnel peers and EVPN PW peers, even if the source MAC addresses of these packets are not in the MAC address table.
Examples
# Set the maximum number of MAC addresses that VSI vpn1 can learn to 1024. Enable the VSI to drop the packets from unknown MAC addresses after it has leaned the maximum number of MAC addresses.
<Sysname> system-view
[Sysname] vsi vpn1
[Sysname-vsi-vpn1] mac-table limit 1024
[Sysname-vsi-vpn1] mac-table limit drop-unknown
Related commands
display l2vpn vsi
mac-table limit
mtu
Use mtu to set an MTU for a VSI.
Use undo mtu to restore the default.
Syntax
mtu size
undo mtu
Default
A VSI has an MTU of 1500 bytes.
Views
VSI 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 VSI MTU specifies the maximum length of a packet transmitted on a PW, 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 VSI vpn1.
<Sysname> system-view
[Sysname] vsi vpn1
[Sysname-vsi-vpn1] mtu 1400
Related commands
display l2vpn vsi
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
VSI LDP signaling 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. Configure 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 VSI LDP PW view, disable PW MTU negotiation.
<Sysname> system-view
[Sysname] vsi vpn1
[Sysname-vsi-vpn1] pwsignaling ldp
[Sysname-vsi-vpn1-ldp] mtu-negotiate disable
Related commands
mtu
peer (VSI auto-discovery LDP view or VSI auto-discovery BGP view)
Use peer to configure an auto-discovery VSI LDP signaling PW or auto-discovery VSI BGP signaling PW and enter its view, or enter the view of an existing auto-discovery VSI LDP signaling PW or auto-discovery VSI BGP signaling PW.
Use undo peer to delete a VPLS PW.
Syntax
In auto-discovery VSI LDP signaling PW view:
peer ip-address
undo peer ip-address
In auto-discovery VSI BGP signaling PW view:
peer ip-address remote-site-id remote-site-id
undo peer ip-address remote-site-id remote-site-id
Default
No PWs exist for auto-discovery VSI LDP signaling or auto-discovery VSI BGP signaling.
Views
Auto-discovery VSI LDP signaling PW view
Auto-discovery VSI BGP signaling PW view
Predefined user roles
network-admin
Parameters
ip-address: Specifies the LSR ID of the peer PE.
remote-site-id remote-site-id: Specifies a PW ID for the PW. remote-site-id represents the remote site ID, in the range of 0 to 65534.
Examples
# Configure a BGP PW for VSI vpna and enter auto-discovery VSI BGP signaling PW view: specify the peer PE address as 2.2.2.2, set the remote site ID to 1.
<Sysname> system-view
[Sysname] vsi vpna
[Sysname-vsi-vpna] auto-discovery bgp
[Sysname-vsi-vpna-auto] signaling-protocol bgp
[Sysname-vsi-vpna-auto-bgp] peer 2.2.2.2 remote-site-id 1
[Sysname-vsi-vpna-auto-bgp-2.2.2.2-1]
# Configure an LDP PW for VSI vpna and enter auto-discovery VSI LDP signaling PW view, and specify the peer PE address as 2.2.2.2.
<Sysname> system-view
[Sysname] vsi vpna
[Sysname-vsi-vpna] auto-discovery bgp
[Sysname-vsi-vpna-auto] signaling-protocol ldp
[Sysname-vsi-vpna-auto-ldp] peer 2.2.2.2
[Sysname-vsi-vpna-auto-ldp-2.2.2.2]
Related commands
· mac-limit
· restrain
peer (VSI LDP view or VSI static view)
Use peer in VSI LDP signaling view to configure a VSI LDP PW and enter its view, or enter the view of an existing VSI LDP PW.
Use peer in VSI static configuration view to configure a VSI static PW and enter its view, or enter the view of an existing VSI static PW.
Use undo peer to delete a VPLS PW.
Syntax
In VSI LDP signaling view:
peer ip-address [ pw-id pw-id ] [ dci | hub | ignore-standby-state | no-split-horizon | pw-class class-name | tunnel-policy tunnel-policy-name ] *
undo peer ip-address pw-id pw-id
In VSI static configuration view:
peer ip-address [ pw-id pw-id ] [ in-label label-value out-label label-value [ dci | hub | no-split-horizon | pw-class class-name | tunnel-policy tunnel-policy-name ] * ]
undo peer ip-address pw-id pw-id
Default
No PWs exist for VPLS.
Views
VSI LDP signaling view
VSI static configuration 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.
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.
dci: Establishes a DCI PW between EDs in a DCI network. You can configure an ESI for a DCI PW. PWs with the same ESI belong to the same ES and are used for dual homing of the remote ED. DCI PWs use split horizon for packet forwarding to avoid loops. If you do not specify this keyword, the PW is established within the data center.
hub: Specifies the PW as the hub link in the VSI. By default, a PW in the VSI enabled with the hub-spoke capability is a spoke link.
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.
no-split-horizon: Disables split horizon forwarding for the PW. By default, a PW must use the split horizon forwarding scheme to forward packets.
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 VLAN and the PW does not support control word.
tunnel-policy tunnel-policy-name: Specifies a tunnel policy by its name, a case-insensitive string of 1 to 126 characters. If you do not specify a tunnel policy, the PW uses the default tunnel policy.
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 VSI static PW view of an existing static PW, you do not need to specify the incoming and outgoing labels.
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.
If both the default PW ID in the default-pw-id command and a PW ID in the peer command are configured, the PW ID in the peer command is used. If only the default PW ID is configured, the default PW ID is used. If no default PW ID is configured, you must provide a PW ID in the peer command.
If you specify both the dci and no-split-horizon keywords when executing this command, the no-split-horizon keyword does not take effect.
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 for VSI vpn1 and enter VSI LDP PW view: specify the peer PE address as 4.4.4.4, set the PW ID to 200, and disable split horizon forwarding for the PW.
<Sysname> system-view
[Sysname] vsi vpn1
[Sysname-vsi-vpn1] pwsignaling ldp
[Sysname-vsi-vpn1-ldp] peer 4.4.4.4 pw-id 200 no-split-horizon
[Sysname-vsi-vpn1-ldp-4.4.4.4-200]
# Configure a static PW for VSI vpn1 and enter VSI static PW view: specify the peer PE address as 5.5.5.5, set the PW ID to 200, incoming label to 100, and outgoing label to 200, and disable split horizon forwarding for the PW.
<Sysname> system-view
[Sysname] vsi vpn1
[Sysname-vsi-vpn1] pwsignaling static
[Sysname-vsi-vpn1-static] peer 5.5.5.5 pw-id 200 in-label 100 out-label 200 no-split-horizon
[Sysname-vsi-vpn1-static-5.5.5.5-200]
Related commands
default-pw-id
display l2vpn ldp
display l2vpn pw
pw-class
tunnel-policy
peer auto-discovery
Use peer auto-discovery to enable BGP to exchange VPLS PE information with the specified peers.
Use undo peer auto-discovery to disable BGP from exchanging VPLS PE information with the specified peers.
Syntax
peer { group-name | ip-address [ mask-length ] } auto-discovery [ non-standard ]
undo peer { group-name | ip-address [ mask-length ] } auto-discovery
Default
BGP can exchange VPLS PE information with a BGP L2VPN peer or peer group through RFC 6074 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 VPLS PE information with all dynamic peers in the subnet.
non-standard: Uses non-standard MP_REACH_NLRI to exchange VPLS PE information. If you do not specify this keyword, RFC 6074 MP_REACH_NLRI is used to exchange VPLS PE information.
Usage guidelines
L2VPN can use MP-BGP to exchange VPLS PE information and find remote PEs in the same VPLS instance.
To enable BGP to exchange VPLS PE information with the specified peers through RFC 6074 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 auto-discovery command.
Examples
# Enable BGP to exchange VPLS PE information with the peer 3.3.3.9 through RFC 6074 MP_REACH_NLRI.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp-default] address-family l2vpn
[Sysname-bgp-default-l2vpn] peer 3.3.3.9 auto-discovery
Related commands
display bgp l2vpn auto-discovery
peer signaling
Use peer signaling to enable BGP to exchange label block information with the specified peers.
Use undo peer signaling to disable BGP to exchange label block information with the specified peers.
Syntax
peer { group-name | ip-address [ mask-length ] } signaling
undo peer { group-name | ip-address [ mask-length ] } signaling
Default
BGP can exchange label block information with a BGP L2VPN peer or peer group.
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.
Usage guidelines
L2VPN uses MP-BGP to exchange label blocks when creating a BGP PW.
To enable BGP to exchange label block information with the specified peers, 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 peer 3.3.3.9.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp-default] address-family l2vpn
[Sysname-bgp-default-l2vpn] peer 3.3.3.9 signaling
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
pw-class (auto-discovery VSI view)
Use pw-class to specify a PW class for an auto-discovery VSI.
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 VSI 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 on the auto-discovery VSI.
Examples
# Specify a PW class named pw100 for auto-discovery VSI aaa.
<Sysname> system-view
[Sysname] pw-class pw100
[Sysname-pw-pw100] quit
[Sysname] vsi aaa
[Sysname-vsi-aaa] auto-discovery bgp
[Sysname-vsi-aaa-auto] pw-class pw100
Related commands
control-word enable
display l2vpn pw-class
pw-type
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
VSI view
Predefined user roles
network-admin
Examples
# Enable the dual receive feature for VSI vpn1.
<Sysname> system-view
[Sysname] vsi vpn1
[Sysname-vsi-vpn1] protection dual-receive
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. A PW class simplifies PW attribute configuration for PWs that have the same PW attributes. You can configure the PW attributes in a PW class, and specify the PW class for the PWs.
Examples
# Create a PW class named pw100 and enter PW class 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
VSI LDP signaling 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 VSI LDP signaling view, specify the master/slave PW redundancy operation mode and use the local PE as the master node.
<Sysname> system-view
[Sysname] vsi aaa
[Sysname-vsi-aaa] pwsignaling ldp
[Sysname-vsi-aaa-ldp] pw-redundancy master
Related commands
backup-peer
display l2vpn ldp
display l2vpn pw
peer
pwsignaling
Use pwsignaling to specify a PW signaling protocol for a VSI, and enter the VSI signaling protocol view.
Use undo pwsignaling to remove the specified PW signaling protocol for a VSI.
Syntax
pwsignaling { ldp | static }
undo pwsignaling { ldp | static }
Default
No PW signaling protocol is specified for a VSI.
Views
VSI view
Predefined user roles
network-admin
Parameters
ldp: Establishes PWs through LDP (FEC 128) and enters VSI LDP signaling view.
static: Establishes PWs statically and enters VSI static configuration view.
Examples
# Configure VSI vpn1 to use LDP to establish LDP PWs, and enter VSI LDP signaling view.
<Sysname> system-view
[Sysname] vsi vpn1
[Sysname-vsi-vpn1] pwsignaling ldp
[Sysname-vsi-vpn1-ldp]
Related commands
display l2vpn pw
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 } [ force-for-vpls ]
undo pw-type
Default
The PW data encapsulation type for a PW class 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.
force-for-vpls: Forces VPLS to use and advertise the specified encapsulation type (Ethernet or VLAN). If you do not specify this keyword, the device always advertises the BGP-VPLS encapsulation type for VPLS BGP PW establishment.
Usage guidelines
When the PW data encapsulation type is Ethernet, the PE encapsulates packets forwarded between the AC and PW as follows:
· Traffic from the AC to the PW cannot carry the P-tag assigned by the service provider.
¡ If traffic from the AC has the P-tag, the PE removes the P-tag, and adds a PW label and an outer tag into the packet before forwarding it.
¡ If traffic from the AC does not have the P-tag, the PE adds a PW label and an outer tag into the packet before forwarding it.
· For traffic received from the PW:
¡ If the AC access mode is VLAN, the PE adds the P-tag and forwards the traffic through the AC.
¡ If the AC access mode is Ethernet, the PE directly forwards the traffic through the AC. The PE cannot modify or delete the P-tag for the traffic from the PW.
When the PW data encapsulation type is VLAN, the PE encapsulates packets forwarded between the AC and PW as follows:
· Traffic from the AC to the PW must carry the P-tag.
¡ If traffic from the AC has the P-tag, the PE performs one of the following operations:
- Keeps the P-tag when the peer PE does not require the ingress to modify the P-tag.
- Changes the P-tag to the expected value (which can be zero) when the peer PE requires the ingress to modify the P-tag. Then, the PE adds a PW label and an outer tag into the packet before forwarding it.
¡ If traffic from the AC does not have the P-tag, the PE performs one of the following operations:
- Adds a P-tag of 0 when the peer PE does not require the ingress to modify the P-tag.
- Adds the expected P-tag (which can be zero) when the peer PE requires the ingress to modify the P-tag. Then, the PE adds a PW label and an outer tag into the packet before forwarding it.
· For traffic received from the PW:
¡ If the AC access mode is VLAN, the PE modifies or keeps the P-tag and forwards the traffic through the AC.
¡ If the AC access mode is Ethernet, the PE removes the P-tag and forwards the traffic through the AC.
Use the force-for-vpls keyword only when you establish BGP PWs between Comware 7 devices and Comware 5 devices.
To ensure successful negotiation of the encapsulation type during VPLS BGP PW establishment between a Comware 7 device and a Comware 5 device, perform the following tasks:
· Configure the same encapsulation type on the devices.
· Specify the force-for-vpls keyword on the Comware 7 device if the Comware 5 device uses the Ethernet or VLAN encapsulation type.
To ensure successful PW establishment, configure the same encapsulation type for all devices in a VPLS instance.
Examples
# Configure the PW data encapsulation type as Ethernet.
<Sysname> system-view
[Sysname] pw-class pw100
[Sysname-pw-pw100] pw-type ethernet
Related commands
display l2vpn pw-class
reset l2vpn mac-address
Use reset l2vpn mac-address to clear MAC address entries for VSIs.
Syntax
reset l2vpn mac-address [ vsi vsi-name ]
Views
User view
Predefined user roles
network-admin
Parameters
vsi vsi-name: Specifies a VSI by its name, a case-sensitive string of 1 to 31 characters. If you do not specify a VSI, this command clears MAC address entries for all VSIs.
Usage guidelines
When a VSI learns wrong MAC addresses or has learned the maximum number of MAC addresses, use this command to clear MAC addresses for the VSI. Then, the VSI can learn MAC addresses again.
Examples
# Clear MAC address entries for VSI vpn1.
<Sysname> reset l2vpn mac-address vsi vpn1
Related commands
display l2vpn mac-address vsi
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 interface 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 [ vsi vsi-name [ link link-id ] ]
Views
User view
Predefined user roles
network-admin
Parameters
vsi vsi-name: Specifies a VSI by its name, a case-sensitive string of 1 to 31 characters. If you do not specify a VSI, this command clears packet statistics for the PWs in all VSIs.
link link-id: Specifies a PW by its link ID in the range of 0 to 65534. If you do not specify a link ID, this command clears packet statistics for all PWs in the specified VSI.
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
restrain
Use restrain to set the broadcast, unknown multicast, or unknown unicast suppression bandwidth.
Use undo restrain to restore the default.
Syntax
restrain { broadcast | multicast | unknown-unicast } bandwidth
undo restrain { broadcast | multicast | unknown-unicast }
Default
The broadcast, unknown multicast, and unknown unicast suppression bandwidth for a VSI is 5120 kbps.
No broadcast, unknown multicast, or unknown unicast suppression bandwidth values are configured for ACs and PWs.
Views
VSI view
Interface view
Ethernet service instance view
VSI LDAP PW view
VSI static PW view
Auto-discovery VSI LDP signaling PW view
Auto-discovery VSI BGP signaling PW view
Predefined user roles
network-admin
Parameters
broadcast: Specifies the broadcast suppression bandwidth.
multicast: Specifies the unknown multicast suppression bandwidth.
unknown-unicast: Specifies the unknown unicast suppression bandwidth. Unknown unicast packets refer to the unicast packets whose destination MAC addresses are not in the MAC address table of the VSI.
bandwidth: Specifies the broadcast, multicast, or unknown unicast suppression bandwidth in kbps. The value range for this argument is 0 to 4194303.
Usage guidelines
When the bandwidth of broadcast, multicast, or unknown unicast traffic exceeds the configured suppression bandwidth, the device drops the exceeding traffic.
Examples
# Set the broadcast, multicast, and unknown unicast suppression bandwidth all to 100 kbps for the VSI vpn1.
<Sysname> system-view
[Sysname] vsi vpn1
[Sysname-vsi-vpn1] restrain broadcast 100
[Sysname-vsi-vpn1] restrain multicast 100
[Sysname-vsi-vpn1] restrain unknown-unicast 100
Related commands
display l2vpn vsi
peer (VSI auto-discovery LDP view or VSI auto-discovery BGP view)
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 back from the backup PW to the primary PW.
Views
VSI static configuration 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 static PWs in VSI vpn1.
<Sysname> system-view
[Sysname] vsi vpn1
[Sysname-vsi-vpn1] pwsignaling static
[Sysname-vsi-vpn1-static] 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 VSI.
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 VSI by using the undo xconnect vsi 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.
This command is mutually exclusive with the vlan-type dot1q vid vlan-id-list second-dot1q any command on a Layer 3 subinterface. For more information about the vlan-type dot1q vid second-dot1q command, see VLAN termination commands in Layer 2—LAN Switching Command Reference.
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 hub spoke capability of the VSI associated with the AC as well as the VLAN termination configuration, as shown in Table 31 and Table 32. 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 hub spoke capability of the VSI associated with the AC as well as the match criteria of the Ethernet service instance, as shown in Table 31 and Table 32. 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 or QinQ termination is used when the vlan-id-list argument specifies multiple VLAN IDs.
Table 31 Hub spoke is disabled
Keyword |
Layer 3 interface |
Layer 3 subinterface |
Ethernet service instance |
|||
Dot1q termination |
QinQ termination |
Untagged termination |
Dot1q termination |
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 |
Supported |
Not supported |
Supported |
Supported |
strip s-vid c-vid |
Not supported |
Not supported |
Supported |
Not supported |
Not supported |
Supported |
swap |
Not supported |
Not supported |
Supported |
Not supported |
Not supported |
Supported |
remark 1-to-1 |
Not supported |
Supported |
Supported |
Not supported |
Supported |
Supported |
remark 2-to-1 |
Not supported |
Not supported |
Supported |
Not supported |
Not supported |
Supported |
remark 1-to-2 |
Not supported |
Supported |
Supported |
Not supported |
Supported |
Supported |
remark 2-to-2 |
Not supported |
Not supported |
Supported |
Not supported |
Not supported |
Supported |
remark offset |
Not supported |
Supported |
Supported |
Not supported |
Supported |
Supported |
Keyword |
Layer 3 interface |
Layer 3 subinterface |
Ethernet service instance |
|||
Unambiguous Dot1q termination |
Ambiguous Dot1q termination |
Unambiguous Dot1q termination |
Unambiguous Dot1q termination |
Unambiguous QinQ termination |
||
nest s-vid |
Supported |
Supported |
Supported |
Supported |
Supported |
Not supported |
nest s-vid c-vid |
Supported |
Supported |
Supported |
Supported |
Supported |
Not supported |
strip s-vid |
Not supported |
Supported |
Not supported |
Not supported |
Supported |
Not supported |
strip s-vid c-vid |
Not supported |
Not supported |
Not supported |
Not supported |
Not supported |
Not supported |
swap |
Not supported |
Not supported |
Not supported |
Not supported |
Not supported |
Not supported |
remark 1-to-1 |
Not supported |
Supported |
Not supported |
Not supported |
Supported |
Not supported |
remark 2-to-1 |
Not supported |
Not supported |
Not supported |
Not supported |
Not supported |
Not supported |
remark 1-to-2 |
Not supported |
Supported |
Not supported |
Not supported |
Supported |
Not supported |
remark 2-to-2 |
Not supported |
Not supported |
Not supported |
Not supported |
Not supported |
Not supported |
remark offset |
Not supported |
Supported |
Supported |
Not supported |
Supported |
Not supported |
Examples
# Configure Layer 3 Ethernet interface GigabitEthernet 1/0/1 to add outer VLAN tag 100 to incoming packets.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] rewrite inbound tag nest s-vid 100
root-vlan
Use root-vlan to configure root and leaf VLAN IDs for E-Tree.
Use undo root-vlan to remove the configuration.
Syntax
root-vlan vlan-id leaf-vlan vlan-id
undo root-vlan
Default
No root or leaf VLAN ID is configured.
Views
VSI E-Tree view
Predefined user roles
network-admin
Parameters
vlan-id: Specifies a root VLAN ID in the range of 1 to 4094.
leaf-vlan vlan-id: Specifies a leaf VLAN ID in the range of 1 to 4094.
Usage guidelines
In an E-Tree network, a PE identifies the role of a PW by using the VLAN ID in the received packets.
In a static E-Tree network, the local and remote PEs on a PW must have the same root VLAN ID and the same leaf VLAN ID.
Examples
# Set the root VLAN ID and leaf VLAN ID to 100 and 200, respectively.
<Sysname> system-view
[Sysname] vsi vsi1
[Sysname-vsi-vsi1] e-tree static
[Sysname-vsi-vsi1-etree] root-vlan 100 leaf-vlan 200
Related commands
e-tree
e-tree leaf
e-tree mode
route-distinguisher
Use route-distinguisher to configure a route distinguisher (RD) for an auto-discovery VSI.
Use undo route-distinguisher to restore the default.
Syntax
route-distinguisher route-distinguisher
undo route-distinguisher
Default
No RD is configured for an auto-discovery VSI.
Views
Auto-discovery VSI 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
VPLS 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.
The configured RD applies to both BGP neighbor auto-discovery and VPLS label block advertisement.
You cannot configure the same RD for different BGP VSIs.
To modify an RD, execute the undo route-distinguisher command to remove the RD and then execute the route-distinguisher command.
Examples
# Configure RD 22:1 for BGP VSI aaa.
<Sysname> system-view
[Sysname] vsi aaa
[Sysname-vsi-aaa] auto-discovery bgp
[Sysname-vsi-aaa-auto] route-distinguisher 22:1
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
Use shutdown to disable a VSI.
Use undo shutdown to enable a VSI.
Syntax
shutdown
undo shutdown
Default
A VSI is enabled.
Views
VSI view
Predefined user roles
network-admin
Usage guidelines
After you disable a VSI, the VSI cannot provide VPLS services.
Use the shutdown command when you want to temporarily disable VPLS. When a VSI is disabled, you can still configure the VSI. After the configuration, use the undo shutdown command to enable the VSI. The VSI will provide VPLS services using the new settings.
Examples
# Disable VSI vpn1.
<Sysname> system-view
[Sysname] vsi vpn1
[Sysname-vsi-vpn1] shutdown
Related commands
display l2vpn vsi
signaling-protocol
Use signaling-protocol to specify a signaling protocol and enter the specified signaling view. The specified signaling protocol is used to establish PWs to the automatically discovered remote PEs.
Use undo signaling-protocol to restore the default.
Syntax
signaling-protocol { bgp | ldp }
undo signaling-protocol
Default
No signaling protocol is specified.
Views
Auto-discovery VSI view
Predefined user roles
network-admin
Parameters
bgp: Specifies the signaling protocol as BGP and enters auto-discovery VSI BGP signaling view.
ldp: Specifies the signaling protocol as LDP and enters auto-discovery VSI LDP signaling view.
Usage guidelines
You can specify only one signaling protocol in the same auto-discovery VSI view. To modify the signaling protocol, execute the undo signaling-protocol command to remove the signaling protocol and then execute the signaling-protocol command.
Examples
# Use LDP (FEC 129) to establish a PW to a remote PE discovered by BGP and enter auto-discovery VSI LDP signaling view.
<Sysname> system-view
[Sysname] vsi aaa
[Sysname-vsi-aaa] auto-discovery bgp
[Sysname-vsi-aaa-auto] signaling-protocol ldp
[Sysname-vsi-aaa-auto-ldp]
Related commands
display l2vpn pw
display l2vpn vsi
site
Use site to create a local site.
Use undo site to delete the local site.
Syntax
site site-id [ range range-value ] [ default-offset default-offset ]
undo site
Default
No sites exist.
Views
Auto-discovery VSI BGP signaling view
Predefined user roles
network-admin
Parameters
site-id: Specifies a local site ID. The value range is 0 to 65534.
range range-value: Specifies the maximum number of sites in a VPLS instance, in the range of 2 to 65535. The default value is 10.
default-offset default-offset: Specifies the start site ID, 0 or 1. The default value is 0.
Usage guidelines
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.
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 VPLS instance to contain a maximum of 30 sites, and set the start site ID to 0 for VSI aaa.
<Sysname> system-view
[Sysname] vsi aaa
[Sysname-vsi-aaa] auto-discovery bgp
[Sysname-vsi-aaa-auto] signaling-protocol bgp
[Sysname-vsi-aaa-auto-bgp] site 1 range 30 default-offset 0
Related commands
display l2vpn pw
display l2vpn vsi
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 [ label-resource | maclimit-ac | maclimit-pw | maclimit-vsi | pw-delete | pw-limitnum | pw-parameter | pw-switch | pw-up-down | vsi-delete | vsi-state-change ] *
undo snmp-agent trap enable l2vpn [ label-resource | maclimit-ac | maclimit-pw | maclimit-vsi | pw-delete | pw-limitnum | pw-parameter | pw-switch | pw-up-down | vsi-delete | vsi-state-change ] *
Default
SNMP notifications for L2VPN PW are disabled.
Views
System view
Predefined user roles
network-admin
Parameters
label-resource: Enables PW label resource insufficiency notifications.
maclimit-ac: Enables the system to generate notifications when the number of MAC addresses learned by an AC reaches the limit.
maclimit-pw: Enables the system to generate notifications when the number of MAC addresses learned by a PW reaches the limit.
maclimit-vsi: Enables the system to generate notifications when the number of MAC addresses learned by a VSI reaches the limit.
pw-delete: Enables PW deletion notifications.
pw-switch: Enables PW primary/backup switchover notifications.
pw-up-down: Enables PW up-down notifications.
vsi-delete: Enables VSI deletion notifications.
pw-limitnum: Enables the system to generate notifications when the number of PWs in a VSI reaches the limit.
pw-parameter: Enables PW negotiation parameter inconsistency notifications.
vsi-state-change: Enables VSI state change notifications.
Usage guidelines
This feature enables L2VPN to generate SNMP notifications when the number of MAC addresses learned by an AC/PW/VSI reaches the limit, the number of PWs in a VSI reaches the limit, or VSI state change, PW label resource insufficiency, PW negotiation parameter inconsistency, PW deletion, PW switchover, or PW status change occurs. For L2VPN event notifications to be sent correctly, you must also configure SNMP on the device. For more information about SNMP configuration, see Network Management and Monitoring Configuration Guide.
If you do not specify a notification type, this command enables all types of notifications for L2VPN PW.
Examples
# Enable PW up-down SNMP 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 (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 VSI. If you change the packet match criterion or the bound VSI 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
Examples
display l2vpn service-instance verbose
reset l2vpn statistics ac
statistics enable (VSI LDP PW view/VSI static 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
VSI LDP PW view
VSI static 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.
Examples
# Enable packet statistics for a PW.
<Sysname> system-view
[Sysname] vsi vpn1
[Sysname-vsi-vpn1] pwsignaling ldp
[Sysname-vsi-vpn1-ldp] peer 4.4.4.4 pw-id 100
[Sysname-vsi-vpn1-ldp-4.4.4.4-100] statistics enable
Related commands
display l2vpn pw
reset l2vpn statistics pw
tunnel-policy (auto-discovery VSI view)
Use tunnel-policy to specify a tunnel policy for an auto-discovery VSI.
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 VSI 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 VSI 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 auto-discovery VSI aaa.
<Sysname> system-view
[Sysname] tunnel-policy policy1
[Sysname-tunnel-policy-policy1] quit
[Sysname] vsi aaa
[Sysname-vsi-aaa] auto-discovery bgp
[Sysname-vsi-aaa-auto] tunnel-policy policy1
Related commands
tunnel-policy (system view)
vpls-id
Use vpls-id to set the VPLS ID for a VSI.
Use undo vpls-id to restore the default.
Syntax
vpls-id vpls-id
undo vpls-id
Default
No VPLS ID is specified for a VSI.
Views
Auto-discovery VSI LDP signaling view
Predefined user roles
network-admin
Parameters
vpls-id: Specifies a VPLS ID, a string of 3 to 21 characters. You can specify a VPLS ID 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.
Usage guidelines
A VPLS ID uniquely identifies a VPLS instance. Two PEs must have the same VPLS ID to establish a PW.
VPLS IDs are used in the scenarios where BGP is used to find remote PEs and where FEC 129 LDP is used to establish PWs to the remote PEs.
The local PE advertises a BGP update that includes the configured VPLS ID as an extended community attribute to the remote PE. The remote PE compares the received VPLS ID with its own VPLS ID. If the two VPLS IDs are identical, the two PEs use FEC 129 LDP to establish a PW. If not, the PEs do not establish a PW.
To change a VPLS ID, execute the undo vpls-id command to remove the VPLS ID and then execute the vpls-id command.
Examples
# Configure the VPLS ID 100:1 for VSI aaa.
<Sysname> system-view
[Sysname] vsi aaa
[Sysname-vsi-aaa] auto-discovery bgp
[Sysname-vsi-aaa-auto] signaling-protocol ldp
[Sysname-vsi-aaa-auto-ldp] vpls-id 100:1
Related commands
display l2vpn pw
display l2vpn vsi
vpn-target
Use vpn-target to configure route targets for an auto-discovery VSI.
Use undo vpn-target to remove route targets for an auto-discovery VSI.
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 an auto-discovery VSI.
Views
Auto-discovery VSI 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 an auto-discovery VSI.
Examples
# Configure import route targets as 10:1 100:1 1000:1 and export route targets as 20:1 200:1 2000:1 for auto-discovery VSI aaa.
<Sysname> system-view
[Sysname] vsi aaa
[Sysname-vsi-aaa] auto-discovery bgp
[Sysname-vsi-aaa-auto] vpn-target 10:1 100:1 1000:1 import-extcommunity
[Sysname-vsi-aaa-auto] vpn-target 20:1 200:1 2000:1 export-extcommunity
vsi
Use vsi to create a VSI and enter its view, or enter the view of an existing VSI.
Use undo vsi to delete a VSI.
Syntax
vsi vsi-name [ hub-spoke ]
undo vsi vsi-name
Default
No VSIs exist.
Views
System view
Predefined user roles
network-admin
Parameters
vsi-name: Specifies a name for the VSI, a case-sensitive string of 1 to 31 characters.
hub-spoke: Enables the hub-spoke capability for the VSI. If you do not specify this keyword, the VSI does not have the hub-spoke capability.
Usage guidelines
You can create multiple PWs for a VSI manually, or by using LDP or BGP.
Hub-spoke is a VPLS networking model that includes one hub site and multiple spoke sites. The spoke sites communicate with one another through the hub site.
For a hub-spoke network, you must enable the hub-spoke capability for the VSI. In the VSI with hub-spoke capability, the link (AC or PW) towards the hub site is the hub link and other links towards the branch sites are spoke links. By default, all links in the VSI are spoke links. You must specify an AC or a PW as the hub link in the VSI when you configure the xconnect vsi command or the peer command.
Examples
# Create a VSI named vpls1 and enter VSI view.
<Sysname> system-view
[Sysname] vsi vpls1
[Sysname-vsi-vpls1]
Related commands
display l2vpn vsi
xconnect vsi
Use xconnect vsi to bind a Layer 3 interface or an Ethernet service instance to a VSI.
Use undo xconnect vsi to restore the default.
Syntax
xconnect vsi vsi-name [ access-mode { ethernet | vlan } | { hub | leaf } ] * [ track track-entry-number&<1-3> ]
undo xconnect vsi
Default
An interface or an Ethernet service instance is not bound to any VSI.
Views
Layer 3 interface view
Ethernet service instance view
Predefined user roles
network-admin
Parameters
vsi-name: Specifies the name of a VSI, a case-sensitive string of 1 to 31 characters.
access-mode: Specifies the AC access mode.
· When the AC is a Layer 3 interface, the default access mode is Ethernet, and this keyword cannot be specified.
· When the AC is a Layer 3 subinterface, the default access mode is VLAN.
· When the AC is an Ethernet service instance, the default access mode is VLAN.
ethernet: Specifies the access mode as Ethernet.
vlan: Specifies the access mode as VLAN.
hub: Specifies the AC as the hub link in the VSI. By default, an AC bound to a VSI enabled with hub-spoke capability is a spoke link in the VSI.
leaf: Specifies the AC as a leaf AC in the E-Tree network. The AC acts as a root AC by default.
track track-entry-number&<1-3>: Specifies a space-separated list of up to three 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 bind a Layer 3 interface to a VSI, packets received from the interface are forwarded according to the MAC address table of the VSI. After you bind an Ethernet service instance to a VSI, packets matching the service instance are forwarded according to the MAC address table of the VSI.
The Ethernet service instance specified in this command must have a packet match criterion configured by the encapsulation command.
If the link type of the specified subinterface is hub, the subinterface does not support the vlan-type dot1q vid second-dot1q command. For more information about the vlan-type dot1q vid second-dot1q command, see VLAN termination commands in Layer 2—LAN Switching Command Reference.
Table 33 shows the description and usage guidelines for the parameters in this command.
Table 33 Description and usage guidelines for command parameter
Parameter |
Usage guidelines |
access-mode { ethernet | vlan } |
The AC access mode determines how the device (PE) considers the VLAN tag in Ethernet frames received from the CE and how the PE forwards Ethernet frames to the CE. · VLAN access mode—Ethernet frames received from the CE must carry a VLAN tag in the Ethernet header. The PE considers the VLAN tag as a P-tag assigned by the service provider. Ethernet frames sent to the CE must also carry the P-tag. · Ethernet access mode—If Ethernet frames from the CE have a VLAN tag in the header, the PE considers it as a U-tag and ignores it. Ethernet frames sent to the CE do not carry the P-tag. |
hub |
To specify the AC as the hub link by using this command, you must first enable the hub-spoke capability for the specified VSI. By default, an AC is a spoke link in a VSI enabled with the hub-spoke capability. |
leaf |
Specify this keyword to configure the AC as a leaf AC. In an E-Tree network, a root AC can communicate with any root or leaf AC, while a leaf AC can communicate only with a root AC. Designate an AC as a root or leaf AC as needed. By default, an AC acts as a root AC in an E-Tree network. |
Examples
# Bind Ten-GigabitEthernet 3/0/1 to VSI vpn1, and associate the interface with track entries 1, 2, and 3.
<Sysname> system-view
[Sysname] vsi vpn1
[Sysname-vsi-vpn1] quit
[Sysname] interface ten-gigabitethernet 3/0/1
[Sysname-Ten-GigabitEthernet3/0/1] xconnect vsi vpn1 track 1 2 3
Related commands
display l2vpn interface
display l2vpn service-instance
encapsulation
vlan-type dot1q vid second-dot1q (Layer 2—LAN Switching Command Reference)
vsi