< Home

service-vlan (VAP profile view)

Function

The service-vlan command configures a service VLAN for a VAP.

The undo service-vlan command restores the default service VLAN of a VAP.

By default, VLAN 1 is the service VLAN of a VAP.

Format

service-vlan { vlan-id vlan-id | vlan-pool pool-name }

undo service-vlan

Parameters

Parameter

Description

Value

vlan-id vlan-id

Sets the service VLAN of a VAP to a specific VLAN.

The value is an integer that ranges from 1 to 4094.

vlan-pool pool-name

Sets the service VLANs of a VAP to all VLANs in a VLAN pool.

The VLAN pool must exist.

Views

VAP profile view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

You can specify a specific VLAN as the service VLAN of a VAP or all VLANs in a VLAN pool as the service VLANs of a VAP. Layer 2 data packets delivered from the VAP to an AP carry the service VLAN IDs.
  • When a specific VLAN is configured as the service VLAN of a VAP, STAs connected to the VAP join the same VLAN.
  • When VLANs in a VLAN pool are configured as service VLANs of a VAP, STAs connected to the VAP join different VLANs. The VLAN assignment algorithm can be configured using the assignment command.

Precautions

Modifying the service VLAN of a VAP will interrupt services of STAs connected to the VAP. Exercise caution when you run the command.

Example

# Set the service VLAN to VLAN2 in the VAP profile vap1.

<HUAWEI> system-view
[HUAWEI] wlan 
[HUAWEI-wlan-view] vap-profile name vap1
[HUAWEI-wlan-vap-prof-vap1] service-vlan vlan-id 2
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >