PWE3 Configuration Commands
- Command Support
- bfd bind pw
- bfd-detect
- bfd for pw enable
- control-word
- display mpls l2vc
- display mpls l2vc brief
- display mpls l2vc track admin-vc
- display mpls static-l2vc
- display mpls static-l2vc brief
- display mpls switch-l2vc
- display mpls switch-l2vc brief
- display pw-template
- lspv pw reply ptn-mode
- manual-set pw-ac-fault
- mpls l2vc
- mpls l2vc admin
- mpls l2vc track admin-vc
- mpls l2vpn
- mpls l2vpn no-request-message
- mpls l2vpn pw bfd
- mpls l2vpn redundancy
- mpls l2vpn reroute
- mpls l2vpn service-name
- mpls l2vpn stream-dual-receiving
- mpls l2vpn switchover
- mpls l2vpn vccv bfd-cv-negotiation fault-detection-only
- mpls static-l2vc
- mpls switch-l2vc
- mtu (PW template view)
- peer-address
- ping vc
- pw-template
- reset pw
- snmp-agent trap enable feature-name l2vpn
- tnl-policy (PW template view)
- tracert vc
Command Support
For details about command support, see the description of each command. If no command support information is provided, all switch models support the command by default.
bfd bind pw
Function
The bfd bind pw command configures a BFD session to detect a PW.
The undo bfd command deletes a specified BFD session.
By default, no BFD session is configured to detect a PW.
Format
bfd cfg-name bind pw interface interface-type interface-number [ secondary ]
undo bfd cfg-name
Parameters
Parameter | Description | Value |
---|---|---|
cfg-name | Specifies the name of the BFD session. | The value is a string of 1 to 15 case-insensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
interface interface-type interface-number | Specifies the type and number of the interface where
the PW to be detected resides, namely, the AC interface.
|
- |
secondary | Indicates that the BFD session detects the secondary PW. | - |
Usage Guidelines
Usage Scenario
If a transmission device exists on a direct link, BFD detects a link fault faster than a link detection mechanism on an interface. On networks demanding fast fault detection, run the bfd bind pw command to configure a BFD session to detect a PW.
Prerequisites
Precautions
When detecting a PW, BFD sessions must be bound to the source and destination ends of a PW.
You need to create a BFD session to detect primary and secondary PWs separately.
When running the bfd bind pw command to detect a multi-segment PW, ensure that the first-segment PW is a VLL PW configured on a non-SPE node.
When running the bfd bind pw command to detect a single-segment PW, ensure that the single-segment PW is configured on a non-SPE node.
bfd-detect
Function
The bfd-detect command enables dynamic BFD for PW in a PW template and adjusts the sending interval, receiving interval, and local detection multiplier of BFD detection packet.
The undo bfd-detect command restores the default configuration.
By default, dynamic BFD for PW is not enabled in a PW template.
Format
bfd-detect [ min-tx-interval tx-interval | min-rx-interval rx-interval | detect-multiplier multiplier ] *
undo bfd-detect
Parameters
Parameter | Description | Value |
---|---|---|
min-tx-interval tx-interval | Specifies the interval at which BFD packets are sent. | The
value is an integer, in milliseconds. If the MPU has the ES0D00FSUA00 card
installed or the MPU is EH1D2SRUDC00/EH1D2SRUDC01, the value
ranges from 3 to 1000. The default value is 10 ms. In other cases,
the value ranges from 100 to 1000 and the default value is 1000 ms.
NOTE:
When the MPU is the EH1D2SRUDC00 or EH1D2SRUDC01, you need to first run the detect-engine enable command in the system view so that the value range is 3 to 1000. If the detect-engine enable command is not used first, the value range is 100 to 1000. |
min-rx-interval rx-interval | Specifies the interval at which BFD packets are received. | The
value is an integer, in milliseconds. If the MPU has the ES0D00FSUA00 card
installed or the MPU is EH1D2SRUDC00/EH1D2SRUDC01, the value
ranges from 3 to 1000. The default value is 10 ms. In other cases,
the value ranges from 100 to 1000 and the default value is 1000 ms.
NOTE:
When the MPU is the EH1D2SRUDC00 or EH1D2SRUDC01, you need to first run the detect-engine enable command in the system view so that the value range is 3 to 1000. If the detect-engine enable command is not used first, the value range is 100 to 1000. |
detect-multiplier multiplier | Specifies the local detection multiplier value of a BFD session. | An integer ranging from 3 to 50. The value is 3 by default. |
Usage Guidelines
If the BFD session is found to be Down, the system automatically adjusts the receiving interval and sending interval of the local end to a random value ranging from 1000 ms to 3000 ms to reduce system resource utilization. When the BFD session restores the Up state, the user-defined interval is used again.
bfd for pw enable
Function
The bfd for pw enable command enables the device to send BFD for PW packets to the protocol stack.
The undo bfd for pw enable command disables the device from sending BFD for PW packets to the protocol stack.
By default, the device does not send BFD for PW packets to the protocol stack, but discards or forwards the packets.
Usage Guidelines
Usage Scenario
To configure a BFD session to detect a PW on a network requiring short link detection, run the bfd for pw enable command to enable the device to send BFD for PW packets to the protocol stack. If this command is not used, the device discards or forwards BFD for PW packets.
Precautions
The bfd for pw enable command must have been executed to configure a BFD session to detect a PW. If this command is not used, the bfd for pw enable command does not take effect.
control-word
Function
The control-word command enables the control word in a PW template.
The undo control-word command disables the control word in a PW template.
By default, the control word is disabled in a PW template.
Usage Guidelines
Usage Scenario
In the case of load balancing, packets received by a device may be out of order. With the control word function, the device can reassemble the packets.
PW templates simplify the configuration of PWs with similar attributes. The control word attribute can be set using commands or a PW template. If the control word is configured using both commands and a PW template, only the control word configured using commands takes effect.
Prerequisites
- MPLS L2VPN has been enabled.
- A PW template has been created.
Configuration Impact
After a PW is established using a PW template where the control word function is enabled, the control word enabling status on both ends of the PW may be different after the PW template is restarted. As a result, system performance may be affected.
Follow-up Procedure
When configuring MPLS L2VPN on an interface, use a configured PW template.
Precautions
After the control word attribute is changed in a PW template:
- If the PW is in use, you do not need to reset the PW.
- If the PW template is being referenced by PWs, the configuration takes effect only after you run the reset pw command. Running the reset pw command may cause the disconnection and re-connection of related PWs. If multiple PWs use this template at the same time, the system operation is affected.
display mpls l2vc
Function
The display mpls l2vc command displays information about virtual circuits (VCs) in LDP mode.
Format
display mpls l2vc [ vc-id | interface interface-type interface-number | remote-info [ vc-id | verbose ] | state { down | up } ]
Parameters
Parameter | Description | Value |
---|---|---|
interface interface-type interface-number | Specifies the type and number of the AC interface connected
to the CE.
|
- |
remote-info | Displays information about the VC on the remote end. | - |
vc-id | Displays static PW information with a specified VC ID. | The value is an integer that ranges from 1 to 4294967295. |
verbose | Displays the detailed information about the VC on the remote end. | - |
state { down | up } | Displays VC information based on the VC status.
|
- |
Usage Guidelines
The display mpls l2vc command displays information about the VCs in LDP signaling mode, including the Martini VC and PWE3 VC.
If the interface is specified, information about VCs on the specified AC interface is displayed.
If remote-info is specified but vc-id is not specified, information about all VCs set up by the remote and local peers is displayed.
Example
# Display information about all the LDP VCs configured on the switch.
<HUAWEI> display mpls l2vc
Total LDP VC : 1 1 up 0 down
*client interface : Vlanif1111 is up
Administrator PW : no
session state : up
AC status : up
VC state : up
Label state : 0
Token state : 0
VC ID : 101
VC type : VLAN
destination : 10.3.3.9
local VC label : 1026 remote VC label : 1026
control word : disable
remote control word : disable
forwarding entry : exist
local group ID : 0
remote group ID : 0
local AC OAM State : up
local PSN OAM State : up
local forwarding state : forwarding
local status code : 0x0
remote AC OAM state : up
remote PSN OAM state : up
remote forwarding state: forwarding
remote status code : 0x0
ignore standby state : no
BFD for PW : unavailable
VCCV State : up
manual fault : not set
active state : active
link state : up
local VC MTU : 1500 remote VC MTU : 1500
local VCCV : alert ttl lsp-ping bfd
remote VCCV : alert ttl lsp-ping bfd
tunnel policy name : --
PW template name : --
primary or secondary : primary
load balance type : flow
Access-port : false
Switchover Flag : false
VC tunnel/token info : 1 tunnels/tokens
NO.0 TNL type : lsp , TNL ID : 0x48000020
Backup TNL type : lsp , TNL ID : 0x0
create time : 0 days, 0 hours, 6 minutes, 50 seconds
up time : 0 days, 0 hours, 6 minutes, 34 seconds
last change time : 0 days, 0 hours, 6 minutes, 34 seconds
VC last up time : 2013/09/24 18:23:35
VC total up time : 0 days, 0 hours, 6 minutes, 34 seconds
CKey : 16
NKey : 15
PW redundancy mode : frr
AdminPw interface : --
AdminPw link state : --
Diffserv Mode : uniform
Service Class : be
Color : --
DomainId : --
Domain Name : --
Item |
Description |
---|---|
Total LDP VC |
Total number of established LDP VCs, including the number of LDP VCs in Up and Down state. |
client interface |
AC interface and its status. |
Administrator PW | Whether the PW is an mPW. The PW can be an mPW only when the AC interface is a loopback interface. This field can be displayed as yes or no. |
session state |
Status of the LDP session established between both ends of the VC:
|
AC status |
Status of the AC:
|
VC state |
Status of the VC:
|
Label state |
Label status:
|
Token state |
Token status:
|
VC ID |
ID of the VC, which uniquely identifies a VC. NOTE:
If the VC IDs on both ends are different, run the mpls l2vc command in the interface view to change the VC ID on one end to be the same as that on the other end. |
VC type |
Encapsulation type of the VC:
The PW can go Up only when the local and remote encapsulation types are the same. |
destination |
LSR ID of the VC peer device. |
local VC label |
Local VC label. |
remote VC label |
Remote VC label. |
control word |
Whether the control word is enabled:
|
forwarding entry |
Whether forwarding entries exist. |
local group ID |
Local group ID. |
remote group ID |
Remote group ID. |
manual fault |
Whether a PW fault is simulated. |
active state |
Whether the PW is in active state. A PW in active state can forward packets. |
link state |
Integrative PW status:
If any of the following status is Down, the PW link state is Down:
|
local VC MTU |
MTU of the local VC. |
remote VC MTU |
MTU of the remote VC. |
tunnel policy name |
Name of the tunnel policy. |
PW template name |
Name of the PW template. |
primary or secondary |
Whether the VC is a primary VC or a secondary VC. |
load balance type |
Load balancing mode of Martini VLL:
|
Access-port |
Whether the interface supports the access-port attribute:
|
Switchover Flag |
Whether a switchover has occurred. |
create time |
How long the VC has been created. |
up time |
How long the VC keeps the Up state. If the current PW status is Down, the value is 0. |
last change time |
How long the VC status remains unchanged. |
VC last up time |
Last time when the VC became Up. |
VC total up time |
Total duration of the VC in Up state. |
CKey | Index of the public tunnel for VPN QoS. |
NKey | Index of the public tunnel. |
AdminPw interface | AC interface on which the mPW is bound to the PW. The AC interface must be a loopback interface. This field is displayed only when the PW is not an mPW:
|
AdminPw link state | Status of the mPW bound to the PW. This field is displayed
only when the PW is not an mPW. This field can be displayed as:
|
Diffserv Mode |
QoS DiffServ mode. |
Service Class |
QoS service class. |
Color |
QoS color. |
DomainId |
ID of a domain. |
Domain Name |
Name of a domain. |
# Display LDP VC information about the AC interface VLANIF 100.
<HUAWEI> display mpls l2vc interface vlanif 100
*client interface : Vlanif100 is up
Administrator PW : no
session state : up
AC status : up
VC state : up
Label state : 0
Token state : 0
VC ID : 1
VC type : VLAN
destination : 10.2.2.2
local group ID : 0 remote group ID : 0
local VC label : 16400 remote VC label : 16400
local AC OAM State : up
local PSN OAM State : up
local forwarding state : forwarding
local status code : 0x0
remote AC OAM state : up
remote PSN OAM state : up
remote forwarding state: forwarding
remote status code : 0x20
ignore standby state : no
BFD for PW : unavailable
VCCV State : up
manual fault : not set
active state : active
forwarding entry : exist
link state : up
local VC MTU : 1500 remote VC MTU : 1500
local VCCV : cw alert ttl lsp-ping bfd
remote VCCV : cw alert ttl lsp-ping bfd
local control word : enable remote control word : enable
tunnel policy name : --
PW template name : --
primary or secondary : primary
load balance type : flow
Access-port : false
Switchover Flag : false
VC tunnel/token info : 1 tunnels/tokens
NO.0 TNL type : lsp , TNL ID : 0x800802
Backup TNL type : lsp , TNL ID : 0x0
create time : 0 days, 0 hours, 0 minutes, 29 seconds
up time : 0 days, 0 hours, 0 minutes, 6 seconds
last change time : 0 days, 0 hours, 0 minutes, 6 seconds
VC last up time : 2011/07/04 20:25:50
VC total up time : 0 days, 0 hours, 0 minutes, 6 seconds
CKey : 2
NKey : 1
PW redundancy mode : frr
AdminPw interface : --
AdminPw link state : --
Diffserv Mode : uniform
Service Class : --
Color : --
DomainId : --
Domain Name : --
Item |
Description |
---|---|
local AC OAM State |
OAM status of the local AC.
|
local PSN OAM State |
Status of the local device on the Packet Switch Network (PSN) side.
|
local forwarding state |
Status of the local forwarding table.
|
local status code | Status code of the local PW:
|
remote AC OAM state |
OAM status of the remote AC.
|
remote PSN OAM state |
Status of the remote device on the PSN side.
|
remote forwarding state |
Status of the remote forwarding table.
|
remote status code | Status code of the remote PW:
|
BFD for PW |
Whether BFD for PW is enabled:
|
VCCV State |
Whether Virtual Circuit Connectivity Verification (VCCV) is enabled. |
local VCCV |
Type of VCCV supported on the local device.
|
remote VCCV |
Type of VCCV supported on the remote device.
|
local control word |
Whether the control word is enabled on the local device:
|
remote control word |
Whether the control word is enabled on the remote device:
|
ignore standby state |
Whether the status of the secondary PW is ignored. |
VC Tunnel/token info: 1 tunnels/tokens |
Information about the tunnel or token used by the VC. The value 1 tunnels/tokens indicates that the PW uses one tunnel or token. |
TNL type |
Type of the tunnel used by the PW. |
TNL ID |
ID of the tunnel used by the PW. |
Backup TNL Type |
Type of the backup tunnel when PW over LDP FRR is used. |
PW redundancy mode | PW redundancy mode. By default, the mode is FRR.
|
# Display the LDP VC information received from the remote peer.
<HUAWEI> display mpls l2vc remote-info
Total remote ldp vc : 1
Transport Group Peer Remote Remote C MTU/ N S
VC ID ID Addr Encap VC Label Bit CELLS Bit Bit
116119 0 10.6.6.6 vlan 23552 0 1500 1 0
# Display the detailed LDP VC information received from the remote peer.
<HUAWEI> display mpls l2vc remote-info verbose
Total remote LDP VC : 1
VC ID : 1
VC Type : vlan
VC Label : 1025
Peer Address : 10.5.5.5
Group ID : 0
MTU : 1500
Control Word : 0
Notification : 1
Status Code : 0
Match Local VC : MATCH
Max ATM CELLS : --
TDM RTP Header : --
TDM Encap Num : --
TDM Bit Rate : --
Item |
Description |
---|---|
Total remote ldp vc |
Total number of created remote LDP VCs. |
Transport VC ID |
VC ID, which uniquely identifies a VC. |
Group ID |
ID of the group to which the L2VPN belongs. The default value is 0. |
Peer Addr and Peer Address |
IP address of the remote peer. |
Remote Encap |
Encapsulation type of the remote VC.
|
Remote VC Label |
Remote VC label. |
C Bit |
Whether the control word is enabled:
|
MTU/CELLS |
MTU of the L2VPN. |
N Bit and Notification |
Whether the Notification message is supported:
|
S Bit and Status Code |
Status code:
|
Match Local VC |
Whether the local VC ID matches the remote VC ID:
|
Max ATM CELLS |
Maximum number of ATM cells that can be transmitted. If ATM encapsulation is used, the value ranges from 1 to 28, and the default value is 28. If non-ATM encapsulation is used, double hyphens (--) are displayed. |
TDM RTP Header |
Whether the RTP-header option is enabled:
|
TDM Encap Num |
Number of frames in a TDM packet. If TDM encapsulation is used, the value is 8, 16, 24, 32 or 40, and the default value is 32. If non-TDM encapsulation is used, double hyphens (--) are displayed. |
TDM Bit Rate |
Number of timeslots in a TDM packet. Number of timeslots in a TDM packet = Number of bytes in a TDM packet/Number of frames in a TDM packet |
# Display information about the VCs in Up state.
<HUAWEI> display mpls l2vc state up
Total LDP VC : 1 1 up 0 down
*client interface : Vlanif1111 is up
Administrator PW : no
session state : up
AC status : up
VC state : up
Label state : 0
Token state : 0
VC ID : 100
VC type : VLAN
destination : 10.2.2.9
local VC label : 1024 remote VC label : 1024
control word : disable
remote control word : disable
forwarding entry : exist
local group ID : 0
remote group ID : 0
local AC OAM State : up
local PSN OAM State : up
local forwarding state : forwarding
local status code : 0x0
remote AC OAM state : up
remote PSN OAM state : up
remote forwarding state: forwarding
remote status code : 0x0
ignore standby state : no
BFD for PW : unavailable
VCCV State : up
manual fault : not set
active state : active
link state : up
local VC MTU : 1500 remote VC MTU : 1500
local VCCV : alert ttl lsp-ping bfd
remote VCCV : alert ttl lsp-ping bfd
tunnel policy name : --
PW template name : --
primary or secondary : primary
load balance type : flow
Access-port : false
Switchover Flag : false
VC tunnel/token info : 1 tunnels/tokens
NO.0 TNL type : lsp , TNL ID : 0x12
Backup TNL type : lsp , TNL ID : 0x0
create time : 0 days, 1 hours, 0 minutes, 17 seconds
up time : 0 days, 0 hours, 24 minutes, 56 seconds
last change time : 0 days, 0 hours, 24 minutes, 56 seconds
VC last up time : 2013/10/10 14:29:39
VC total up time : 0 days, 0 hours, 24 minutes, 56 seconds
CKey : 10
NKey : 9
PW redundancy mode : frr
AdminPw interface : --
AdminPw link state : --
Diffserv Mode : uniform
Service Class : --
Color : --
DomainId : --
Domain Name : --
display mpls l2vc brief
Function
The display mpls l2vc brief command displays brief information about LDP Layer 2 virtual circuits (L2VCs) on the device.
Usage Guidelines
The display mpls l2vc brief command is recommended when many L2VCs are configured on a device. The command output is more concise than that of the display mpls l2vc command.
Example
# Display brief information about all LDP L2VCs on the device.
<HUAWEI> display mpls l2vc brief
Total LDP VC : 1 1 up 0 down
*Client Interface : Vlanif1111
Administrator PW : no
AC status : up
VC state : up
Label state : 0
Token state : 0
VC ID : 116119
VC Type : VLAN
session state : up
Destination : 10.6.6.6
link state : up
Item |
Description |
---|---|
Total LDP VC |
Total number of LDP VCs, including the number of LDP VCs in Up and Down state. |
Client Interface |
AC interface and its status. |
Administrator PW | Whether the PW is an mPW. The PW can be an mPW only when the AC interface is a loopback interface. |
AC status |
Status of the AC:
|
VC state |
Status of the VC:
|
Label state |
Label status:
|
Token state |
Token status:
|
VC ID |
ID of the VC, which uniquely identifies a VC. |
VC Type |
Encapsulation type of the VC. |
session state |
Status of the session between peers:
|
Destination |
Peer address. |
link state | Status of the VC:
|
display mpls l2vc track admin-vc
Function
The display mpls l2vc track admin-vc command displays information about service PWs or switching PWs that are associated with an mPW.
Parameters
Parameter | Description | Value |
---|---|---|
interface loopback interface-number | Specifies the loopback interface on which the mPW is configured. | - |
upe | Displays information about switching PWs of the UPE type. | - |
Usage Guidelines
After service PWs or switching PWs are associated with an mPW, you can run the display mpls l2vc track admin-vc command to view information about these PWs, facilitating configuration and management.
Example
# Display information about service PWs or switching PWs that are associated with the mPW configured on loopback 0.
<HUAWEI> display mpls l2vc track admin-vc interface loopback 0
Total VC : 0 2 up 0 down
Admin-PW state : up
Peer IP : 1.1.1.1
PW type : UPE
Total VC : 2 2 up 0 down
*Client Interface : Vlanif10
VC State : up
VC ID : 1113
VC Type : Ethernet
Link State : up
*Client Interface : Vlanif10
VC State : up
VC ID : 2223
VC Type : Ethernet
Link State : up
Item |
Description |
---|---|
Total VC |
Number of all the service PWs and switching PWs that are associated with the mPW. |
Admin-PW state |
Status of the mPW.
|
Peer IP |
IP address of an mPW peer. The peers of the service or switching PWs must have the same IP address as that of the mPW. |
PW type |
PW type. Currently, only UPE is supported. |
*Client Interface |
AC interface of the service PW or switching PW. |
VC State |
VC status.
|
VC ID |
VC ID. The VC ID uniquely identifies a VC together with the VC type. |
VC Type |
Encapsulation type of the VC.
|
Link State |
Forwarding status of the PW.
|
display mpls static-l2vc
Format
display mpls static-l2vc [ vc-id | interface interface-type interface-number | state { down | up } ]
Parameters
Parameter | Description | Value |
---|---|---|
vc-id | Displays information about a static VC with a specified VC ID. | The value is an integer that ranges from 1 to 4294967295. |
interface interface-type interface-number | Displays information about all static PWs on a specified
interface.
|
- |
state { down | up } | Displays VC information based on the VC status.
|
- |
Usage Guidelines
If you run the display mpls static-l2vc command with the interface name specified, information about static VCs on the interface connected to a CE is displayed. If no interface is specified, information about static VCs on all interfaces is displayed.
Example
# Display information about static VCs on the device.
<HUAWEI> display mpls static-l2vc Total svc connections: 1, 1 up, 0 down *Client Interface : Vlanif10 is up AC Status : down VC State : up VC ID : 1 VC Type : VLAN Destination : 2.2.2.2 Transmit VC Label : 400 Receive VC Label : 600 Label Status : 0 Token Status : 0 Control Word : Enable VCCV Capability : cw alert ttl lsp-ping bfd active state : active Link State : down Tunnel Policy Name : tun PW Template Name : -- Main or Secondary : Main load balance type : flow Access-port : false VC tunnel/token info : 1 tunnels/tokens NO.0 TNL type : lsp , TNL ID : 0x800802 Backup TNL type : lsp , TNL ID : 0x0 Create time : 0 days, 0 hours, 0 minutes, 34 seconds UP time : 0 days, 0 hours, 0 minutes, 31 seconds Last change time : 0 days, 0 hours, 0 minutes, 31 seconds VC last up time : 2011/07/04 20:29:18 VC total up time : 0 days, 0 hours, 0 minutes, 33 seconds CKey : 2 NKey : 1 BFD for PW : unavailable
Item |
Description |
---|---|
Total svc connections |
Number of established SVCs, including the number of SVCs in Up and Down states. |
Client Interface |
AC interface and its status. |
AC Status |
Status of the AC:
|
VC State |
Status of the VC:
|
VC ID |
ID of the VC, which uniquely identifies a VC. If you run the mpls static-l2vc command without the VC ID specified, the value of this field is displayed as 0. |
VC Type |
Encapsulation type of the VC:
|
Destination |
LSR ID of the remote end on the VC. |
Transmit VC Label |
Local VC label. |
Receive VC Label |
Remote VC label. |
Label Status |
Whether the label can be used:
|
Token Status |
Whether the token can be used:
|
Control Word |
Whether the control word function is enabled:
|
VCCV Capability |
Whether VCCV is enabled. |
active state |
Whether the PW is in active state. A PW in active state can forward packets.
|
Link State |
Integrative PW status:
If any of the following status is Down, the PW link state is Down:
|
Tunnel Policy Name |
Name of the tunnel policy. |
PW Template Name |
Name of the PW template. |
Main or Secondary |
Whether the VC is a primary VC or a secondary VC. |
load balance type |
Load balancing mode of Martini VLL:
|
Access-port |
Whether the interface supports the access-port attribute:
|
VC Tunnel/token info |
Information about the VC tunnel or token used by the VC. The value 1 tunnels/tokens indicates that the PW uses one tunnel or token. |
NO.0 TNL Type |
Type of the tunnel used by the PW |
Backup TNL Type |
Type of the backup tunnel when PW over LDP FRR is used. |
Create time |
How long the VC has been created. |
UP time |
How long the VC keeps the Up state. |
Last change time |
How long the VC status remains unchanged. |
VC last up time |
Last time when the VC became Up. |
VC total up time |
Total duration of the VC in Up state. |
CKey | Index of the public tunnel for VPN QoS. |
NKey | Index of the public tunnel. |
BFD for PW |
Whether BFD is configured.
|
# Display information about static VCs on VLANIF 10.
<HUAWEI> display mpls static-l2vc interface vlanif 10
*Client Interface : Vlanif10 is up
AC Status : down
VC State : up
VC ID : 1
VC Type : VLAN
Destination : 2.2.2.2
Transmit VC Label : 400
Receive VC Label : 600
Label Status : 0
Token Status : 0
Control Word : Enable
VCCV Capabilty : cw alert ttl lsp-ping bfd
active state : active
Link State : down
Tunnel Policy : tun
PW Template Name : --
Main or Secondary : Main
load balance type : flow
Access-port : false
VC tunnel/token info : 1 tunnels/tokens
NO.0 TNL Type : lsp , TNL ID : 0x56
Backup TNL Type : lsp , TNL ID : 0x0
Create time : 0 days, 0 hours, 0 minutes, 34 seconds
UP time : 0 days, 0 hours, 0 minutes, 31 seconds
Last change time : 0 days, 0 hours, 0 minutes, 31 seconds
VC last up time : 2011/07/04 20:29:18
VC total up time : 0 days, 0 hours, 0 minutes, 33 seconds
CKey : 2
NKey : 1
Diffserv Mode : uniform
Service Class : be
Color : --
DomainId : --
Domain Name : --
BFD for PW : unavailable
Item |
Description |
---|---|
Client Interface |
AC interface and its status. |
AC Status |
Status of the link between the PE and its directly connected CE. |
VC State |
Status of the VC. |
VC ID |
ID of the VC, which uniquely identifies a VC. |
VC Type |
Encapsulation type of the VC. |
Destination |
LSR ID of the remote end on the VC. |
Transmit VC Label |
VC label sent by the local device. |
Receive VC Label |
VC label received by the local device. |
Control Word |
Whether the control word function is enabled. |
VCCV Capabilty |
Whether VCCV is enabled. |
Tunnel Policy |
Name of the tunnel policy. The value -- indicates that no tunnel policy is configured. |
PW Template Name |
Name of the PW template. The value -- indicates that no PW template is configured. |
Main or Secondary |
Whether the VC is a primary VC or a secondary VC. |
VC tunnel/token info |
Information about the tunnel or token used by the VC. The value 1 tunnels/tokens indicates that the PW uses one tunnel or token. |
Create time |
How long the VC has been created. |
UP time |
How long the VC keeps the Up state. |
Last change time |
How long the VC status remains unchanged. |
VC last up time |
Last time when the VC became Up. |
VC total up time |
Total duration of the VC in Up state. |
CKey |
Index of the public tunnel for VPN QoS. |
NKey |
Index of the public tunnel. |
Diffserv Mode |
QoS DiffServ mode for VLL services. |
Service Class |
QoS service class for VLL services. |
Color |
QoS color for VLL services. |
DomainId |
ID of a domain. |
Domain Name |
Name of a domain. |
BFD for PW |
Whether BFD is configured.
|
# Display information about SVCs in Up state between peers.
<HUAWEI> display mpls static-l2vc state up
Total svc connections: 1, 1 up, 0 down
*Client Interface : Vlanif10 is up
AC Status : up
VC State : up
VC ID : 0
VC Type : Ethernet
Destination : 2.2.2.2
Transmit VC Label : 100
Receive VC Label : 200
Label Status : 0
Token Status : 0
Control Word : Disable
VCCV Capability : alert ttl lsp-ping bfd
active state : active
Link State : up
Tunnel Policy Name : --
PW Template Name : --
Main or Secondary : Main
load balance type : flow
Access-port : false
VC tunnel/token info : 1 tunnels/tokens
NO.0 TNL Type : lsp , TNL ID : 0x56
Backup TNL Type : lsp , TNL ID : 0x0
Create time : 0 days, 4 hours, 55 minutes, 41 seconds
UP time : 0 days, 4 hours, 55 minutes, 40 seconds
Last change time : 0 days, 4 hours, 55 minutes, 40 seconds
VC last up time : 2011/09/09 10:25:22
VC total up time : 0 days, 4 hours, 55 minutes, 40 seconds
CKey : 19
NKey : 1
BFD for PW : unavailable
Item |
Description |
---|---|
Total svc connections |
Number of established SVCs, including the number of SVCs in Up and Down states. |
Client Interface |
AC interface and its status. |
AC Status |
Status of the AC. |
VC State |
Status of the VC. |
VC ID |
ID of the VC, which uniquely identifies a VC. |
VC Type |
Encapsulation type of the VC. |
Destination |
LSR ID of the remote end on the VC. |
Transmit VC Label |
Local VC label. |
Receive VC Label |
Remote VC label. |
Control Word |
Whether the control word function is enabled. |
VCCV Capability |
Whether VCCV is enabled. |
Tunnel Policy Name |
Name of the tunnel policy. |
PW Template Name |
Name of the PW template. |
Main or Secondary |
Whether the VC is a primary VC or a secondary VC. |
Create time |
How long the VC has been created. |
UP time |
How long the VC keeps the Up state. |
Last change time |
How long the VC status remains unchanged. |
VC last up time |
Last time when the VC became Up. |
VC total up time |
Total duration of the VC in Up state. |
CKey | Index of the public tunnel for VPN QoS. |
NKey | Index of the public tunnel. |
BFD for PW |
Whether BFD is configured.
|
display mpls static-l2vc brief
Function
The display mpls static-l2vc brief command displays brief information about static VCs on the device.
Usage Guidelines
The display mpls static-l2vc brief command is recommended when a large number of static VCs are configured on the device.
Example
# Display brief information about static VCs on the device.
<HUAWEI> display mpls static-l2vc brief
Total svc connections: 2, 1 up, 1 down
*Client Interface : Eth-Trunk2 is up
AC Status : up
VC State : up
VC ID : 0
VC Type : VLAN
Destination : 10.1.1.1
*Client Interface : Eth-Trunk3 is down
AC Status : down
VC State : down
VC ID : 100
VC Type : Ethernet
Destination : 10.1.1.2
Item |
Description |
---|---|
Total SVC Connections |
Number of established SVCs, including the number of SVCs in Up and Down states. |
Client Interface |
AC interface and its status. |
AC Status |
Status of the AC:
|
VC State |
Status of the VC:
|
VC ID |
ID of the static VC. If you run the mpls static-l2vc command without the VC ID specified, the value of this field is displayed as 0. |
VC Type |
Encapsulation type of the VC:
|
Destination |
IPv4 address of the peer. Generally, the value is the loopback address of the peer. |
display mpls switch-l2vc
Function
The display mpls switch-l2vc command displays information about PW switching, including static, dynamic, and mix PW switching.
Format
display mpls switch-l2vc [ ip-address vc-id encapsulation encapsulation-type | state { down | up } ]
Parameters
Parameter | Description | Value |
---|---|---|
ip-address | Specifies the LSR ID of the peer PE. | - |
vc-id | Specifies the VC ID. | The value is an integer that ranges from 1 to 4294967295. |
encapsulation encapsulation-type | Specifies the PW encapsulation type. | Currently, the device supports the following types encapsulation types: ethernet, vlan, and ip-interworking. |
state { down | up } | Displays VC information based on the VC status.
|
- |
Usage Guidelines
If parameters in the display mpls switch-l2vc command are not specified, information about all PW switching is displayed.
Example
# Display information about the specified PW switching.
<HUAWEI> display mpls switch-l2vc 1.1.1.9 100 encapsulation ethernet
*Switch-l2vc type : SVC<---->SVC
Peer IP Address : 3.3.3.9, 1.1.1.9
VC ID : 100, 100
VC Type : Ethernet
VC State : up
In/Out Label : 200/200, 100/100
InLabel Status : 0 , 0
Control Word : Disable, Disable
VCCV Capability : alert ttl lsp-ping bfd, alert ttl lsp-ping bfd
Switch-l2vc tunnel info :
1 tunnels for peer 5.5.5.9
NO.0 TNL Type : lsp , TNL ID : 0x11
1 tunnels for peer 1.1.1.9
NO.0 TNL Type : lsp , TNL ID : 0xb
CKey : 44, 1
NKey : 43, 3
Tunnel policy : --,--
Control-Word transparent : YES
Create time : 0 days, 0 hours, 7 minutes, 2 seconds
UP time : 0 days, 0 hours, 7 minutes, 2 seconds
Last change time : 0 days, 0 hours, 7 minutes, 2 seconds
VC last up time : 2008/07/24 12:31:31
VC total up time : 0 days, 2 hours, 12 minutes, 51 seconds
Item |
Description |
---|---|
Switch-l2vc Type |
Switching type:
When primary/secondary PWs and PW switching are configured, the value of this field must be LDP-LDP.
|
Peer ip address |
IP addresses of the peers at two ends of a switching PW, which are displayed in left and right columns respectively. |
VC ID |
ID of the VC, which uniquely identifies a VC. Here, the field indicates the two switched VC IDs. |
VC Type |
Encapsulation type of the VC. |
VC State |
Status of the VC:
|
In/Out Label |
Incoming or outgoing label. |
InLabel Status |
Status of the inner label. |
Control Word |
Whether the control word function is enabled on both ends:
|
VCCV Capability |
Type of VCCV supported on the local device.
|
Switch-l2vc tunnel info: 1 tunnels for peer 3.3.3.9 NO.0 TNL Type : lsp , TNL ID : 0x11 |
Information about the tunnels on both ends:
|
CKey | Index of the public tunnel for VPN QoS. |
NKey | Index of the public tunnel. |
Tunnel policy | Name of the tunnel policy. |
Control-Word transparent | Whether transparent transmission of the control word is enabled:
|
Create Time |
How long the VC has been created. |
Up Time |
How long the VC keeps the Up state. |
Last Change Time |
How long the VC status remains unchanged. |
VC last up time : |
Last time when the AC became Up. |
VC total up time: |
Total duration when the AC interface is Up. |
# Display information about the switched L2VCs in Up state between peers.
<HUAWEI> display mpls switch-l2vc state up
Total Switch VC : 1, 1 up, 0 down
*Switch-l2vc type : LDP<---->LDP
Peer IP Address : 5.5.5.9, 1.1.1.9
VC ID : 200, 100
VC Type : Ethernet
VC State : up
VC StatusCode |PSN |OAM | FW | |PSN |OAM | FW |
-Local VC :| UP | UP | UP | | UP | UP |DOWN|
-Remote VC:| UP | UP |DOWN| | UP | UP | UP |
Session State : up, up
Local/Remote Label : 1025/1024, 1024/1025
InLabel Status : 0 , 0
Local/Remote MTU : 1500/1500, 1500/1500
Local/Remote Control Word : Disable/Disable, Disable/Disable
Local/Remote VCCV Capability : alert ttl lsp-ping bfd /alert ttl lsp-ping bfd, alert ttl lsp-ping bfd/alert ttl lsp-ping bfd
Switch-l2vc tunnel info :
1 tunnels for peer 5.5.5.9
NO.0 TNL Type : lsp , TNL ID : 0x12
1 tunnels for peer 1.1.1.9
NO.0 TNL Type : lsp , TNL ID : 0x15
CKey : 44, 1
NKey : 43, 3
Tunnel policy : --, --
Control-Word transparent : YES
Create time : 0 days, 0 hours, 3 minutes, 54 seconds
UP time : 0 days, 0 hours, 3 minutes, 12 seconds
Last change time : 0 days, 0 hours, 3 minutes, 12 seconds
VC last up time : 2008/07/24 12:31:31
VC total up time : 0 days, 2 hours, 12 minutes, 51 seconds
Item |
Description |
---|---|
VC StatusCode |
VC status code:
-Local VC: indicates the local VC status. -Remote VC: indicates the remote VC status. |
Session State |
Status of the session:
|
Local/Remote Label |
Incoming or outgoing label. |
Local/Remote MTU |
Local and remote MTU values of the PWs on two ends:
|
Local/Remote Control Word |
Whether the control word is enabled on both ends:
|
Local/Remote VCCV Capability |
Whether VCCV is enabled on both ends:
|
Control-Word transparent | Whether transparent transmission of the control word is enabled:
|
# Display information about all the switched L2VCs between peers.
<HUAWEI> display mpls switch-l2vc
Total Switch VC : 1, 1 up, 0 down
*Switch-l2vc type : LDP<---->SVC
Peer IP Address : 1.1.1.9, 5.5.5.9
VC ID : 100, 200
VC Type : Ethernet
VC State : up
Session State : up, None
Local(In)/Remote(Out) Label : 1027/1028, 100/200
InLabel Status : 0 , 0
Local/Remote MTU : 1500/1500, 1500
Local/Remote Control Word : Disable/Disable, Disable
Local/Remote VCCV Capability : alert ttl lsp-ping bfd /alert ttl lsp-ping bfd, alert ttl lsp-ping bfd
Switch-l2vc tunnel info :
1 tunnels for peer 1.1.1.9
NO.0 TNL Type : lsp , TNL ID : 0x9
1 tunnels for peer 5.5.5.9
NO.0 TNL Type : lsp , TNL ID : 0xa
CKey : 44, 1
NKey : 43, 3
Tunnel policy : --, --
Create time : 0 days, 0 hours, 3 minutes, 48 seconds
UP time : 0 days, 0 hours, 3 minutes, 48 seconds
Last change time : 0 days, 0 hours, 3 minutes, 48 seconds
VC last up time : 2008/07/24 12:31:31
VC total up time : 0 days, 2 hours, 12 minutes, 51 seconds
display mpls switch-l2vc brief
Function
The display mpls switch-l2vc brief command displays brief information about all switching PWs, including static, dynamic, and mixed switching PWs.
Usage Guidelines
When many switching PWs are configured on the device, you can run this command to view brief information about the switching PWs. The command output of the display mpls switch-l2vc brief command is more concise than that of the display mpls switch-l2vc command.
Example
# Display brief information about switching PWs.
<HUAWEI> display mpls switch-l2vc brief
Total Swithc VC : 1, 1 up, 0 down
*Switch-l2vc Type : LDP<---->LDP
Peer IP Address : 10.1.1.9, 10.2.2.9
VC ID : 200, 100
VC Type : VLAN
VC State : up
Session State : up, up
Item |
Description |
---|---|
Total Switch VC |
Number of established Martini VCs (using the LDP signaling), including the number of Martini VCs in Up and Down states. |
Switch-l2vc Type |
Switching type, which can be LDP-LDP, LDP-SVC, or SVC-SVC. If the primary and secondary switching VCs are configured, the switching types of these VCs can only be LDP-LDP.
|
Peer IP Address |
IP address of the peer. |
VC ID |
ID of the VC, which uniquely identifies a VC. Here, the field indicates the two switched VC IDs. |
VC Type |
Encapsulation type of the VC. |
VC State |
Status of the VC:
|
Session state |
Status of the session between peers:
|
display pw-template
Parameters
Parameter | Description | Value |
---|---|---|
pw-template-name | Specifies the PW template name. If this parameter is not specified, information about all PW templates is displayed. | The value is an existing PW template name. |
Usage Guidelines
If pw-template-name is not specified, information about all PW templates is displayed.
Example
# Display information about all PW templates.
<HUAWEI> display pw-template Total PW template number : 2 PW Template Name : PWT PeerIP : 2.2.2.2 Tnl Policy Name : -- CtrlWord : Enable MTU : 1500 Max Atm Cells : 28 ATM Pack Overtime: 1000 Seq-Number : Disable Transmit ATM Cells : 28 TDM Encapsulation Number: 32 Jitter-Buffer : 20 Jitter-Buffer-Cep : 1125 Payload-Compression DBA : UNEQ Idle-Code : ff Rtp-Header : Disable VCCV Capability : cw alert ttl lsp-ping bfd Total PW : 6, Static PW : 1, LDP PW : 5 PW Template Name : pwt PeerIP : -- Tnl Policy Name : -- CtrlWord : Disable MTU : 1500 Max Atm Cells : 28 ATM Pack Overtime: 1000 Seq-Number : Disable Transmit ATM Cells : 28 TDM Encapsulation Number: 32 Jitter-Buffer : 20 Jitter-Buffer-Cep : 1125 Payload-Compression DBA : UNEQ Idle-Code : ff Rtp-Header : Disable VCCV Capability : alert ttl lsp-ping bfd Total PW : 0, Static PW : 0, LDP PW : 0
Item |
Description |
---|---|
Total PW template number |
Total number of PW templates. |
PW Template Name |
PW template name. |
PeerIP |
Peer IP address. |
Tnl Policy Name |
Name of the public network tunnel policy applied to the PW. |
CtrlWord |
Whether the control word is enabled in the PW template.
|
MTU |
Maximum transmission unit. |
Max ATM cells |
Maximum number of transmitted ATM cells. |
ATM pack overtime |
Delay in packaging ATM cells. |
Seq-Number |
Sequence number in the control word of the PW:
|
Transmit ATM Cells |
Number of ATM cells sent by the local device. |
TDM Encapsulation Number |
Number of encapsulated TDM frames. |
Jitter-Buffer |
Maximum jitter buffer depth for TDM. |
Jitter-Buffer-Cep |
Maximum jitter buffer depth for TDM (with CEP encapsulation). |
Payload-Compression DBA |
Payload compression dynamic bandwidth allocation (DBA):
|
Idle-Code |
Idle code that is filled when a jitter buffer underflow occurs. |
Rtp-Header |
Whether the RTP header is added to the transparently transmitted TDM frame. |
VCCV Capability |
VC connection verification mode.
|
Total PW |
Total number of PWs using this PW template, including static and dynamic PWs. |
lspv pw reply ptn-mode
Function
The lspv pw reply ptn-mode command configures the SPE and TPE to reply trace VC packets in a multi-segment PW scenario.
The undo lspv pw reply ptn-mode command restores the default configuration.
By default, the lspv pw reply ptn-mode command is not configured.
manual-set pw-ac-fault
Function
The manual-set pw-ac-fault command simulates a fault on the primary or secondary PW.
The undo manual-set pw-ac-fault command cancels the fault that is simulated on a primary or secondary PW.
By default, no fault is simulated on a PW.
Parameters
Parameter | Description | Value |
---|---|---|
secondary | Simulates a fault on the secondary PW. If this parameter is not specified, a fault is simulated on the primary PW. | - |
Usage Guidelines
On a network where the primary and secondary PWs need to be configured, you can run the manual-set pw-ac-fault command to simulate a fault on the primary or secondary PW to check whether services can be switched between the primary and secondary PWs.
PrerequisitesA VC has been created.
mpls l2vc
Function
The mpls l2vc command creates a Martini VLL.
The undo mpls l2vc command deletes the Martini VLL from an interface.
By default, no Martini L2VPN connection is created.
Format
mpls l2vc { ip-address | pw-template pw-template-name } * vc-id [ group-id group-id | tunnel-policy policy-name | [ control-word | no-control-word ] | [ raw | tagged ] | mtu mtu-value | [ secondary | bypass ] | ignore-standby-state ] *
undo mpls l2vc { ip-address | pw-template pw-template-name } * vc-id [ group-id group-id | tunnel-policy policy-name | [ control-word | no-control-word ] | [ raw | tagged ] | mtu mtu-value | [ secondary | bypass ] | ignore-standby-state ] *
undo mpls l2vc [ secondary | bypass ]
Parameters
Parameter |
Description |
Value |
---|---|---|
ip-address |
Specifies the LSR ID of a peer device on the PW. |
The value is in dotted decimal notation. |
pw-template pw-template-name |
Specifies the name of a PW template. |
The value is a string of 1 to 19 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
vc-id |
Specifies a L2VC ID. |
The value is an integer that ranges from 1 to 4294967295. |
group-id group-id | Specifies a VC group ID. With the VC group ID specified, the system can execute the same operation on a group of VCs; therefore, fewer packets are exchanged between PEs. Only the VCs with the same attribute can be configured with the same VC group ID; otherwise, the PW may be torn down by mistake. This parameter is valid only on sub-interfaces. | The value is an integer that ranges from 1 to 4294967295. |
tunnel-policy policy-name |
Specifies the name of a tunnel policy. |
The value is a string of 1 to 39 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
raw |
Indicates the encapsulation type without VLAN tags. |
- |
tagged |
Indicates the encapsulation type with VLAN tags. |
- |
control-word |
Enables the control word function. |
- |
no-control-word |
Disables the control word function. |
- |
mtu mtu-value |
Specifies the MTU value. NOTE:
This parameter can be configured only on VLANIF interfaces. The MTU of another type of interface or its sub-interface can be configured in the PW template. |
The value is an integer that ranges from 46 to 9600. The default value is 1500. |
secondary |
Indicates a secondary VC. If this parameter is not specified, a primary VC is created. You can configure a secondary VC only when the primary VC exists on the local device. |
- |
bypass |
Indicates that the VC is a bypass VC. The encapsulation type of the bypass VC must be the same as that of the primary VC. | - |
ignore-standby-state |
Indicates that the PW ignores standby state information sent by the remote device. |
- |
Usage Guidelines
Usage Scenario
In a Martini VLL networking, you can run this command to create a VC connection for a Martini VLL.
Precautions
An interface cannot function as an L2VPN AC interface and L3VPN AC interface at the same time. After an interface is bound to an L2VPN, Layer 3 features such as the IP address and routing protocol on this interface become invalid.
You must create dynamic VCs on PEs at both ends of a PW to connect the PEs. The destination address of a VC is the LSR ID of the peer PE.
You can set attributes for a PW template, including the remote peer, tunnel policy, control word, and VCCV. When configuring an LDP PW, you can directly apply the PW template without specifying attributes for the PW. After setting attributes for a PW template, you can update the PW template at any time. The modified PW template takes effect only after the reset pw command is run.
If a PW attribute is specified in the mpls l2vc command, the corresponding PW attribute in the same PW template is invalid.
If you do not specify a tunnel policy for a Martini connection, the default tunnel policy is used. By default, the LSP tunnel is preferentially selected and only one tunnel is used for load balancing. If a tunnel policy name is specified but the tunnel policy is not configured, the default tunnel policy is used.
The MTU value is specified when you create Martini or PWE3 VLLs and is used for interconnection between the switch and other devices.
The parameters raw and tagged can be used only for Ethernet links.
You must configure the primary PW before configuring the secondary PW and delete the secondary PW before deleting the primary PW.
When creating VCs dynamically, the latest configurations of some parameters override the previous ones. The parameters include tunnel-policy tnl-policy-name, control-word, and no-control-word.
If a sub-interface is bound to a VLL, the sub-interface can be deleted only after the sub-interface is unbound from the VLL.
If a sub-interface is bound to a VLL, you cannot change the encapsulation type of the main interface.
By default, link type negotiation is enabled globally on the device. If a VLANIF interface is used as an AC-side interface for L2VPN, the configuration conflicts with link type negotiation. In this case, run the lnp disable command in the system view to disable link type negotiation.
When configuring BFD for static PW, the VC ID must be specified.
According to different encapsulation modes on the AC interfaces, the system processes user packets in different ways, as shown in the following tables.
- User packets enter from an AC interface.
AC Interface Type |
Encapsulation Mode of raw |
Encapsulation Mode of tagged |
---|---|---|
Dot1q termination sub-interface |
Removes a tag. |
No action is required. |
Ethernet interface |
Removes a tag. |
No action is required. |
QinQ stacking sub-interface |
No action is required. |
Adds a tag. |
QinQ termination sub-interface (in symmetrical mode) |
Removes the outer tag. |
No action is required. |
QinQ termination sub-interface (in asymmetrical mode) |
Removes two tags. |
Removes the outer tag. |
VLANIF interface (added to the VLAN in default mode) |
No action is required. |
Adds a tag (default VLAN ID of the interface). |
VLANIF interface (added to the VLAN in non-default mode) |
Removes the outer tag. |
No action is required. |
- User packets enter an AC interface.
AC Interface Type |
Encapsulation Mode of raw |
Encapsulation Mode of tagged |
---|---|---|
Dot1q termination sub-interface |
Adds a tag. |
Replaces the tag with the tag that is encapsulated on the outbound interface. |
Ethernet interface |
Adds a tag. |
Replaces the tag with the tag that is encapsulated on the outbound interface. |
QinQ stacking sub-interface |
No action is required. |
Removes a tag. |
QinQ termination sub-interface (in symmetrical mode) |
Adds the outer tag. |
Replaces the outer tag with the tag that is encapsulated on the outbound interface. |
QinQ termination sub-interface (in asymmetrical mode) |
Adds two tags. |
Removes the outer tag and then adds two tags that are encapsulated on the outbound interface. |
VLANIF interface (added to the VLAN in default mode) |
No action is required. |
Removes a tag. |
VLANIF interface (added to the VLAN in non-default mode) |
Adds the outer tag. |
Replaces the tag with the tag that is encapsulated on the outbound interface. |
Example
# Create a Martini connection on the VLANIF interface.
<HUAWEI> system-view [HUAWEI] vlan batch 10 [HUAWEI] interface vlanif 10 [HUAWEI-Vlanif10] mpls l2vc 10.2.2.9 100
# Create a Martini connection on the GE1/0/0.
<HUAWEI> system-view [HUAWEI] interface gigabitethernet 1/0/0 [HUAWEI-GigabitEthernet1/0/0] undo portswitch [HUAWEI-GigabitEthernet1/0/0] mpls l2vc 10.2.2.9 100
mpls l2vc admin
Function
The mpls l2vc admin command creates a management PW (mPW).
The undo mpls l2vc admin command deletes an mPW.
By default, no mPW is configured.
Format
mpls l2vc { ip-address | pw-template pw-template-name } * vc-id [ tunnel-policy policy-name | control-word | admin ] *
undo mpls l2vc [ { ip-address | pw-template pw-template-name } * vc-id [ tunnel-policy policy-name | control-word | admin ] * ]
Parameters
Parameter | Description | Value |
---|---|---|
ip-address | Specifies the IP address of the mPW peer, which is usually the LSR ID of the remote device. | The value is in dotted decimal notation. |
pw-template pw-template-name | Specifies the name of a PW template. | The value is a string of 1 to 19 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
vc-id | Specifies a VC ID. The VC ID must be unique on the local device, and identifies a VC together with the VC type. After a VC ID is configured, it cannot be modified. To modify a VC ID, delete the VC and configure it again. The VC IDs of the primary VC, secondary VC, and bypass VC must be different. |
The value is an integer that ranges from 1 to 4294967295. |
tunnel-policy policy-name | Specifies the name of a tunnel policy.
NOTE:
Before importing a tunnel policy, define the name and attribute of the tunnel policy in the system view first. |
The value is a string of 1 to 39 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
control-word | Enables the control word function. After the control word function is enabled, the device processes the Sequence Number, Length, and Layer-2 PDU fields in the packets. |
- |
admin | Designates the created PW as an mPW. | - |
Usage Guidelines
Usage Scenario
BFD is often configured for PWs to quickly detect PW faults. If there are a large number of service PWs with the same source and destination, you can configure mPWs with the same source and destination as those of the service PWs and associate the service PWs with the mPWs. By tracking the status of the mPWs, BFD can quickly detect faults on service PWs associated with the mPWs. BFD does not need to be configured for service PWs. This method reduces the number of BFD sessions and saves system resources and public network link bandwidth.
You can run the mpls l2vc admin command to create an mPW.
Prerequisites
MPLS L2VPN has been enabled using the mpls l2vpn command.
If pw-template pw-template-name is specified, a PW template has been created using the pw-template command.
Follow-up Procedure
Run the mpls l2vc track admin-vc command to associate service PWs with the mPWs.
Precautions
Generally, an mPW is configured on the primary PW path but not the secondary PW path.
mpls l2vc track admin-vc
Function
The mpls l2vc track admin-vc command associates service PWs with the mPWs.
The undo mpls l2vc track admin-vc command deletes the association between service PWs and mPWs.
By default, service PWs are not associated with the mPWs.
Format
mpls l2vc [ secondary | bypass ] track admin-vc interface loopback interface-number
undo mpls l2vc [ secondary | bypass ] track admin-vc
Parameters
Parameter | Description | Value |
---|---|---|
secondary | Associates the secondary service PW with the mPW. | - |
bypass | Associates the bypass service PW with the mPW. | - |
interface loopback interface-number | Specifies the loopback interface on which the mPW is configured. | The value is a decimal integer and must be the same as the number of the loopback interface on which the mPW is configured. |
Usage Guidelines
Usage Scenario
BFD is often configured for PWs to quickly detect PW faults. If there are a large number of service PWs with the same source and destination, you can configure mPWs with the same source and destination as those of the service PWs and associate these service PWs with the mPWs. By tracking the status of the mPWs, BFD can quickly detect faults on service PWs associated with the mPWs. BFD does not need to be configured for service PWs. This method reduces the number of BFD sessions and saves system resources and public network link bandwidth.
You can run the mpls l2vc track admin-vc command to associate service PWs with mPWs for service PW status monitoring.
Prerequisites
- An mPW and its associated service PW must have the same peers.
- A service PW can be associated with only one mPW.
- Multiple service PWs with the same source and destination can be associated with only one mPW.
Precautions
If the mPW status remains unchanged, traffic can be properly forwarded over service PWs.
- If the mPW detects a public link fault, the mPW changes its status from Up to Down and notifies all its associated service PWs.
- If both primary and secondary service PWs exist, the mPW triggers a switchover between the primary and secondary service PWs.
- If only one service PW exists, the service PW changes its status from Up to Down and stops forwarding data.
After the fault is rectified, the mPW changes its status from Down to Up. If both primary and secondary service PWs exist, a switchover will be performed between them based on the configured revertive switching policy. If only one service PW exists, the service PW changes its status from Down to Up. The service PW then starts to forward traffic again.
The mpls l2vc track admin-vc command applies to only single-hop primary and secondary PWs and does not apply to multi-hop PWs.
Example
# Associate the primary service PW with the mPW.
<HUAWEI> system-view [HUAWEI] interface loopback 0 [HUAWEI-Loopback0] mpls l2vc 1.1.1.1 1 admin [HUAWEI-Loopback0] quit [HUAWEI] interface vlanif 10 [HUAWEI-Vlanif10] mpls l2vc 1.1.1.1 5 [HUAWEI-Vlanif10] mpls l2vc track admin-vc interface loopback 0
# Associate the secondary service PW with the mPW.
<HUAWEI> system-view [HUAWEI] interface loopback 1 [HUAWEI-Loopback1] mpls l2vc 2.2.2.2 2 admin [HUAWEI-Loopback1] quit [HUAWEI] interface vlanif 20 [HUAWEI-Vlanif20] mpls l2vc 1.1.1.1 10 [HUAWEI-Vlanif20] mpls l2vc 2.2.2.2 6 secondary [HUAWEI-Vlanif20] mpls l2vc secondary track admin-vc interface loopback 1
# Associate the bypass service PW with the mPW.
<HUAWEI> system-view [HUAWEI] interface loopback 2 [HUAWEI-Loopback2] mpls l2vc 3.3.3.3 3 admin [HUAWEI-Loopback2] quit [HUAWEI] interface vlanif 30 [HUAWEI-Vlanif30] mpls l2vc 1.1.1.1 20 bypass [HUAWEI-Vlanif30] mpls l2vc 3.3.3.3 7 bypass [HUAWEI-Vlanif30] mpls l2vc bypass track admin-vc interface loopback 2
mpls l2vpn
Function
The mpls l2vpn command enables MPLS L2VPN and displays the MPLS L2VPN view.
The undo mpls l2vpn command disables MPLS L2VPN and deletes all the L2VPN configurations.
By default, the MPLS L2VPN function is disabled.
Usage Guidelines
Usage Scenario
To configure MPLS L2VPN functions or perform configurations in the MPLS L2VPN view on the MPLS L2VPN network, run the mpls l2vpn command to enable MPLS L2VPN and enter the MPLS L2VPN view.
Prerequisites
Basic MPLS functions have been configured. For details, see the mpls lsr-id and mpls commands.
Precautions
When the command is configured, a P device does not need to be enabled with the MPLS L2VPN function.
After the mpls l2vpn command is executed:
- If MPLS L2VPN is disabled on the device, MPLS L2VPN is enabled and the MPLS L2VPN view is displayed.
- If MPLS L2VPN is enabled on the device, the MPLS L2VPN view is displayed.
After the undo mpls l2vpn command is run in the system view, L2VPN services may be interrupted, and all L2VPN configurations are cleared. If you want to restore the L2VPN configurations, re-run all the deleted commands.
mpls l2vpn no-request-message
Function
The mpls l2vpn no-request-message command disables the device from sending L2VPN label request messages to a specified peer.
The undo mpls l2vpn no-request-message command re-enables the device to send L2VPN label request messages to a specified peer.
By default, the system sends L2VPN label request messages to all its peers.
Format
mpls l2vpn no-request-message peer ip-address
undo mpls l2vpn no-request-message peer ip-address
Parameters
Parameter | Description | Value |
---|---|---|
peer ip-address | Specifies the LSR ID of a peer device on the PW. | The value is in dotted decimal notation. |
Usage Guidelines
On a PW in PWE3/Martini mode between two PEs with a Huawei device functioning as one PE and a non-Huawei device functioning as the other, if the non-Huawei device does not have the capability of processing L2VPN label requests, the mpls l2vpn no-request-message command needs to be run on the Huawei device to allow communication between the two devices. This command cannot be used in other cases.
mpls l2vpn pw bfd
Function
The mpls l2vpn pw bfd command enables dynamic BFD for PWs and adjusts BFD parameters on an AC interface.
The undo mpls l2vpn pw bfd command restores default BFD parameters of dynamic BFD for PWs on an AC interface.
By default, dynamic BFD for PWs is not configured on an AC interface.
Format
mpls l2vpn pw bfd [ detect-multiplier multiplier | min-rx-interval rx-interval | min-tx-interval tx-interval ] * [ remote-vcid vc-id ] [ secondary ]
undo mpls l2vpn pw bfd [ detect-multiplier | min-rx-interval | min-tx-interval ] * [ secondary ]
undo mpls l2vpn pw bfd [ detect-multiplier multiplier | min-rx-interval rx-interval | min-tx-interval tx-interval ] * [ remote-vcid vc-id ] [ secondary ]
Parameters
Parameter | Description | Value |
---|---|---|
detect-multiplier multiplier | Specifies the local detection multiplier. | The value is an integer that ranges from 3 to 50. The default value is 3. |
min-rx-interval rx-interval | Specifies the minimum interval for receiving BFD packets. | The
value is an integer, in milliseconds. If the MPU has the ES0D00FSUA00 card
installed or the MPU is EH1D2SRUDC00/EH1D2SRUDC01, the value
ranges from 3 to 1000. The default value is 10 ms. In other cases,
the value ranges from 100 to 1000 and the default value is 1000 ms.
NOTE:
When the MPU is the EH1D2SRUDC00 or EH1D2SRUDC01, you need to first run the detect-engine enable command in the system view so that the value range is 3 to 1000. If the detect-engine enable command is not used first, the value range is 100 to 1000. |
min-tx-interval tx-interval | Specifies the minimum interval for sending BFD packets. | The
value is an integer, in milliseconds. If the MPU has the ES0D00FSUA00 card
installed or the MPU is EH1D2SRUDC00/EH1D2SRUDC01, the value
ranges from 3 to 1000. The default value is 10 ms. In other cases,
the value ranges from 100 to 1000 and the default value is 1000 ms.
NOTE:
When the MPU is the EH1D2SRUDC00 or EH1D2SRUDC01, you need to first run the detect-engine enable command in the system view so that the value range is 3 to 1000. If the detect-engine enable command is not used first, the value range is 100 to 1000. |
remote-vcid vc-id | Specifies the VC ID of the peer device. | This parameter is mandatory when a multi-hop PW is detected. The value of this parameter is the VC ID of the remote end of the PW. The value is an integer that ranges from 1 to 4294967295. |
secondary | Configures BFD and its parameters on the secondary PW. By default, BFD and its parameters are configured on the primary PW. | - |
Usage Guidelines
On a network where BFD is used to detect faults, run the mpls l2vpn pw bfd command to enable dynamic BFD for PWs and adjust BFD parameters on an AC interface.
PrecautionsTo reduce usage of system resources, when a BFD session is detected in Down state, the system changes the minimum interval for receiving BFD packets and the minimum interval for sending BFD packets to random values between 1000 ms and 3000 ms. When the BFD session becomes Up, the configured intervals are restored.
mpls l2vpn redundancy
Function
The mpls l2vpn redundancy command specifies the PW negotiation mode.
The undo mpls l2vpn redundancy command restores the default PW mode.
By default, a device determines the primary and secondary PWs locally by using FRR, without negotiating with other nodes.
Format
mpls l2vpn redundancy { independent | master }
undo mpls l2vpn redundancy { independent | master }
Parameters
Parameter | Description | Value |
---|---|---|
independent | Indicates PW redundancy in independent mode. | - |
master | Indicates PW redundancy in master/slave mode. | - |
Usage Guidelines
Usage Scenario
After configuring the primary and secondary PWs on a PE, you can specify the PW redundancy mode. The following PW redundancy modes are supported:
FRR mode:
The FRR mode is the default PW redundancy mode and does not need to be configured.
The FRR mode applies to VLL FRR and PWE3 FRR scenarios. The FRR mode must be used with PW OAM and AC OAM. End-to-end FRR can be performed only after OAM mapping is enabled on the PE.
Master/slave mode:
The master/slave mode is often used in scenarios where VLL accesses VPLS. After the mpls l2vpn redundancy command is configured on a PE, the PE determines the primary/secondary status of PWs based on its local configurations. The master/slave mode can use the bypass PW to isolate PW-side failures from AC-side failures.
Independent mode:
The independent mode is often used with E-Trunk, and VRRP. The independent mode can use the bypass PW to isolate PW-side failures, but cannot isolate AC-side failures.
Prerequisites
The primary and secondary PWs must have been configured on the PE.
Follow-up Procedure
The FRR mode and master/slave mode support revertive policies. You can run the mpls l2vpn reroute command to configure a revertive policy. By default, the revertive switching is performed after a delay.
The independent mode supports only immediate switchback.
Precautions
If the mpls l2vpn redundancy command is run more than once, the latest configuration overrides previous ones. The undo mpls l2vpn redundancy command restores the FRR mode. When using the undo mpls l2vpn redundancy command, ensure that the parameter in this command is the same as that in the corresponding mpls l2vpn redundancy command.
The FRR mode applies to VLL and PWE3. The master/slave mode and independent mode apply to PWE3.
FRR mode: After the primary and secondary PW status is configured on a PE to which a CE is single-homed, the FRR PW redundancy mode is used by default. The local PE does not notify the remote PW of the primary/secondary PW status. As a result, the remote PE is unaware of the local primary/secondary status.
Master/slave mode: After this mode is configured, the PE determines the primary/secondary status of PWs based on local configurations and sends the Forwarding (0x00) and Forwarding Standby (0x20) status signaling to the remote PE.
Independent mode: After this mode is configured, the PE determines the primary/secondary status of the local PWs based on the status information sent by the remote PE and sends the Forwarding (0x00) status signaling to the remote PE.
mpls l2vpn reroute
Function
The mpls l2vpn reroute command configures the revertive switchover policy for the primary and secondary PWs in FRR or PW redundancy master/slave mode.
The undo mpls l2vpn reroute command restores the default revertive switchover policy.
By default, delayed revertive switchover is configured in FRR or PW redundancy master/slave mode.
Format
mpls l2vpn reroute { { delay delay-time | immediately } [ resume resume-time ] | never }
undo mpls l2vpn reroute
Parameters
Parameter | Description | Value |
---|---|---|
delay delay-time | Specifies the revertive switchover policy for the primary and secondary PWs as delayed revertive switchover, and sets the duration for delayed switchover. | The value is an integer that ranges from 10 to 1800, in seconds. The default value is 30. |
immediately | Specifies the revertive switchover policy for the primary and secondary PWs as immediate revertive switchover. | - |
resume resume-time | Specifies a delay after which the local device notifies the peer PE on the secondary PW of the recovery. You can set this parameter only in VLL FRR mode. | The value is an integer that ranges from 0 to 600, in seconds. The default value is 10. |
never | Specifies the revertive switchover policy for the primary and secondary PWs to none revertive switchover. After the primary PW recovers, traffic is not switched to it until the secondary PW is faulty. | - |
Usage Guidelines
Usage Scenario
The mpls l2vpn reroute command configures the revertive switchover policy for the primary and secondary PWs in FRR or PW redundancy master/slave mode.
Prerequisites
The primary and secondary PWs have been configured in FRR or PW redundancy master/slave mode. The revertive switchover policy cannot be configured for PW redundancy independent mode.
Precautions
In VLL FRR mode and in PW redundancy master/slave mode, the PW revertive switchover policy is classified into the following modes:
Immediate revertive switchover: When the primary PW recovers from a fault, the local PE switches traffic back to the primary PW immediately and notifies the peer PE on the secondary PW of the fault. In FRR mode, the local PE notifies the peer PE on the secondary PW of the recovery after a delay of resume-time. In PW redundancy master/slave mode, the parameter resume-time is not supported.
This revertive switchover applies to scenarios in which users hope traffic to be restored as soon as possible.
Delayed revertive switchover: When the primary PW recovers from a fault, traffic is switched back to the primary PW after a period specified by delay-time. After traffic is switched back, the local device immediately notifies the peer device on the secondary PW of the fault. If resume-time is configured in FRR mode, the local device notifies the peer device on the secondary PW of the recovery after a delay of resume-time.
On a large-scale network, packet loss caused by incomplete route convergence may occur during the switchback. To prevent this problem, configure traffic to be switched back after a delay.
None revertive switchover: When the primary PW recovers from a fault, traffic is not switched back to the primary PW until the secondary PW becomes faulty.
If you do not want traffic to be frequently switched between the primary and secondary PWs, you can use the non-revertive switchover.
In a CE asymmetrical networking, if the Ethernet OAM function is configured on a PE interface connected to a CE, and a revertive switchover policy is configured, the value of resume-time cannot be 0 seconds. The value must be equal to or greater than 1 second.
Example
# Configure the device to switch traffic back to the primary PW 15 seconds after the primary PW recovers from a fault, notify the peer PE on the secondary PW of the fault when a switchover is performed, and notify the peer PE of the secondary PW of the recovery 20 seconds later.
<HUAWEI> system-view [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] mpls l2vc 10.1.1.9 100 [HUAWEI-Vlanif100] mpls l2vc 10.2.2.9 200 secondary [HUAWEI-Vlanif100] mpls l2vpn reroute delay 15 resume 20
mpls l2vpn service-name
Function
The mpls l2vpn service-name command sets the name of an SVC or Martini VLL service or a PWE3 service.
The undo mpls l2vpn service-name command deletes the configured L2VPN service name.
By default, no L2VPN service name is configured in the system.
Parameters
Parameter | Description | Value |
---|---|---|
service-name | Specifies the name of an L2VPN service. This parameter uniquely identifies an L2VPN service on a PE. | The value is a string of 1 to 15 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
Usage Guidelines
Usage Scenario
By default, an SVC or Martini VLL service or a PWE3 service is uniquely identified by the combination of the VC ID and VC type, which are hard to remember and make maintenance complex. When a service name is used to uniquely identify an L2VPN service, the name can be defined based on requirements and the NMS operator can maintain the L2VPN service by clicking the name on the NMS graphical user interface (GUI). This simplifies operation and maintenance.
Prerequisites
An SVC or Martini VLL service or a PWE3 service has been configured on a service interface. A primary PW and a secondary PW can be configured for a Martini VLL or PWE3 service.
Precautions
On each PE, an L2VPN service name is unique. If an L2VPN service name has been used by a PW, it cannot be configured for another PW, or the system will display an error message.
If an L2VPN service already has a service name, this service name will be overwritten when a new name is configured for the L2VPN service. Therefore, when changing an L2VPN service name, you can directly configure a new service name without deleting the original one.
- Because the primary and secondary PWs are configured on the same interface, they are regarded as one PW, and a service name is configured for both of them.
- On each PE, an L2VPN service name is unique.
- The mpls l2vpn service-name command cannot be run on a loopback interface.
mpls l2vpn stream-dual-receiving
Function
The mpls l2vpn stream-dual-receiving command configures an interface to receive packets from both the primary and secondary PWs.
The undo mpls l2vpn stream-dual-receiving command disables an interface from receiving packets from both the primary and secondary PWs.
By default, an interface cannot receive packets from the secondary PW.
Usage Guidelines
Usage Scenario
On a network configured with PW Redundancy, the mpls l2vpn stream-dual-receiving command must be run on a PE to which the CE is single homed, so that the PE can receive packets from both the primary and secondary PWs. This prevents packet loss during the PW switchover process.
If the command is not run, the PE receives packets only from the primary PW. This causes packet loss during a traffic switchover. After the primary PW recovers and a traffic switchover is triggered, the secondary PW on the PE becomes the primary PW and the PE notifies the peer of the status change. A delay in signaling transmission causes the peer PE to send packets along the secondary PW. After the PE receiving packets from the secondary PW, the PE discards the packets, resulting in packet loss.
Prerequisites
Primary and secondary PWs have been configured.
Precautions
The mpls l2vpn stream-dual-receiving command applies to only PWE3 L2VPN. If H-VPLS is configured, the command cannot be configured. If you configure this command, unidirectional broadcast traffic will be looped back.
Bypass PWs cannot be configured on a PE configured with the mpls l2vpn stream-dual-receiving command.
Kompella VLL FRR does not support the mpls l2vpn stream-dual-receiving command.
mpls l2vpn switchover
Function
The mpls l2vpn switchover command switches traffic from the primary PW to the secondary PW.
The undo mpls l2vpn switchover command disables traffic switchover and switches traffic back to the primary PW.
By default, traffic switchover is not configured.
Usage Guidelines
Usage Scenario
In master/slave PW redundancy mode, the traffic is transmitted over the primary PW in normal situations. If you want the traffic to be transmitted over the secondary PW due to reasons such as device upgrade or service re-deployment, you can use the mpls l2vpn switchover command to forcibly switch traffic from the primary PW to the secondary PW. After the device is upgraded or services are re-deployed, you can run the undo mpls l2vpn switchover command to forcibly switch traffic from the secondary PW to the primary PW.
- Before running the mpls l2vpn switchover command, ensure that the secondary PW is normal and can forward traffic.
- Before running the undo mpls l2vpn switchover command, ensure that the primary PW is normal and can forward traffic.
If the secondary PW fails after traffic is forcibly switched to the secondary PW, the traffic will be switched back to the primary PW.
Prerequisites
The primary and secondary PWs have been established and are in the Up state.
Precautions
A PW switchover will be performed after you run the mpls l2vpn switchover or undo mpls l2vpn switchover command. If the PW to be switched to is Down or unavailable, the switchover fails.
Traffic cannot be switched from the primary PW to a bypass PW.
The two commands apply to only PWs working in master/slave mode. In a VLL FRR scenario, use the manual-set pw-ac-fault command to forcibly switch over PWs.
mpls l2vpn vccv bfd-cv-negotiation fault-detection-only
Function
The mpls l2vpn vccv bfd-cv-negotiation fault-detection-only command sets the encapsulation type for BFD CV packets to be sent to remote peers.
The undo mpls l2vpn vccv bfd-cv-negotiation fault-detection-only command restores the default configuration.
By default, the device sends BFD CV packets with the encapsulation type 0x08 to all remote peers.
Format
mpls l2vpn vccv bfd-cv-negotiation fault-detection-only [ peer peer-address { enable | disable } ]
undo mpls l2vpn vccv bfd-cv-negotiation fault-detection-only [ peer peer-address ]
Parameters
Parameter | Description | Value |
---|---|---|
peer peer-address | Specifies the IP address of a remote peer. |
The value is in dotted decimal notation. |
enable | Sets the encapsulation type 0x04 for BFD CV packets to be sent to a specified remote peer. |
- |
disable | Set the encapsulation type 0x08 for BFD CV packets to be sent to a specified remote peer. |
- |
Usage Guidelines
Usage Scenario
- 0x04: used only for PW fault detection.
- 0x08: used for PW fault detection and AC/PW status signaling.
- The mpls l2vpn vccv bfd-cv-negotiation fault-detection-only command sets the encapsulation type to 0x04 for BFD CV packets to be sent to all remote peers.
- The undo mpls l2vpn vccv bfd-cv-negotiation fault-detection-only command restores the default encapsulation type 0x08 for BFD CV packets to be sent to all remote peers.
- The mpls l2vpn vccv bfd-cv-negotiation fault-detection-only peer peer-address enable command sets the encapsulation type to 0x04 for BFD CV packets to be sent to a specified remote peer.
- The mpls l2vpn vccv bfd-cv-negotiation fault-detection-only peer peer-address disable command sets the encapsulation type to 0x08 for BFD CV packets to be sent to a specified remote peer.
- The undo mpls l2vpn vccv bfd-cv-negotiation fault-detection-only peer peer-address command restores the global encapsulation type for BFD CV packets to be sent to a specified remote peer.
Dynamic PWs support VCCV by default, and can use LDP signaling to advertise local attributes to remote peers. The default encapsulation type of BFD CV packets is 0x08. If a remote peer supports the encapsulation type 0x04 and BFD is used for communication, run the mpls l2vpn vccv bfd-cv-negotiation fault-detection-only peer peer-address enable command to change the encapsulation type of BFD CV packets to be sent to this peer to 0x04.
Precautions
After this command is run, PWs may be re-established, which causes a short service interruption.
Example
# Set the encapsulation type 0x04 for BFD CV packets to be sent to remote peers.
<HUAWEI> system-view [HUAWEI] mpls l2vpn [HUAWEI-l2vpn] mpls l2vpn vccv bfd-cv-negotiation fault-detection-only
# Set the encapsulation type 0x04 for BFD CV packets to be sent to a specified remote peer.
<HUAWEI> system-view [HUAWEI] mpls l2vpn [HUAWEI-l2vpn] mpls l2vpn vccv bfd-cv-negotiation fault-detection-only peer 10.10.10.1 enable
mpls static-l2vc
Function
The mpls static-l2vc command creates a static VC.
The undo mpls static-l2vc command deletes the static VCs.
By default, no static VC is created.
Format
mpls static-l2vc { { destination ip-address | pw-template pw-template-name vc-id } * | destination ip-address vc-id } transmit-vpn-label transmit-label-value receive-vpn-label receive-label-value [ tunnel-policy tnl-policy-name | [ control-word | no-control-word ] | [ raw | tagged ] ] *
undo mpls static-l2vc
undo mpls static-l2vc { { destination ip-address | pw-template pw-template-name vc-id } * | destination ip-address vc-id } transmit-vpn-label transmit-label-value receive-vpn-label receive-label-value [ tunnel-policy tnl-policy-name | [ control-word | no-control-word ] | [ raw | tagged ] ] *
Parameters
Parameter |
Description |
Value |
---|---|---|
destination ip-address |
Specifies the LSR ID of a peer device on the PW. |
The value is in dotted decimal notation. |
pw-template pw-template-name |
Specifies the name of a static PW template. |
The value is a string of 1 to 19 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
vc-id |
Specifies the VC ID. |
The value is an integer that ranges from 1 to 4294967295. |
transmit-vpn-label transmit-label-value |
Specifies the value of a transmit label. |
The value is an integer that ranges from 0 to 1048575. |
receive-vpn-label receive-label-value |
Specifies the value of a receive label. |
The value is an integer that ranges from 16 to 1023. |
tunnel-policy tnl-policy-name |
Specifies the name of a tunnel policy. |
The value is a string of 1 to 39 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
control-word | no-control-word |
Enables or disables the control word function. By default, the control word function is disabled. |
- |
raw |
Removes the service-delimiting (SD) tag from a packet. |
- |
tagged |
Retains the SD tag in a packet. |
- |
Usage Guidelines
Usage Scenario
In an L2VPN networking, you can use this command to create a static VC between two PEs connected to CEs.
Precautions
An interface cannot function as an L2VPN AC interface and L3VPN AC interface at the same time. After an interface is bound to an L2VPN, Layer 3 features such as the IP address and routing protocol on this interface become invalid.
You can set attributes for a static PW template, including the remote peer, tunnel policy, control word, and VCCV. When configuring a static PW, you can directly use the static PW template without specifying attributes for the PW. After setting attributes for a static PW template, you can update the static PW template at any time. The modified static PW template takes effect only after the reset pw command is run.
Static VCs must be created on PEs at both ends. The destination address of a VC is the LSR ID of the peer PE. The transmit label of the PE at one end is the receive label of the PE at the other end. If the labels do not match, traffic may fail to be forwarded even though the static-12vc field is displayed as Up.
If no tunnel policy is specified, the default tunnel policy is used. The default policy specifies that traffic is forwarded along the LSP and only one tunnel is used for load balancing. If a tunnel policy name is specified but the tunnel policy is not configured, the default tunnel policy is used.
When configuring a static VC, note that the value of the transmit label ranges from 0 to 1048575. This ensures the communication between the device and different types of devices.
When creating static VCs, the latest configurations of some parameters override the previous ones. The parameters include tunnel-policy tnl-policy-name, control-word, and no-control-word.
If a sub-interface is bound to a VLL, the sub-interface can be deleted only after the sub-interface is unbound from the VLL.
If a sub-interface is bound to a VLL, you cannot change the encapsulation type of the main interface.
By default, link type negotiation is enabled globally on the device. If a VLANIF interface is used as an AC-side interface for L2VPN, the configuration conflicts with link type negotiation. In this case, run the lnp disable command in the system view to disable link type negotiation.
Example
# Configure a static VC. Set the LSR ID of the peer device to 1.1.1.1, transmit label to 100, and receive label to 100.
<HUAWEI> system-view [HUAWEI] interface vlanif 10 [HUAWEI-Vlanif10] mpls static-l2vc destination 1.1.1.1 transmit-vpn-label 100 receive-vpn-label 100
# Configure a static VC by applying a PW template and set values of the VC ID, transmit label, and receive label to 100 respectively.
<HUAWEI> system-view [HUAWEI] interface vlanif 10 [HUAWEI-Vlanif10] mpls static-l2vc pw-template pwt 100 transmit-vpn-label 100 receive-vpn-label 100
# Delete a static VC.
<HUAWEI> system-view [HUAWEI] interface vlanif 10 [HUAWEI-Vlanif10] undo mpls static-l2vc
mpls switch-l2vc
Function
The mpls switch-l2vc command configures PW switching on the SPE to implement multi-segment PWs.
The undo mpls switch-l2vc command deletes PW switching.
The default policy is used for PW switching. In the default policy, LSP tunnels are used and the number of routes for load balancing is 1.
Format
mpls switch-l2vc ip-address vc-id trans trans-label recv received-label [ tunnel-policy policy-name ] between ip-address vc-id trans trans-label recv received-label [ tunnel-policy policy-name ] encapsulation encapsulation-type [ control-word [ cc { alert | cw } * cv lsp-ping ] | [ no-control-word ] [ cc alert cv lsp-ping ] ] [ control-word-transparent ]
undo mpls switch-l2vc ip-address vc-id trans trans-label recv received-label [ tunnel-policy policy-name ] between ip-address vc-id trans trans-label recv received-label [ tunnel-policy policy-name ] encapsulation encapsulation-type [ control-word [ cc { alert | cw } * cv lsp-ping ] | [ no-control-word ] [ cc alert cv lsp-ping ] ] [ control-word-transparent ]
mpls switch-l2vc ip-address vc-id [ tunnel-policy policy-name ] between ip-address vc-id [ tunnel-policy policy-name ] encapsulation encapsulation-type [ control-word-transparent ]
undo mpls switch-l2vc ip-address vc-id [ tunnel-policy policy-name ] between ip-address vc-id [ tunnel-policy policy-name ] encapsulation encapsulation-type [ control-word-transparent ]
mpls switch-l2vc ip-address vc-id [ tunnel-policy policy-name ] between ip-address vc-id trans trans-label recv received-label [ tunnel-policy policy-name ] encapsulation encapsulation-type [ mtu mtu-value ] [ control-word [ cc { alert | cw } * cv lsp-ping ] | [ no-control-word ] [ cc alert cv lsp-ping ] ] [ control-word-transparent ]
undo mpls switch-l2vc ip-address vc-id [ tunnel-policy policy-name ] between ip-address vc-id trans trans-label recv received-label [ tunnel-policy policy-name ] encapsulation encapsulation-type [ mtu mtu-value ] [ control-word [ cc { alert | cw } * cv lsp-ping ] | [ no-control-word ] [ cc alert cv lsp-ping ] ] [ control-word-transparent ]
undo mpls switch-l2vc { ip-address vc-id encapsulation encapsulation-type | all }
Parameters
Parameter |
Description |
Value |
---|---|---|
ip-address |
Specifies the LSR ID of a peer device on the PW. |
The value is in dotted decimal notation. |
vc-id |
Specifies the L2VC ID. |
The value is an integer that ranges from 1 to 4294967295. |
trans trans-label |
Specifies the static label for sending packets. |
The value is an integer that ranges from 0 to 1048575. |
recv received-label |
Specifies the static label for receiving packets. |
The value is an integer that ranges from 16 to 1023. |
tunnel-policy policy-name | Specifies the name of a tunnel policy. If this parameter is not specified, the default tunnel policy is used, which preferentially selects the LSP tunnel and only one tunnel is used for load balancing. |
The value is a string of 1 to 39 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
between | Specifies the switching PW that corresponds to the PW |
- |
encapsulation encapsulation-type |
Specifies the encapsulation type of a static PW. |
The encapsulation types supported
by PW switching are ethernet, vlan, and ip-interworking.
NOTE:
Static and mixed PWs support only Ethernet and
VLAN encapsulation types. |
mtu mtu-value |
Specifies the MTU for negotiating dynamic PW signaling. If the non-default MTU is set when you configure a dynamic PW, , you need to set the MTU manually when configuring mixed PW switching; otherwise, the signaling negotiation at the dynamic PW side may fail. |
The value is an integer that ranges from 46 to 9600. |
control-word |
Enables the control word function. By default, the control word function is disabled. |
- |
no-control-word |
Disable the control word function. |
- |
cw |
Indicates the mode in which the control word function is enabled. |
- |
alert |
Indicates the label alert tunnel for VCCV ping. |
- |
cv |
Indicates connectivity verification, which is enabled by default. |
- |
lsp-ping |
Indicates connectivity verification in LSP ping mode for VCs, which is enabled by default. |
- |
control-word-transparent |
Enables transparent transmission of the control word. In the scenario where a PE is dual homed to SPEs and BFD for PW is enabled, transparent transmission of the control word must be enabled on the SPEs; otherwise, the BFD negotiation fails. By default, transparent transmission of the control word is disabled. |
- |
all |
Deletes all PW switching. |
- |
Usage Guidelines
The mpls switch-l2vc command configures PW switching on the SPE to implement multi-segment PWs.
PW switching can be classified into dynamic mode, static mode, and mixed mode. You can create PW switching of different types using different commands to meet site requirements:
- Configuring static PW switching: The two PW segments connected by an SPE are both static PWs. Static PW switching apples when static PWs are used on the entire network.
- Configuring dynamic PW switching: The two PW segments connected by an SPE are both dynamic PWs. Dynamic PW switching applies when dynamic PWs are used on the entire network.
- Configuring mixed PW switching: A mixed PW switching applies when an SPE connects a dynamic PW and a static PW.
You need to configure the PW label for the static PW switching and for the static PW in the mixed PW switching.
The configuration of static PW switching is simple. The remote label is sent from two neighboring ends (UPE or SPE) to the SPE through signaling. The CW and the VCCV are sent from two UPE nodes to the SPE through signaling.
When you configure mixed PW switching, the value of ip-address vc-id before between in the command is for the dynamic PW, and the value of ip-address vc-id after between in the command is for the static PW. The two values cannot be interchanged.
The VC IDs for PW switching can be different.
The combination of the PW ID and PW type must be unique on each node. The PW IDs at two ends of PW switching can be the same.
When creating PW switching, the latest configurations of some parameters override the previous ones. The parameters include tunnel-policy policy-name, control-word-transparent, control-word, no-control-word, and mtu mtu-value.
Example
# Configure dynamic PW switching.
<HUAWEI> system-view [HUAWEI] mpls switch-l2vc 1.1.1.9 100 between 3.3.3.9 100 encapsulation vlan
# Configure static PW switching.
<HUAWEI> system-view [HUAWEI] mpls switch-l2vc 1.1.1.9 100 trans 100 recv 100 between 3.3.3.9 100 trans 200 recv 200 encapsulation vlan
# Configure mixed PW switching.
<HUAWEI> system-view [HUAWEI] mpls switch-l2vc 1.1.1.9 100 between 3.3.3.9 100 trans 200 recv 200 encapsulation vlan mtu 1500
# Delete PW switching.
<HUAWEI> system-view [HUAWEI] undo mpls switch-l2vc 1.1.1.9 100 encapsulation vlan
mtu (PW template view)
Function
The mtu command specifies the MTU in a PW template.
The undo mtu command restores the default setting.
By default, the MTU in a PW template is 1500.
Parameters
Parameter | Description | Value |
---|---|---|
mtu-value | Specifies the MTU in a PW template. |
The value is an integer that ranges from 46 to 9600. |
Usage Guidelines
When creating a PW template, run the mtu command to specify the MTU for the PW template.
PrecautionsWhen creating a Martini VLL or PWE3 VLL, if you set the MTU value by specifying mtu mtu-value in the mpls l2vc command. If you do not specify mtu mtu-value, the MTU in the PW template takes effect. If you do not specify mtu mtu-value in the mpls l2vc command and do not set the MTU in the PW template, the device uses the default MTU value 1500.
peer-address
Function
The peer-address command assigns a remote IP address to a PW template.
The undo peer-address command deletes the remote IP address assigned to a PW template.
By default, a PW template is not configured with a remote IP address.
Parameters
Parameter | Description | Value |
---|---|---|
ip-address | Specifies the IPv4 address of the peer. Generally, ip-address is a loopback address of the peer and needs be the same as the destination address of the tunnel. | The value is in dotted decimal notation. |
Usage Guidelines
Usage Scenario
The peer IP address can be set either using a PW template or the mpls l2vc command. The PW template allows you to modify the peer IP address in real time. If you want to change the peer IP address using the mpls l2vc command, you must delete the existing peer IP address first.
After the peer IP address is changed:
- If the PW template is in use, you must run the reset pw pw-template command for the change to take effect. This, however, may disconnect and re-establish the PWs that apply the PW template.
- If the PW template is not in use, it does not need to restart.
Prerequisites
- MPLS L2VPN has been enabled in the system view.
- A PW template has been created in the system view.
Precautions
If the peer IP address has been configured using both a PW template and the mpls l2vc command, only the peer IP address configured using the mpls l2vc command takes effect.
Example
# Assign a remote IP address to a PW template.
<HUAWEI> system-view [HUAWEI] pw-template pwt [HUAWEI-pw-template-pwt] peer-address 1.1.1.1
# Modify a remote IP address in a PW template.
<HUAWEI> system-view [HUAWEI] pw-template pwt [HUAWEI-pw-template-pwt] undo peer-address [HUAWEI-pw-template-pwt] peer-address 2.2.2.2
ping vc
Format
ping vc pw-type pw-id [ -c echo-number | -m time-value | -s data-bytes | -t timeout-value | -exp exp-value | -r reply-mode | -v ] * control-word [ remote remote-ip-address peer-pw-id | draft6 ] * [ ttl ttl-value ] [ pipe | uniform ]
ping vc pw-type pw-id [ -c echo-number | -m time-value | -s data-bytes | -t timeout-value | -exp exp-value | -r reply-mode | -v ] * control-word remote remote-ip-address peer-pw-id sender sender-address [ ttl ttl-value ] [ pipe | uniform ]
ping vc pw-type pw-id [ -c echo-number | -m time-value | -s data-bytes | -t timeout-value | -exp exp-value | -r reply-mode | -v ] * label-alert [ no-control-word ] [ remote remote-ip-address | draft6 ] * [ pipe | uniform ]
ping vc pw-type pw-id [ -c echo-number | -m time-value | -s data-bytes | -t timeout-value | -exp exp-value | -r reply-mode | -v ] * normal [ no-control-word ] [ remote remote-ip-address peer-pw-id ] [ ttl ttl-value ] [ pipe | uniform ]
Parameters
Parameter | Description | Value |
---|---|---|
pw-type | Specifies the encapsulation type of a local PW. | Currently, PWs of the following types are supported: ethernet, vlan, and ip-interworking. |
pw-id | Specifies the ID of a local PW. | The value is an integer that ranges from 1 to 4294967295. |
-c echo-number | Specifies the number of Echo Request messages to be
sent. If the network works unstably, you can set this parameter to a larger value to test network quality based on the packet loss ratio. |
The value is an integer that ranges from 1 to 4294967295. The default value is 5. |
-m time-value | Specifies the interval for sending Echo Request messages. Each time after the source sends an Echo Request message by using the ping vc command, it waits a period of time (2000 ms by default) before sending the next Echo Request message. You can set the interval for sending Echo Request messages through the parameter time-value. If the network works unstably, the value should be larger than or equal to 2000 ms. | The value is an integer that ranges from 1 to 10000, in milliseconds. The default value is 2000. |
-s data-bytes | Specifies the number of bytes of the sent Echo Request messages. | The value is an integer that ranges from 65 to 8100, in bytes. The default value is 100. |
-t timeout-value | Specifies the timeout period for sending Echo Request messages. | The value is an integer that ranges from 0 to 65535, in milliseconds. The default value is 2000. |
-exp exp-value | Specifies the EXP value of the sent Echo Request messages. NOTE:
If DSCP priority has been configured by running the set priority command, the exp-value parameter does not take effect. |
The value is an integer that ranges from 0 to 7. The default value is 0. |
-r reply-mode | Specifies the mode in which the peer returns MPLS Echo
Reply messages.
|
The value is an integer that ranges from 1 to 4. The default value is 2. |
-v | Displays the detailed information. | - |
no-control-word | Disables the control word function. | - |
control-word | Enables the control word function. The switching node along a multi-segment PW does not transmit ping packets. When the control word function is enabled, you can ping only the termination node of the PW. Before using the control word to ping the PW, you must enable the control word for a PW. | - |
remote | Specifies information about the PW on the remote PE. Information specified by the remote PE is finally encapsulated into the ping packets. The PW can be searched on the remote PE based on the specified information. By default, information contained in the ping packets is the information about the PW on the local end, which applies to single-segment PWs. | - |
peer-pw-id | Specifies the ID of the PW on the peer. | The value is an integer that ranges from 1 to 4294967295. By default, the peer PW ID is the same as the local PW ID. |
draft6 | Specifies the version of the ping vc command. If this parameter is specified, the ping operation is performed based on "draft-ietf-mpls-lsp-ping-06". | - |
pipe | Specifies the pipe mode. When a probe packet passes through the MPLS domain, the entire MPLS domain is considered as one hop and the IP TTL of the probe packet is reduced by one on the ingress and egress respectively. | - |
uniform | Specifies the uniform mode. The IP TTL of the probe packet is reduced by one each time it passes through one hop in the MPLS domain. | - |
remote-ip-address | Specifies the remote IP address. By default, the system searches for the IP address of the next hop based on the PW on the local PE. In the case of a multi-segment PW, if the ping operation is performed in control word mode, the IP address of the termination node must be specified. In MPLS router alert mode, the IP address of any switching node or the termination node can be specified. Then, the Echo Request message is sent to the peer and then sent back. | - |
label-alert | Specifies the label alert mode. The switching node along a multi-segment PW sends ping packets forcibly. In MPLS router alert mode, you can ping any switching node along the PW. | - |
normal | Specifies the normal mode, that is, the TTL detection mode. In this mode, control word and router alert are not encapsulated in to MPLS Echo Request messages, and TTL values are used to detect PW connectivity. | - |
ttl ttl-value | Specifies the TTL value. | The value is an integer that ranges from 1 to 255. The default value is 64. |
sender sender-address | Specifies a source address. For end-to-end detection of a multi-segment PW, a source IP address needs to be specified for a public network device that communicates with the remote PE. Generally, the source IP address is the address of the adjacent SPE or UPE. | - |
Usage Guidelines
Usage Scenario
If a PW is Up, the ping vc command can be used to locate the fault on the PW. For example, a forwarding entry is abnormally lost or incorrect. The ping vc command can be used to check a PW in the following scenarios:VLL networking
- PWE3 VLL PW ping: In a PWE3 VLL networking, a PW ping is initiated to check the connectivity of a PW. A PWE3 VLL PW ping can be performed in control word mode, TTL mode, or label alert mode. In a ping test, a local PE sends an Echo Request message to the peer PE. After receiving the message, the peer PE abstracts and sends FEC information to the L2VPN module to determine whether the message has reached the egress. If so, the peer PE returns an Echo Reply message .
- Kompella VLL PW ping: A VLL PW ping is initiated to check the connectivity of a PW. Different from the PWE3 networking, the Kompella VLL does not need the PW template and supports the control word, TTL, and label alert modes.
VPLS networking
- Martini VPLS PW ping: The Martini VPLS PW ping supports only the label alert mode. On a Hierarchical Virtual Private LAN Service (HVPLS) network, the Martini VPLS PW ping can only detect single-segment PWs. If an optional PW ID is configured and specified, the PW with the PW ID is detected. If the PW ID is not specified, the PW with a specified VSI ID is detected.
- Kompella VPLS PW ping: The Kompella VPLS PW ping supports only the label alert mode.
If a PW fault is detected by using the ping vc command, the tracert vc command can be used to locate the fault. Both the ping vc command and the tracert vc command can properly check the connectivity of PWs and locate faults.
Prerequisites
The MPLS module has been enabled on the device and works properly.Precautions
control-word is recommended to detect an entire PW. Even though label-alert can be used to check the entire PW, the whole process is the same as the forwarding process only when control-word is used.
- The ping packet reaches the egress.
- The TTL value of the ping packet reaches the upper threshold.
When a PE is single-homed to an SPE and two multi-segment PWs are deployed for PW redundancy, end-to-end detection cannot be performed for the secondary PW if services are transmitted over the primary PW. If services are transmitted over the secondary PW, the primary PW can only be detected segment by segment.
Example
# Run the ping vc command in label alert mode on the device to check the connectivity of an Ethernet PW.
<HUAWEI> ping vc ethernet 100 -c 10 -m 10 -s 65 -t 100 -v label-alert remote 2.2.2.2
Reply from 2.2.2.2: bytes=65 Sequence=1 time = 31 ms Return Code 3, Subcode 1
Reply from 2.2.2.2: bytes=65 Sequence=2 time = 15 ms Return Code 3, Subcode 1
Reply from 2.2.2.2: bytes=65 Sequence=3 time = 32 ms Return Code 3, Subcode 1
Reply from 2.2.2.2: bytes=65 Sequence=4 time = 15 ms Return Code 3, Subcode 1
Reply from 2.2.2.2: bytes=65 Sequence=5 time = 32 ms Return Code 3, Subcode 1
Reply from 2.2.2.2: bytes=65 Sequence=6 time = 15 ms Return Code 3, Subcode 1
Reply from 2.2.2.2: bytes=65 Sequence=7 time = 15 ms Return Code 3, Subcode 1
Reply from 2.2.2.2: bytes=65 Sequence=8 time = 16 ms Return Code 3, Subcode 1
Reply from 2.2.2.2: bytes=65 Sequence=9 time = 15 ms Return Code 3, Subcode 1
Reply from 2.2.2.2: bytes=65 Sequence=10 time = 32 ms Return Code 3, Subcode 1
--- FEC: FEC 128 PSEUDOWIRE (NEW). Type = ethernet, ID = 100 ping statistics
10 packet(s) transmitted
10 packet(s) received
0.00% packet loss
round-trip min/avg/max = 15/21/32 ms
pw-template
Function
The pw-template command creates a PW template. In the PW template, you can set attributes for a PW, such as the peer, control word, and tunnel policy.
The undo pw-template command deletes a PW template.
By default, no PW template is created.
Usage Guidelines
Importing a PW template simplifies the configuration of PWs with similar attributes.
PrerequisitesL2VPN has been enabled by running the mpls l2vpn command.
PrecautionsIf a PW template is applied to a PW, the PW template cannot be deleted.
When a PW template is applied to a PW, the PW uses the PW attributes specified on the interface if the PW attributes specified on the interface are different from those specified in the template.
When modifying attributes in a PW template, run the reset pw command to make the modification take effect. This will cause PW disconnection and reconnection.
After a PW is bound to a link detection protocol, the remote IP address in the PW template cannot be changed. To change the remote IP address, unbind the PW from the link detection protocol.
reset pw
Parameters
Parameter | Description | Value |
---|---|---|
pw-id | Specifies the ID of a VC connected to L2VPN. | The value is an integer that ranges from 1 to 4294967295. |
pw-type | Specifies the encapsulation type of a PW. | Currently, PWs of the following types are supported: ethernet, vlan, and ip-interworking. |
pw-template | Re-creates all PWs in the PW template. | - |
pw-template-name | Specifies the PW template name. | The value is an existing PW template name. |
Usage Guidelines
After changing the parameters in a PW template, you need to run the reset pw pw-template command to make the modification take effect. The configuration on the PW template applies to all PWs using this PW template. You can configure the attributes of a PW by using a PW template or commands. The attributes configured by using commands take precedence over those configured by using the template. If you configure PW attributes by using commands, the corresponding attributes in the PW template do not take effect. Therefore, if you run the reset pw pw-template and reset pw pw-id commands, the PW attributes remain unchanged. To change a PW attribute, configure the attribute in the PW template but do not configure attribute by using a command.
snmp-agent trap enable feature-name l2vpn
Function
The snmp-agent trap enable feature-name l2vpn command enables the trap function for the L2VPN module.
The undo snmp-agent trap enable feature-name l2vpn command disables the trap function for the L2VPN module.
By default, the trap function is disabled for the L2VPN module.
Format
snmp-agent trap enable feature-name l2vpn [ trap-name { hwcccvcdown | hwcccvcup | hwkompellaswitchptow | hwkompellaswitchwtop | hwkompellavcdown | hwkompellavcup | hwpwvcbackup | hwpwvcdeleted | hwpwvcdown | hwpwvcstatuschange | hwpwvcswitchptow | hwpwvcswitchwtop | hwpwvcup | hwsvcdeleted | hwsvcdown | hwsvcup | hwvplsvcbackup | hwvplsvcdeleted | hwvplsvcdown | hwvplsvcnumbermaxclear | hwvplsvcnumbermaxexceed | hwvplsvcnumberthresholdclear | hwvplsvcnumberthresholdexceed | hwvplsvcstatuschange | hwvplsvcup | hwvplsvsideleted | hwvplsvsidown | hwvplsvsiup | hwvpwspwredundancydegraded | hwvpwspwredundancydegradedclear } ]
undo snmp-agent trap enable feature-name l2vpn [ trap-name { hwcccvcdown | hwcccvcup | hwkompellaswitchptow | hwkompellaswitchwtop | hwkompellavcdown | hwkompellavcup | hwpwvcbackup | hwpwvcdeleted | hwpwvcdown | hwpwvcstatuschange | hwpwvcswitchptow | hwpwvcswitchwtop | hwpwvcup | hwsvcdeleted | hwsvcdown | hwsvcup | hwvplsvcbackup | hwvplsvcdeleted | hwvplsvcdown | hwvplsvcnumbermaxclear | hwvplsvcnumbermaxexceed | hwvplsvcnumberthresholdclear | hwvplsvcnumberthresholdexceed | hwvplsvcstatuschange | hwvplsvcup | hwvplsvsideleted | hwvplsvsidown | hwvplsvsiup | hwvpwspwredundancydegraded | hwvpwspwredundancydegradedclear } ]
Parameters
Parameter | Description | Value |
---|---|---|
trap-name | Indicates the traps of L2VPN events of specified types. |
- |
hwcccvcdown | Enables or disables the trap indicating that the status of a CCC VC changes to Down. |
- |
hwcccvcup | Enables or disables the trap indicating that the status of a CCC VC changes to Up. |
- |
hwkompellaswitchptow | Enables or disables the trap indicating that a Kompella PW changes from the secondary state to the primary state. |
- |
hwkompellaswitchwtop | Enables or disables the trap indicating that a Kompella PW changes from the primary state to the secondary state. |
- |
hwkompellavcdown | Enables or disables the trap indicating that the status of a Kompella VC changes to Down. |
- |
hwkompellavcup | Enables or disables the trap indicating that the status of a Kompella VC changes to Up. |
- |
hwpwvcbackup | Enables or disables the trap indicating that the status of a PWE3 VC changes to Backup. |
- |
hwpwvcdeleted | Enables or disables the trap indicating that a PWE3 VC is deleted. |
- |
hwpwvcdown | Enables or disables the trap indicating that the status of a PWE3 VC changes to Down. |
- |
hwpwvcstatuschange | Enables or disables the trap indicating that the status of a PWE3 VC changes. |
- |
hwpwvcswitchptow | Enables or disables the trap indicating that a PWE3 PW changes from the secondary state to the primary state. |
- |
hwpwvcswitchwtop | Enables or disables the trap indicating that a PWE3 PW changes from the primary state to the secondary state. |
- |
hwpwvcup | Enables or disables the trap indicating that the status of a PWE3 VC changes to Up. |
- |
hwsvcdeleted | Enables or disables the trap indicating that an SVC is deleted. |
- |
hwsvcdown | Enables or disables the trap indicating that the status of an SVC changes to Down. |
- |
hwsvcup | Enables or disables the trap indicating that the status of an SVC changes to Up. |
- |
hwvplsvcbackup | Enables or disables the trap indicating that the status of a VPLS VC changes to Backup. |
- |
hwvplsvcdeleted | Enables or disables the trap indicating that a VPLS VC is deleted. |
- |
hwvplsvcdown | Enables or disables the trap indicating that the status of a VPLS VC changes to Down. |
- |
hwvplsvcup | Enables or disables the trap indicating that the status of a VPLS VC changes to Up. |
- |
hwvplsvsideleted | Enables or disables the trap indicating that a VPLS VSI is deleted. |
- |
hwvplsvsidown | Enables or disables the trap indicating that the status of a VPLS VSI changes to Down. |
- |
hwvplsvsiup | Enables or disables the trap indicating that the status of a VPLS VSI changes to Up. |
- |
hwvplsvcstatuschange | Enables or disables the trap indicating that the status of a VPLS VC changes. |
- |
hwvplsvcnumbermaxclear | Enables the device to clear traps when the number of VPLS VCs falls below 95% of the upper threshold. |
- |
hwvplsvcnumbermaxexceed | Enables the device to send traps when the number of VPLS VCs reaches the upper threshold. |
- |
hwvplsvcnumberthresholdclear | Enables the device to send traps when the number of VPLS VCs falls below the lower threshold. |
- |
hwvplsvcnumberthresholdexceed | Enables the device to send traps when the number of VPLS VCs reaches the upper threshold. |
- |
hwvpwspwredundancydegraded | Enables or disables the trap indicating that the protection provided by VLL FRR degrades. |
- |
hwvpwspwredundancydegradedclear | Enables or disables the trap indicating that the protection provided by VLL FRR recovers. |
- |
Usage Guidelines
The L2VPN module is not configured with the function of excessive traps. To enable the traps of one or more events, specify trap-name.
The NMS can receive alarms only after you run the snmp-agent target-host inform or snmp-agent target-host trap command to configure a target host to receive SNMP trap messages.
tnl-policy (PW template view)
Function
The tnl-policy command configures a tunnel policy for a PW template.
The undo tnl-policy command deletes the tunnel policy configured for a PW template.
By default, no tunnel policy is configured for a PW template.
Parameters
Parameter | Description | Value |
---|---|---|
policy-name | Specifies the tunnel policy name of a PW. | The value is a string of 1 to 39 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
tracert vc
Function
The tracert vc command detects the status of a PW or locates a faulty node on a PW in Down state.
Format
tracert vc pw-type pw-id [ -exp exp-value | -f first-ttl | -m max-ttl | -r reply-mode | -t timeout-value ] * control-word [ draft6 ] [ full-lsp-path ] [ pipe | uniform ]
tracert vc pw-type pw-id [ -exp exp-value | -f first-ttl | -m max-ttl | -r reply-mode | -t timeout-value ] * control-word remote remote-ip-address [ ptn-mode | full-lsp-path ] [ pipe | uniform ]
tracert vc pw-type pw-id [ -exp exp-value | -f first-ttl | -m max-ttl | -r reply-mode | -t timeout-value ] * control-word remote remote-pw-id draft6 [ full-lsp-path ] [ pipe | uniform ]
tracert vc pw-type pw-id [ -exp exp-value | -f first-ttl | -m max-ttl | -r reply-mode | -t timeout-value ] * label-alert [ no-control-word ] [ remote remote-ip-address ] [ full-lsp-path ] [ draft6 ] [ pipe | uniform ]
tracert vc pw-type pw-id [ -exp exp-value | -f first-ttl | -m max-ttl | -r reply-mode | -t timeout-value ] * normal [ no-control-word ] [ remote remote-ip-address ] [ full-lsp-path ] [ draft6 ] [ pipe | uniform ]
Parameters
Parameter | Description | Value |
---|---|---|
pw-type | Specifies the PW type. | Currently, PWs of the following types are supported: ethernet, vlan, and ip-interworking. |
pw-id | Specifies the local PW ID. | The value is an integer that ranges from 1 to 4294967295. |
-exp exp-value | Specifies the EXP value in the outer label of an MPLS
Echo Request packet. The default value is 0. NOTE:
If DSCP priority has been configured by running the set priority command, the exp-value parameter does not take effect. |
The value is an integer that ranges from 0 to 7. |
-f first-ttl | Specifies the initial Time-to-Live (TTL). | The value is an integer that ranges from 1 to 255, and must be smaller than the value of max-ttl. The default value is 1. |
-m max-ttl | Specifies the maximum TTL. | The value is an integer that ranges from 1 to 255, and must be larger than the value of first-ttl. The default value is 30. |
-r reply-mode | Specifies the mode in which the peer returns MPLS Echo
Reply packets.
|
The value is an integer that ranges from 1 to 4. |
-t timeout-value | Specifies the timeout interval of an MPLS Echo Reply packet. | The value is an integer that ranges from 0 to 65535, in milliseconds. The default value is 5. |
control-word | Indicates that the control word is encapsulated in the MPLS Echo Request packet. | - |
label-alert | Indicates that the router alert label is encapsulated in the MPLS Echo Request packet. | - |
no-control-word | Indicates that the control word is not encapsulated in the MPLS Echo Request packet. | - |
normal | Indicates the normal mode where the router alert label and control word are not encapsulated in the MPLS Echo Request packet. | - |
remote | Specifies information about the PW on the remote PE. | - |
remote-ip-address | Specifies the remote IP address. By default, the system searches for the IP address of the next hop based on the PW on the local PE. If label-alert is configured, you can specify the IP address of any switching node or the termination node. | - |
remote-pw-id | Specifies the ID of the remote PW. By default, the ID of the local PW is used. If the tracert operation is performed in control word mode for a multi-segment PW, the IP address of the termination node must be specified. | - |
ptn-mode | Specifies the PTN mode. In a multi-segment PW scenario, this parameter is indicated that trace VC packets are replied. You need to run the lspv pw reply ptn-mode command on both the SPE and TPE. | - |
full-lsp-path | Displays the responses from all nodes along the LSP that the MPLS Echo Request packets pass through. If this parameter is not specified, only the responses from the PW nodes along the LSP are displayed. | - |
pipe | Specifies the pipe mode. When a probe packet passes through the MPLS domain, the entire domain is regarded as one hop and the IP TTL of the probe packet is reduced by one on both the ingress and egress. | - |
uniform | Specifies the uniform mode. The IP TTL of the probe packet is reduced by one each time it passes through one hop in the MPLS domain. | - |
draft6 | Specifies the version of the tracert vc command. If this parameter is specified, the tracert operation is
performed according to "draft-ietf-mpls-lsp-ping-06". By default,
the tracert operation is performed according to RFC 4379. NOTE:
Tracert VC based on draft6 is applied only to VLL over LDP scenarios. |
- |
Usage Guidelines
Usage Scenario
If a fault occurs on the PW, the ping vc command can be used to check the connectivity of the network, and the tracert vc command can be used to locate the fault and provide reference for fault diagnosis. If a PW is Up, the ping vc command can be used to locate the fault on the PW. For example, a forwarding entry is abnormally lost or incorrect. If a PW is down, the tracert vc command must be used to locate the faulty node on the PW.
PWE3 VLL PW tracert
In PWE3 VLL networking, PW tracert can help you obtain information about SPEs and Ps along the path that the message travels from the source to the destination, check the connectivity of the PW, and locate the fault of the PW.
A PWE3 VLL PW tracert can be performed in control word mode, label alert mode, or TTL mode. The default mode is label alert. The TTL mode and control word mode are mutually exclusive.
To detect faults on a VLL network with control word enabled, run the tracert vc pw-type pw-id control-word command.
To encapsulate packets with the router alert label and detect faults on a VLL network, run the tracert vc pw-type pw-id label-alert command.
If control word is not enabled and packets are not encapsulated with the router alert label, to detect faults on a VLL network, run the tracert vc pw-type pw-id command.
The TTL value of the PW Tracert Request message is incremented by 1 each time. Each time the transit node (P) receives an Echo Request message after the TTL value of the message expires, it sends the Echo Request message to the LSPV module. Then the transit node returns an Echo Reply message carrying the next hop information.
Prerequisite
- The UDP module of each node works properly; otherwise, the tracert operation will fail.
- The MPLS module has been enabled on each node and works properly.
- The ICMP module of each node works properly; otherwise, " * * * " is displayed.
Procedure
The execution process of the tracert vc command is as follows:
- The source sends an MPLS Echo Request packet with the TTL being 1. After the TTL times out, the first hop sends an MPLS Echo Reply packet to the source.
- The source sends an MPLS Echo Request packet with the TTL being 2. After the TTL times out, the second hop sends an MPLS Echo Reply packet to the source.
- The source sends an MPLS Echo Request packet with the TTL being 3. After the TTL times out, the third hop sends an MPLS Echo Reply packet to the source.
- The preceding steps continue until the MPLS Echo Request packet reaches the destination.
When the device on each hop receives the MPLS Echo Request packet, it will respond with an MPLS Echo Reply packet, indicating that the tracert test ends. In the command output information of the source device, you can view the path that the packet passes through.
Configuration Impact
In control word mode, if a transit node receives an MPLS Echo Request packet whose TTL does not time out, it does not send the packet to the CPU. In this mode, the source obtains only a little PW information and cannot obtain information about the downstream devices of the transit node. This mode is recommended when the traffic volume is heavy.
In router alert mode, a transit node sends the received MPLS Echo Request packets to the CPU. In this mode, the source obtains a lot of PW information; therefore, device performance is affected when the traffic volume is heavy. This mode is recommended when the traffic volume is light.
Information specified by remote is encapsulated in MPLS Echo Request packets. The PW can be searched on the remote PE based on the specified information. By default, information contained in the MPLS Echo Request packets is about the PW on the local PE. This applies to single-segment PWs.
Precautions
- When the probe packet reaches the egress or the TTL reaches the upper threshold, the PW tracert is terminated.
- You can press Ctrl + C to terminate the execution of the tracert vc command.
When a PE is single-homed to an SPE and two multi-segment PWs are deployed for PW redundancy, end-to-end detection cannot be performed for the secondary PW if services are transmitted over the primary PW. If services are transmitted over the secondary PW, the primary PW can only be detected segment by segment.
Example
# Trace a multi-segment PW. The encapsulation type, local PW ID, and remote PW ID of the PW is ethernet, 100, and 200.
<HUAWEI> tracert vc ethernet 100 control-word remote 200 draft6 full-lsp-path TTL Replier Time Type Downstream 0 Ingress 10.1.1.2/[1025 ] 1 10.1.1.2 230 ms Transit 10.2.1.2/[3 ] 2 10.2.1.2 230 ms Transit 10.3.1.2/[3 ] 3 10.3.1.2 100 ms Transit 10.4.1.2/[3 ] 4 10.4.1.2 150 ms Egress
Item |
Description |
---|---|
TTL |
TTL value in an Echo Request packet. It represents the number of hops along the path through which an Echo Request packet passes. |
Replier |
IP address of the node sending MPLS Echo Reply packets. |
Time |
Time when the packet is processed. |
Type |
Node type. The value can be:
|
Downstream |
IP address and label of the downstream node. |
- Command Support
- bfd bind pw
- bfd-detect
- bfd for pw enable
- control-word
- display mpls l2vc
- display mpls l2vc brief
- display mpls l2vc track admin-vc
- display mpls static-l2vc
- display mpls static-l2vc brief
- display mpls switch-l2vc
- display mpls switch-l2vc brief
- display pw-template
- lspv pw reply ptn-mode
- manual-set pw-ac-fault
- mpls l2vc
- mpls l2vc admin
- mpls l2vc track admin-vc
- mpls l2vpn
- mpls l2vpn no-request-message
- mpls l2vpn pw bfd
- mpls l2vpn redundancy
- mpls l2vpn reroute
- mpls l2vpn service-name
- mpls l2vpn stream-dual-receiving
- mpls l2vpn switchover
- mpls l2vpn vccv bfd-cv-negotiation fault-detection-only
- mpls static-l2vc
- mpls switch-l2vc
- mtu (PW template view)
- peer-address
- ping vc
- pw-template
- reset pw
- snmp-agent trap enable feature-name l2vpn
- tnl-policy (PW template view)
- tracert vc