vlan

vlan {access | trunk native | trunk allowed} <VLAN-ID>

no vlan {access | trunk native | trunk allowed} <VLAN-ID>

vlan {access name | trunk native name | trunk allowed name} <VLAN-NAME>

no vlan {access name | trunk native name | trunk allowed name} [<VLAN-NAME>]

Description

Configures VLAN IDs or VLAN names, and VLAN modes for a port access role. You can configure either VLAN IDs or VLAN names, or a combination of both for a role.

The no form of the command deletes the VLAN configuration from the role. For trunk allowed VLAN names, you can delete the VLAN names individually or all names at once.

Parameter

Description

access <VLAN-ID>

Specifies the VLAN ID for the access VLAN. Supports a single VLAN ID in the range 1 to 4094.

trunk native <VLAN-ID>

Specifies the native VLAN ID on the trunk interface. Supports a single VLAN ID. Range: 1 to 4094.

trunk allowed <VLAN-ID>

Specifies the list of tagged or allowed VLANs on the trunk interface. Supports a list of VLAN IDs. Range: 1 to 4094. The 4100i Switch Series supports a maximum of 50 trunk allowed VLAN IDs. The 6000 and 6100 Switch Series supports a maximum of 50 trunk allowed VLAN IDs.

access name <VLAN-NAME>

Specifies the VLAN name for the access VLAN. Supports a single VLAN name. Range: Up to 32 characters.

trunk native name <VLAN-NAME>

Specifies the native VLAN name on the trunk interface. Supports a single VLAN name. Range: Up to 32 characters

trunk allowed name <VLAN-NAME>

Specifies the tagged or allowed VLAN name on the trunk interface. Supports a single VLAN name. Range: Up to 32 characters. The switch supports a maximum of 50 trunk allowed VLAN names.

Usage

Note the following points when configuring the VLAN IDs and names for a role:

  • For VLAN access and VLAN trunk native respectively, it is recommended to configure only one of either VLAN ID or name for a role. In case both VLAN ID and name are configured, then VLAN ID takes precedence and is applied with the role.

Examples

Configuring VLAN modes and VLAN IDs for a new role:

switch(config)# port-access role role01 switch(config-pa-role)# vlan trunk native 10 switch(config-pa-role)# vlan trunk allowed 11-15 switch(config-pa-role)# vlan access 50

Configuring VLAN modes and VLAN names for a new role:

switch(config)# port-access role role10 switch(config-pa-role)# vlan trunk native name hpe01 switch(config-pa-role)# vlan trunk allowed name data switch(config-pa-role)# vlan trunk allowed name voice switch(config-pa-role)# vlan trunk allowed name video

Deleting VLAN configuration from a role:

switch(config-pa-role)# no vlan trunk native 10 switch(config-pa-role)# no vlan trunk allowed 10-15 switch(config-pa-role)# no vlan access 50

Deleting trunk allowed VLAN names from a role individually:

switch(config-pa-role)# no vlan trunk native name hpe01 switch(config-pa-role)# no vlan trunk allowed name data switch(config-pa-role)# no vlan trunk allowed name voice switch(config-pa-role)# no vlan trunk allowed name video

Deleting trunk allowed VLAN names from a role all at once:

switch(config-pa-role)# no vlan trunk native name hpe01 switch(config-pa-role)# no vlan trunk allowed name

Command History

Release

Modification

10.07 or earlier

--

Command Information

Platforms

Command context

Authority

4100i

6000

6100

config-pa-role

The port-access role command takes you into the config-pa-role context.

Administrators or local user group members with execution rights for this command.