The lldp auto-vlan sensor ap command configures a switch to identify Huawei Fit APs using LLDP and adds the interfaces receiving the LLDP packets from APs to the specified VLAN.
The undo lldp auto-vlan command disables this function.
By default, this function is disabled.
lldp auto-vlan vlan-id sensor ap
undo lldp auto-vlan vlan-id sensor ap
lldp auto-vlan tagged { vlan-id1 [ to vlan-id2 ] }&<1-10> sensor ap
undo lldp auto-vlan tagged { vlan-id1 [ to vlan-id2 ] }&<1-10> sensor ap
Parameter |
Description |
Value |
---|---|---|
vlan-id |
Specifies the VLAN to which the interfaces receiving LLDP packets from APs are added in untagged mode. |
The value is an integer that ranges from 1 to 4094. |
tagged |
Indicates that the interfaces receiving LLDP packets from APs are added to a VLAN in tagged mode. |
- |
vlan-id1 [ to vlan-id2 ] |
Specifies the VLAN to which the interfaces receiving LLDP packets from APs are added in tagged mode. |
The value is an integer that ranges from 1 to 4094. |
Usage Scenario
When a switch is connected to a Huawei Fit AP, the interfaces connected to the AP must be added to the AP's management VLAN in untagged mode and to the AP's service VLAN in tagged mode. If many APs are connected to the switch, the configuration is complex. To facilitate operation, run the lldp auto-vlan vlan-id sensor ap command to enable the switch to automatically add the interfaces receiving LLDP packets from an AP to the AP's management VLAN in untagged mode, and run the lldp auto-vlan tagged { vlan-id1 [ to vlan-id2 ] }&<1-10> sensor ap command to add these interfaces to the AP's service VLAN in tagged mode.
You can run the display port vlan [ interface interface-number | active ] command to view information about the VLANs to which interfaces are automatically added.
Prerequisites
LLDP has been enabled globally using the lldp enable (system view) command.
Precautions
# Add the interfaces receiving LLDP packets from an AP to the management VLAN 100 in untagged mode and to the service VLAN 200 in tagged mode.
<HUAWEI> system-view [HUAWEI] vlan 100 [HUAWEI-vlan100] quit [HUAWEI] lldp enable [HUAWEI] lldp auto-vlan 100 sensor ap [HUAWEI] lldp auto-vlan tagged 200 sensor ap