< Home

pass-vlan (network basic profile view)

Function

The pass-vlan command configures allowed VLANs in a network basic profile.

The undo pass-vlan command deletes allowed VLANs in a network basic profile.

By default, no allowed VLANs are configured in a network basic profile, and downlink ports of an AS allow packets from VLAN 1 to pass through.

This command can only be executed on a parent switch.

Format

pass-vlan { vlan-id1 [ to vlan-id2 ] } &<1-10>

undo pass-vlan { vlan-id1 [ to vlan-id2 ] } &<1-10>

Parameters

Parameter Description Value
vlan-id1 [ to vlan-id2 ]

Specifies IDs of VLANs from which packets are allowed to pass through.

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 allowed VLANs in the profile. After the profile is bound to an AS port, the port allows packets from these VLANs to pass through. The following configuration is generated on the AS port:
#
 port link-type hybrid
 port hybrid tagged vlan vlan-id1 to vlan-id2
#

Precautions

  • The default VLAN, allowed VLANs, and voice VLAN in a network basic profile must be different.

  • You can configure a maximum of 32 allowed VLANs in a network basic profile.

Example

# Configured allowed VLANs 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] pass-vlan 10 to 12
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >