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. |
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:
Configuring VLAN modes and VLAN names for a new role:
Deleting VLAN configuration from a role:
Deleting trunk allowed VLAN names from a role individually:
Deleting trunk allowed VLAN names from a role all at once:
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. |