management-vlan
Function
The management-vlan command configures CAPWAP packets sent from an AP wired interface to carry a management VLAN tag.
The undo management-vlan command cancels the management VLAN configuration for CAPWAP packets sent from an AP wired interface.
By default, CAPWAP packets sent from an AP wired interface do not carry a management VLAN tag.
Usage Guidelines
Usage Scenario
By default, CAPWAP packets sent from an AP wired interface do not carry a management VLAN tag. In most cases, the access switch interface directly connected to the AP adds the PVID to the CAPWAP packets as the management VLAN ID.
If the PVID of the access device has been used for other purposes (for example, as the default VLAN ID of wired users), the PVID cannot be configured as the management VLAN ID on the access device interface. In this case, configure CAPWAP packets sent from an AP wired interface to carry the management VLAN tag. The AP then adds the management VLAN ID to the CAPWAP packets sent to the AC. You only need to configure the access device to allow the packets carrying the management VLAN ID to pass.
Precautions
The configuration takes effect only after the AP is restarted.
On a Mesh network, ensure that CAPWAP packets sent from all APs carry the same management VLAN. Otherwise, MPs cannot go online.
In the following precautions, packets sent from an AP wired interface refer to CAPWAP packets.
After the management-vlan vlan-id command is executed, to configure the AP wired interface to allow packets carrying the management VLAN tag to pass through, run the vlan tagged vlan-id command to add the AP wired interface to the management VLAN in tagged mode.
After the management-vlan vlan-id command is executed, to disable packets sent from the AP wired interface from carrying the management VLAN tag, run the vlan untagged vlan-id command to add the AP wired interface to the management VLAN in untagged mode.
After the management-vlan vlan-id command is executed, to add the management VLAN tag to untagged packets received on the AP wired interface, run the vlan pvid vlan-id command to set the PVID of the AP wired interface to the management VLAN ID.
Example
# Configure CAPWAP packets sent from an AP wired interface to carry management VLAN 2 in the AP system profile view.
<AC6605> system-view [AC6605] wlan [AC6605-wlan-view] ap-system-profile name ap-system1 [AC6605-wlan-ap-system-prof-ap-system1] management-vlan 2 Warning: The incorrect management VLAN configuration will cause the AP to go out of management. This operation will make the AP rese t. Continue? [Y/N]:y