< Home

user-vlan (network basic profile view)

Function

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.

Format

user-vlan vlan-id

undo user-vlan

Parameters

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.

Views

Network basic profile view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

After creating a network basic profile, you can configure the default VLAN in the profile. After the profile is bound to an AS port, the default VLAN is automatically configured on the port. The following configuration is generated on the AS port:
#
 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.

Example

# Configure the default VLAN in a network basic profile.

<HUAWEI> system-view
[HUAWEI] uni-mng
[HUAWEI-um] network-basic-profile name profile_1
[HUAWEI-um-net-basic-profile_1] user-vlan 10
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >