The ais vlan command sets the range of VLANs to which the MEP of an MA sends AIS PDUs.
The undo ais vlan command cancels the configuration.
Only the S5720-EI, S5720-HI, S5720I-SI, S5720S-SI, S5720-SI, S5735-S, S5735S-S, S5735-S-I, S5730-HI, S5730S-EI, S5730-SI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720-LI, S6720S-EI, S6720S-LI, S6720S-SI, S6720-SI, S6730-H, S6730S-H, S6730-S, and S6730S-S support this command.
ais vlan vid { low-vid [ to high-vid ] } &<1-10> mep mep-id
ais vlan pe-vid pe-vid ce-vid { low-ce-vid [ to high-ce-vid ] } &<1-10> mep mep-id
undo ais vlan vid { low-vid [ to high-vid ] } &<1-10> mep mep-id
undo ais vlan pe-vid pe-vid ce-vid { low-ce-vid [ to high-ce-vid ] } &<1-10> mep mep-id
undo ais vlan [ vid | pe-vid pe-vid ] mep mep-id
Parameter | Description | Value |
---|---|---|
pe-vid pe-vid | Specifies the VLAN ID in the outer tag of a VLAN frame. | The value is an integer that ranges from 1 to 4094. |
ce-vid low-ce-vid | Specifies the lower limit of the VLAN ID in the inner tag of a VLAN frame. | The value is an integer that ranges from 1 to 4094. |
high-ce-vid | Specifies the upper limit of the VLAN ID in the inner tag of a VLAN frame. | The value is an integer that ranges from 1 to 4094. |
vid low-vid | Specifies the lower limit of the VLAN ID in an AIS PDU. | The value is an integer that ranges from 1 to 4094. |
high-vid | Specifies the upper limit of the VLAN ID in an AIS PDU. | The value is an integer that ranges from 1 to 4094. |
mep 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. |
Usage Scenario
You can run the ais vlan command to set the range of VLANs to which the AIS PDUs to be sent. This prevents the MEP from sending AIS PDUs to all VLANs and reduces the load of the system.
Precautions
The ais vlan command can be used on only the device running IEEE Standard 802.1ag-2007.
If the ais vlan command is run more than once, all configurations take effect.
Prerequisites
An MD has been created using the cfm md command, an MA has been created using the ma command, and AIS has been enabled using the ais enable command.
# Create an MD named md1, create an MA named ma1 in the MD, and set the outer VLAN ID in outgoing AIS PDUs to 10 and set the inner VLAN ID range to 1 to 100.
<HUAWEI> system-view [HUAWEI] cfm md md1 [HUAWEI-md-md1] ma ma1 [HUAWEI-md-md1-ma-ma1] ais vlan pe-vid 10 ce-vid 1 to 100 mep 1
# Create an MD named md1, create an MA named ma1 in the MD, and set the range of VLANs to which AIS PDUs are to be sent to 1 to 100 in ma1.
<HUAWEI> system-view [HUAWEI] cfm md md1 [HUAWEI-md-md1] ma ma1 [HUAWEI-md-md1-ma-ma1] ais vlan vid 1 to 100 mep 1