- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
09-VPLS commands | 312.71 KB |
Contents
display bgp l2vpn auto-discovery
display bgp update-group l2vpn
display l2vpn service-instance
pw-class (auto-discovery VSI view)
address-family l2vpn
Use address-family l2vpn to create the BGP L2VPN address family and enter BGP L2VPN address family view.
Use undo address-family l2vpn to delete the BGP L2VPN address family and all settings from BGP L2VPN address family view.
Syntax
address-family l2vpn
undo address-family l2vpn
Default
The BGP L2VPN address family is not created.
Views
BGP view
Predefined user roles
network-admin
mdc-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] address-family l2vpn
[Sysname-bgp-l2vpn]
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 disable BGP auto-discovery for a VSI.
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
mdc-admin
Parameters
bgp: Enables the VSI to automatically discover neighbors through BGP.
Usage guidelines
In auto-discovery VSI view, you can configure parameters such as the local site, VPLS ID, and route targets for BGP, so the local PE can use BGP to discover remote PEs.
You can use the signaling-protocol command to specify the signaling protocol, LDP or BGP, to establish PWs to the remote PEs found by BGP.
Examples
# Enable the 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 backup-peer to configure a backup PW for VPLS and enter VSI LDP backup PW view or VSI static backup PW view. If the specified backup PW already exists, this command places you in VSI LDP backup PW view or VSI static backup PW view.
Use undo backup-peer to delete a backup PW for VPLS.
Syntax
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
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 PW is configured for VPLS.
Views
VSI LDP PW view, VSI static PW view
Predefined user roles
network-admin
mdc-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, in the range of 16 to 1023.
out-label label-value: Specifies the outgoing label for the backup PW, in the range of 16 to 1023.
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 type and control word for the backup PW. If you do not specify a PW class, the PW 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 19 characters. If no tunnel policy is specified, 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.
A backup PW has the same hub and no-split-horizon attributes as its primary PW.
You must assign the backup PW a different peer LSR ID and PW ID than any existing VPLS PWs or cross-connect PWs.
If both a 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 a 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.
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
control-word enable
Use control-word enable to enable the control word feature.
Use undo control-word enable to restore the default.
Syntax
control-word enable
undo control-word enable
Default
Control word is disabled.
Views
PW class view
Predefined user roles
network-admin
mdc-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 field has the following functions:
· Avoid fragment disorder. In multi-path 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.
For packets transmitted on a PW to carry the control word field, you must enable the control word feature on both PEs of the PW.
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 delete the default PW ID for a VSI.
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
mdc-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 delete the description of a VSI.
Syntax
description text
undo description
Default
No description is configured for a VSI.
Views
VSI view
Predefined user roles
network-admin
mdc-admin
Parameters
text: Specifies a VSI 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 group l2vpn
Use display bgp group l2vpn to display information about BGP L2VPN peer groups.
Syntax
display bgp group l2vpn [ group-name ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
group-name: Displays detailed information about the BGP L2VPN peer group specified by its name, a case-sensitive string of 1 to 47 characters. If you do not specify a peer group, this command displays brief information about all BGP L2VPN peer groups.
Examples
# Display brief information about all BGP L2VPN peer groups.
<Sysname> display bgp group l2vpn
BGP peer group: group1
Remote AS: not specified
Type: external
Members:
10.1.1.1
# Display detailed information about the BGP L2VPN peer group group1.
<Sysname> display bgp group l2vpn group1
BGP peer group: group1
Remote AS: 600
Type: external
Maximum number of prefixes allowed: 4294967295
Threshold: 75%
Configured hold time: 180 seconds
Keepalive time: 60 seconds
Minimum time between advertisements: 30 seconds
Peer preferred value: 0
Routing policy configured:
No routing policy is configured
Members:
Peer AS MsgRcvd MsgSent OutQ PrefRcv Up/Down State
10.1.1.1 600 0 0 0 0 00:00:05 Idle
Table 1 Command output
Field |
Description |
Type |
Type of the peer group: · external—EBGP peer group. · internal—IBGP peer group. |
Maximum number of prefixes allowed |
This field is ignored in BGP L2VPN. |
Threshold |
This field is ignored in BGP L2VPN. |
Peer preferred value |
This field is ignored in BGP L2VPN. |
Routing policy configured |
This field is ignored in BGP L2VPN. |
MsgRcvd |
Number of messages received from the peer. |
MsgSent |
Number of messages sent to the peer. |
OutQ |
Number of messages to be sent to the peer. |
PrefRcv |
Number of label block messages received from the peer. |
display bgp l2vpn auto-discovery
Use display bgp l2vpn auto-discovery to display VPLS PE information discovered by BGP.
Syntax
display bgp 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
mdc-admin
mdc-operator
Parameters
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, such as 101:3.
· 32-bit IP address:16-bit user-defined number, such as 192.168.122.15:1.
· 32-bit AS number:16-bit user-defined number, such as 65536:1. In this format, the minimum value of the AS number is 65536.
pe-address ip-address: Displays BGP VPLS PE information for the specified PE.
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.
<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 2 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.
<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 3 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 of the PE. |
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: · i – IGP—Originated in the AS. · e – 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.
<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 information about BGP VPLS label blocks.
Syntax
display bgp 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
mdc-admin
mdc-operator
Parameters
ip-address: Displays VPLS label block information advertised to or received from a BGP peer specified by its IP 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, such as 101:3.
· 32-bit IP address:16-bit user-defined number, such as 192.168.122.15:1.
· 32-bit AS number:16-bit user-defined number, such as 65536:1. In this format, the minimum value of the AS number is 65536.
site-id site-id: Displays BGP VPLS label block information for the specified site. The value range for the site ID is 0 to 65535.
label-offset label-offset: Displays information about the BGP VPLS label block with the specified 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.
<Sysname> display bgp l2vpn signaling
BGP local router ID is 192.168.1.135
Status codes: * - valid, > - best, d - dampened, h - history,
s - suppressed, S - stale, i - internal, e - external
Origin: i - IGP, e - EGP, ? - incomplete
Total number of label blocks: 2
Route distinguisher: 2:2
Total number of label blocks: 2
Site ID LB offset LB range LB base Nexthop
* > 1 0 10 1034 0.0.0.0
* >i 2 0 10 1162 192.3.3.3
Table 4 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.
<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 5 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: · i – IGP—Originated in the AS. · e – 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.
<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 bgp peer l2vpn
Use display bgp peer l2vpn to display information about BGP L2VPN peers.
Syntax
display bgp peer l2vpn [ group-name log-info | ip-address { log-info | verbose } | verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
group-name: Specifies a BGP L2VPN peer group by its name, a case-sensitive string of 1 to 47 characters.
ip-address: Specifies a BGP L2VPN peer by its IP address.
log-info: Displays log information for the specified BGP L2VPN peer or peer group.
verbose: Displays detailed information. If you specify a BGP L2VPN peer, this command displays detailed information about the specified BGP L2VPN peer. If you do not specify a BGP L2VPN peer, this command displays detailed information about all BGP L2VPN peers.
Examples
# Displays brief information about all BGP L2VPN peers.
<Sysname> display bgp peer l2vpn
BGP local router ID: 2.2.2.2
Local AS number: 100
Total number of peers: 1 Peers in established state : 0
Peer AS MsgRcvd MsgSent OutQ PrefRcv Up/Down State
1.1.1.1 100 0 0 0 0 00:45:16 Idle
Table 7 Command output
Field |
Description |
MsgRcvd |
Number of messages received from the peer. |
MsgSent |
Number of messages sent to the peer. |
OutQ |
Number of messages to be sent to the peer. |
PrefRcv |
Number of L2VPN messages received from the peer, including label block messages and VPLS PE messages. |
# Display detailed information about the BGP L2VPN peer 10.1.1.1.
<Sysname> display bgp peer l2vpn 10.1.1.1 verbose
Peer: 10.1.1.1 Local: 192.168.1.136
Type: EBGP link
BGP version 4, remote router ID 192.168.1.135
BGP current state: Established, Up for 00h01m25s
BGP current event: KATimerExpired
BGP last state: OpenConfirm
Port: Local - 179 Remote - 1049
Configured: Active Hold Time: 180 sec Keepalive Time: 60 sec
Received : Active Hold Time: 180 sec
Negotiated: Active Hold Time: 180 sec Keepalive Time: 60 sec
Peer optional capabilities:
Peer support BGP multi-protocol extended
Peer support BGP route refresh capability
Peer support BGP route AS4 capability
Address family IPv4 Unicast: advertised and received
Address family L2VPN: advertised
Received: Total 4 messages, Update messages 1
Sent: Total 17 messages, Update messages 1
Maximum allowed prefix number: 4294967295
Threshold: 75%
Minimum time between advertisements is 30 seconds
Optional capabilities:
Multi-protocol extended capability has been enabled
Route refresh capability has been enabled
Peer Preferred Value: 0
BFD: Enabled
Routing policy configured:
No routing policy is configured
Table 8 Command output
Field |
Description |
Type |
Type of the BGP connection: · IBGP link—IBGP connection. · EBGP link—EBGP connection. |
Peer optional capabilities |
Optional capabilities supported by the peer. |
Peer support bgp multi-protocol extended |
The peer supports BGP multi-protocol extensions. |
Peer support bgp route refresh capability |
The peer supports BGP route refresh. |
Peer support bgp route AS4 capability |
The peer supports four-byte AS numbers. |
Maximum allowed prefix number |
This field is ignored in BGP L2VPN. |
Threshold |
This field is ignored in BGP L2VPN. |
Optional capabilities |
Optional capabilities supported by the local device. |
Multi-protocol extended capability has been enabled |
The local device supports BGP multi-protocol extensions. |
Route refresh capability has been enabled |
The local device supports route refresh. |
Peer Preferred Value |
This field is ignored in BGP L2VPN. |
Routing policy configured |
This field is ignored in BGP L2VPN. |
# Display log information for the BGP L2VPN peer 10.1.1.1.
<Sysname> display bgp peer l2vpn 10.1.1.1 log-info
Peer: 10.1.1.1
Date Time State Notification
Error/SubError
21-MAY-2012 12:36:58 Up
21-MAY-2012 12:22:29 Down Send notification with error 6/6
Cease/Other Configuration Change
21-MAY-2012 12:07:09 Up
display bgp update-group l2vpn
Use display bgp update-group l2vpn to display update group information for the BGP L2VPN address family.
Syntax
display bgp update-group l2vpn [ ip-address ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
ip-address: Displays update group information for the specified BGP L2VPN peer. If you do not specify a peer, this command displays all update group information for the BGP L2VPN address family.
Examples
# Display all update group information for the BGP L2VPN address family.
<Sysname> display bgp update-group l2vpn
Update-group ID: 0
Type: IBGP link
4-byte AS number: Supported
L2VPN signaling (VPLS): Supported
L2VPN signaling (VPWS): RFC mode
L2VPN auto-discovery: RFC mode
Minimum time between advertisements: 15 seconds
OutQ: 0
Members: 2
2.2.2.9
3.3.3.9
# Display update group information for the BGP L2VPN peer 1.1.1.3.
<Sysname> display bgp update-group l2vpn 1.1.1.3
Update-group ID: 0
Type: EBGP link
4-byte AS number: Supported
L2VPN signaling (VPLS): Supported
L2VPN signaling (VPWS): RFC mode
L2VPN auto-discovery: Non-standard mode
Minimum time between advertisements: 30 seconds
OutQ: 0
Members: 1
1.1.1.3
Table 9 Command output
Field |
Description |
Type |
Type of the BGP connection: · IBGP link—IBGP connection. · EBGP link—EBGP connection. · Confed IBGP link—Confederation IBGP connection. · Confed EBGP link—Confederation EBGP connection. |
4-byte AS number: Supported |
The peers in the update group support 4-byte AS numbers. |
4-byte AS number: Suppressed |
The peers in the update group suppress 4-byte AS numbers. |
L2VPN signaling (VPLS): Supported |
The peers in the update group support advertising VPLS label blocks in RFC 4761 NLRI. |
L2VPN signaling (VPWS): RFC mode |
The peers in the update group support advertising MPLS L2VPN label blocks in RFC 4761 NLRI. |
L2VPN auto-discovery: RFC mode |
The peers in the update group support advertising VPLS PE information in RFC 6074 NLRI. |
L2VPN auto-discovery: Non-standard mode |
The peers in the update group support advertising VPLS PE information in non-standard NLRI. |
OutQ |
Number of L2VPN messages to be sent to the peers in the update group. |
Members |
Number and IP addresses of peers in the update groups. |
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
mdc-admin
mdc-operator
Parameters
peer ip-address: Displays information about the specified VPLS PE. If no PE is specified, this command displays information about all automatically discovered VPLS PEs.
vsi vsi-name: Displays automatically discovered VPLS PEs for the VSI specified by its 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
mdc-admin
mdc-operator
Parameters
local: Displays local VPLS label block information.
peer ip-address: Displays VPLS label block information received from the remote BGP peer specified by its IP address.
vsi vsi-name: Displays VPLS label block information for the VSI specified by its 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 local, 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 10 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
Link ID : 9
Local Label Block : 1418/10/0
Remote Label Block : 1418/10/0
Export Route Target: 1:1
Remote Site ID : 3
Offset : 0
RD : 1:1
PW State : Up
Encapsulation : BGP-VPLS
MTU : 1500
Nexthop : 3.3.3.9
Local VC Label : 1421
Remote VC Label : 1282
Link ID : 10
Local Label Block : 1418/10/0
Remote Label Block : 1280/10/0
Export Route Target: 1:1
Table 11 Command output
Field |
Description |
Local VC Label |
Incoming label of the PW. |
Remote VC Label |
Outgoing label of the PW. |
Link ID |
Link ID of the PW. |
Local Label Block |
Local label block: label base/label range/Label-block offset. |
Remote Label Block |
Remote label block: label base/label range/Label-block offset. |
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 12 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 13 Command output
Field |
Description |
Offset |
Offset of the label block. |
RD |
RD of the label block. If no RD is configured, this field displays a hyphen (-). |
Range |
Range of the label block. |
Label Base |
Initial value of the label block. |
Link ID |
Link ID of the PW established using the label block. |
Related commands
display l2vpn pw
display l2vpn forwarding
Use display l2vpn forwarding to display L2VPN forwarding information.
Syntax
In standalone mode:
display l2vpn forwarding { ac | pw } [ vsi vsi-name ] [ slot slot-number ] [ verbose ]
In IRF mode:
display l2vpn forwarding { ac | pw } [ vsi vsi-name ] [ chassis chassis-number slot slot-number ] [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
ac: Displays AC forwarding information.
pw: Displays PW forwarding information.
vsi vsi-name: Displays L2VPN forwarding information for the VSI specified by its 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. (In standalone mode.)
chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. If you do not specify a card, this command displays L2VPN forwarding information for the active MPU on the master device. (In IRF mode.)
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: 3
AC VSI Name Link ID
GE1/0/5 srv1 test 3
GE1/0/5 srv2 test 4
GE1/0/6 test 5
Table 14 Command output
Field |
Description |
Total number of VSIs |
Total number of VSIs, including VSIs not bound to any AC. |
AC |
AC type: · Layer 3 interface such as GE1/0/6. · Layer 2 interface and Ethernet service instance, such as GE1/0/5 srv1. |
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: Vlan10
Link ID : 0
Access Mode : VLAN
Interface: GE1/0/3 Service Instance: 1
Link ID : 1
Access Mode : VLAN
Encapsulation: s-vid 1 to 2 15 to 16
VSI Name: vpls2
Interface: Vlan13
Link ID : 0
Access Mode : VLAN
Interface: GE1/0/3 Service Instance: 4
Link ID : 1
Access Mode : VLAN
Encapsulation: untagged
VSI Name: vpls5
Interface: Vlan14
Link ID : 0
Access Mode : VLAN
Table 15 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. |
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. |
# 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 16 Command output
Field |
Description |
Total number of VSIs |
Total number of VSIs, including VSIs containing no PW. |
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, Blocked, or BFD Defect. Blocked indicates that the PW is blocked. BFD Defect indicates that BFD has detected a defect on the PW. |
# 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
Tunnel Group ID : 0x960000000
Tunnel NHLFE IDs: 1034
Link ID: 9
PW Type : VLAN PW State : Up
In Label : 1271 Out Label: 1273
MTU : 1500
PW Attributes : Main
VCCV CC : Router-Alert
VCCV BFD : Fault Detection with BFD
Tunnel Group ID : 0xa60000001
Tunnel NHLFE IDs: 1035
Table 17 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, Blocked, or BFD Defect. Blocked indicates that the PW is blocked. BFD Defect indicates that BFD has detected a defect on the PW. |
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 timeout. |
VCCV BFD |
VCCV BFD type: · Fault Detection with BFD—BFD packets use IP/UDP encapsulation (with IP/UDP Headers). · Fault Detection with Raw-BFD—BFD packets use PW-ACH encapsulation (without IP/UDP Headers). |
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. |
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 ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
vsi vsi-name: Displays L2VPN information for the Layer 3 interfaces bound to the VSI specified by its name, a case-sensitive string of 1 to 31 characters.
interface-type interface-number: Displays L2VPN information for the interface specified by its type and number.
Usage guidelines
If you do not specify any parameters, this command displays L2VPN information for all Layer 3 interfaces bound to VSIs.
This command does not display L2VPN information for Ethernet service instances. To display such information, use the display l2vpn service-instance command.
Examples
# Display L2VPN information for all Layer 3 interfaces bound to VSIs.
<Sysname> display l2vpn interface
Total number of interfaces: 4, 3 up, 1 down
Interface Owner Link ID State Type
Vlan10 vpls1 0 Up VPLS
Vlan11 vpls2 0 Up VPLS
GE1/0/1 vpls1 1 Up VPLS
GE1/0/2 vpls1 2 Down VPLS
Table 18 Command output
Field |
Description |
Owner |
VSI name. |
Link ID |
Link ID of the AC in the VSI. |
Type |
L2VPN type: VPLS or VPWS. |
Related commands
display l2vpn service-instance
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
mdc-admin
mdc-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 the PW specified by its PW ID in the range of 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 the VPLS instance specified by its ID, which is 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, such as 101:3.
· 32-bit IP address:16-bit user-defined number, such as 192.168.122.15:1.
· 32-bit AS number:16-bit user-defined number, such as 65536:1. In this format, the minimum value of the AS number is 65536.
vsi vsi-name: Displays LDP PW label information for the VSI specified by its 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 a FEC 128-to-PW label binding to the remote PE.
· After BGP discovers a remote PE, LDP advertises a 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: 6, 4 up, 2 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
192.3.3.3 1004 775120/775120 Up vpls4
192.3.3.3 10009 unknown/775134 Down vpls5
192.4.4.4 100 775116/unknown Down vpls6
2.2.2.2 99:99 775135/775125 Up vplsauto
Table 19 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 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: -/-
MTU : 1500/1500
PW Status : PW forwarding/PW forwarding
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: -/-
MTU : 1500/1500
PW Status : PW forwarding/PW forwarding
Peer: 3.3.3.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, 3.3.3.9)
Remote AII : (3.3.3.9, 1.1.1.9)
PW Type : VLAN/VLAN
Group ID : 0/0
Label : 1554/1416
Control Word: Disabled/Disabled
VCCV CV Type: -/-
VCCV CC Type: -/-
MTU : 1500/1500
PW Status : PW forwarding/PW forwarding
Table 20 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 state of the AC associated with PW is up and withdraws the PW label when the AC state becomes down. |
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). · Raw-BFD—Uses BFD to verify PW connectivity. BFD packets use PW-ACH encapsulation (without IP/UDP Headers). |
VCCV CC Type |
VCCV control channel (CC) types supported by the local PE: · Control-Word—Control word. · Router-Alert—MPLS router alert label. · TTL—TTL timeout. VCCV is an MPLS OAM technology. For more information about VCCV, see MPLS Configuration Guide. |
MTU |
Maximum transmission unit of the VSI. |
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. |
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. |
display l2vpn mac-address
Use display l2vpn mac-address to display MAC address table information for VSIs.
Syntax
display l2vpn mac-address [ vsi vsi-name ] [ dynamic ] [ count ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
vsi vsi-name: Displays MAC address table information for the VSI specified by its name, a case-sensitive string of 1 to 31 characters. If you do not specify a VSI, this command displays MAC address table information for all VSIs.
dynamic: Displays dynamically generated MAC address entries. If this keyword is not specified, 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.
Examples
# Display MAC address table information for all VSIs.
<Sysname> display l2vpn mac-address
MAC Address State VSI Name Link ID Aging Time
0000-0000-000a dynamic vpn1 1 Aging
0000-0000-0009 dynamic vpn1 2 Aging
--- 2 MAC address(es) found ---
# Display the total number of MAC address entries of all VSIs.
<Sysname> display l2vpn mac-address count
2 MAC address(es) found
Table 21 Command output
Field |
Description |
State |
MAC address type. Currently, the MAC address type can only be dynamic, which indicates that the MAC address is dynamically learned. |
Link ID |
Outgoing link ID of the MAC address entry. It is the link ID of the AC or PW in the VSI. |
Aging Time |
Indicates whether the MAC address entry will be aged. |
XX MAC address(es) found |
Total number of MAC address entries of the VSI. |
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 | ldp | static } ] [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
vsi vsi-name: Displays L2VPN PW information for the VSI specified by its 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.
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.
Examples
# Display brief information about all PWs.
<Sysname> display l2vpn pw
Flags: M - main, B - backup, H - hub link, S - spoke link, N - no split horizon
Total number of PWs: 5, 5 up, 0 blocked, 0 down, 0 defect
VSI Name: aaa
Peer PW ID/Rmt Site 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
VSI Name: bbb
Peer PW ID/Rmt Site In/Out Label Proto Flag Link ID State
2.2.2.9 - 1553/1553 LDP M 8 Up
3.3.3.9 - 1554/1416 LDP M 9 Up
VSI Name: ccc
Peer PW ID/Rmt Site In/Out Label Proto Flag Link ID State
2.2.2.9 500 1552/1552 LDP M 8 Up
Table 22 Command output
Field |
Description |
PW ID/Rmt Site |
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. |
Proto |
Protocol used to establish the PW: LDP, Static, or BGP. |
Flag |
PW attribute flag: · M—Primary PW. · B—Backup PW. · 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. |
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. |
# 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 : -
Tunnel Group ID : 0x800000960000000
Tunnel NHLFE IDs : 1038
Peer: 3.3.3.9 Remote Site: 3
Signaling Protocol : BGP
Link ID : 10 PW State : Up
In Label : 1421 Out Label: 1281
MTU : 1500
PW Attributes : Main
VCCV CC : -
VCCV BFD : -
Tunnel Group ID : 0x800000160000001
Tunnel NHLFE IDs : 1030
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 : -
Tunnel Group ID : 0x800000960000000
Tunnel NHLFE IDs : 1038
Peer: 3.3.3.9 VPLS ID: 100:100
Signaling Protocol : LDP
Link ID : 9 PW State : Up
In Label : 1554 Out Label: 1416
MTU : 1500
PW Attributes : Main
VCCV CC : -
VCCV BFD : -
Tunnel Group ID : 0x800000160000001
Tunnel NHLFE IDs : 1030
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 : -
Tunnel Group ID : 0x800000960000000
Tunnel NHLFE IDs : 1038
Table 23 Command output
Field |
Description |
Peer |
IP address of the peer PE to which the PW is destined. |
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. |
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. · 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 timeout. |
VCCV BFD |
VCCV BFD type: · Fault Detection with BFD—BFD packets use IP/UDP encapsulation (with IP/UDP Headers). · Fault Detection with Raw-BFD—BFD packets use PW-ACH encapsulation (without IP/UDP Headers). |
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. |
VPLS ID |
ID of the VPLS instance. |
Remote Site |
ID of the remote site. |
display l2vpn pw-class
Use display l2vpn pw-class to display PW class information.
Syntax
display l2vpn pw-class [ class-name ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-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.
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 Raw-BFD
pw2 VLAN Disabled Router-Alert BFD
Table 24 Command output
Field |
Description |
VCCV CC |
VCCV CC type: · Control-Word—Control word. · Router-Alert—MPLS router alert label. · TTL—TTL timeout. |
VCCV BFD |
VCCV BFD type: · Fault Detection with BFD—BFD packets use IP/UDP encapsulation (with IP/UDP Headers). · Fault Detection with Raw-BFD—BFD packets use PW-ACH encapsulation (without IP/UDP Headers). |
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
mdc-admin
mdc-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 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: 4, 4 up, 0 down
Interface SrvID Owner LinkID State Type
GE1/0/3 1 vpls1 1 Up VPLS
GE1/0/3 2 vpls2 1 Up VPLS
GE1/0/3 3 vpls3 1 Up VPLS
GE1/0/3 4 vpls4 1 Up VPLS
GE1/0/3 5 Up
Table 25 Command output
Field |
Description |
Interface |
Layer 2 Ethernet interface or Layer 2 aggregate interface. |
SrvID |
Ethernet service instance ID. |
Owner |
Name of the VSI bound to the Ethernet service instance. If no VSI is bound, this field is blank. |
LinkID |
Link ID of the AC in the VSI. |
State |
Ethernet service instance state. |
Type |
L2VPN type of the Ethernet service instance: VPLS or VPWS. |
# Display detailed information about all Ethernet service instances on Layer 2 Ethernet interface GigabitEthernet 1/0/3.
<Sysname> display l2vpn service-instance interface gigabitethernet 1/0/3 verbose
Interface: GE1/0/3
Service Instance: 1
Encapsulation : s-vid 1 to 16
VSI Name : vpls1
Link ID : 1
State : Up
Service Instance: 2
Encapsulation : s-vid 1001 to 1016
only-tagged
VSI Name : vpls2
Link ID : 1
State : Up
Service Instance: 3
Encapsulation : s-vid 2000
c-vid 1001 to 1002 1015 to 1016
VSI Name : vpls3
Link ID : 1
State : Up
Table 26 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. |
Related commands
service-instance
display l2vpn vsi
Use display l2vpn vsi to display VSI information.
Syntax
display l2vpn vsi [ name vsi-name ] [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
name vsi-name: Displays information about the VSI specified by its name, a case-sensitive string of 1 to 31 characters. If you do not specify a VSI, this command displays information about all VSIs.
verbose: Displays detailed information. If you do not specify this keyword, the command displays brief information.
Examples
# Display brief information about all VSIs.
<Sysname> display l2vpn vsi
Total number of VPLS VSIs: 2, 1 up, 1 down, 0 admin down
VSI Name VSI Index MTU State
vpls1 0 1500 Up
vpls2 1 1500 Down
Table 27 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
Bandwidth : -
Broadcast Restrain : -
Multicast Restrain : -
Unknown Unicast Restrain: -
MAC Learning : Enabled
MAC Table Limit : Unlimited
Drop Unknown : Disabled
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
Vlan10 0 Up
GE1/0/3 srv1 1 Up
Table 28 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. |
Drop Unknown |
Indicates 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. |
State |
PW state: Up, Down, Blocked, or BFD Defect. |
AC |
AC type: · Layer 3 interface such as GE1/0/4. · Layer 2 interface and Ethernet service instance, such as GE1/0/3 srv1. |
Related commands
vsi
encapsulation
Use encapsulation to configure a packet match criterion for an Ethernet service instance.
Use undo encapsulation to remove a packet match criterion from an Ethernet service instance.
Syntax
encapsulation s-vid vlan-id [ only-tagged ]
encapsulation { default | tagged | untagged }
undo encapsulation
Default
No packet match criterion is configured for an Ethernet service instance.
Views
Ethernet service instance view
Predefined user roles
network-admin
mdc-admin
Parameters
s-vid vlan-id: Matches packets with the specified outer VLAN ID. The vlan-id argument specifies a VLAN ID in the range of 1 to 4094.
only-tagged: Matches tagged packets. If the outer VLAN is not the PVID, the matching result does not differ, whether or not you specify the only-tagged keyword. If the outer VLAN is the PVID, the matching result depends on whether or not the only-tagged keyword is specified.
· To match only PVID-tagged packets, specify the only-tagged keyword.
· To match both untagged packets and PVID-tagged packets, do not specify the only-tagged keyword.
default: Matches packets that do not match any other Ethernet service instances on the interface. On an interface, you can configure this criterion only in one Ethernet service instance. The Ethernet service instance matches any packets if it is the only instance on the interface.
tagged: Matches any packets that have a VLAN tag. This keyword is not supported in the current software version.
untagged: Matches any packets that do not have a VLAN tag. This keyword is not supported in the current software version.
Usage guidelines
The match criterion configured for different Ethernet service instances on an interface must be different.
An Ethernet service instance can contain only one match criterion. To change the match criterion, you must remove the original criterion first. When you remove the match criterion in an Ethernet service instance, the mapping between the Ethernet service instance and the VSI is removed automatically.
For information about inner and outer VLAN tags, see Layer 2—LAN Switching Configuration Guide.
Examples
# Configure Ethernet service instance 1 on Layer 2 Ethernet interface GigabitEthernet 1/0/1 to match packets that have an outer VLAN ID of 111 and an inner VLAN ID of 20 or from 30 to 40.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] service-instance 1
[Sysname-GigabitEthernet1/0/1-srv1] encapsulation s-vid 111
Related commands
display l2vpn service-instance
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
mdc-admin
Usage guidelines
You must enable L2VPN before configuring other L2VPN settings.
Examples
# Enable L2VPN.
<Sysname> system-view
[Sysname] l2vpn enable
l2vpn switchover
Use l2vpn switchover to switch traffic from the specified 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
mdc-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
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
mdc-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 the VSI vpn1.
<Sysname> system-view
[Sysname] vsi vpn1
[Sysname-vsi-vpn1] undo mac-learning enable
Related commands
display l2vpn vsi
mac-table limit
Use mac-table limit to set the maximum number of MAC addresses that a VSI can learn.
Use undo mac-table limit to restore the default.
Syntax
mac-table limit mac-limit
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
mdc-admin
Parameters
mac-limit: Specifies the maximum number of MAC addresses that the VSI can learn. The value range is 0 to 65535.
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
mtu
Use mtu to set an MTU for a VSI.
Use undo mtu to restore the default.
Syntax
mtu mtu
undo mtu
Default
A VSI has an MTU of 1500 bytes.
Views
VSI view
Predefined user roles
network-admin
mdc-admin
Parameters
mtu: Specifies an MTU value in the range of 328 to 65535 bytes.
Usage guidelines
The MTU specifies the maximum length of a packet transmitted on a PW, including the control word, PW label, and network layer packet.
When LDP is used to create PWs, all PEs in a VPLS instance must have the same MTU configured for the VSI.
For an MTU setting to take effect on an interface, you must execute the shutdown command and then the undo shutdown command on the interface.
Examples
# Set the MTU to 1400 bytes for the VSI vpn1.
<Sysname> system-view
[Sysname] vsi vpn1
[Sysname-vsi-vpn1] mtu 1400
Related commands
display l2vpn vsi
peer
Use peer to configure a VPLS PW and enter VSI LDP PW view or VSI static PW view. If the specified PW has been created, this command places you in VSI LDP PW view or VSI static PW view.
Use undo peer to delete a PW.
Syntax
VSI LDP signaling view:
peer ip-address [ pw-id pw-id ] [ hub | no-split-horizon | pw-class class-name | tunnel-policy tunnel-policy-name ] *
undo peer ip-address pw-id pw-id
VSI static configuration view:
peer ip-address [ pw-id pw-id ] [ in-label label-value out-label label-value [ hub | no-split-horizon | pw-class class-name | tunnel-policy tunnel-policy-name ] * ]
undo peer ip-address pw-id pw-id
Default
No PW is configured for VPLS.
Views
VSI LDP signaling view, VSI static configuration view
Predefined user roles
network-admin
mdc-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, in the range of 16 to 1023.
out-label label-value: Specifies the outgoing label of the PW, in the range of 16 to 1023.
hub: Specifies the PW as the hub link the VSI. After a VSI is enabled with the hub-spoke capability, a PW in the VSI is a spoke link by default. This keyword is not supported in the current software version.
no-split-horizon: Disable 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 type and control word. If you do not specify a PW class, the PW 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 19 characters. If you do not specify a tunnel policy, the PW uses the default tunnel policy.
Usage guidelines
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, and must be different than those of any VPLS PWs or cross-connect PWs.
If both a 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 a 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.
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 the 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 the 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 peer or peer group.
Use undo peer auto-discovery to disable BGP to exchange VPLS PW information with the specified peer or peer group.
Syntax
peer { group-name | ip-address } auto-discovery [ non-standard ]
undo peer { group-name | ip-address } auto-discovery
Default
BGP can exchange VPLS PE information with the a BGP L2VPN peer or peer group through RFC 6074 MP_REACH_NLRI.
Views
BGP L2VPN address family view
Predefined user roles
network-admin
mdc-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.
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.
After you execute the peer enable command in BGP L2VPN address family view, BGP can exchange VPLS PW information with the specified peer or peer group through RFC 6074 MP_REACH_NLRI. 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] address-family l2vpn
[Sysname-bgp-l2vpn] peer 3.3.3.9 auto-discovery
# Enable BGP to exchange VPLS PE information with the peer group test through non-standard MP_REACH_NLRI.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] address-family l2vpn
[Sysname-bgp-l2vpn] peer test auto-discovery non-standard
Related commands
display bgp l2vpn auto-discovery
peer signaling
Use peer signaling to enable BGP to exchange label block information with the specified peer or peer group.
Use undo peer signaling to disable BGP to exchange label block information with the specified peer or peer group.
Syntax
peer { group-name | ip-address } signaling
undo peer { group-name | ip-address } 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
mdc-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.
Usage guidelines
L2VPN uses MP-BGP to exchange label blocks when creating a BGP PW.
After you execute the peer enable command, BGP can exchange label blocks with the specified peer or peer group. To disable the capability, use the undo peer signaling command.
Examples
# Enable BGP to exchange label block information with the peer 3.3.3.9.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] address-family l2vpn
[Sysname-bgp-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
mdc-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.
On an inter-AS VPN option B network, an ASBR-PE needs to store all BGP L2VPN information (BGP-discovered VPLS PE and label block information) and advertises the information to the remote ASBR-PE. To meet this need, execute the undo policy vpn-target command on the ASBR-PE to accept all incoming BGP L2VPN information.
For more information about an inter-AS VPN option B network, see MPLS Configuration Guide.
Examples
# Disable route target-based filtering of incoming BGP L2VPN information.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] address-family l2vpn
[Sysname-bgp-l2vpn] undo policy vpn-target
pw-class (auto-discovery VSI view)
Use pw-class to reference a PW class.
Use undo pw-class to cancel referencing the PW class.
Syntax
pw-class class-name
undo pw-class class-name
Default
No PW class is referenced.
Views
Auto-discovery VSI view
Predefined user roles
network-admin
mdc-admin
Parameters
class-name: Specifies a PW class by its name, a case-sensitive string of 1 to 19 characters.
Usage guidelines
The referenced PW class applies to all PWs established on the auto-discovery VSI.
Examples
# Reference a PW class named pw100 on the auto-discovery VSI.
<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
pw-class (system view)
Use pw-class to create a PW class and enter PW class view.
Use undo pw-class to delete a PW class.
Syntax
pw-class class-name
undo pw-class class-name
Default
No PW class is created.
Views
System view
Predefined user roles
network-admin
mdc-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 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-pw100]
Related commands
· control-word enable
· display l2vpn pw-class
· pw-type
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
mdc-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 the VSI vpn1 to use LDP to establish FEC 128 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 type for a PW class.
Use undo pw-type to restore the default.
Syntax
pw-type { ethernet | vlan }
undo pw-type
Default
The PW type is VLAN.
Views
PW class view
Predefined user roles
network-admin
mdc-admin
Parameters
ethernet: Specifies the PW type as Ethernet.
vlan: Specifies the PW type as VLAN.
Usage guidelines
When the PW 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, adds the PW label, and tunnels the traffic through the public tunnel to the destination.
¡ If traffic from the AC does not have the P-Tag, the PE adds the PW label and tunnels the traffic through the public tunnel to the destination.
· For traffic received from the PW:
¡ If the AC access mode (configured by the xconnect vsi command) 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 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 the PW label and tunnels the traffic through the public tunnel to the destination.
¡ 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 the PW label and tunnels the traffic through the public tunnel to the destination.
· For traffic received from the PW:
¡ If the AC access mode (configured by the xconnect vsi command) 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.
Examples
# Configure the PW type as Ethernet.
<Sysname> system-view
[Sysname] pw-class pw100
[Sysname-pw-pw100] pw-type ethernet
Related commands
display l2vpn pw-class
refresh bgp l2vpn
Use refresh bgp l2vpn to manually soft-reset L2VPN BGP sessions.
Syntax
refresh bgp { ip-address | all | external | group group-name | internal } { export | import } l2vpn
Views
User view
Predefined user roles
network-admin
mdc-admin
Parameters
ip-address: Soft-resets the L2VPN BGP session to the specified peer.
all: Soft-resets all L2VPN BGP sessions.
external: Soft-resets all L2VPN EBGP sessions.
group group-name: Soft-resets L2VPN BGP sessions to the peers in the peer group specified by its name, a case-sensitive string of 1 to 47 characters.
internal: Soft-resets all L2VPN IBGP sessions.
export: Soft-resets all outbound L2VPN BGP sessions.
import: Soft-resets all inbound L2VPN BGP sessions.
Usage guidelines
A soft-reset operation enables BGP to update BGP L2VPN information without tearing down BGP connections.
To apply a new policy to outbound BGP sessions, execute this command with the export keyword. BGP uses the new policy to filter local L2VPN information and sends the L2VPN information that passes the filtering to the BGP peer.
To apply a new policy to inbound sessions, execute this command with the import keyword. BGP advertises a route-refresh message to the peer and the peer resends its L2VPN information. After receiving the L2VPN information, BGP uses the new policy to filter the L2VPN information.
This command requires that both the local router and the peer support route refresh.
Examples
# Soft-reset all inbound L2VPN BGP sessions.
<Sysname> refresh bgp all import l2vpn
reset bgp l2vpn
Use reset bgp l2vpn to reset L2VPN BGP sessions.
Syntax
reset bgp { as-number | ip-address | all | external | group group-name | internal } l2vpn
Views
User view
Predefined user roles
network-admin
mdc-admin
Parameters
as-number: Resets L2VPN BGP sessions to the peers in the AS specified by its number in the range of 1 to 4294967295.
ip-address: Resets the L2VPN BGP session to the specified peer.
all: Resets all L2VPN BGP sessions.
external: Resets all L2VPN EBGP sessions.
group group-name: Resets L2VPN BGP sessions to the peers in the peer group specified by its name, a case-sensitive string of 1 to 47 characters.
internal: Resets all L2VPN IBGP sessions.
Usage guidelines
A reset operation enables BGP to update L2VPN information by re-establishing BGP sessions, which results in a short-time BGP session interruption.
Examples
# Reset all L2VPN BGP sessions.
<Sysname> reset bgp all l2vpn
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
mdc-admin
Parameters
vsi vsi-name: Clears MAC address entries for the VSI specified 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 the VSI vpn1.
<Sysname> reset l2vpn mac-address vsi vpn1
Related commands
display l2vpn mac-address vsi
revertive
Use revertive to specify whether to switch traffic from the backup PW to the primary PW when the primary PW recovers, and set the wait time for the switchover.
Use undo revertive wtr to restore the default wait time of 0.
Use undo revertive never to restore the default.
Syntax
revertive { wtr wtr-time | never }
undo revertive { wtr | never }
Default
When the primary PW recovers, traffic is immediately switched back from the backup PW to the primary PW.
Views
VSI LDP signaling view, VSI static configuration view
Predefined user roles
network-admin
mdc-admin
Parameters
wtr wtr-time: Specifies the wait time in the range of 0 to 180 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: Disables switchover to primary.
Examples
# Set the switchover wait time to 120 seconds for static PWs in the 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
route-distinguisher
Use route-distinguisher to configure a route distinguisher (RD) for an auto-discovery VSI.
Use undo route-distinguisher to remove the RD for an auto-discovery VSI.
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
mdc-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.
Usage guidelines
MPLS L2VPN uses RDs to differentiate the sites that reside in different VPNs and have the same site ID.
BGP adds the configured RD before the site ID. The RD and the site ID uniquely identify a VPN site.
The configure RD applies to both BGP neighbor auto-discovery and VPLS label block advertisement.
You cannot configure the same RD for different BGP VSIs.
To change an RD, you must remove the RD and then configure it again.
Examples
# Configure the RD 22:1 for the 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 so that only the L2VPN information that contains the specified extended community number is reflected.
Use undo rr-filter to restore the default.
Syntax
rr-filter extended-community-number
undo rr-filter
Default
An RR does not filter reflected L2VPN information.
Views
BGP L2VPN address family view
Predefined user roles
network-admin
mdc-admin
Parameters
extended-community-number: Specifies an extended community number in the range of 1 to 199.
Usage guidelines
By configuring different RR reflection policies on RRs in a cluster, you can implement load balancing among the RRs.
Examples
# Configure the RR to reflect only the BGP L2VPN information that contains the extended community number 10.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] address-family l2vpn
[Sysname-bgp-l2vpn] rr-filter 10
service-instance
Use service-instance to create an Ethernet service instance on an interface and enter Ethernet service instance view.
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 instance is created on an interface.
Views
Layer 2 Ethernet interface view, Layer 2 aggregate interface view
Predefined user roles
network-admin
mdc-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 GigabitEthernet 1/0/1 and enter Ethernet service instance 1 view.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] service-instance 1
[Sysname-GigabitEthernet1/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
mdc-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 (for example, to modify a VSI). After the modification, use the undo shutdown command to enable the VSI. The VSI will provide VPLS services using the new settings.
Examples
# Disable the 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 specified signaling view. The specified signaling protocol is used to establish a PW to the remote PE discovered by BGP.
Use undo signaling-protocol to remove the signaling protocol configuration.
Syntax
signaling-protocol { bgp | ldp }
undo signaling-protocol
Default
No signaling protocol is specified.
Views
Auto-discovery VSI view
Predefined user roles
network-admin
mdc-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 cannot execute this command multiple times to specify different signaling protocols in the same auto-discovery VSI view.
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 a local site.
Syntax
site site-id [ range range-value ] [ default-offset default-offset ]
undo site site-id
Default
No site is created.
Views
Auto-discovery VSI BGP signaling view
Predefined user roles
network-admin
mdc-admin
Parameters
site-id: Specifies a local site ID in the range of 0 to 62.
range range-value: Specifies the maximum number of sites in a VPLS instance, in the range of 2 to 1 + the maximum number of site-id. 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 create multiple local sites for a VSI.
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 value range, you must delete the site and re-create the site with the new range value.
You cannot modify the default-offset for a site with the site command. To modify it, you must delete the site and re-create the site with the new default-offset.
Examples
# Create site 1, configure the VPLS instance to contain a maximum of 30 sites, and set the start site ID to 0 for the 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
tunnel-policy
Use tunnel-policy to reference a tunnel policy.
Use undo tunnel-policy to cancel referencing the tunnel policy.
Syntax
tunnel-policy tunnel-policy-name
undo tunnel-policy
Default
No tunnel policy is referenced.
Views
Auto-discovery VSI view
Predefined user roles
network-admin
mdc-admin
Parameters
tunnel-policy-name: Specifies a tunnel policy by its name, a case-sensitive string of 1 to 19 characters.
Usage guidelines
The PWs on the auto-discovery VSI use the referenced tunnel policy to select public tunnels.
Examples
# Reference the tunnel policy policy1 for the auto-discovery VSI aaa.
<Sysname> system-view
[Sysname] vsi aaa
[Sysname-vsi-aaa] auto-discovery bgp
[Sysname-vsi-aaa-auto] tunnel-policy policy1
vpls-id
Use vpls-id to set the VPLS ID for a VSI.
Use undo vpls-id to remove the VPLS ID of a VSI.
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
mdc-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, such as 101:3.
· 32-bit IP address:16-bit user-defined number, such as 192.168.122.15:1.
· 32-bit AS number:16-bit user-defined number, such as 65536:1. In this format, the minimum value of the AS number is 65536.
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 scenario where BGP is used to find remote PEs and 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, you must remove the VPLS ID and then configure it again.
Examples
# Configure the VPLS ID 100:1 for the 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
Predefined user roles
network-admin
mdc-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.
both: Uses the specified route targets as both import targets and export targets. The both keyword is also used when you do not specify any of both, export-extcommunity, and import-extcommunity.
export-extcommunity: Uses the specified 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.
Examples
# Configure import route targets as 10:1 100:1 1000:1 and export route targets as 20:1 200:1 2000:1, for the 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 or enter VSI view. If the VSI has been created, this command directly places you in VSI view.
Use undo vsi to delete a VSI.
Syntax
vsi vsi-name [ hub-spoke ]
undo vsi vsi-name
Default
No VSI is created.
Views
System view
Predefined user roles
network-admin
mdc-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. This keyword is not supported in the current software version.
Usage guidelines
You can create multiple LDP, BGP, and static PWs for a VSI.
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 remove the binding.
Syntax
xconnect vsi vsi-name [ access-mode { ethernet | vlan } | hub ] *
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
mdc-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. This keyword is configurable only in Ethernet service instance view.
· 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. This keyword is not supported in the current software version.
Usage guidelines
When the AC is an Ethernet service instance, you can specify the access mode of the AC and the default access mode is VLAN. When the AC is a Layer 3 interface, you cannot specify the AC access mode.
· The access mode is always Ethernet when the AC is a Layer 3 Ethernet interface.
· The access mode is always VLAN when the AC is a Layer 3 Ethernet subinterface.
The access mode determines how the PE considers the VLAN tag in Ethernet frames received from the AC and how the PE forwards Ethernet frames to the AC.
· VLAN access mode—Ethernet frames received from the AC must carry a VLAN tag in the Ethernet header. The PE considers the VLAN tag as a P-tag assigned by the service provider. Ethernet frames sent to the AC must also carry the P-tag.
· Ethernet access mode—If Ethernet frames from the AC have a VLAN tag in the header, the PE considers it as a U-tag and ignores it. Ethernet frames sent to the AC do not carry the P-tag.
The Ethernet service instance specified in this command must have match criteria configured by encapsulation.
Examples
# Configure Ethernet service instance 200 on interface GigabitEthernet 1/0/1 to match packets with an outer VLAN tag of 200, and bind the Ethernet service instance to the VSI vpn1.
<Sysname> system-view
[Sysname] vsi vpn1
[Sysname-vsi-vpn1] quit
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] service-instance 200
[Sysname-GigabitEthernet1/0/1-srv200] encapsulation s-vid 200
[Sysname-GigabitEthernet1/0/1-srv200] xconnect vsi vpn1
Related commands
· display l2vpn interface
· display l2vpn service-instance
· encapsulation
· vsi