mpls oam l2vc

Function

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.

Format

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

Parameters

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:
  • Other encapsulation types:
    • cep: This encapsulation type is used for CEP services.
    • ethernet: This encapsulation type is used when Ethernet packets do not carry VLAN information.
    • ip-interworking: This encapsulation type is used for interworking between Huawei devices.
    • ip-layer2: This encapsulation type is used for interworking between Huawei devices and non-Huawei devices.
    • vlan: This encapsulation type is used when Ethernet packets carry VLAN information.
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:
  • Other encapsulation types:
    • cep: This encapsulation type is used for CEP services.
    • ethernet: This encapsulation type is used when Ethernet packets do not carry VLAN information.
    • ip-interworking: This encapsulation type is used for interworking between Huawei devices.
    • ip-layer2: This encapsulation type is used for interworking between Huawei devices and non-Huawei devices.
    • vlan: This encapsulation type is used when Ethernet packets carry VLAN information.
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:

  • router-mode
  • ptn-mode
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:

  • per-second
  • detect-freq
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.

Views

MPLS-OAM view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
tpoam write

Usage Guidelines

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

  • MPLS and MPLS OAM have been enabled globally.
  • The MPLS-OAM view has been displayed.
  • The PW that MPLS OAM monitors has been established.

Precautions

The remote-peer-ip, remote-vc-type, and remote-vc-id parameters must be configured for monitoring an MS-PW.

Example

# Configure MPLS OAM to monitor an MS-PW with the destination IP address of 3.3.3.3, L2VC type of VLAN, and VC ID of 200.
<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
# Configure MPLS OAM to monitor a PW with the destination IP address of 2.2.2.2, L2VC type of VLAN, and VC ID of 100.
<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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >