The user-vlan command configures the default VLAN in a network basic profile.
The undo user-vlan command deletes the default VLAN in a network basic profile.
By default, no default VLAN is configured in a network basic profile, and downlink ports of an AS use VLAN 1 as the default VLAN.
This command can only be executed on a parent switch.
Parameter | Description | Value |
---|---|---|
vlan-id | Specifies a VLAN ID. |
The value is an integer that ranges from 1 to 4094. The value cannot be the ID of an SVF management VLAN, a stack management VLAN, an ERPS control VLAN, an RRPP control VLAN, an SEP control VLAN, or a super VLAN. |
Usage Scenario
# port link-type hybrid port hybrid pvid vlan vlan-id port hybrid tagged vlan 1 port hybrid untagged vlan vlan-id #
The user-vlan command can only configure the default VLAN for a port. To enable this port to allow packets of multiple VLANs to pass through, run the pass-vlan command in a network basic profile.
Precautions
The default VLAN, allowed VLANs, and voice VLAN in a network basic profile must be different.