The mpls oam l2vc command configures MPLS OAM parameters on a node at one end of a PW.
The undo mpls oam l2vc command deletes MPLS OAM parameters configured on a node at one end of a PW.
By default, no MPLS OAM parameter is configured.
mpls oam l2vc peer-ip peer-ip vc-id vc-id vc-type vc-type [ remote-peer-ip remote-peer-ip remote-vc-id remote-vc-id remote-vc-type remote-vc-type ] type { cv | ffd frequency { 3 | 10 | 20 | 50 | 100 | 200 | 500 } } [ auto-protocol [ overtime overtime ] ] [ compatibility-mode compati-mode-val ] [ bdi-frequency bdi-frep-val ] [ exp exp-value ]
undo mpls oam l2vc 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 encapsulation type of an L2VC. |
Encapsulation types supported:
|
remote-peer-ip remote-peer-ip |
Specifies the IP address of a remote L2VC node on an MS-PW. |
The value is in dotted decimal notation. |
remote-vc-id remote-vc-id |
Specifies the VC ID of a remote L2VC node on an MS-PW. |
The value is an integer ranging from 0 to 4294967295. |
remote-vc-type remote-vc-type |
Specifies the type of a remote L2VC. |
Encapsulation types supported:
|
type |
Indicates the detection packet type. |
The value can be CV or FFD. |
cv |
Enables connectivity verification (CV) detection. |
The value is 1000, in milliseconds. |
ffd |
Enables fast failure detection (FFD). |
- |
frequency |
Specifies the interval at which FFD packets are sent, in milliseconds. |
- |
auto-protocol |
Enables the OAM auto protocol. |
- |
overtime overtime |
Specifies the timeout period for the OAM auto protocol. |
The value is an integer ranging from 0 to 255. The step is 30 seconds. The default value is 10, meaning 5 minutes. |
compatibility-mode |
Indicates the compatibility mode. |
- |
compati-mode-val |
Indicates the router/PTN communication mode. |
The values are as follows:
|
bdi-frequency |
Indicates the interval at which BDI packets are sent. |
- |
bdi-frep-val |
Indicates that the interval at which BDI packets are sent is the same as that between sending OAM detection packets. Indicates that BDI packets are sent every second. |
The values are as follows:
|
exp exp-value |
Specifies a forwarding priority for packets. |
The value is an integer ranging from 0 to 7. A larger value indicates a higher priority. The default value is 7. |
Usage Scenario
MPLS OAM can monitor VPWs and VPLSs which can be dynamic PWs, static PWs, SS-PWs, or MS-PWs. MPLS OAM can monitor PWs between TPEs.
Prerequisites
Precautions
The remote-peer-ip, remote-vc-type, and remote-vc-id parameters must be configured for monitoring an MS-PW.
<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 peer-ip 2.2.2.2 vc-id 100 vc-type vlan remote-peer-ip 3.3.3.3 remote-vc-id 200 remote-vc-type vlan type cv
<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 peer-ip 2.2.2.2 vc-id 100 vc-type ethernet type cv