ais vlan

Function

The ais vlan command sets a range for VLANs to which the maintenance association end point (MEP) of an MA sends alarm indication signal (AIS) packets.

The undo ais vlan command deletes the configuration.

By default, a MEP is disabled from sending AIS packets within a VLAN.

Format

ais vlan { vid { low-vid [ to high-vid ] } &<1-10> | pe-vid pe-vid ce-vid { low-ce-vid [ to hig-ce-vid ] } &<1-10> } mep mep-id

undo ais vlan [ pe-vid pe-vid [ ce-vid { low-ce-vid [ to hig-ce-vid ] } &<1-10> ] | vid { low-vid [ to high-vid ] } &<1-10> ] mep mep-id

Parameters

Parameter Description Value
vid low-vid

Specifies a lower limit for the VLAN ID in an AIS packet.

The value is an integer ranging from 1 to 4094.

to high-vid

Specifies the upper limit of the VLAN ID in an AIS packet.

The value is an integer ranging from 1 to 4094.

to hig-ce-vid

Specifies an upper limit for the VLAN ID in the inner tag of a VLAN frame.

The value is an integer ranging from 1 to 4094.

pe-vid pe-vid

Specifies a VLAN ID in the outer tag of a VLAN frame.

The value is an integer ranging from 1 to 4094.

ce-vid low-ce-vid

Specifies a lower limit for the VLAN ID in the inner tag of a VLAN frame.

The value is an integer ranging 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 or a virtual switching instance (VSI).

The value is an integer ranging from 1 to 8191.

Views

MA view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
y1731 write

Usage Guidelines

Usage Scenario

You must run the ais vlan command to set a range for VLANs to which the MEP of an MA sends AIS packets.

Prerequisites

  • An MD has been created using the cfm md command.
  • An MA has been created using the ma command.
  • The AIS function has been enabled using the ais enable command.

Configuration Impact

If the ais vlan command is run more than once, all configurations take effect.

Example

# Create an MD named md1, create an MA named ma1 in the MD, set the outer VLAN ID in AIS packets to be sent to 10, and set the inner VLAN ID range to 1 to 100.
<HUAWEI> system-view
[~HUAWEI] vlan 1
[*HUAWEI-vlan1] quit
[*HUAWEI] interface GigabitEthernet 0/1/1
[*HUAWEI-GigabitEthernet0/1/1] portswitch
[*HUAWEI-GigabitEthernet0/1/1] port trunk allow-pass vlan 1
[*HUAWEI-GigabitEthernet0/1/1] quit
[*HUAWEI] cfm enable
[*HUAWEI] cfm md md1
[*HUAWEI-md-md1] ma ma1
[*HUAWEI-md-md1-ma-ma1] map vlan 1
[*HUAWEI-md-md1-ma-ma1] mep mep-id 1 interface GigabitEthernet 0/1/1 outward
[*HUAWEI-md-md1-ma-ma1] ais enable
[*HUAWEI-md-md1-ma-ma1] ais vlan pe-vid 10 ce-vid 1 to 100 mep 1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >