< Home

lldp auto-vlan sensor ap

Function

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.

Format

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

Parameters

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.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

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

  • The ID of the VLAN to which interfaces are added in untagged mode cannot be the same as the ID of the VLAN to which the interfaces are added in tagged mode.
  • The VLAN specified in the command can be an existing VLAN or created after this command is executed, but cannot be the control VLAN for SEP/RRPP/ERPS.
  • After an interface is added in untagged mode to a specified VLAN, the original PVID of the interface becomes invalid. When the LLDP neighbor information of the interface ages (for example, the connected AP goes offline), the original PVID configuration takes effect again and the interface is automatically removed from the VLAN.
  • If the VLAN to which an interface is added in tagged mode is the same as that manually configured on the interface, the manually configured VLAN takes effect.
  • An interface can be automatically added to a VLAN in tagged mode only when the interface type is trunk or hybrid.

Example

# 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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >