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