The vlan pvid command sets the PVID for an AP's wired interface.
The undo vlan pvid command deletes the PVID of an AP's wired interface.
By default, no PVID is configured for an AP wired interface.
Parameter |
Description |
Value |
---|---|---|
vlan-id |
Specifies the PVID of an AP's wired interface. |
The value is an integer that ranges from 1 to 4094. |
Usage Scenario
APs on a WLAN WDS network only process tagged packets.
When receiving an untagged packet from a peer device, an AP's wired interface adds a VLAN tag to the packet. After the PVID is configured on the wired interface, the interface adds the PVID to all the received untagged packets.
In the following paragraphs, packets sent by the AP's wired interface refer to the management packets and service packets sent in the tunnel forwarding mode.
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 this 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.
Precautions
Eth-Trunk member interfaces do not support PVID setting.
# Set the working mode of the AP's wired interface GE0 to endpoint and set the PVID of GE0 to VLAN 1.
<HUAWEI> system-view [HUAWEI] wlan [HUAWEI-wlan-view] ap-group name ap-group1 [HUAWEI-wlan-ap-group-ap-group1] quit [HUAWEI-wlan-view] wired-port-profile name wired [HUAWEI-wlan-wired-port-wired] mode endpoint Warning: If the AP goes online through a wired port, the incorrect port mode configuration will cause the AP to go out of management . This fault can be recovered only by modifying the configuration on the AP. Continue? [Y/N]:y[HUAWEI-wlan-wired-port-wired] vlan pvid 1 [HUAWEI-wlan-wired-port-wired] quit [HUAWEI-wlan-view] ap-group name ap-group1 [HUAWEI-wlan-ap-group-ap-group1] wired-port-profile wired gigabitethernet 0