me l2vc

Function

The me l2vc command creates an ME instance and binds it to a single-segment PW (SS-PW) or multi-segment PW (MS-PW).

The undo me l2vc command deletes an ME instance bound to an SS-PW or MS-PW.

By default, no ME instance is created.

Format

me l2vc peer-ip peer-ip-value vc-id vc-id-value vc-type vc-type-value [ remote-peer-ip remote-peer-ip-value | ttl ttl-number ] mep-id mep-id-value remote-mep-id remote-mep-id-value [ gal { 13 | 14 } ]

undo me l2vc peer-ip peer-ip-value vc-id vc-id-value vc-type vc-type-value [ remote-peer-ip remote-peer-ip-value | ttl ttl-number ]

Parameters

Parameter Description Value
peer-ip peer-ip-value

Specifies the LSR ID for the peer PE on an SS-PW or the LSR ID for the switch on an MS-PW.

The value is in dotted decimal notation.

vc-id vc-id-value

Specifies the VC ID. VCs of the same type on a PE must be uniquely identified by the VC ID.

The value is an integer ranging from 1 to 4294967295.

vc-type vc-type-value

Specifies the virtual circuit (VC) type.

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

Specifies the peer IP address on the MS-PW.

The value is in dotted decimal notation.

ttl ttl-number

Specifies the number of hops between the ingress and the egress.

The value is an integer ranging from 1 to 255.

mep-id mep-id-value

Specifies the local MEP ID. A MEP ID identifies a MEP. The MEP ID must be unique in an ME.

The value is an integer ranging from 1 to 8191.

remote-mep-id remote-mep-id-value

Specifies the remote MEP (RMEP) ID. A MEP ID identifies a MEP. The MEP ID must be unique in an ME.

The value is an integer ranging from 1 to 8191.

gal

Specifies the value of the generic associated channel header label (GAL).

The value is 13 or 14.

The value 13 complies with the Y.1731 standard, whereas the value 14 is Huawei-specific.

Views

Maintenance entity group view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
tpoam write

Usage Guidelines

Usage Scenario

If OAM monitors an SM- or MS-PW on a VPLWS or VPLS network. If an SS-PW or an MS-PW is used as a transport path, a MEG has a single ME for this SS-PW or MS-PW.

The me l2vc command is used to perform OAM detection on an SS-PW or an MS-PW in one of the following modes:

  • If the PW is an SS-PW, the configuration steps are as follows:
  • Run the me l2vc peer-ip vc-id vc-type mep-id remote-mep-id command on the MEP to create an ME instance and bind it to an SS-PW.
  • Run the me l2vc peer-ip vc-id vc-type mep-id remote-mep-id command on the RMEP to create an ME instance and bind it to the same SS-PW.
  • If the PW is an MS-PW, remote-peer-ip or ttl must be specified.
  • The procedure for binding an ME instance to a static MS-PW by specifying remote-peer-ip is as follows:
  • Run the me l2vc peer-ip vc-id vc-type remote-peer-ip mep-id remote-mep-id command on the MEP to create an ME instance and bind it to an MS-PW with a specified peer IP address.
  • Run the me l2vc peer-ip vc-id vc-type remote-peer-ip mep-id remote-mep-id command on the RMEP to create an ME instance and bind it to the same MS-PW with a specified peer IP address.
  • The procedure for binding an ME instance to a static MS-PW by specifying ttl is as follows:
  • Run the me l2vc peer-ip vc-id vc-type ttl mep-id remote-mep-id command on the MEP to create an ME instance and bind it to an MS-PW.
  • Run the me l2vc peer-ip vc-id vc-type ttl mep-id remote-mep-id command on the RMEP to create an ME instance and bind it to the same MS-PW.

Prerequisites

An SS-PW or an MS-PW has been established.

Precautions

If MPLS-TP OAM is already associated with an APS tunnel protection group, an ME instance bound to an SS-PW or MS-PW cannot be deleted.

Example

# Create an ME instance in a MEG named test and bind it to a PW.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] mpls te
[*HUAWEI-mpls] quit
[*HUAWEI] mpls l2vpn
[*HUAWEI-l2vpn] quit
[*HUAWEI] interface GigabitEthernet 0/1/0.1
[*HUAWEI-GigabitEthernet0/1/0.1] vlan-type dot1q 1
[*HUAWEI-GigabitEthernet0/1/0.1] mpls static-l2vc destination 4.4.4.4 400 transmit-vpn-label 100 receive-vpn-label 200
[*HUAWEI-GigabitEthernet0/1/0.1] quit
[*HUAWEI] mpls-tp meg test
[*HUAWEI-mpls-tp-meg-test] me l2vc peer-ip 4.4.4.4 vc-id 400 vc-type vlan mep-id 1 remote-mep-id 2
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >