The management-vlan command configures CAPWAP packets sent from an AP's wired interface to carry a management VLAN tag.
In the AP system profile view and AP view, the undo management-vlan command cancels the management VLAN configuration for CAPWAP packets sent from an AP's wired interface. In the AP provisioning view, the undo management-vlan command disables the AC from delivering this parameter setting to APs after the configuration is delivered using the commit command.
By default, CAPWAP packets sent from an AP's wired interface do not carry a management VLAN tag.
Parameter |
Description |
Value |
---|---|---|
vlan-id |
Specifies a management VLAN ID carrying in CAPWAP packets sent from an AP's wired interface. |
The value is an integer that ranges from 1 to 4094. |
Usage Scenario
By default, CAPWAP packets sent from an AP's 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
This configuration takes effect only after the APs restart if the management-vlan command is configured in the AP system profile view or AP view.
If the management-vlan command is configured in the AP provisioning view, run the commit command to deliver the configuration. The configuration takes effect after the APs restart.
On a Mesh network, ensure that CAPWAP packets sent from all APs carry the same management VLAN. Otherwise, Mesh Points (MPs) cannot go online.
In the following precautions, packets sent from an AP's wired interface refer to CAPWAP packets.
After the management-vlan vlan-id command is executed, to configure the AP's 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's wired interface from carrying the management VLAN tag, run the vlan untagged vlan-id command to add this 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.
# Configure CAPWAP packets sent from an AP's wired interface to carry management VLAN 2 in the AP system profile view.
<HUAWEI> system-view [HUAWEI] wlan [HUAWEI-wlan-view] ap-system-profile name ap-system1 [HUAWEI-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 reset. Continue? [Y/N]:y
# Configure CAPWAP packets sent from an wired interface on AP 0 to carry management VLAN 2.
<HUAWEI> system-view [HUAWEI] wlan [HUAWEI-wlan-view] ap-id 0 [HUAWEI-wlan-ap-0] management-vlan 2 Warning: The incorrect configuration will cause the AP to go out of management. This operation will deliver parameter setting and ma y cause reboot of AP(s). Continue?[Y/N]:y
# Configure CAPWAP packets sent from an AP's wired interface to carry management VLAN 2 in the AP provisioning view.
<HUAWEI> system-view [HUAWEI] wlan [HUAWEI-wlan-view] provision-ap [HUAWEI-wlan-provision-ap] management-vlan 2 Warning: The incorrect management VLAN configuration will cause the AP to go out of management. When the configuration is committed, the AP will reset.Continue?[Y/N]:y