mep mep-id mep-id interface interface-type interface-number [ pe-vid pe-vid ce-vid ce-vid ] { inward | outward }
undo mep mep-id mep-id
Parameter | Description | Value |
---|---|---|
mep-id mep-id | Specifies the ID of a MEP. The ID identifies a MEP. The MEP ID must be unique in an MA and in a VLAN. | The value is an integer that ranges from 1 to 8191. |
interface-type interface-number | Specifies the type and number of the interface where
a MEP is configured.
|
- |
pe-vid pe-vid | Specifies the outer VLAN ID of a PE. | The value is a decimal integer that ranges from 1 to 4094. |
ce-vid ce-vid | Specifies the inner VLAN ID of a CE. | The value is a decimal integer that ranges from 1 to 4094. |
inward | Indicates an inward-facing MEP. An inward-facing MEP sends 802.1ag packets through all interfaces in a VLAN associated with an MA, except the interface on which the MEP is configured. That is, the inward-facing MEP broadcasts 802.1ag packets in the VLAN associated with the MA. | - |
outward | Indicates an outward-facing MEP. An outward-facing MEP sends 802.1ag packets through an interface on which the MEP is configured. | - |
Usage Scenario
To create a MEP, run the mep mep-id command.
Precautions
Inward- and outward-facing MEPs are classified based on the scope where 802.1ag packets are sent.
The MEP level of the associated VLAN must be greater than the MEP level of the non-associated VLAN based on the same physical interface or Eth-Trunk member interface. The MEP level is determined by the MD level. You can run the cfm md md-name command to configure the MD level.
The requirements for the number and type of MEPs created in an MA are as follows:
The inward- and outward-facing MEPs cannot coexist.
You can create multiple inward-facing interface-based MEPs but only one outward-facing interface-based MEP. Only one inward-facing interface-based MEP can be created on an interface.
<HUAWEI> system-view [HUAWEI] vlan 100 [HUAWEI-vlan100] port gigabitethernet 0/0/1 [HUAWEI-vlan100] quit [HUAWEI] cfm enable [HUAWEI] cfm md md1 [HUAWEI-md-md1] ma ma1 [HUAWEI-md-md1-ma-ma1] map vlan 100 [HUAWEI-md-md1-ma-ma1] mep mep-id 15 interface gigabitethernet 0/0/1 inward