MPLS L2VPN commands -- ac interface

Use ac interface to bind a Layer 3 interface or an Ethernet service instance to a cross-connect.

Use undo ac interface to remove the binding.

Syntax

ac interface interface-type interface-number [ service-instance instance-id ] [ access-mode { ethernet | vlan } ] [ track track-entry-number&<1-3> ]

undo ac interface interface-type interface-number [ service-instance instance-id ]

Default

No Layer 3 interface or Ethernet service instance is bound to a cross-connect.

Views

Cross-connect view

Auto-discovery cross-connect view

Predefined user roles

network-admin

mdc-admin

Parameters

interface-type interface-number: Specifies an interface by its type and number.

service-instance instance-id: Specifies an Ethernet service instance by its ID in the range of 1 to 4096.

access-mode: Specifies the access mode. This keyword is configurable only when the AC is an Ethernet service instance, and the default access mode is VLAN. When the AC is a Layer 3 interface or Layer 3 subinterface, this keyword is not configurable.

· ethernet: Specifies the Ethernet access mode.

· vlan: Specifies the VLAN access mode.

track track-entry-number&<1-3>: Specifies a space-separated list of up to three track entry numbers in the range of 1 to 1024. The AC is up only if a minimum of one associated track entry is in positive state.

Usage guidelines

After you execute this command, packets received from the Layer 3 interface or those matching the Ethernet service instance are forwarded to the bound PW or another AC.

The Ethernet service instance specified in this command must have a packet match criterion configured by the encapsulation command.

The access mode determines how the PE treats the VLAN tag in Ethernet frames received from the AC. It also determines how the PE forwards Ethernet frames to the AC.

· VLAN access mode—Ethernet frames received from the AC must carry a VLAN tag in the Ethernet header. The VLAN tag is called a P-tag assigned by the service provider. Ethernet frames sent to the AC must also carry the P-tag.

· Ethernet access mode—If Ethernet frames from the AC have a VLAN tag in the header, the VLAN tag is called a U-tag, and the PE ignores it. Ethernet frames sent to the AC do not carry the P-tag.

Examples

# Bind GigabitEthernet 1/0/1 to cross-connect aaa in cross-connect group vpna.

[Sysname] xconnect-group vpna

[Sysname-xcg-vpna] connection aaa

[Sysname-xcg-vpna-aaa] ac interface gigabitethernet 1/0/1

# Configure Ethernet service instance 200 on GigabitEthernet 1/0/1 to match packets with an outer VLAN tag of 200. Bind the Ethernet service instance to cross-connect actopw in cross-connect group vpn1.

<Sysname> system-view

[Sysname] interface 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] quit

[Sysname-GigabitEthernet1/0/1] quit

[Sysname] xconnect-group vpn1

[Sysname-xcg-vpn1] connection actopw

[Sysname-xcg-vpn1-actopw] ac interface gigabitethernet 1/0/1 service-instance 200

# Configure Ethernet service instance 200 on GigabitEthernet 1/0/1 to match packets with an outer VLAN tag of 200. Bind the Ethernet service instance to the auto-discovery cross-connect in cross-connect group vpwsbgp.

<Sysname> system-view

[Sysname] interface 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] quit

[Sysname-GigabitEthernet1/0/1] quit

[Sysname] xconnect-group vpwsbgp

[Sysname-xcg-vpwsbgp] auto-discovery bgp

[Sysname-xcg-vpwsbgp-auto] site 1 range 10 default-offset 0

[Sysname-xcg-vpwsbgp-auto-1] connection remote-site-id 2

[Sysname-xcg-vpwsbgp-auto-1-2] ac interface gigabitethernet 1/0/1 service-instance 200

Related commands

connection

display l2vpn interface

display l2vpn service-instance

encapsulation

pw-type

MPLS L2VPN commands -- ac statistics enable

Use ac statistics enable to enable packet statistics on a Layer 3 interface.

Use undo ac statistics enable to disable packet statistics a Layer 3 interface.

Syntax

ac statistics enable

undo ac statistics enable

Default

Packet statistics is disabled on a Layer 3 interface.

Views

Layer 3 Ethernet interface view

Layer 3 aggregate interface view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

This command enables packet statistics only on a Layer 3 interface that has been bound to a cross-connect. If you change the bound cross-connect during the statistics collection, the packet statistics are re-collected.

To display the collected packet statistics, use the display l2vpn interface verbose command.

Examples

# Enable packet statistics on Layer 3 interface GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] ac statistics enable

Related commands

display l2vpn interface verbose

reset l2vpn statistics ac

MPLS L2VPN commands -- address-family l2vpn

Use address-family l2vpn to create the BGP L2VPN address family and enter its view, or enter the view of the existing BGP L2VPN address family view.

Use undo address-family l2vpn to delete the BGP L2VPN address family and all settings from BGP L2VPN address family view.

Syntax

address-family l2vpn

undo address-family l2vpn

Default

No BGP L2VPN address family exists.

Views

BGP instance view

Predefined user roles

network-admin

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-default] address-family l2vpn

[Sysname-bgp-default-l2vpn]

Related commands

peer enable (Layer 3—IP Routing Command Reference)

MPLS L2VPN commands -- auto-discovery

Use auto-discovery to enable a cross-connect group to automatically discover neighbors and create PWs through BGP, and enter auto-discovery cross-connect group view.

Use undo auto-discovery to restore the default.

Syntax

auto-discovery bgp

undo auto-discovery

Default

A cross-connect group does not use BGP to automatically discover neighbors and create PWs.

Views

Cross-connect group view

Predefined user roles

network-admin

mdc-admin

Parameters

bgp: Enables the cross-connect group to automatically discover neighbors and create PWs through BGP.

Usage guidelines

In auto-discovery cross-connect group view, you can configure parameters such as the local site, remote site, and route target for BGP. The local PE can use BGP to discover remote PEs and create PWs.

Examples

# Enable cross-connect group bbb to automatically discover neighbors and create PWs through BGP, and enter auto-discovery cross-connect group view.

<Sysname> system-view

[Sysname] xconnect-group bbb

[Sysname-xcg-bbb] auto-discovery bgp

[Sysname-xcg-bbb-auto]

Related commands

display l2vpn pw

display l2vpn xconnect-group

MPLS L2VPN commands -- backup-peer

Use backup-peer to configure a backup PW for a cross-connect and enter cross-connect backup PW view, or enter the view of an existing cross-connect backup PW.

Use undo backup-peer to restore the default.

Syntax

backup-peer ip-address pw-id pw-id [ in-label label-value out-label label-value ] [ pw-class class-name | tunnel-policy tunnel-policy-name ] *

undo backup-peer ip-address pw-id pw-id

Default

No backup PW exists for a cross-connect.

Views

Cross-connect PW view

Predefined user roles

network-admin

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. The value range varies by device model.

out-label label-value: Specifies the outgoing label for the backup PW. The value range varies by device model.

pw-class class-name: Specifies a PW class by its name, a case-sensitive string of 1 to 19 characters. You can specify a PW class to configure the PW data encapsulation type and control word for the backup PW. If you do not specify a PW class, the PW data encapsulation type is determined by the link type of the interface. The control word feature is not supported for PW data encapsulation types that do not require using control word.

tunnel-policy tunnel-policy-name: Specifies a tunnel policy by its name, a case-sensitive string of 1 to 19 characters. If you do not specify a tunnel policy, the default tunnel policy is used.

Usage guidelines

This command configures a backup PW to implement PW redundancy. The backup PW is used when the primary PW fails.

To configure a backup static PW, you must specify the in-label and out-label. To configure a backup LDP PW, you do not need to specify the in-label and out-label.

The peer LSR ID and PW ID for a backup PW must be different from those for an existing VPLS PW, cross-connect bypass PW, or cross-connect PW.

Backup PW and bypass PW are mutually exclusive with each other. If you have configured a backup PW for a PW, you cannot configure a bypass PW or the PW. If you have configured a bypass PW for a PW, you cannot configure a backup PW for the PW. For information about configuring a bypass PW, see the bypass-peer command.

Backup PW and multi-segment PW are mutually exclusive with each other. If you have configured a multi-segment PW, you cannot configure a backup PW for the two PWs that form the multi-segment PW. If you have configured a backup PW for a PW, the PW cannot form a multi-segment PW. For information about configuring a multi-segment PW, see the peer command.

When you add a static PW, you must make sure that static PW uses a different incoming label than an existing static LSP or static CRLSP. If the incoming label is duplicated, you cannot make the static PW take effect by changing the incoming label of the static LSP or CRLSP. Instead, you must delete the static PW and then reconfigure the static PW with an unused incoming label.

Examples

# Configure a primary PW and a backup PW for cross-connect pw2pw in cross-connect group vpn2. The primary PW is destined to 6.6.6.6 and has a PW ID of 100. The backup PW is destined to 7.7.7.7 and has a PW ID of 200.

<Sysname> system-view

[Sysname] xconnect-group vpn2

[Sysname-xcg-vpn2] connection pw2pw

[Sysname-xcg-vpn2-pw2pw] peer 6.6.6.6 pw-id 100 in-label 16 out-label 17

[Sysname-xcg-vpn2-pw2pw-6.6.6.6-100] backup-peer 7.7.7.7 pw-id 200 in-label 18 out-label 19

[Sysname-xcg-vpn2-pw2pw-6.6.6.6-100-backup]

Related commands

bypass-peer

display l2vpn ldp

display l2vpn pw

peer

MPLS L2VPN commands -- bandwidth

Use bandwidth to set the expected bandwidth for a PW.

Use undo bandwidth to restore the default.

Syntax

bandwidth bandwidth-value

undo bandwidth

Default

The expected bandwidth is 10000000 kbps.

Views

Cross-connect PW view

Predefined user roles

network-admin

mdc-admin

Parameters

bandwidth-value: Specifies the expected bandwidth in the range of 1 to 10000000 kbps.

Examples

# Set the expected bandwidth to 10000 kbps for a PW.

<Sysname> system-view

[Sysname] xconnect-group vpn1

[Sysname-xcg-vpn1] connection pw2pw

[Sysname-xcg-vpn1-pw2pw] peer 1.1.1.1 pw-id 1

[Sysname-xcg-vpn1-pw2pw-1.1.1.1-1] bandwidth 10000

MPLS L2VPN commands -- bypass-peer

Use bypass-peer to configure a bypass PW for a cross-connect PW and enter cross-connect bypass PW view, or enter the view of an existing cross-connect bypass PW.

Use undo bypass-peer to remove a bypass PW.

Syntax

bypass-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 bypass-peer ip-address pw-id pw-id

Default

No bypass PW exists for a cross-connect PW.

Views

Cross-connect PW view

Predefined user roles

network-admin

mdc-admin

Parameters

ip-address: Specifies the LSR ID of the peer PE on the bypass PW.

pw-id pw-id: Specifies a PW ID for the bypass PW, in the range of 1 to 4294967295.

in-label label-value: Specifies the incoming label for the bypass PW. The value range varies by device model.

out-label label-value: Specifies the outgoing label for the bypass PW, in the range of 16 to 1048575.

pw-class class-name: Specifies a PW class by its name, a case-sensitive string of 1 to 19 characters. You can specify a PW class to configure the PW data encapsulation type and control word for the bypass PW. If you do not specify a PW class, the PW data encapsulation type is determined by the link type of the interface. The control word feature is not supported for PW data encapsulation types that do not require using control word.

tunnel-policy tunnel-policy-name: Specifies a tunnel policy by its name, a case-sensitive string of 1 to 19 characters. If you do not specify a tunnel policy, the default tunnel policy is used for the bypass PW.

Usage guidelines

To configure a bypass static PW, you must specify the in-label and out-label keywords. To configure a bypass LDP PW, you do not need to specify the in-label and out-label keywords.

The peer LSR ID and PW ID for a bypass PW must be different from those for an existing VPLS PW, cross-connect PW, or cross-connect backup PW.

Bypass PW and backup PW are mutually exclusive with each other. If you have configured a backup PW for a PW, you cannot configure a bypass PW or the PW. If you have configured a bypass PW for a PW, you cannot configure a backup PW for the PW. For information about configuring a backup PW, see the backup-peer command.

Bypass PW and multi-segment PW are mutually exclusive with each other. If you have configured a multi-segment PW, you cannot configure a bypass PW for the two PWs that form the multi-segment PW. If you have configured a bypass PW for a PW, the PW cannot form a multi-segment PW. For information about configuring a multi-segment PW, see the peer command.

When you add a static PW, you must make sure that static PW uses a different incoming label than an existing static LSP or static CRLSP. If the incoming label is duplicated, you cannot make the static PW take effect by changing the incoming label of the static LSP or CRLSP. Instead, you must delete the static PW and then reconfigure the static PW with an unused incoming label.

Examples

# Configure a primary PW and a bypass static PW for cross-connect pw2pw in cross-connect group vpn2. The primary PW is destined to 6.6.6.6 and has a PW ID of 100. The bypass PW is destined to 7.7.7.7 and has a PW ID of 200.

<Sysname> system-view

[Sysname] xconnect-group vpn2

[Sysname-xcg-vpn2] connection pw2pw

[Sysname-xcg-vpn2-pw2pw] peer 6.6.6.6 pw-id 100 in-label 16 out-label 17

[Sysname-xcg-vpn2-pw2pw-6.6.6.6-100] bypass-peer 7.7.7.7 pw-id 200 in-label 18 out-label 19

[Sysname-xcg-vpn2-pw2pw-6.6.6.6-100-bypass]

Related commands

backup-peer

display l2vpn ldp

display l2vpn pw

peer

MPLS L2VPN commands -- ccc

Use ccc to create a remote Circuit Cross Connect (CCC) connection.

Use undo ccc to restore the default.

Syntax

ccc in-label in-label-value out-label out-label-value { nexthop nexthop | out-interface interface-type interface-number } [ pw-class class-name ]

undo ccc

Default

No remote CCC connections exist.

Views

Cross-connect view

Predefined user roles

network-admin

mdc-admin

Parameters

in-label in-label-value: Specifies an incoming label in the range of 16 to 1023.

out-label out-label-value: Specifies an outgoing label in the range of 16 to 1023.

nexthop nexthop: Specifies the IP address of the next hop.

out-interface interface-type interface-number: Specifies the outgoing interface by its type and number.

pw-class class-name: Specifies a PW class by its name, a case-sensitive string of 1 to 19 characters. You can specify a PW class to configure the PW data encapsulation type and control word. If you do not specify a PW class, the PW data encapsulation type is determined by the interface type. The control word feature is not supported for PW data encapsulation types that do not require using control word.

Usage guidelines

A remote CCC connection is a static L2VPN connection that is manually created by specifying the incoming and outgoing labels on two PEs. A remote CCC connection does not need a public tunnel, but it requires configuring two static LSPs in opposite directions on each P device between the two PEs. CCC employs only one level of label to transfer packets. The static LSPs on the P devices transfer data only for the CCC connection.

This command must be configured on both the local and remote PEs to create a remote CCC connection. The outgoing label specified on a device must be the same as the incoming label specified on the next hop device.

After you create a remote CCC connection, you must execute the ac interface command to bind an interface or Ethernet service instance. The PE can forward packets from the interface or matching the Ethernet service instance to the remote CCC connection.

Use the out-interface keyword to specify the outgoing interface only on a point-to-point link. On other interfaces, for example, VLAN interfaces, you must use the nexthop keyword to specify the next hop IP address.

For the PEs to forward packets over a CCC connection, make sure the two PEs have the same CCC connection settings such as the encapsulation type and control word feature.

Examples

# Create a remote CCC connection that has incoming label 100, outgoing label 200, and next hop 10.1.1.1, and uses PW class pwc1.

<Sysname> system-view

[Sysname] xconnect-group bbb

[Sysname-xcg-bbb] connection ccc1

[Sysname-xcg-bbb-ccc1] ccc in-label 100 out-label 200 nexthop 10.1.1.1 pw-class pwc1

Related commands

ac interface

display l2vpn pw

MPLS L2VPN commands -- cem class-attach

Use cem class-attach to attach a CEM class to a CEM interface.

Use undo cem class-attach to restore the default.

Syntax

cem class-attach cem-class-name

undo cem class-attach

Default

No CEM class is attached to a CEM interface.

Views

CEM interface view

Predefined user roles

network-admin

mdc-admin

Parameters

cem-class-name: Specifies a CEM class by its name, a case-insensitive string of 1 to 19 characters.

Usage guidelines

After you attach a CEM class to an interface, the interface uses the CEM parameters configured in the CEM class for TDM-CEM services.

Examples

# Attach CEM class satop to Circuit-Emulation 2/3/0:0 that is channelized from the E1 controller.

<Sysname> system-view

[Sysname] controller e1 2/3/0

[Sysname-E1 2/3/0] cem-set 0 timeslot-list 1-5

[Sysname-E1 2/3/0] quit

[Sysname] interface circuit-emulation 2/3/0:0

[Sysname-Circuit-Emulation2/3/0:0] cem class-attach satop

MPLS L2VPN commands -- cem clock recover

Use cem clock recover to enable CEM clock recovery and specify a CEM clock recovery mode.

Use undo cem clock recover to restore the default.

Syntax

cem clock recover { adaptive | differential }

undo cem clock recover

Default

The device does not perform clock recovery.

Views

CEM interface view

Predefined user roles

network-admin

mdc-admin

Parameters

adaptive: Specifies the Adaptive Clock Recovery (ACR) mode.

differential: Specifies the Differential Clock Recovery (DCR) mode.

Usage guidelines

TDM signals are isochronous, meaning that the time between two consecutive bits is always the same. PSN does not have the stringent clock requirements. To transport TDM services through PSN, use one of the following clock recovery modes on an egress PE to implement clock recovery:

· ACR—Based on packet arrival rate and jitter buffer fill level. ACR is used when the ingress and egress PEs do not have a common clock source.

· DCR—Based on timestamps received in the RTP header. DCR is used when the ingress and egress PEs have a common clock source.

Examples

# Enable CEM clock recovery and configure the clock recovery mode as adaptive.

<Sysname> system-view

[Sysname] interface circuit-emulation 2/3/0:0

[Sysname-Circuit-Emulation2/3/0:0] cem clock recover adaptive

MPLS L2VPN commands -- cem clock transmit differential

Use cem clock transmit differential to configure the timestamp transmission mode as differential.

Use undo cem clock transmit differential to restore the default.

Syntax

cem clock transmit differential

undo cem clock transmit differential

Default

The absolute timestamp transmission mode is used.

Views

CEM interface view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

Timestamps are transmitted in one of the following modes:

· Absolute mode—An ingress PE sets timestamps in the RTP header by using the clock recovered from the incoming TDM circuit.

· Differential mode—Both PEs on a PW have access to a common high-quality clock source. The clock sender sets timestamps in the RTP header by using the difference between the TDM clock and the high-quality clock source.

Examples

# Configure the timestamp transmission mode as differential.

<Sysname> system-view

[Sysname] interface circuit-emulation 2/3/0:0

[Sysname-Circuit-Emulation2/3/0:0] cem clock transmit differential

MPLS L2VPN commands -- cem signaling cas

Use cem signaling cas to configure a CEM interface to use the channel-associated signaling (CAS).

Use undo cem signaling cas to restore the default.

Syntax

cem signaling cas

undo cem signaling cas

Default

A CEM interface does not use CAS.

Views

CEM interface view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

Use this command when CAS DS0 services are transmitted through CESoPSN CEM.

Examples

# Configure Circuit-Emulation 2/3/0:0 to use CAS.

<Sysname> system-view

[Sysname] interface circuit-emulation 2/3/0

[Sysname-Circuit-Emulation2/3/0] cem signaling cas

MPLS L2VPN commands -- cem-class

Use cem-class to create a circuit emulation (CEM) class and enter its view, or enter the view of an existing CEM class.

Use undo cem-class to delete a CEM class.

Syntax

cem-class cem-class-name

undo cem-class cem-class-name

Default

No CEM classes exist.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

cem-class-name: Specifies a CEM class name, a case-insensitive string of 1 to 19 characters.

Usage guidelines

In CEM class view, you can configure CEM parameters, including the jitter buffer size, payload size in each packet, and idle code that replaces the payload of each lost packet.

When multiple TDM-CEM services use the same parameters, you can configure a CEM class to simplify configuration.

Examples

# Create CEM class satop and enter CEM class view.

<Sysname> system-view

[Sysname] cem-class satop

[Sysname-cem-satop]

MPLS L2VPN commands -- connection

Use connection to create a cross-connect and enter its view, or enter the view of an existing cross-connect.

Use undo connection to remove a cross-connect.

Syntax

connection connection-name

undo connection connection-name

Default

No cross-connects exist.

Views

Cross-connect group view

Predefined user roles

network-admin

mdc-admin

Parameters

connection-name: Specifies the name of the cross-connect, a case-sensitive string of 1 to 20 characters, excluding hyphens.

Usage guidelines

A cross-connect is a point-to-point connection.

You can perform the following operations in cross-connect view:

· Execute the ac interface and peer commands to connect an AC to a PW, so the PE can forward packets between the AC and the PW.

· Execute the ac interface command twice to connect two ACs, so the PE can forward packets between the two ACs.

· Execute the peer command twice to connect two PWs to form a multi-segment PW.

· Execute the ac interface and ccc commands to connect an AC to a remote CCC connection, so the PE can forward packets between the AC and the remote CCC connection.

Examples

# Create cross-connect ac2pw for cross-connect group vpn1 and enter cross-connect view.

<Sysname> system-view

[Sysname] xconnect-group vpn1

[Sysname-xcg-vpn1] connection ac2pw

[Sysname-xcg-vpn1-ac2pw]

MPLS L2VPN commands -- connection remote-site-id

Use connection remote-site-id to create an auto-discovery cross-connect and enter its view, or enter the view of an existing auto-discovery cross-connect.

Use undo connection remote-site-id to remove the auto-discovery cross-connect.

Syntax

connection remote-site-id remote-site-id

undo connection remote-site-id remote-site-id

Default

No auto-discovery cross-connects exist.

Views

Site view

Predefined user roles

network-admin

mdc-admin

Parameters

remote-site-id: Specifies a remote site by its ID in the range of 0 to 256.

Usage guidelines

This command creates an auto-discovery cross-connect that uses BGP to establish a PW from the local site to the specified remote site.

In auto-discovery cross-connect view, you can execute ac interface to bind an AC to the auto-discovery cross-connect. The PE can forward packets between the AC and the PW.

Examples

# Create an auto-discovery cross-connect from site 1 to site 3 in site view, and enter auto-discovery cross-connect view.

<Sysname> system-view

[Sysname] xconnect-group bbb

[Sysname-xcg-bbb] auto-discovery bgp

[Sysname-xcg-bbb-auto] site 1 range 10

[Sysname-xcg-bbb-auto-1] connection remote-site-id 3

[Sysname-xcg-bbb-auto-1-3]

MPLS L2VPN commands -- control-word enable

Use control-word enable to enable the control word feature.

Use undo control-word enable to disable the control word feature.

Syntax

control-word enable

undo control-word enable

Default

The control word feature is disabled.

Views

PW class view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

The control word field is between the MPLS label stack and the Layer 2 data. It carries control information for the Layer 2 frame, for example, the sequence number.

The control word feature has the following functions:

· Avoids fragment disorder. In multipath forwarding, fragments received might be disordered. You can configure the control word feature so the device reorders the fragments according to the sequence number carried in the control word field.

· Transfers specific Layer 2 frame flags, such as the FECN bit and BECN bit of Frame Relay.

· Transfers OAM flags for TDM circuits, such as Loss of Signal (LOS) and Alarm Indication Signal (AIS).

· Identifies the original payload length for packets that include padding.

When the PW data encapsulation type is FR DLCI or ATM AAL5 SDU VCC, packets on the PW always carry the control word field, and the control word feature cannot be disabled.

When the PW data encapsulation type is Ethernet or VLAN, the control word field is optional. Packets transmitted on the PW carry the control word field only when control word is enabled on both PEs.

Examples

# Enable the control word feature for PW class pw100.

<Sysname> system-view

[Sysname] pw-class pw100

[Sysname-pw-pw100] control-word enable

Related commands

display l2vpn pw-class

MPLS L2VPN commands -- crc

Use crc to configure a cyclic redundancy check (CRC) mode for a CEM interface.

Use undo crc to restore the default.

Syntax

crc { 16 | 32 | none }

undo crc

Default

A CEM interface uses the 16-bit CRC.

Views

CEM interface view

Predefined user roles

network-admin

mdc-admin

Parameters

16: Specifies the 16-bit CRC.

32: Specifies the 32-bit CRC.

none: Disables CRC checking.

Examples

# Configure Circuit-Emulation 2/3/0:0 to use the 32-bit CRC.

<Sysname> system-view

[Sysname] interface circuit-emulation 2/3/0:0

[Sysname-Circuit-Emulation2/3/0:0] crc 32

MPLS L2VPN commands -- default

Use default to restore the default settings for a CEM interface.

Syntax

default

Views

CEM interface view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

| CAUTION: The default command might interrupt ongoing network services. Make sure you are fully aware of the impact of this command when you use it on a live network.

This command might fail to restore the default settings for some commands for reasons such as command dependencies or system restrictions. Use the display this command in interface view to identify these commands. Use their undo forms or follow the command reference to restore their default settings. If your restoration attempt still fails, follow the error message instructions to resolve the problem.

Examples

# Restore the default settings of Circuit-Emulation 2/3/0:0.

<Sysname> system-view

[Sysname] interface circuit-emulation 2/3/0:0

[Sysname-Circuit-Emulation2/3/0:0] default

MPLS L2VPN commands -- default-nexthop

Use default-nexthop to specify the default next hop.

Use undo default-nexthop to restore the default.

Syntax

default-nexthop { ip ip-address | mac { mac-address | broadcast } }

undo default-nexthop

Default

No default next hop is specified.

Views

Interface view

Predefined user roles

network-admin

mdc-admin

Parameters

ip ip-address: Specifies the IP address of the default next hop.

mac: Specifies the MAC address of the default next hop.

mac-address: Specifies the MAC address of the default next hop.

broadcast: Uses the broadcast MAC address as the MAC address of the default next hop.

Usage guidelines

If a CE is connected to a PE through an Ethernet link in an MPLS L2VPN interworking scenario, configure the default next hop on the PE. This allows the PE to encapsulate a link layer header for the packets to be sent to the CE.

If you specify the CE's MAC address or a broadcast MAC address as the default next hop, the PE uses this MAC address as the destination address of the outgoing packets. If you specify the CE's IP address as the default next hop, the PE performs the following operations:

1. Resolves the IP address to a MAC address through ARP.

2. Uses the resolved MAC address as the destination MAC address of the outgoing packets.

Examples

# Specify the default next hop IP address as 1.1.1.1 on GigabitEthernet 1/0/1 (PE's interface connected to the CE). (Applicable to routers.)

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] default-nexthop ip 1.1.1.1

# Specify the default next hop IP address as 1.1.1.1 on VLAN-interface 10 (PE's interface connected to the CE). (Applicable to switches.)

<Sysname> system-view

[Sysname] interface vlan-interface 10

[Sysname-Vlan-interface10] default-nexthop ip 1.1.1.1

MPLS L2VPN commands -- description (CEM interface view)

Use description to configure the description of an interface.

Use undo description to restore the default.

Syntax

description text

undo description

Default

The description of a CEM interface is Circuit-Emulation number Interface, for example, Circuit-Emulation2/3/0:0 Interface.

Views

CEM interface view

Predefined user roles

network-admin

mdc-admin

Parameters

text: Specifies a description, a case-sensitive string of 1 to 255 characters.

Examples

# Configure a description of router-interface for Circuit-Emulation 2/3/0:0.

<Sysname> system-view

[Sysname] interface circuit-emulation 2/3/0:0

[Sysname-Circuit-Emulation2/3/0:0] description router-interface

MPLS L2VPN commands -- description (cross-connect group view)

Use description to configure a description for a cross-connect group.

Use undo description to restore the default.

Syntax

description text

undo description

Default

No description is configured for a cross-connect group.

Views

Cross-connect group view

Predefined user roles

network-admin

mdc-admin

Parameters

text: Specifies a description, a case-sensitive string of 1 to 80 characters.

Examples

# Configure a description of vpws for vpn2 for cross-connect group vpn2.

<Sysname> system-view

[Sysname] xconnect-group vpn2

[Sysname-xcg-vpn2] description vpws for vpn2

Related commands

display l2vpn xconnect-group

MPLS L2VPN commands -- display bgp l2vpn signaling

Use display bgp l2vpn signaling to display MPLS L2VPN label block information discovered by BGP.

Syntax

display bgp [ instance instance-name ] l2vpn signaling [ peer ip-address { advertised | received } [ statistics ] | route-distinguisher route-distinguisher [ site-id site-id [ label-offset label-offset [ advertise-info ] ] ] | statistics ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

instance instance-name: Displays MPLS L2VPN label block information in a BGP instance. The instance-name argument specifies the BGP instance name, a case-sensitive string of 1 to 31 characters. If you do not specify a BGP instance, this command displays MPLS L2VPN label block information in the default BGP instance.

peer ip-address: Displays MPLS L2VPN label block information advertised to or received from a BGP peer. The ip-address argument specifies the peer IP address.

advertised: Displays MPLS L2VPN label block information advertised to the BGP peer.

received: Displays MPLS L2VPN label block information received from the BGP peer.

statistics: Displays BGP MPLS L2VPN label block statistics.

route-distinguisher route-distinguisher: Displays BGP MPLS L2VPN label block information for the route distinguisher (RD), which is a string of 3 to 21 characters. You can specify an RD in one of the following formats:

· 16-bit AS number:32-bit user-defined number. For example, 101:3.

· 32-bit IP address:16-bit user-defined number. For example, 192.168.122.15:1.

· 32-bit AS number:16-bit user-defined number, where the AS number must be equal to or greater than 65536. For example, 65536:1.

site-id site-id: Displays BGP MPLS L2VPN label block information for a site. The site-id argument specifies the site ID. The site ID range varies by device model.

label-offset label-offset: Displays information about the BGP MPLS L2VPN label block with an offset. The label-offset argument specifies the offset in the range of 0 to 65535.

advertise-info: Displays BGP MPLS L2VPN label block advertisement information.

Usage guidelines

If you do not specify any parameters, this command displays brief information about all BGP MPLS L2VPN label blocks.

Examples

# Display brief information about all BGP MPLS L2VPN label blocks.

<Sysname> display bgp l2vpn signaling

BGP local router ID is 192.168.1.135

Status codes: * - valid, > - best, d - dampened, h - history,

s - suppressed, S - stale, i - internal, e - external

Origin: i - IGP, e - EGP, ? - incomplete

Total number of label blocks: 2

Route distinguisher: 2:2

Total number of label blocks: 2

Site ID LB offset LB range LB base Nexthop

* > 1 0 10 1034 0.0.0.0

* >i 2 0 10 1162 192.3.3.3

Table 1 Command output

Field | Description
Status codes | Status codes: · * – valid—Valid route. · > – best—Best route. · d – damped—Dampened route. · h – history—History route. · s – suppressed—Suppressed route. · S – Stale—Stale route. · i – internal—Internal route. · e – external—External route.
Origin | Origin of the label block: · i – IGP—Originated in the AS. · e – EGP—Learned through EGP. · ? – incomplete—Unknown origin.
LB offset | Offset of the label block.
LB range | Size of the label block.
LB base | Initial value of the label block.

# Display detailed information about the BGP MPLS L2VPN label block that has RD 2:2, site ID 2, and offset 0.

<Sysname> display bgp l2vpn signaling route-distinguisher 2:2 site-id 2 label-offset 0

BGP local router ID: 192.168.1.135

Local AS number: 100

Route distinguisher: 2:2

Total number of label blocks: 1

Paths: 1 available, 1 best

From : 192.3.3.3 (192.168.1.140)

Original nexthop: 192.3.3.3

Ext-Community : <RT: 2:2>, <L2VPN info: MTU 1500, Encap type VLAN>

AS-path : (null)

Origin : igp

Attribute value : localpref 100, pref-val 0

Site ID : 2

LB offset : 0

LB base : 1162

LB range : 10

State : valid, internal, best

CSV : 0x01000ABFFF

Table 2 Command output

Field | Description
Paths | Number of label block messages: · available—Number of available label block messages. · best—Number of best label block messages.
From | IP address of the peer from which the label block was received.
Original nexthop | Original next hop. If the label block was obtained from a BGP route update, this field displays the next hop address in that BGP route update.
Ext-Community | Extended community attribute: · RT—Route target. · L2VPN info—L2VPN information, including the MTU and encapsulation type.
AS-path | AS path attribute, which records all ASs that the label block passed to prevent routing loops.
Origin | Origin of the label block: · igp—Originated in the AS. · egp—Learned through EGP. · incomplete—Unknown origin.
Attribute value | Attribute of the label block: · MED—Multi-Exit Discriminator attribute. · localpref—Local preference value. · pref-val—Preferred value. · pre—Preference value.
LB offset | Offset of the label block.
LB base | Initial value of the label block.
LB range | Size of the label block.
State | State of the label block: · valid. · internal. · external. · local. · best.
CSV | Circuit status vector.

# Display BGP advertisement information for the specified MPLS L2VPN label block.

<Sysname> display bgp l2vpn signaling route-distinguisher 2:2 site-id 1 label-offset 0 advertise-info

BGP local router ID: 192.168.1.135

Local AS number: 100

Route distinguisher: 2:2

Total number of label blocks: 1

Paths: 1 best

Site ID : 1

LB offset : 0

LB base : 1034

LB range : 10

CSV : 0x01000ADFFF

Advertised to peers (1 in total):

192.3.3.3

Table 3 Command output

Field | Description
Paths | Number of label block messages: · available—Number of available label block messages. · best—Number of best label block messages.
LB offset | Offset of the label block.
LB base | Initial value of the label block.
LB range | Size of the label block.
CSV | Circuit status vector.
Advertised to peers (1 in total) | Peers to which the label block has been advertised.

MPLS L2VPN commands -- display interface circuit-emulation

Use display interface circuit-emulation to display CEM interface information.

Syntax

display interface [ circuit-emulation [ interface-number ] ] [ brief [ description | down ] ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

circuit-emulation [ interface-number ]: Specifies a CEM interface. The interface-number argument specifies the CEM interface number. If you do not specify the circuit-emulation keyword, this command displays information about all interfaces on the device. If you specify the circuit-emulation keyword without the interface-number argument, this command displays information about all existing CEM interfaces.

brief: Displays brief interface information. If you do not specify this keyword, the command displays detailed interface information.

description: Displays complete interface descriptions. If you do not specify this keyword, the command displays only the first 27 characters of interface descriptions.

down: Displays information about interfaces in the physical state of DOWN and the causes. If you do not specify this keyword, the command displays information about interfaces in all states.

Examples

# Display detailed information about Circuit-Emulation 2/3/0:0.

<Sysname> display interface circuit-emulation 2/3/0:0

Circuit-Emulation 2/3/0:0

Current state: UP

Line protocol state: UP

Description: Circuit-Emulation2/3/0:0 Interface

Bandwidth: 64kbps

Maximum transmit unit: 0

Internet protocol processing: Disabled

Last clearing of counters: Never

Table 4 Command output

Field | Description
Current state | Physical link state of the CEM interface: · Administratively DOWN—The interface has been shut down by using the shutdown command. · DOWN—The interface is administratively up, but its physical state is down (possibly because no physical link exists or the link has failed). · UP—The interface is both administratively and physically up.
Line protocol state | Data link layer state of the CEM interface: · UP—The data link layer protocol is up. · DOWN—The data link layer protocol is down.
Description | Description of the CEM interface.
Bandwidth | Expected bandwidth for the CEM interface.
Maximum transmit unit | MTU of the CEM interface.
Internet protocol processing: Disabled | The interface is not assigned an IP address and cannot process IP packets.
Internet address | IP address of the interface. The primary attribute indicates that the address is the primary IP address.
Last clearing of counters | Last time the counters were cleared by using the reset counters interface command. If the reset counters interface command has never been executed since the device started up, this field displays Never.

# Display brief information about Circuit-Emulation 2/3/0:0.

<Sysname> display interface circuit-emulation 2/3/0:0 brief

Brief information on interfaces in bridge mode:

Link: ADM - administratively down; Stby - standby

Speed: (a) – auto

Duplex: (a)/A - auto; H - half; F - full

Type: A - access; T - trunk; H - hybrid

Interface Link Speed Duplex Type PVID Description

CEM2/3/0:0 DOWN -- -- -- --

# Display information about interfaces in DOWN state and the causes.

<Sysname> display interface circuit-emulation brief down

Brief information on interfaces in bridge mode:

Link: ADM - administratively down; Stby - standby

Interface Link Cause

CEM2/3/0:0 DOWN Not connected

Table 5 Command output

Field | Description
Link | Physical link state of the interface: · UP—The interface is physically up. · DOWN—The interface is physically down. · ADM—The interface has been shut down by using the shutdown command. To restore the physical state of the interface, use the undo shutdown command. · Stby—The interface is a backup interface in standby state. To see the primary interface, use the display interface-backup state command.
Speed | Speed of the interface, in bps. This field displays the (a) flag next to the speed if the speed is automatically negotiated. This field displays auto if the interface is configured to autonegotiate its speed but the autonegotiation has not started.
Duplex | Duplex mode of the CEM interface: · A—Autonegotiation. The interface is configured to autonegotiate its duplex mode but the autonegotiation has not started. · F—Full duplex. · F(a)—Autonegotiated full duplex. · H—Half duplex. · H(a)—Autonegotiated half duplex.
Type | Link type of the interface: · A—Access. · H—Hybrid. · T—Trunk.
PVID | Port VLAN ID.
Cause | Cause for the physical link state of an interface to be DOWN: · Administratively—The interface has been manually shut down by using the shutdown command. To restore the physical state of the interface, use the undo shutdown command. · Not connected—No physical connection is established (no network cable is connected or the cable is faulty).

MPLS L2VPN commands -- display l2vpn bgp

Use display l2vpn bgp to display MPLS L2VPN label block information.

Syntax

display l2vpn bgp [ local | peer ip-address ] [ xconnect-group group-name ] [ verbose ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

local: Displays local MPLS L2VPN label block information.

peer ip-address: Displays MPLS L2VPN label block information received from the remote peer.

xconnect-group group-name: Displays MPLS L2VPN label block information for a cross-connect group. The group-name argument specifies the cross-connect group name, a case-sensitive string of 1 to 31 characters. If you do not specify a cross-connect group, this command displays MPLS L2VPN label block information for all cross-connect groups.

verbose: Displays detailed information. If you do not specify this keyword, the command displays brief information.

Usage guidelines

If you specify a peer, this command displays both the label block received from the peer and the local label block that matches the received label block.

If you do not specify a peer or local, this command displays label blocks received from all peers and local label blocks that match the received ones. If no local label block matches the received ones, the command only displays the label blocks received from all peers.

A local label block matches a received label block if the following condition is met: local label block LO ≤ remote site ID ≤ local label block LO + local label block LR – 1.

Examples

# Display brief information about label blocks received from all peers.

<Sysname> display l2vpn bgp

Total number of BGP PWs: 1, 1 up, 0 down

Xconnect-group Name: vpnb, Site ID:1

Rmt Site Offset RD Nexthop In/Out Label State

2 0 2:2 192.3.3.3 1036/1163 Up

Table 6 Command output

Field | Description
Rmt Site | ID of the remote site.
Offset | Offset of the label block.

# Display detailed information about label blocks received from all peers.

<Sysname> display l2vpn bgp verbose

Xconnect-group Name: vpnb, Site ID:1

Remote Site ID : 2

Offset : 0

RD : 2:2

PW State : Up

Encapsulation : VLAN

MTU : 1500

Nexthop : 192.3.3.3

Local VC Label : 1036

Remote VC Label : 1163

Link ID : 1

Local Label Block : 1034/10/0

Remote Label Block : 1162/10/0

Export Route Target: 2:2

Table 7 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

Xconnect-group Name: vpnb

Site Offset Range Label Base RD

1 0 10 1034 2:2

# Display detailed information about all local label blocks.

<Sysname> display l2vpn bgp local verbose

Xconnect-group Name: vpnb

Site ID : 1

Offset : 0

RD : 2:2

Range : 10

Label Base : 1034

Link ID : 1

Table 8 Command output

Field | Description
Offset | Offset of the label block.
RD | RD of the label block. If no RD is configured, this field displays a hyphen (-).
Range | Range of the label block.
Label Base | Initial value of the label block.
Link ID | Link ID of the PW established using the label block. The link ID is fixed to 1 because an MPLS L2VPN cross-connect can establish only one BGP PW.

Related commands

display l2vpn pw

MPLS L2VPN commands -- display l2vpn forwarding

Use display l2vpn forwarding to display cross-connect forwarding information.

Syntax

Centralized devices:

display l2vpn forwarding { ac | pw } [ xconnect-group group-name ] [ verbose ]

Distributed devices in standalone mode:Centralized IRF devices:

display l2vpn forwarding { ac | pw } [ xconnect-group group-name ] [ slot slot-number [ cpu cpu-number ] ] [ verbose ]

Distributed devices in IRF mode:

display l2vpn forwarding { ac | pw } [ xconnect-group group-name ] [ chassis chassis-number slot slot-number [ cpu cpu-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.

xconnect-group group-name: Displays forwarding information for a cross-connect group. The group-name argument specifies the cross-connect group name, a case-sensitive string of 1 to 31 characters. If you do not specify a group, this command displays forwarding information for all cross-connect groups.

slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command displays cross-connect forwarding information on the active MPU. (Distributed devices in standalone mode.)

slot slot-number: Specifies an IRF member device by its member ID. If you do not specify a member device, this command displays cross-connect forwarding information for the master device. (Centralized IRF devices.) (IRF 3 incapable.)

slot slot-number: Specifies an IRF member device by its member ID or specifies a PEX by its virtual slot number. If you do not specify a member device or PEX, this command displays cross-connect forwarding information for the master device. (Centralized IRF devices.) (IRF 3 capable.)

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 cross-connect forwarding information for the global active MPU. (Distributed devices in IRF mode.) (IRF 3 incapable.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device or specifies a PEX. The chassis-number argument represents the member ID of the IRF member device or the virtual chassis number of the PEX. The slot-number argument represents the slot number of the card or PEX. If you do not specify a card or PEX, this command displays cross-connect forwarding information for the global active MPU. (Distributed devices in IRF mode.) (IRF 3 capable.)

cpu cpu-number: Specifies a CPU by its number. This option is available only if multiple CPUs are available on the specified slot.

verbose: Displays detailed information. If you do not specify this keyword, the command displays brief information.

Examples

# Display brief AC forwarding information for all cross-connect groups. (Applicable to routers.)

<Sysname> display l2vpn forwarding ac

Total number of cross-connections: 2

Total number of ACs: 2

AC Xconnect-group Name Link ID

GE1/0/1 vpn1 0

GE1/0/2 vpn2 0

# Display brief AC forwarding information for all cross-connect groups. (Applicable to switches.)

<Sysname> display l2vpn forwarding ac

Total number of cross-connections: 3

Total number of ACs: 3

AC Xconnect-group Name Link ID

GE1/0/1 srv1 vpn1 0

GE1/0/1 srv2 vpn2 1

Vlan14 vpn3 0

Table 9 Command output

Field | Description
Total number of cross-connections | Total number of cross-connects, including cross-connects not bound to any ACs.
AC | AC type: · Layer 3 interface. · Ethernet service instance on a Layer 2 interface.

# Display detailed AC forwarding information for all cross-connect groups. (Applicable to routers.)

<Sysname> display l2vpn forwarding ac verbose

Xconnect-group Name: vpws1

Connection Name: actopw

Interface: GE1/0/1

Link ID : 1

Access Mode : Ethernet

Connection Name: actoac

Interface: GE1/0/2

Link ID : 0

Access Mode : Ethernet

Interface: GE1/0/3

Link ID : 1

Access Mode : Ethernet

Reflector :

IP Address : 100.1.1.4

MAC Address : 8850-fc51-5cee

Src Port : 200

Dst Port : 201

# Display detailed AC forwarding information for all cross-connect groups. (Applicable to switches.)

<Sysname> display l2vpn forwarding ac verbose

Xconnect-group Name: vpws1

Connection Name: actopw

Interface: GE1/0/3 Service Instance: 1

Link ID : 1

Access Mode : VLAN

Encapsulation: s-vid 16

Bandwidth : Unlimited

Connection Name: actopw2

Interface: GE1/0/3 Service Instance: 4

Link ID : 1

Access Mode : VLAN

Encapsulation: untagged

Bandwidth : Unlimited

Reflector :

IP Address : 100.1.1.4

MAC Address : 8850-fc51-5cee

Src Port : 200

Dst Port : 201

Xconnect-group Name: vpws5

Connection Name: actopw

Interface: Vlan14

Link ID : 0

Access Mode : VLAN

Table 10 Command output

Field | Description
Xconnect-group Name | Cross-connect group name.
Connection Name | Cross-connect name.
Service Instance | The field is available only when the AC is an Ethernet service instance on a Layer 2 interface.
Access Mode | AC access mode: · VLAN. · Ethernet.
Encapsulation | Match criterion of the Ethernet service instance. This field is displayed only when the AC type is Ethernet service instance on a Layer 2 interface.
Bandwidth | This field is not supported in the current software version. Maximum bandwidth (in kbps) for traffic on the AC.
Reflector | Packet reflection information.
IP Address | Destination IP address to be reflected.
MAC Address | Destination MAC address to be reflected.
Src Port | Source UDP port to be reflected.
Dst Port | Destination UDP port to be reflected.

# Display brief PW forwarding information for all cross-connect groups.

<Sysname> display l2vpn forwarding pw

Total number of cross-connections: 1

Total number of PWs: 2, 2 up, 0 blocked, 0 down

Xconnect-group Name In/Out Label NID Link ID State

vpn1 1279/1151 1025 0 Up

vpn1 1278/1151 1027 1 Up

Table 11 Command output

Field | Description
Total number of cross-connections | Total number of cross-connects, including those not bound to any 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.
State | PW state: Up, Down, BFD Defect, or Blocked. Blocked indicates that the PW is a backup PW or bypass PW. BFD Defect indicates that BFD has detected a defect on the PW.

# Display detailed PW forwarding information for all cross-connect groups.

<Sysname> display l2vpn forwarding pw verbose

Xconnect-group Name: vpn1

Connection Name: ldp

Link ID: 0

PW Type : VLAN PW State : Up

In Label : 1279 Out Label: 1151

MTU : 1500

PW Attributes : Main

VCCV CC : Router-Alert

VCCV BFD : Fault Detection with BFD

Tunnel Group ID : 0x60000000

Tunnel NHLFE IDs: 1025

Link ID: 1

PW Type : VLAN PW State : Up

In Label : 1278 Out Label: 1151

MTU : 1500

PW Attributes : Main

VCCV CC : Router-Alert

VCCV BFD : Fault Detection with BFD

Tunnel Group ID : 0x160000001

Tunnel NHLFE IDs: 1027

Table 12 Command output

Field | Description
PW State | PW state: Up, Down, BFD Defect, or Blocked. Blocked indicates that the PW is a backup PW or bypass PW. 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. · Bypass—The PW is a bypass PW.
VCCV CC | VCCV CC type: · Control-Word—Control word. · Router-Alert—MPLS Router Alert Label. · TTL—TTL expiry (MPLS PW Label with TTL=1.) This field displays a hyphen (-) if no VCCV CC type is specified.
VCCV BFD | ‌ VCCV BFD type: · Fault Detection with BFD. BFD packets use IP/UDP encapsulation (with IP/UDP headers). · Fault Detection with Raw-BFD. BFD packets use PW-ACH encapsulation (without IP/UDP headers). This field displays a hyphen (-) if BFD is not used to verify PW connectivity.
Tunnel Group ID | ID of the tunnel group for the PW.
Tunnel NHLFE IDs | NHLFE IDs of the public tunnels that carry the PW. If equal-cost tunnels are available, this field displays multiple tunnel NHLFE IDs. If no tunnel is available, this field displays None.

MPLS L2VPN commands -- display l2vpn interface

Use display l2vpn interface to display L2VPN information for Layer 3 interfaces bound to cross-connects.

Syntax

display l2vpn interface [ xconnect-group group-name | interface-type interface-number ] [ verbose ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

xconnect-group group-name: Displays L2VPN information for Layer 3 interfaces bound to cross-connects in a cross-connect group. The group-name argument specifies the cross-connect group name, a case-sensitive string of 1 to 31 characters.

interface-type interface-number: Displays L2VPN information for the specified interface.

verbose: Displays detailed information. If you do not specify this keyword, the command displays brief information.

Usage guidelines

If you do not specify any parameters, this command displays L2VPN information for all Layer 3 interfaces bound to cross-connects.

Examples

# Display brief L2VPN information for all Layer 3 interfaces bound to cross-connects. (Applicable to routers.)

<Sysname> display l2vpn interface

Total number of interfaces: 2, 2 up, 0 down

Interface Owner Link ID State Type

GE1/0/1 vpws1 1 Up VPWS

GE1/0/2 vpws2 1 Up VPWS

# Display detailed L2VPN information for all Layer 3 interfaces bound to cross-connects. (Applicable to routers.)

<Sysname> display l2vpn interface verbose

Interface : GE1/0/1

Owner : vpws1

Link ID : 1

State : UP

Type : VPWS

Statistics : Enabled

Input Statistics:

Octets :0

Packets :0

Output Statistics:

Octets :0

Packets :0

Interface : GE1/0/2

Owner : vpws2

Link ID : 1

State : UP

Type : VPWS

Statistics : Enabled

Input Statistics:

Octets :0

Packets :0

Output Statistics:

Octets :0

Packets :0

# Display brief L2VPN information for all Layer 3 interfaces bound to cross-connects. (Applicable to switches.)

<Sysname> display l2vpn interface

Total number of interfaces: 2, 2 up, 0 down

Interface Owner Link ID State Type

Vlan10 vpws1 0 Up VPWS

Vlan11 vpws2 0 Up VPWS

# Display detailed L2VPN information for all Layer 3 interfaces bound to cross-connects. (Applicable to switches.)

<Sysname> display l2vpn interface verbose

Interface : Vlan10

Owner : vpws1

Link ID : 1

State : UP

Type : VPWS

Statistics : Enabled

Input Statistics:

Octets : 0

Packets : 0

Output Statistics:

Octets : 0

Packets : 0

Interface : Vlan11

Owner : vpws2

Link ID : 1

State : UP

Type : VPWS

Statistics : Enabled

Input Statistics:

Octets : 0

Packets : 0

Output Statistics:

Octets : 0

Packets : 0

Table 13 Command output

Field | Description
Owner | Cross-connect group name.
Link ID | Link ID of the AC.
Type | L2VPN type. The value can only be VPWS for an MPLS L2VPN network.
Statistics | Packet statistics state on the Layer 3 interface: · Enabled. · Disabled.
Input Statistics | Incoming packet statistics on the Layer 3 interface: · Octets—Number of incoming octets. · Packets—Number of incoming packets.
Output Statistics | Outgoing packet statistics on the Layer 3 interface: · Octets—Number of outgoing octets. · Packets—Number of outgoing packets.

MPLS L2VPN commands -- display l2vpn ldp

Use display l2vpn ldp to display LDP PW label information.

Syntax

display l2vpn ldp [ peer ip-address [ pw-id pw-id ] | xconnect-group group-name ] [ verbose ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

peer ip-address: Displays LDP PW label information advertised by a peer PE. The ip-address argument specifies the LSR ID of the peer PE. If you do not specify a peer PE, this command displays LDP PW label information advertised by all peer PEs.

pw-id pw-id: Displays LDP PW label information for a PW. The pw-id argument specifies the PW ID in the range of 1 to 4294967295. If you specify peer ip-address without this option, the command displays all LDP PW label information advertised by the peer PE.

xconnect-group group-name: Displays LDP PW label information for a cross-connect group. The group-name argument specifies the cross-connect group name, a case-sensitive string of 1 to 31 characters. If you do not specify a cross-connect group, this command displays LDP PW label information for all cross-connect groups.

verbose: Displays detailed information. If you do not specify this keyword, the command displays brief information.

Examples

# Display brief information about all LDP PW labels.

<Sysname> display l2vpn ldp

Total number of LDP PWs: 5, 4 up, 1 down

Peer PW ID/VPLS ID In/Out Label State Owner

192.3.3.3 1001 775125/775126 Up vpws1

192.3.3.3 1001 775125/775126 Up vpws1

192.3.3.3 1003 775117/775122 Up vpws3

192.3.3.3 1004 775120/775120 Up vpws4

192.4.4.4 1000 775116/unknown Down vpws5

Table 14 Command output

Field | Description
PW ID/VPLS ID | This field displays the PW ID for FEC 128, and displays the VPLS ID for FEC 129. Only VPLS supports FEC 129.
Owner | Cross-connect group of the PW.

# Display detailed information about all LDP PW labels.

<Sysname> display l2vpn ldp verbose

Peer: 192.2.2.2 PW ID: 1000

Xconnect-group: vpn1

Connection : ldp

PW State : Up

PW Status Communication: Notification method

PW ID FEC (Local/Remote):

PW Type : VLAN/VLAN

Group ID : 0/0

Label : 1151/1279

Control Word: Disabled/Disabled

VCCV CC Type: -/-

VCCV CV Type: -/-

MTU : 1500/1500

PW Status : PW forwarding/PW forwarding

Peer: 192.3.3.3 PW ID: 1

Xconnect-group: x1

Connection : c1

PW State : Up

PW Status Communication: Notification method

PW ID FEC (Local/Remote):

PW Type : TDM-CESoPSN-Basic/TDM-CESoPSN-Basic

Group ID : 0/0

Label : 710127/710127

Control Word: Enabled/Enabled

VCCV CV Type: LSP Ping/LSP Ping

VCCV CC Type: -/-

Bit Rate : 10/10

Payload : 80/80

RTP Header : Enabled/Enabled

Timestamping: Differential/Differential

Frequency : 0/0

PW Status : PW forwarding/PW forwarding

Table 15 Command output

Field | Description
Xconnect-group | Cross-connect group of the PW.
Connection | Cross-connect of the PW.
PW Status Communication | PW state communicate: · Notification method—Uses notifications to communicate PW states. · Label withdraw method—Assigns a PW label to the PW when the AC is up and withdraws the PW label when the AC goes down.
VCCV CC Type | VCCV CC type: · Control-Word—Control word. · Router-Alert—MPLS Router Alert Label. · TTL—TTL expiry (MPLS PW Label with TTL=1.) This field displays a hyphen (-) if no VCCV CC type is specified. For information about VCCV, see MPLS Configuration Guide.
VCCV CV Type | VCCV CV type: · LSP Ping—Uses MPLS LSP ping to verify PW connectivity. · BFD—Uses BFD to verify PW connectivity. BFD packets use IP/UDP encapsulation (with IP/UDP headers). · Raw-BFD—Uses BFD to verify PW connectivity. BFD packets use PW-ACH encapsulation (without IP/UDP headers). This field displays a hyphen (-) if VCCV is not performed on the PW.
Bit Rate | CEM interface bit rate, in kbps. It varies by circuit type of CEM interfaces. · E1 in SAToP mode = 32. · T1 in SAToP mode = 24. · E1/T1 in CESoPSN mode = Number of time slots.
Payload | CEM interface payload size, in bytes.
RTP Header | Whether the RTP header is enabled.
Timestamping | Timestamp transmission mode: · Differential. · Absolute.
Frequency | Time stamping frequency.

MPLS L2VPN commands -- display l2vpn pw

Use display l2vpn pw to display L2VPN PW information.

Syntax

display l2vpn pw [ xconnect-group group-name ] [ protocol { bgp | ldp | static } ] [ verbose ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

xconnect-group group-name: Displays L2VPN PW information for a cross-connect group. The group-name argument specifies the cross-connect group name, a case-sensitive string of 1 to 31 characters. If you do not specify a group, this command displays L2VPN PW information for all cross-connect groups.

protocol: Displays L2VPN PW information established by a protocol. If you do not specify a protocol, this command displays L2VPN PW information established by all protocols.

bgp: Displays BGP PW information.

ldp: Displays LDP PW information.

static: Displays static PW information, including remote CCC connections.

verbose: Displays detailed information. If you do not specify this keyword, the command displays brief information.

Usage guidelines

After you enable PW statistics, you can use the display l2vpn pw verbose command to display PW statistics.

Examples

# Display brief information about all L2VPN PWs.

<Sysname> display l2vpn pw

Flags: M - main, B - backup, BY - bypass, H - hub link, S - spoke link, N - no split horizon

Total number of PWs: 2

2 up, 0 blocked, 0 down, 0 defect, 0 idle, 0 duplicate

Xconnect-group Name: ldp

Peer PW ID/Rmt Site In/Out Label Proto Flag Link ID State

192.3.3.3 500 1299/1299 LDP M 0 Up

Xconnect-group Name: vpnb

Peer PW ID/Rmt Site In/Out Label Proto Flag Link ID State

192.3.3.3 2 1036/1163 BGP M 1 Up

Table 16 Command output

Field | Description
Flags | PW flag.
PW ID/Rmt Site | This field displays the PW ID for a static or LDP PW, and displays the remote site ID for a BGP PW.
Proto | Protocol that established the PW: LDP, Static, or BGP.
Flag | PW attribute: · M—Primary PW. · B—Backup PW. · BY—Bypass PW.
Link ID | Link ID of the PW.
State | PW state: · Up—The PW is available. · Down—The PW is not available. · Blocked—The PW is a backup PW. · Defect—BFD has detected a defect on the PW. · Idle—The incoming label of the PW is not available. · Dup—The incoming label of the static PW is used by a static LSP or a static CRLSP.

# Display detailed information about all PWs.

<Sysname> display l2vpn pw verbose

Xconnect-group Name: ldp

Connection Name: ldp

Peer: 192.3.3.3 PW ID: 500

Signaling Protocol : LDP

Link ID : 0 PW State : Up

In Label : 1299 Out Label: 1299

MTU : 1500

PW Attributes : Main

VCCV CC : -

VCCV BFD : -

Tunnel Group ID : 0x800000160000000

Tunnel NHLFE IDs : 1026

Input statistics :

Octets : 10600

Packets : 100

Errors : 0

Discards : 0

Output statistics :

Octets : 12600

Packets : 100

Errors : 0

Discards : 0

Xconnect-group Name: vpnb

Connection of auto-discovery: Site 1

Peer: 192.3.3.3 Remote Site: 2

Signaling Protocol : BGP

Link ID : 1 PW State : Up

In Label : 1036 Out Label: 1163

MTU : 1500

PW Attributes : Main

VCCV CC : -

VCCV BFD : -

Tunnel Group ID : 0x800000160000000

Tunnel NHLFE IDs : 1026

Table 17 Command output

Field | Description
Xconnect-group Name | Cross-connect group name.
Connection Name | Cross-connect name, which is displayed for LDP and static PWs.
Peer | IP address of the peer PE of the PW.
Signaling Protocol | Protocol that established the PW: LDP, Static, or BGP.
PW State | PW state: · Up—The PW is available. · Down—The PW is not available. · Blocked—The PW is a backup PW. · Defect—BFD has detected a defect on the PW. · Idle—The incoming label of the PW is not available. · Duplicate—The incoming label of the static PW is used by a static LSP or a static CRLSP.
Wait to Restore Time | Wait time to switch traffic from the backup PW to the primary PW when the primary PW recovers, in seconds. If the switchover is disabled, this field displays Infinite. This field is available when both primary and backup PW exist, and is displayed only for the primary PW.
Remaining Time | Remaining wait time for traffic switchover, in seconds.
PW Attributes | PW attribute: · Main—Primary PW. · Backup—Backup PW. · Bypass—Bypass PW.
VCCV CC | VCCV CC type: · Control-Word—Control word. · Router-Alert—MPLS Router Alert Label. · TTL—TTL expiry (MPLS PW Label with TTL=1.) This field displays a hyphen (-) if no VCCV CC type is specified.
VCCV BFD | ‌ VCCV BFD type: · Fault Detection with BFD. BFD packets use IP/UDP encapsulation (with IP/UDP headers). · Fault Detection with Raw-BFD. BFD packets use PW-ACH encapsulation (without IP/UDP headers). This field displays a hyphen (-) if BFD is not used to verify PW connectivity.
Tunnel Group ID | ID of the tunnel group for the PW.
Tunnel NHLFE IDs | NHLFE IDs of the public tunnels that carry the PW. If equal-cost tunnels are available, this field displays multiple tunnel NHLFE IDs. If no tunnel is available, this field displays None.
Connection of auto-discovery | The PW is a BGP PW.
Site | Local site ID.
Remote site | Remote site ID.
Input statistics | Incoming packet statistics for the PW: · Octets—Number of incoming octets. · Packets—Number of incoming packets. · Errors—Number of error packets. · Discards—Number of discarded packets.
Output statistics | Outgoing packet statistics for the PW: · Octets—Number of outgoing octets. · Packets—Number of outgoing packets. · Errors—Number of error packets. · Discards—Number of discarded packets.

Related commands

statistics enable

MPLS L2VPN commands -- display l2vpn pw-class

Use display l2vpn pw-class to display PW class information.

Syntax

display l2vpn pw-class [ class-name ] [ verbose ]

Views

Any view

Predefined user roles

network-admin

network-operator

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.

verbose: Displays detailed information. If you do not specify this keyword, the command displays brief PW class information.

Examples

# Display information about all PW classes.

<Sysname> display l2vpn pw-class

Total number of PW classes: 2

PW Class Name PW Type Control Word VCCV CC VCCV BFD

pw1 Ethernet Enabled Router-Alert BFD

pw2 VLAN Disabled Router-Alert BFD

Table 18 Command output

Field | Description
VCCV CC | VCCV CC type: · Control-Word—Control word. · Router-Alert—MPLS Router Alert Label. · TTL—TTL expiry (MPLS PW Label with TTL=1.) This field displays a hyphen (-) if no VCCV CC type is specified.
VCCV BFD | ‌ VCCV BFD type: · BFD—BFD packets use IP/UDP encapsulation (with IP/UDP headers). · Raw-BFD—BFD packets use PW-ACH encapsulation (without IP/UDP headers). This field displays a hyphen (-) if BFD is not used to verify PW connectivity.

# Display detailed information about all PW classes.

<Sysname> display l2vpn pw-class verbose

PW Class Name : pw1

PW Type : Ethernet

Control Word: Enabled

VCCV CC : Router-Alert

VCCV BFD : BFD

Sequencing : Both

PW Class Name : pw2

PW Type : VLAN

Control Word: Disabled

VCCV CC : Router-Alert

VCCV BFD : BFD

Sequencing : -

Table 19 Command output

Field | Description
PW Type | PW data encapsulation type: Ethernet or VLAN.
Control Word | Whether control word is enabled.
VCCV CC | VCCV CC type: · Control-Word—Control word. · Router-Alert—MPLS Router Alert Label. · TTL—TTL expiry (MPLS PW Label with TTL=1.) This field displays a hyphen (-) if no VCCV CC type is specified.
VCCV BFD | ‌ VCCV BFD type: · BFD—BFD packets use IP/UDP encapsulation (with IP/UDP headers). · Raw-BFD—BFD packets use PW-ACH encapsulation (without IP/UDP headers). This field displays a hyphen (-) if BFD is not used to verify PW connectivity.
Sequencing | Packet sequencing on the PW. The value is Both, which means sequencing is enabled for both incoming and outgoing packets on a PW. A hyphen (-) in this field indicates that packet sequencing is disabled on the PW.

Related commands

pw-class

MPLS L2VPN commands -- 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. The instance ID is in the range of 1 to 4096. If you specify interface interface-type interface-number without this option, the command displays information about all Ethernet service instances on the specified Layer 2 Ethernet interface or Layer 2 aggregate interface.

verbose: Displays detailed information. If you do not specify this keyword, the command displays brief information.

Examples

# Display brief information about all Ethernet service instances.

<Sysname> display l2vpn service-instance

Total number of service-instances: 5, 5 up, 0 down

Total number of ACs: 2, 2 up, 0 down

Interface SrvID Owner LinkID State Type

GE1/0/1 1 vpws1 1 Up VPWS

GE1/0/1 2 vpws2 1 Up VPWS

Table 20 Command output

Field | Description
SrvID | Ethernet service instance ID.
Owner | Name of the cross-connect group bound to the Ethernet service instance. This field is empty if no cross-connect group is bound.
Link ID | Link ID of the AC.
State | State of the service instance: UP or Down.
Type | L2VPN type. The value can only be VPWS for an MPLS L2VPN network.

# Display detailed information about all Ethernet service instances on Layer 2 Ethernet interface GigabitEthernet 1/0/1.

<Sysname> display l2vpn service-instance interface gigabitethernet 1/0/1 verbose

Interface: GE1/0/1

Service Instance: 1

Type : Manual

Encapsulation : s-vid 16

Bandwidth : -

Xconnect-group: vpws1

Connection : actopw

Link ID : 1

State : Up

Statistics : Enabled

Input Statistics:

Octets :0

Packets :0

Output Statistics:

Octets :0

Packets :0

Table 21 Command output

Field | Description
Interface | Layer 2 Ethernet interface or Layer 2 aggregate interface.
Type | Ethernet service instance type. This field can only be Manual, which indicates that the Ethernet service instance is manually created.
Encapsulation | Packet match criterion of the Ethernet service instance. This field is not displayed if no packet match criterion is configured.
Bandwidth | This field is not supported in the current software version. Maximum bandwidth (in kbps) for traffic on the AC.
Xconnect-group | Name of the cross-connect group bound to the Ethernet service instance.
AD connection | Name of the auto-discovery cross-connect bound to the Ethernet service instance, identified by the local and remote site IDs.
Link ID | Link ID of the AC.
State | State of the Ethernet service instance: UP or Down.
Statistics | Packet statistics state: · Enabled—Packet statistics is enabled for the Ethernet service instance. · Disabled—Packet statistics is disabled for the Ethernet service instance.
Input Statistics | Incoming packet statistics for the Ethernet service instance: · Octets—Number of incoming octets. · Packets—Number of incoming packets.
Output Statistics | Outgoing packet statistics for the Ethernet service instance: · Octets—Number of outgoing octets. · Packets—Number of outgoing packets.

Related commands

service-instance

MPLS L2VPN commands -- display l2vpn xconnect-group

Use display l2vpn xconnect-group to display cross-connect group information.

Syntax

display l2vpn xconnect-group [ name group-name ] [ verbose ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

name group-name: Displays information about a cross-connect group. The group-name argument specifies the cross-connect group name, a case-sensitive sting of 1 to 31 characters. If you do not specify a group, this command displays information about all cross-connect groups.

verbose: Displays detailed information. If you do not specify this keyword, the command displays brief information.

Examples

# Display brief information about all cross-connect groups.

<Sysname> display l2vpn xconnect-group

Total number of cross-connections: 3, 0 up, 3 down, 0 admin down

Xconnect-group Name Connection ID MTU State

abc 0 1500 Down

vpn1 2 1500 Down

vpn2 1 1500 Down

Table 22 Command output

Field | Description
Connection ID | Cross-connect ID.
State | Cross-connect group state: Up, Down, or Admin down. Admin down indicates that the cross-connect group has been shut down by using the shutdown command.

# Display detailed information about all cross-connect groups. (Applicable to routers.)

<Sysname> display l2vpn xconnect-group verbose

Xconnect-group Name: vpnb

Connection of auto-discovery: Site 1, Remote Site 2

Connection ID : 0

State : Up

MTU : 1500

BGP PWs:

Peer Remote Site Link ID State

192.3.3.3 2 1 Up

ACs:

AC Link ID State Type

GE1/0/1 0 Up Manual

# Display detailed information about all cross-connect groups. (Applicable to switches.)

<Sysname> display l2vpn xconnect-group verbose

Xconnect-group Name: ldp

Description : ldp-pw

Connection Name : ldp

Connection ID : 1

State : Down

MTU : 1500

Interworking IPv4: Enabled

LDP PWs:

Peer PW ID Link ID State

192.3.3.3 200 1 Down

ACs:

AC Link ID State

Vlan10 0 Up

Xconnect-group Name: vpnb

Connection of auto-discovery: Site 1, Remote Site 2

Connection ID : 0

State : Up

MTU : 1500

BGP PWs:

Peer Remote Site Link ID State

192.3.3.3 2 1 Up

ACs:

AC Link ID State Type

GE1/0/4 srv1 0 Up Manual

Table 23 Command output

Field | Description
Xconnect-group Name | Cross-connect group name.
Description | Description for the cross-connect group. If no description is configured, this field is not displayed.
Connection Name | Cross-connect name.
Connection of auto-discovery | Auto-discovery cross-connect.
Site | Local site ID.
Remote site | Remote site ID.
Connection ID | Cross-connect ID.
State | Cross-connect group state: Up, Down, or Admin down. Admin down indicates that the cross-connect group has been shut down by using the shutdown command.
Interworking IPv4 | IPv4 interworking state: Enabled or Disabled.
State | PW state: Up, Down, Blocked, or Defect.
Type | Ethernet service instance type. This field can only be Manual, which indicates that the Ethernet service instance is manually created.
AC | AC type: · Layer 3 interface. · Ethernet service instance on a Layer 2 interface.

Related commands

xconnect-group

MPLS L2VPN commands -- encapsulation

Use encapsulation to configure a packet match criterion for an Ethernet service instance.

Use undo encapsulation to restore the default.

Syntax

encapsulation c-vid vlan-id-list

encapsulation s-vid vlan-id-list [ only-tagged ]

encapsulation s-vid vlan-id c-vid { vlan-id-list | all }

encapsulation { default | tagged | untagged }

undo encapsulation [ { c-vid | s-vid } vlan-id-list ]

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

c-vid vlan-id-list: Matches packets with the specified inner VLAN IDs.

s-vid vlan-id-list: Matches packets with the specified outer VLAN IDs.

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.

s-vid vlan-id c-vid { vlan-id-list | all }: Matches packets with the specified outer and inner VLAN IDs.

· The vlan-id argument specifies a VLAN ID in the range of 1 to 4094.

· The vlan-id-list argument specifies a space-separated list of up to eight VLAN items. Each item specifies a VLAN ID or a range of VLAN IDs in the format of start-VLAN-ID to end-VLAN-ID. The value range for VLAN IDs is 1 to 4094.

· all: Specifies all VLAN IDs.

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 all packets if it is the only instance on the interface.

tagged: Matches any packets that have a VLAN tag.

untagged: Matches any packets that do not have a VLAN tag.

Usage guidelines

In the following situations, you can modify the match criterion of an Ethernet service instance by repeating the encapsulation command:

· The match criterion is configured by the encapsulation s-vid command without the only-tagged keyword.

?span style='font:7.0pt "Times New Roman"'> To add more matching outer VLAN IDs to the criterion, repeat the encapsulation s-vid command without the only-tagged keyword. For example, if you execute the encapsulation s-vid 100 and encapsulation s-vid 200 commands, the match criterion matches all packets with outer VLAN IDs 100 and 200.

?span style='font:7.0pt "Times New Roman"'> To remove matching outer VLAN IDs from the criterion, repeat the undo encapsulation s-vid command. If all matching outer VLAN IDs are removed, the mapping between the Ethernet service instance and the cross-connect is removed automatically.

· The match criterion is configured by the encapsulation c-vid command.

?span style='font:7.0pt "Times New Roman"'> To add more matching inner VLAN IDs to the criterion, repeat the encapsulation c-vid command. For example, if you execute the encapsulation c-vid 300 and encapsulation c-vid 400 commands, the match criterion matches all packets with inner VLAN IDs 300 and 400.

?span style='font:7.0pt "Times New Roman"'> To remove matching inner VLAN IDs from the criterion, repeat the undo encapsulation c-vid command. If all matching inner VLAN IDs are removed, the mapping between the Ethernet service instance and the cross-connect is removed automatically.

· The match criterion is configured by the encapsulation s-vid c-vid command.

?span style='font:7.0pt "Times New Roman"'> To add more matching VLAN IDs to the criterion, repeat the encapsulation s-vid c-vid, encapsulation s-vid (without the only-tagged keyword), or encapsulation c-vid command. The total matching VLAN IDs include all specified inner VLAN IDs and outer VLAN IDs.

For example, you first execute the encapsulation s-vid 100 c-vid 100 command, and then execute the encapsulation s-vid 200 c-vid 200, encapsulation s-vid 300, and encapsulation c-vid 400 commands. The match criterion matches all packets with inner VLAN IDs 100, 200, and 400 and outer VLAN IDs 100, 200, and 300.

?span style='font:7.0pt "Times New Roman"'> To remove matching inner or outer VLAN IDs from the criterion, repeat the undo encapsulation c-vid or undo encapsulation s-vid command. However, you cannot remove all matching inner or outer VLAN IDs.

If you execute the undo encapsulation command without the c-vid or s-vid keyword , the command removes the match criterion. In addition, the command automatically removes the mapping between the Ethernet service instance and the cross-connect.

In the following situations, you cannot modify the match criterion of an Ethernet service instance by repeating the encapsulation command:

· The match criterion is configured by the encapsulation s-vid { vlan-id | vlan-id-list } only-tagged command.

· The match criterion is configured by the encapsulation tagged command.

· The match criterion is configured by the encapsulation untagged command.

· The match criterion is configured by the encapsulation default command.

To modify the match criterion, you must first delete the match criterion with the undo encapsulation command, and then execute the encapsulation command.

If the match criteria of Ethernet service instances overlap on an interface, the packet matching method depends on the device model.

To configure match criteria for Ethernet service instances on the same interface, follow these restrictions and guidelines:

· A match criterion configured by the encapsulation s-vid command and a match criterion configured by the encapsulation s-vid c-vid command must not have overlapped outer VLAN IDs. The exception is that both match criteria have exactly the same outer VLAN IDs.

· Two match criteria configured by the encapsulation c-vid command must not have the same or overlapped inner VLAN IDs.

· Two match criteria configured by the encapsulation s-vid c-vid command can have the same or overlapped inner VLAN IDs if they have different outer VLAN IDs. If they have the same outer VLAN IDs, they must not have the same or overlapped inner VLAN IDs.

Examples

# Configure Ethernet service instance 1 on GigabitEthernet 1/0/1 to match packets that have an outer VLAN ID of 111.

<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

MPLS L2VPN commands -- idle-code

Use idle-code to configure the idle code to replace the payload of each lost CEM packet.

Use undo idle-code to restore the default.

Syntax

idle-code bit-pattern

undo idle-code

Default

The idle code is FF.

Views

CEM class view

Predefined user roles

network-admin

mdc-admin

Parameters

bit-pattern: Specifies the idle code, a hexadecimal number in the range of 00 to ff.

Usage guidelines

An egress PE sends TDM frames to a TDM circuit at a constant rate. When the egress PE detects that the expected CEM packets are not received by a CEM interface, the PE considers the packets lost. It replaces the payload of each lost CEM packet with the equivalent amount of the replacement data (idle code), and then sends the packet to the TDM circuit.

Examples

# Configure the idle code as C2 for CEM class satop.

<Sysname> system-view

[Sysname] cem-class satop

[Sysname-cem-satop] idle-code c2

MPLS L2VPN commands -- interface circuit-emulation

Use interface circuit-emulation to enter the view of a CEM interface.

Syntax

interface circuit-emulation { interface-number:0 | interface-number:set-number }

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

interface-number: Specifies the number of a CE1/PRI or CT1/PRI interface. For more information, see Interface Configuration Guide.

set-number: Specifies the number of a CEM set on the interface, in the range of 0 to 30. A CEM set is formed by bundling time slots on the interface. For more information about CEM sets, see Interface Configuration Guide.

Usage guidelines

Use interface circuit-emulation interface-number:0 to enter CEM interface view when SAToP mode is used.

Use interface circuit-emulation interface-number:set-number to enter CEM interface view when CESoPSN mode is used.

Examples

# Enter the view of Circuit-Emulation 2/3/0:0.

<Sysname> system-view

[Sysname] interface circuit-emulation2/3/0:0

[Sysname-Circuit-Emulation2/3/0:0]

MPLS L2VPN commands -- interworking

Use interworking to enable interworking for a cross-connect.

Use undo interworking to disable interworking for a cross-connect.

Syntax

interworking ipv4

undo interworking

Default

Interworking is disabled for a cross-connect.

Views

Cross-connect view

Predefined user roles

network-admin

mdc-admin

Parameters

ipv4: Specifies IPv4 interworking.

Usage guidelines

Interworking enables a PW to connect ACs that have different link types. In an IPv4 interworking scenario, a PE extracts IPv4 packets from frames received from the AC and sends the packets to the peer PE through the PW. The peer PE uses the link protocol of the connected AC to encapsulate the IPv4 packets and sends the packets through the AC. This method hides the link types of ACs at the two ends.

IPv4 interworking discards non-IPv4 packets received from the AC.

When interworking is enabled, the PW data encapsulation type configuration does not take effect.

Examples

# Enable IPv4 interworking for cross-connect ac2pw in cross-connect group vpn1.

<Sysname> system-view

[Sysname] xconnect-group vpn1

[Sysname-xcg-vpn1] connection ac2pw

[Sysname-xcg-vpn1-ac2pw] interworking ipv4

MPLS L2VPN commands -- jitter-buffer

Use jitter-buffer to set the jitter buffer size for a CEM class.

Use undo jitter-buffer to restore the default.

Syntax

jitter-buffer buffer-size

undo jitter-buffer

Default

The jitter buffer size varies by circuit type of CEM interfaces that use the CEM class, irrespective of SAToP or CESoPSN.

· E1 = 16 milliseconds.

· T1 = 16 milliseconds.

· E3 = 5 milliseconds.

· T3 = 5 milliseconds.

Views

CEM class view

Predefined user roles

network-admin

mdc-admin

Parameters

buffer-size: Specifies the jitter buffer size in the range of 1 to 500 milliseconds.

Usage guidelines

Packet delay variation is big on a PSN. A jitter buffer is required on an egress PE to compensate for the packet delay variation. The egress PE buffers the payload of the TDM packets so that it can send data to the TDM circuit at a constant rate.

A bigger jitter buffer size represents a higher anti-jitter ability, but it will introduce a longer delay during data stream reconstruction. To ensure high-quality transmission, set an appropriate jitter buffer size according to the network condition.

Examples

# Set the jitter buffer size of CEM class satop to 100 milliseconds.

<Sysname> system-view

[Sysname] cem-class satop

[Sysname-cem-satop] jitter-buffer 100

MPLS L2VPN commands -- 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

MPLS L2VPN commands -- l2vpn reflector

Use l2vpn reflector to configure L2VPN packet reflection.

Use undo l2vpn reflector to disable L2VPN packet reflection.

Syntax

l2vpn reflector interface interface-type interface-number [ service-instance instance-id ] ip ip-address [ mac mac-address ] [ source-port source-port ] [ destination-port destination-port ]

undo l2vpn reflector interface interface-type interface-number [ service-instance instance-id ]

Default

L2VPN packet reflection is disabled.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

interface: Specifies a Layer 3 interface bound to a cross-connect.

interface-type interface-number: Specifies the Layer 3 interface by its type and number.

service-instance instance-id: Specifies an Ethernet service instance bound to a cross-connect. The value range for the Ethernet service instance ID is in the range of 1 to 4096.

ip ip-address: Specifies the destination IP address to be reflected, in dotted decimal notation. The specified IP address must not be the IP address of the CE's interface connected to the local device.

mac mac-address: Specifies the destination MAC address to be reflected. The specified MAC address must not be a multicast MAC address or an all-zero MAC address. If you do not specify this option, the MAC address of the CE-facing interface is used for reflection.

source-port source-port: Specifies the source UDP port to be reflected. The value range for the port number is 1 to 65535, and the default is 49184.

destination-port destination-port: Specifies the destination UDP port to be reflected. The value range for the port number is 1 to 65535, and the default is 7.

Usage guidelines

When this command is executed, the device generates an ARP suppression entry based on the specified IP and MAC addresses. The device uses the entry to answer the ARP request for the specified IP address and reflects the PW test packets. For this feature to take effect, you must also enable ARP suppression for the cross-connect bound to the specified AC (a Layer 3 interface or Ethernet service instance).

The IP addresses in the ARP suppression entries generated for Ethernet service instances or Layer 3 interfaces must be different.

Only one ARP suppression entry can be generated for an Ethernet service instance or a Layer 3 interface. If you execute this command multiple times for an Ethernet service instance or a Layer 3 interface, the most recent configuration takes effect.

The device supports a maximum of eight ARP suppression entries.

Examples

# Configure packet reflection, specify the interface as GigabitEthernet 1/0/1, and specify the IP address to be reflected as 1.0.0.1.

<Sysname> system-view

[Sysname] l2vpn reflector interface gigabitethernet 1/0/1 ip 1.0.0.1

Related commands

display l2vpn forwarding

MPLS L2VPN commands -- l2vpn switchover

Use l2vpn switchover to switch traffic from a PW to its backup or primary PW.

Syntax

l2vpn switchover peer ip-address pw-id pw-id

Views

User view

Predefined user roles

network-admin

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

MPLS L2VPN commands -- mtu

Use mtu to set an MTU for PWs established on a cross-connect or auto-discovery cross-connect.

Use undo mtu to restore the default.

Syntax

mtu size

undo mtu

Default

A PW has an MTU of 1500 bytes.

Views

Cross-connect view

Auto-discovery cross-connect group view

Predefined user roles

network-admin

mdc-admin

Parameters

size: Specifies an MTU value. The value range varies by device model.

Usage guidelines

The specified MTU applies to all PWs established in the cross-connect view or the auto-discovery cross-connect group view.

The MTU specifies the maximum packet length, including the control word, PW label, and network layer packet.

For an LDP PW to come up, the PEs at the two ends of the PW must have the same MTU.

Examples

# Set the MTU to 1400 bytes for cross-connect ac2pw in cross-connect group vpn1.

<Sysname> system-view

[Sysname] xconnect-group vpn1

[Sysname-xcg-vpn1] connection ac2pw

[Sysname-xcg-vpn1-ac2pw] mtu 1400

# Set the MTU to 1400 bytes for the auto-discovery cross-connect in cross-connect group bbb.

<Sysname> system-view

[Sysname] xconnect-group bbb

[Sysname-xcg-bbb] auto-discovery bgp

[Sysname-xcg-bbb-auto] mtu 1400

Related commands

display l2vpn xconnect-group

MPLS L2VPN commands -- payload

Use payload to set the payload size for each packet of a CEM class.

Use undo payload to restore the default.

Syntax

payload size

undo payload

Default

In SAToP mode, the payload size varies by circuit type of CEM interfaces that use the CEM class.

· E1 = 256 bytes.

· T1 = 192 bytes.

· E3 = 1024 bytes.

· T3 = 1024 bytes.

In CESoPSN mode, the payload size varies by number of time slots for CEM interfaces that use the CEM class. Payload size (L in bytes), number of time slots (N), and packetization delay (D in milliseconds) have the following relationship: L = 8*N*D.

· When N = 1, the default values for D and L are 8 and 64.

· When 2 <=N <= 4, the default values for D and L are 4 and 32*N.

· When N >= 5, the default values for D and L are 1 and 8*N.

Views

CEM class view

Predefined user roles

network-admin

mdc-admin

Parameters

size: Specifies the payload size, in the range of 32 to 1312 bytes.

Usage guidelines

The payload size determines the size of each packet transmitted on a PW.

Examples

# Set the size of the payload in each packet of CEM class satop to 512 bytes.

<Sysname> system-view

[Sysname] cem-class satop

[Sysname-cem-satop] payload 512

MPLS L2VPN commands -- peer

Use peer to configure a PW for a cross-connect and enter cross-connect PW view, or enter the view of an existing cross-connect PW.

Use undo peer to delete a PW for a cross-connect.

Syntax

peer ip-address pw-id pw-id [ in-label label-value out-label label-value ] [ pw-class class-name | tunnel-policy tunnel-policy-name ] *

undo peer ip-address pw-id pw-id

Default

No PWs exist for a cross-connect.

Views

Cross-connect view

Predefined user roles

network-admin

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. The value range varies by device model.

out-label label-value: Specifies the outgoing label of the PW. The value range varies by device model.

pw-class class-name: Specifies a PW class by its name, a case-sensitive string of 1 to 19 characters. You can specify a PW class to configure the PW data encapsulation type and control word. If you do not specify a PW class, the PW data encapsulation type is determined by the interface type. The control word feature is not supported for PW data encapsulation types that do not require using control word.

tunnel-policy tunnel-policy-name: Specifies a tunnel policy by its name, a case-sensitive string of 1 to 19 characters. If you do not specify a tunnel policy, the default tunnel policy is used.

Usage guidelines

The PW ID for a PW must be the same on the PEs at the two ends of the PW.

On a PE, the LSR ID of the peer PE and the PW ID uniquely identify a PW. The peer LSR ID and PW ID combination of a PW must be unique among all VPLS PWs and cross-connect PWs.

To create a static PW, you must specify the incoming and outgoing labels. To enter the view of an existing static PW, you do not need to specify the incoming and outgoing labels.

If you do not specify the incoming and outgoing labels when you create a new PW, LDP is used to create the PW.

To create a multi-segment PW, execute the peer command twice to create two cross-connect PWs in the same cross-connect view. The two PWs form a multi-segment PW.

Multi-segment PW and backup PW are mutually exclusive with each other . If you have configured a multi-segment PW, you cannot configure a backup PW for the two PWs that form the multi-segment PW. If you have configured a backup PW for a PW, the PW cannot form a multi-segment PW. For information about configuring a backup PW, see the backup-peer command.

Multi-segment PW and bypass PW are mutually exclusive with each other. If you have configured a multi-segment PW, you cannot configure a bypass PW for the two PWs that form the multi-segment PW. If you have configured a bypass PW for a PW, the PW cannot form a multi-segment PW. For information about configuring a bypass PW, see the the bypass-peer command.

When you add a static PW, you must make sure that static PW uses a different incoming label than an existing static LSP or static CRLSP. If the incoming label is duplicated, you cannot make the static PW take effect by changing the incoming label of the static LSP or CRLSP. Instead, you must delete the static PW and then reconfigure the static PW with an unused incoming label.

Examples

# Configure an LDP PW destined to 4.4.4.4 for cross-connect pw2pw in cross-connect group vpn1 and enter cross-connect PW view. The PW ID is 200.

<Sysname> system-view

[Sysname] xconnect-group vpn1

[Sysname-xcg-vpn1] connection pw2pw

[Sysname-xcg-vpn1-pw2pw] peer 4.4.4.4 pw-id 200

[Sysname-xcg-vpn1-pw2pw-4.4.4.4-200]

# Configure a static PW destined to 5.5.5.5 for cross-connect pw2pw in cross-connect group vpn1 and enter cross-connect PW view. The static PW has an ID of 200, an incoming label of 100, and an outgoing label of 200.

<Sysname> system-view

[Sysname] xconnect-group vpn1

[Sysname-xcg-vpn1] connection pw2pw

[Sysname-xcg-vpn1-pw2pw] peer 5.5.5.5 pw-id 200 in-label 100 out-label 200

[Sysname-xcg-vpn1-pw2pw-5.5.5.5-200]

Related commands

display l2vpn ldp

display l2vpn pw

pw-class

tunnel-policy

MPLS L2VPN commands -- peer signaling

Use peer signaling to enable BGP to exchange label block information with the specified peer or peer group.

Use undo peer signaling to disable BGP to exchange label block information with the specified peer or peer group.

Syntax

peer { group-name | ip-address [ mask-length ] } signaling [ non-standard ]

undo peer { group-name | ip-address [ mask-length ] } signaling

Default

BGP can exchange label block information with an L2VPN peer or peer group through RFC 4761 MP_REACH_NLRI.

Views

BGP L2VPN address family view

Predefined user roles

network-admin

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.

mask-length: Specifies a mask length in the range of 0 to 32. You can use the ip-address and mask-length arguments together to specify a subnet. If you specify a subnet, this command enables BGP to exchange label block information with all dynamic peers in the subnet.

non-standard: Uses draft-kompella-ppvpn-l2vpn-03 MP_REACH_NLRI to exchange label block information. If you do not specify this keyword, RFC 4761 MP_REACH_NLRI is used to exchange label block information.

Usage guidelines

L2VPN uses MP-BGP to exchange label blocks when creating a BGP PW.

To enable BGP to exchange label blocks with the specified peers through RFC 4761 MP_REACH_NLRI, you can also use the peer enable command in BGP L2VPN address family view. To disable the capability, use the undo peer signaling command.

Examples

# Enable BGP to exchange label block information with the peer 3.3.3.9 through draft-kompella-ppvpn-l2vpn-03 MP_REACH_NLRI.

<Sysname> system-view

[Sysname] bgp 100

[Sysname-bgp-default] address-family l2vpn

[Sysname-bgp-default-l2vpn] peer 3.3.3.9 signaling non-standard

Related commands

display bgp l2vpn signaling

MPLS L2VPN commands -- 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.

On an inter-AS VPN option B network, an ASBR needs to store all BGP L2VPN information (label block information) and advertises the information to the remote ASBR. To meet this need, execute the undo policy vpn-target command on the ASBR 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-default] address-family l2vpn

[Sysname-bgp-default-l2vpn] undo policy vpn-target

MPLS L2VPN commands -- ppp ipcp ignore local-ip

Use ppp ipcp ignore local-ip to configure PPP to support IPCP negotiation without an IP address.

Use undo ppp ipcp ignore local-ip to restore the default.

Syntax

ppp ipcp ignore local-ip

undo ppp ipcp ignore local-ip

Default

PPP does not support IPCP negotiation without an IP address, and the local interface must be configured with an IP address to perform IPCP negotiation with the peer.

Views

Interface view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

In an MPLS L2VPN interworking scenario, link layer negotiation packets cannot be delivered on the network, and Layer 2 connections cannot be established directly between CEs. Therefore, PEs must establish Layer 2 connections with the connected CEs. For example, on a PPP link, the PE and its connected CE perform PPP negotiation to establish a PPP connection.

If the PE's interface that is connected to the CE has an IP address, IPCP negotiation is performed.

If the interface does not have an IP address, use this command to ensure a successful IPCP negotiation without an IP address. The configuration for IPCP negotiation without an IP address takes precedence over the IPCP proxy IP address configuration.

Examples

# Configure PPP to support IPCP negotiation without an IP address on Serial 2/1/0.

<Sysname> system-view

[Sysname] interface serial 2/1/0

[Sysname-Serial2/1/0] link-protocol ppp

[Sysname-Serial2/1/0] ppp ipcp ignore local-ip

Related commands

ppp ipcp proxy

MPLS L2VPN commands -- ppp ipcp proxy

Use ppp ipcp proxy to specify an IPCP proxy IP address.

Use undo ppp ipcp proxy to restore the default.

Syntax

ppp ipcp proxy ip-address

undo ppp ipcp proxy

Default

No IPCP proxy IP address is specified.

Views

Interface view

Predefined user roles

network-admin

mdc-admin

Parameters

ip-address: Specifies an IPCP proxy IP address.

Usage guidelines

In an MPLS L2VPN interworking scenario, link layer negotiation packets cannot be delivered on the network, and Layer 2 connections cannot be established directly between CEs. Therefore, PEs must establish Layer 2 connections with the connected CEs. For example, on a PPP link, the PE and its connected CE perform PPP negotiation to establish a PPP connection.

If the PE's interface that is connected to the CE has an IP address, IPCP negotiation is performed.

If the interface does not have an IP address, use this command to specify the IPCP proxy IP address as the IP address of the peer CE. This ensures a successful IPCP negotiation. The configuration for IPCP negotiation without an IP address takes precedence over the IPCP proxy IP address configuration.

Examples

# Specify the IPCP proxy IP address as 1.1.1.1.

<Sysname> system-view

[Sysname] interface serial 2/1/0

[Sysname-Serial2/1/0] link-protocol ppp

[Sysname-Serial2/1/0] ppp ipcp proxy 1.1.1.1

Related commands

ppp ipcp ignore local-ip

MPLS L2VPN commands -- protection dual-receive

Use protection dual-receive to enable the dual receive feature for PW redundancy. After the dual receive feature is enabled, both the primary and backup PWs can receive packets, but only the primary PW sends packets.

Use undo protection dual-receive to restore the default.

Syntax

protection dual-receive

undo protection dual-receive

Default

The dual receive feature is disabled. When the primary PW is normal, the backup PW does not send or receive packets.

Views

Cross-connect view

Predefined user roles

network-admin

mdc-admin

Examples

# Enable the dual receive feature for cross-connect ac2pw in cross-connect group vpn1.

<Sysname> system-view

[Sysname] xconnect-group vpn1

[Sysname-xcg-vpn1] connection ac2pw

[Sysname-xcg-vpn1-ac2pw] protection dual-receive

MPLS L2VPN commands -- pw-class (auto-discovery cross-connect group view)

Use pw-class to specify a PW class for an auto-discovery cross-connect group.

Use undo pw-class to restore the default.

Syntax

pw-class class-name

undo pw-class

Default

No PW class is specified.

Views

Auto-discovery cross-connect group view

Predefined user roles

network-admin

mdc-admin

Parameters

class-name: Specifies a PW class by its name, a case-sensitive string of 1 to 19 characters.

Usage guidelines

The specified PW class will be used to establish all PWs in the auto-discovery cross-connect group.

Examples

# Specify a PW class named pw100 for auto-discovery cross-connect group bbb.

<Sysname> system-view

[Sysname] pw-class pw100

[Sysname-pw-pw100] quit

[Sysname] xconnect-group bbb

[Sysname-xcg-bbb] auto-discovery bgp

[Sysname-xcg-bbb-auto] pw-class pw100

Related commands

control-word enable

display l2vpn pw-class

pw-class

pw-type

MPLS L2VPN commands -- pw-class (system view)

Use pw-class to create a PW class and enter its view, or enter the view of an existing PW class.

Use undo pw-class to delete a PW class.

Syntax

pw-class class-name

undo pw-class class-name

Default

No PW classes exist.

Views

System view

Predefined user roles

network-admin

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 data encapsulation type and whether to enable control word. You can configure PWs to use the same PW class to simplify PW attribute configuration.

Examples

# Create a PW class named pw100 and enter PW view.

<Sysname> system-view

[Sysname] pw-class pw100

[Sysname-pw-pw100]

Related commands

control-word enable

display l2vpn pw-class

pw-type

MPLS L2VPN commands -- pw-type

Use pw-type to specify a PW data encapsulation type for a PW class.

Use undo pw-type to restore the default.

Syntax

pw-type { ethernet | vlan }

undo pw-type

Default

The PW data encapsulation type is VLAN.

Views

PW class view

Predefined user roles

network-admin

mdc-admin

Parameters

ethernet: Specifies the PW data encapsulation type as Ethernet.

vlan: Specifies the PW data encapsulation type as VLAN.

Usage guidelines

This command takes effect only when the AC type is Ethernet.

When the PW data encapsulation type is Ethernet, P-tag is not transferred on a PW.

· For a packet from a CE:

?span style='font:7.0pt "Times New Roman"'> If the packet contains a P-tag, the PE removes the P-tag, and adds a PW label and an outer tag into the packet before forwarding it.

?span style='font:7.0pt "Times New Roman"'> If the packet contains no P-tag, the PE directly adds a PW label and an outer tag into the packet before forwarding it.

· For a packet to a CE:

?span style='font:7.0pt "Times New Roman"'> If the access mode is configured as VLAN by using the ac interface command, the PE adds a P-tag into the packet before sending it to the CE.

?span style='font:7.0pt "Times New Roman"'> If the access mode is configured as Ethernet by using the ac interface command, the PE directly sends the packet to the CE.

You cannot rewrite or remove existing tags.

When the PW data encapsulation type is VLAN, packets transmitted over a PW must carry a P-tag.

· For a packet from a CE:

?span style='font:7.0pt "Times New Roman"'> If the peer PE does not require the ingress to rewrite the P-tag, the PE keeps the P-tag unchanged for the packet, and then encapsulates the packet. If the packet contains no P-tag, the PE adds a null label (the label value is 0) into the packet, and then encapsulates the packet.

?span style='font:7.0pt "Times New Roman"'> If the peer PE requires the ingress to rewrite the P-tag, the PE changes the P-tag to the expected VLAN tag (the tag value might be 0), and then adds a PW label and an outer tag into the packet. If the packet contains no P-tag, the PE adds a VLAN tag expected by the peer PE (the tag value might be 0), and then adds a PW label and an outer tag into the packet.

· For a packet to a CE:

?span style='font:7.0pt "Times New Roman"'> If the access mode is configured as VLAN by using the ac interface command, the PE rewrites or retains the P-tag before forwarding the packet.

?span style='font:7.0pt "Times New Roman"'> If the access mode is configured as Ethernet by using the ac interface command, the PE removes the P-tag before forwarding the packet.

Examples

# Configure the PW data encapsulation type as Ethernet.

<Sysname> system-view

[Sysname] pw-class pw100

[Sysname-pw-pw100] pw-type ethernet

Related commands

ac-interface

display l2vpn pw-class

MPLS L2VPN commands -- reset counters interface circuit-emulation

Use reset counters interface circuit-emulation to clear CEM interface statistics.

Syntax

reset counters interface [ circuit-emulation [ interface-number ] ]

Views

User view

Predefined user roles

network-admin

mdc-admin

Parameters

circuit-emulation [ interface-number ]: Specifies a CEM interface. The interface-number argument specifies the CEM interface number. If you do not specify the circuit-emulation keyword, this command clears statistics for all interfaces. If you specify the circuit-emulation keyword without the interface-number argument, this command clears statistics for all CEM interfaces.

Usage guidelines

Use this command to clear old statistics so you can observe new traffic statistics on a CEM interface.

Examples

# Clear statistics for Circuit-Emulation 2/3/0:0.

<Sysname> reset counters interface circuit-emulation 2/3/0:0

Related commands

display interface circuit-emulation

MPLS L2VPN commands -- reset l2vpn statistics ac

Use reset l2vpn statistics ac to clear packet statistics for ACs.

Syntax

reset l2vpn statistics ac [ interface interface-type interface-number [ service-instance instance-id ] ]

Views

User view

Predefined user roles

network-admin

mdc-admin

Parameters

interface interface-type interface-number: Specifies a Layer 2 interface or a Layer 3 interface by its type and number.

service-instance instance-id: Specifies an Ethernet service instance on the specified Layer 2 interface. The value range for the instance-id argument is 1 to 4096.

Usage guidelines

If you do not specify any parameters, this command clears packet statistics for all ACs.

If you specify a Layer 3 interface, you cannot specify the service-instance instance-id option. If you specify a Layer 2 interface, you must specify the service-instance instance-id option.

Examples

# Clear packet statistics on Layer 3 interface GigabitEthernet 1/0/1. (Applicable to routers.)

<Sysname> reset l2vpn statistics ac interface gigabitethernet 1/0/1

# Clear packet statistics for Ethernet service instance 1 on Layer 2 interface GigabitEthernet 1/0/1. (Applicable to switches.)

<Sysname> reset l2vpn statistics ac interface gigabitethernet1/0/1 service-instance 1

Related commands

ac statistics enable

display l2vpn interface verbose

display l2vpn service-instance verbose

statistics enable (Ethernet service instance view)

MPLS L2VPN commands -- reset l2vpn statistics pw

Use reset l2vpn statistics pw to clear packet statistics for PWs.

Syntax

reset l2vpn statistics pw [ xconnect-group group-name [ connection connection-name ] ]

Views

User view

Predefined user roles

network-admin

mdc-admin

Parameters

xconnect-group group-name: Specifies a cross-connect group by its name, a case-sensitive string of 1 to 31 characters. If you do not specify a cross-connect group, this command clears packet statistics for all PWs.

connection connection-name: Specifies a cross-connect by its name, a case-sensitive string of 1 to 20 characters. If you do not specify a cross-connect, this command clears packet statistics for all cross-connects in a cross-connect group.

Usage guidelines

If a PW has a backup PW, this command clears packet statistics for both the PW and its backup PW.

Examples

# Clear packet statistics for all PWs.

<Sysname> reset l2vpn statistics pw

Related commands

statistics enable

MPLS L2VPN commands -- revertive

Use revertive to specify the switchover mode and set the switchover wait time.

Use undo revertive to restore the default.

Syntax

revertive { wtr wtr-time | never }

undo revertive { wtr | never }

Default

The switchover mode is revertive and the switchover wait time is 0 seconds. When the primary PW recovers, traffic is immediately switched from the backup PW to the primary PW.

Views

Cross-connect view

Predefined user roles

network-admin

mdc-admin

Parameters

wtr wtr-time: Specifies the switchover mode as revertive and specifies the wait time in the range of 0 to 3600 seconds. When the primary PW recovers, the PE waits for the specified time before switching traffic from the backup PW to the primary PW.

never: Specifies the switchover mode as non-revertive. After the primary PW recovers, traffic is not switched from the backup PW to the primary PW.

Examples

# Specify the revertive mode and set the switchover wait time to 120 seconds for cross-connect ac2pw in cross-connect group vpn1.

<Sysname> system-view

[Sysname] xconnect-group vpn1

[Sysname-xcg-vpn1] connection ac2pw

[Sysname-xcg-vpn1-ac2pw] revertive wtr 120

Related commands

display l2vpn pw

MPLS L2VPN commands -- route-distinguisher

Use route-distinguisher to configure a route distinguisher (RD) for a BGP cross-connect group.

Use undo route-distinguisher to restore the default.

Syntax

route-distinguisher route-distinguisher

undo route-distinguisher

Default

No RD is configured for a BGP cross-connect group.

Views

Auto-discovery cross-connect group view

Predefined user roles

network-admin

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 with the same site ID but in different VPNs.

BGP adds the configured RD before the site ID. The RD and the site ID uniquely identify a VPN site.

You cannot configure the same RD for different BGP cross-connect groups.

To modify an RD, execute the undo route-distinguisher command to remove the RD, and then execute the route-distinguisher command.

Examples

# Configure the RD 22:2 for BGP cross-connect group bbb.

<Sysname> system-view

[Sysname] xconnect-group bbb

[Sysname-xcg-bbb] auto-discovery bgp

[Sysname-xcg-bbb-auto] route-distinguisher 22:2

MPLS L2VPN commands -- rr-filter

Use rr-filter to create a route reflector (RR) reflection policy.

Use undo rr-filter to restore the default.

Syntax

rr-filter ext-comm-list-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

ext-comm-list-number: Specifies an extended community list number in the range of 1 to 199.

Usage guidelines

After this command is executed, only the L2VPN information that is permitted by the specified extended community list is reflected.

By configuring different RR reflection policies on RRs in a cluster, you can implement load balancing among the RRs.

For more information about extended community lists, see Layer 3—IP Routing Configuration Guide.

Examples

# Configure the RR to reflect only the BGP L2VPN information that is permitted by extended community list 10.

<Sysname> system-view

[Sysname] bgp 100

[Sysname-bgp-default] address-family l2vpn

[Sysname-bgp-default-l2vpn] rr-filter 10

Related commands

ip extcommunity-list (Layer 3—IP Routing Command Reference)

MPLS L2VPN commands -- rtp-header enable

Use rtp-header enable to configure CEM class packets to carry the RTP header.

Use undo rtp-header enable to restore the default.

Syntax

rtp-header enable

undo rtp-header enable

Default

CEM class packets do not carry the RTP header.

Views

CEM class view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

For an egress PE to use differential timestamps in the RTP header to implement clock recovery, use this command to configure CEM class packets to carry the RTP header.

Examples

# Configure packets for CEM class satop to carry the RTP header.

<Sysname> system-view

[Sysname] cem-class satop

[Sysname-cem-satop] rtp-header enable

MPLS L2VPN commands -- sequencing

Use sequencing to enable sequencing for packets on a PW.

Use undo sequencing to restore the default.

Syntax

sequencing both

undo sequencing both

Default

Sequencing is disabled for packets on a PW.

Views

PW class view

Predefined user roles

network-admin

mdc-admin

Parameters

both: Enables sequencing for both incoming and outgoing packets on a PW.

Usage guidelines

During packet switching, packet disorder might occur due to load balancing or heavy forwarding load. To ensure that packets are forwarded correctly, enable packet sequencing on the ingress and egress PEs. Then, the ingress PE adds a sequence number to each packet on the PW, and the egress PE resequences the packets according to the sequence numbers.

If packet sequencing is enabled on the remote PE, not on the local PE, the local PE does not sequence the received packets with sequence numbers.

Examples

# Enable sequencing for both incoming and outgoing packets on PWs that use PW class aaa.

<Sysname> system-view

[Sysname] pw-class aaa

[Sysname-pwc-aaa] sequencing both

MPLS L2VPN commands -- service-instance

Use service-instance to create an Ethernet service instance on an interface and enter its view, or enter the view of an existing Ethernet service instance.

Use undo service-instance to delete an Ethernet service instance on an interface.

Syntax

service-instance instance-id

undo service-instance instance-id

Default

No Ethernet service instances exist.

Views

Layer 2 Ethernet interface view

Layer 2 aggregate interface view

Predefined user roles

network-admin

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

MPLS L2VPN commands -- shutdown (CEM interface view)

Use shutdown to shut down a CEM interface.

Use undo shutdown to bring up a CEM interface.

Syntax

shutdown

undo shutdown

Default

A CEM interface is up.

Views

CEM interface view

Predefined user roles

network-admin

mdc-admin

Examples

# Shut down Circuit-Emulation 2/3/0:0.

<Sysname> system-view

[Sysname] interface circuit-emulation 2/3/0:0

[Sysname-Circuit-Emulation2/3/0:0] shutdown

MPLS L2VPN commands -- shutdown (cross-connect group view)

Use shutdown to disable a cross-connect group.

Use undo shutdown to enable a cross-connect group.

Syntax

shutdown

undo shutdown

Default

A cross-connect group is enabled.

Views

Cross-connect group view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

After you disable a cross-connect group, all cross-connects in the group cannot provide L2VPN services.

Use the shutdown command when you want to temporarily disable L2VPN. When a cross-connect group is disabled, you can still configure the cross-connect group. After the configuration, use the undo shutdown command to enable the cross-connect group. The cross-connect group will provide L2VPN services using the new settings.

Examples

# Disable cross-connect group vpn2.

<Sysname> system-view

[Sysname] xconnect-group vpn2

[Sysname-xcg-vpn2] shutdown

Related commands

display l2vpn xconnect-group

MPLS L2VPN commands -- site

Use site to create a local site and enter its view, or enter the view of an existing local site.

Use undo site to delete a local site.

Syntax

site site-id [ range range-value ] [ default-offset default-offset ]

undo site site-id

Default

No sites exist.

Views

Auto-discovery cross-connect group view

Predefined user roles

network-admin

mdc-admin

Parameters

site-id: Specifies a local site ID in the range of 0 to 256.

range range-value: Specifies the maximum number of sites in a VPN, in the range of 2 to 257. The default value is 10.

default-offset default-offset: Specifies the start site ID, 0 or 1. The default value is 0.

Usage guidelines

The range range-value and default-offset default-offset options determine the label block of the site.

· If you execute the site command with the range-value of range1, a label block with LR of range1 and LO of default-offset is assigned to the site.

· If you execute another site command with range-value of range2 (range2 is larger than range1), a second label block with LR of range2 to range1 and LO being range1 + default-offset is assigned to the site.

For example, if you execute the following commands, three label blocks LB1/0/10, LB2/10/12, and LB3/22/14 are assigned to site 1. LB1, LB2, and LB3 are automatically selected.

site 1 range 10 default-offset 0

site 1 range 22

site 1 range 36

You can create multiple local sites for a cross-connect group.

You can use the site command to increase the range value for an existing site. You cannot decrease the range value for an existing site with the site command. To decrease the range value, execute the undo site command to delete the site and then execute the site command.

Select a large range value to reduce future modifications for VPN expansion.

You cannot modify the default-offset for a site with the site command. To modify it, execute the undo site command to delete the site and then execute the site command.

Examples

# Create site 1, configure the VPN to contain a maximum of 30 sites, set the start site ID to 0 for cross-connect group bbb, and enter site view.

<Sysname> system-view

[Sysname] xconnect-group bbb

[Sysname-xcg-bbb] auto-discovery bgp

[Sysname-xcg-bbb-auto] site 1 range 30 default-offset 0

[Sysname-xcg-bbb-auto-1]

Related commands

display l2vpn pw

display l2vpn xconnect-group

MPLS L2VPN commands -- snmp-agent trap enable l2vpn

Use snmp-agent trap enable l2vpn to enable SNMP notifications for L2VPN PW.

Use undo snmp-agent trap enable l2vpn to disable SNMP notifications for L2VPN PW.

Syntax

snmp-agent trap enable l2vpn [ pw-delete | pw-switch | pw-up-down ] *

undo snmp-agent trap enable l2vpn [ pw-delete | pw-switch | pw-up-down ] *

Default

SNMP notifications for L2VPN PW are disabled.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

pw-delete: Enables PW deletion notifications.

pw-switch: Enables PW primary/backup switchover notifications.

pw-up-down: Enables PW up-down notifications.

Usage guidelines

This feature enables L2VPN to generate SNMP notifications when PW deletions, PW status changes, or PW switchovers occur. For L2VPN event notifications to be sent correctly, you must also configure SNMP on the device. For more information about SNMP configuration, see the network management and monitoring configuration guide for the device.

If you do not specify a notification type, this command enables all types of notifications for L2VPN PW.

Examples

# Enable PW up-down notifications.

<Sysname> system-view

[Sysname] snmp-agent trap enable l2vpn pw-up-down

Related commands

display snmp-agent trap-list (Network Management and Monitoring Command Reference)

MPLS L2VPN commands -- statistics enable (cross-connect PW view)

Use statistics enable to enable packet statistics for a PW.

Use undo statistics enable to disable packet statistics for a PW.

Syntax

statistics enable

undo statistics enable

Default

Packet statistics is disabled for PWs created from the CLI, and is enabled for PWs created from the MIB.

Views

Cross-connect PW view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

Enabling/disabling packet statistics for the primary PW automatically enables/disables packet statistics for the backup PW.

To display the collected packet statistics, use the display l2vpn pw verbose command.

Examples

# Enable packet statistics for a PW.

<Sysname> system-view

[Sysname] xconnect-group vpws

[Sysname-xcg-vpws] connection ldp

[Sysname-xcg-vpws-ldp] peer 5.5.5.5 pw-id 120

[Sysname-xcg-vpws-ldp-5.5.5.5-120] statistics enable

Related commands

display l2vpn pw

reset l2vpn statistics pw

MPLS L2VPN commands -- statistics enable (Ethernet service instance view)

Use statistics enable to enable packet statistics for an Ethernet service instance.

Use undo statistics enable to disable packet statistics for an Ethernet service instance.

Syntax

statistics enable

undo statistics enable

Default

Packet statistics is disabled for an Ethernet service instance.

Views

Ethernet service instance view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

This command enables packet statistics only for an Ethernet service instance that has been configured with a packet match criterion and bound to a cross-connect. If you change the packet match criterion or the bound cross-connect during the statistics collection, the packet statistics are re-collected.

To display the collected packet statistics, use the display l2vpn service-instance verbose command.

Examples

# Enable packet statistics for Ethernet service instance 200 on GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] service-instance 200

[Sysname-GigabitEthernet1/0/1-srv200] statistics enable

Related commands

display l2vpn service-instance verbose

reset l2vpn statistics ac

MPLS L2VPN commands -- tunnel-policy (auto-discovery cross-connect view)

Use tunnel-policy to specify a tunnel policy for an auto-discovery cross-connect.

Use undo tunnel-policy to restore the default.

Syntax

tunnel-policy tunnel-policy-name

undo tunnel-policy

Default

No tunnel policy is specified.

Views

Auto-discovery cross-connect view

Predefined user roles

network-admin

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 cross-connect use the specified tunnel policy to select public tunnels.

If you do not specify a tunnel policy or specify a nonexistent tunnel policy, the default tunnel policy applies. The default tunnel policy selects only one public tunnel for a PW in this order: LSP tunnel, GRE tunnel, CRLSP tunnel.

Examples

# Specify tunnel policy policy1 for the auto-discovery cross-connect in cross-connect group bbb.

<Sysname> system-view

[Sysname] tunnel-policy policy1

[Sysname-tunnel-policy-policy1] quit

[Sysname] xconnect-group bbb

[Sysname-xcg-bbb] auto-discovery bgp

[Sysname-xcg-bbb-auto] site 2 range 10 default-offset 0

[Sysname-xcg-bbb-auto-2] connection remote-site-id 3

[Sysname-xcg-bbb-auto-2-3] tunnel-policy policy1

Related commands

tunnel-policy (system view)

MPLS L2VPN commands -- vpn-target

Use vpn-target to configure route targets for a cross-connect group.

Use undo vpn-target to remove the specified or all route targets for a cross-connect group.

Syntax

vpn-target vpn-target&<1-8> [ both | export-extcommunity | import-extcommunity ]

undo vpn-target { vpn-target&<1-8> | all } [ both | export-extcommunity | import-extcommunity ]

Default

No route targets are configured for a cross-connect group.

Views

Auto-discovery cross-connect group view

Predefined user roles

network-admin

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 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 BGP cross-connect group bbb.

<Sysname> system-view

[Sysname] xconnect-group bbb

[Sysname-xcg-bbb] auto-discovery bgp

[Sysname-xcg-bbb-auto] vpn-target 10:1 100:1 1000:1 import-extcommunity

[Sysname-xcg-bbb-auto] vpn-target 20:1 200:1 2000:1 export-extcommunity

MPLS L2VPN commands -- xconnect-group

Use xconnect-group to create a cross-connect group and enter its view, or enter the view of an existing cross-connect group.

Use undo xconnect-group to delete a cross-connect group.

Syntax

xconnect-group group-name

undo xconnect-group group-name

Default

No cross-connect groups exist.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

group-name: Specifies a name for the cross-connect group, a case-sensitive string of 1 to 31 characters excluding hyphens.

Usage guidelines

L2VPN can create multiple LDP, BGP, and static PWs for a cross-connect group.

Examples

# Create a cross-connect group named vpn1 and enter cross-connect group view.

<Sysname> system-view

[Sysname] xconnect-group vpn1

[Sysname-xcg-vpn1]

Related commands

display l2vpn xconnect-group