The mpls oam l2vc enable command enables MPLS OAM to monitor a PW.
The undo mpls oam l2vc enable command disables MPLS OAM from monitoring a PW.
By default, MPLS OAM is disabled from monitoring a PW.
mpls oam l2vc enable send peer-ip peer-ip vc-id vc-id vc-type vc-type
mpls oam l2vc enable receive peer-ip peer-ip vc-id vc-id vc-type vc-type
undo mpls oam l2vc enable send peer-ip peer-ip vc-id vc-id vc-type vc-type
undo mpls oam l2vc enable receive peer-ip peer-ip vc-id vc-id vc-type vc-type
Parameter | Description | Value |
---|---|---|
peer-ip peer-ip |
Specifies the destination IP address of an L2VC. |
The value is in dotted decimal notation. |
vc-id vc-id |
Specifies the ID of an L2VC. |
The value is an integer ranging from 1 to 4294967295. |
vc-type vc-type |
Specifies the type of an L2VC. |
Encapsulation types supported:
|
send |
Enables an OAM entity to send OAM packets. |
- |
receive |
Enables an OAM entity to receive OAM packets. |
- |
Usage Scenario
MPLS OAM can monitor PWs, which can be dynamic PWs, static PWs, SS-PWs, or MS-PWs.
Prerequisites
MPLS OAM parameters have been configured for a PW using the mpls oam l2vc command.
Precautions
If auto-protocol has been specified in the mpls oam l2vc command, you do not need to run the mpls oam l2vc enable command.
If auto-protocol is not specified, you must specify send and receive in the mpls oam l2vc enable command to enable an OAM entity to send and receive OAM packets for monitoring a PW. The nodes at both ends of a PW that OAM monitors has the following abilities:<HUAWEI> system-view [~HUAWEI] mpls [*HUAWEI-mpls] mpls oam [*HUAWEI-mpls] quit [*HUAWEI] mpls l2vpn [*HUAWEI-l2vpn] quit [*HUAWEI] interface GigabitEthernet 0/1/0 [*HUAWEI-GigabitEthernet0/1/0] mpls l2vc 2.2.2.2 100 [*HUAWEI-GigabitEthernet0/1/0] quit [*HUAWEI] mpls-oam [*HUAWEI-mpls-oam] mpls oam l2vc enable send peer-ip 2.2.2.2 vc-id 100 vc-type ethernet
<HUAWEI> system-view [~HUAWEI] mpls [*HUAWEI-mpls] mpls oam [*HUAWEI-mpls] quit [*HUAWEI] mpls l2vpn [*HUAWEI-l2vpn] quit [*HUAWEI] interface GigabitEthernet 0/1/0 [*HUAWEI-GigabitEthernet0/1/0] mpls l2vc 2.2.2.2 100 [*HUAWEI-GigabitEthernet0/1/0] quit [*HUAWEI] mpls-oam [*HUAWEI-mpls-oam] mpls oam l2vc enable receive peer-ip 2.2.2.2 vc-id 100 vc-type ethernet