port-link enable mep

Function

The port-link enable mep command enables the port association function on a specified MEP.

The undo port-link enable mep command disables the port association function on a specified MEP.

By default, the port association function is disabled on a MEP.

Format

port-link enable mep mep-id mep-id [ holdoff holdoff-time ] [ wtr wtr-time ] [ link-type { loc | interface-status-tlv } * ]

undo port-link enable mep mep-id mep-id

Parameters

Parameter Description Value
mep-id mep-id

Specifies a MEP ID.

The value is an integer ranging from 1 to 8191. A MEP ID identifies a MEP. The MEP ID must be unique in an MA.

holdoff holdoff-time

Sets the delay time, after which a detected fault triggers the port association.

The value is an integer ranging from 0 to 100, in 100 milliseconds. The default value is 0.

wtr wtr-time

Sets the time elapses between when a fault is rectified and when an associated port is restored.

Specifies the duration after which the local MEP interface changes from Up to Down again due to a peer MEP interface Down event.

A local MEP interface fault causes the peer MEP interface to go Down. If the associated peer MEP interface goes Down and the local MEP interface recovers, the local MEP interface goes Down again after the specified WTR time elapses.

The value is an integer ranging from 0 to 600, in milliseconds. The default value is 60.

link-type

Specifies an association type for a MEP interface.

-

loc

Indicates an association that enables the MEP interface to notify the main interface of a LOC defect.

-

interface-status-tlv

Indicates an association that enables the MEP interface to notify the main interface of the interface status TLV.

-

Views

MA view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
y1731 write

Usage Guidelines

Usage Scenario

Connectivity Fault Management (CFM) detects link connectivity. A MEP is used to define the scope of CFM detection. After a MEP is created, run the port-link enable command to enable the port association function on a specified MEP. The associated interface has the MEP configured. For example, a MEP is configured on a sub-interface. The associated interface is the physical interface on which the sub-interface resides.

Prerequisites

A MEP has been created using the mep_mep-id. command in the MA view.

Precautions

This function can be enabled only if an inward-facing MEP and a single RMEP are configured.

When you configure the interface-status-tlv parameter in the port-link enable command, the interface association function on the MEP can take effect only after the AC interface receives CFM protocol packets.

Example

# Enable the interface association function for MEP 1 within MA 1.
<HUAWEI> system-view
[~HUAWEI] mpls
[*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] mpls l2vpn pw ignore-ac-state
[*HUAWEI-GigabitEthernet0/1/0] quit
[*HUAWEI] cfm enable
[*HUAWEI] cfm md md1
[*HUAWEI-md-md1] ma ma1
[*HUAWEI-md-md1-ma-ma1] map mpls l2vc 2.2.2.2 100 raw
[*HUAWEI-md-md1-ma-ma1] mep mep-id 1 interface GigabitEthernet 0/1/0 inward
[*HUAWEI-md-md1-ma-ma1] mep ccm-send enable
[*HUAWEI-md-md1-ma-ma1] port-link enable mep mep-id 1 holdoff 10 wtr 10 link-type loc
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >