mpls oam l2vc enable

Function

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.

Format

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

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 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.
send

Enables an OAM entity to send OAM packets.

-

receive

Enables an OAM entity to receive OAM packets.

-

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

  • When the local end is enabled to send OAM packets and the peer end is enabled to receive OAM packets, the peer end initiates detection for a unidirectional PW but does not send BDI packets.
  • When the local end is enabled to receive OAM packets and the peer end is enabled to send OAM packets, the local end initiates detection for a unidirectional PW but does not send BDI packets.
  • When the local end is enabled to send OAM packets and the peer end is enabled to both send and receive OAM packets, the peer end initiates detection for a unidirectional PW and is able to send BDI packets, whereas the local end cannot receive the BDI packets.
  • When the local end is enabled to send and receive OAM packets and the peer end is enabled to send OAM packets, the local end initiates detection for a unidirectional PW and is able to send BDI packets, whereas the peer end cannot receive the BDI packets.
  • When the local and peer ends are enabled to both send and receive OAM packets, OAM is able to monitor the bidirectional PW.

Example

# Enable an OAM entity to send OAM packets for monitoring a specified 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 enable send peer-ip 2.2.2.2 vc-id 100 vc-type ethernet
# Enable an OAM entity to receive OAM packets for monitoring a specified 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 enable receive peer-ip 2.2.2.2 vc-id 100 vc-type ethernet
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >