vlan

Syntax

vlan {access | trunk native | trunk allowed}

no vlan {access | trunk native | trunk allowed}

Description

Configures VLAN modes and VLANs for a port access role.

The no form of the command deletes the VLAN configuration from the role.

Command context

config-pa-role

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

Parameters

access

Selects the access VLAN.

trunk native

Selects the trunk native VLAN.

trunk allowed

Selects the trunk list of tagged VLANs.

Authority

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

Usage

The following table lists the restrictions and behavioral characteristics related to VLANs and roles:
CLI (vlan_mode, vlan_tag, vlan_trunks) Radius (port_access_vlan_mode, port_access_vlan_tag, port_access_vlan_trunks, port_access_extended_access_vlans) Arbitration result (applied_vlan_mode, applied_vlan_tag, applied_vlan_trunks, applied_extended_access_vlans) Arbitration status

VA—Valid Arbitration

MBV—MB-VLAN Arbitration

access, X - access, X  
access, X access access, X  
access, X access, A access, A VA
access, X access, A, ADE access, X  
access, X access, A, ADE, BC access, X  
access, X access, -, -, BC access, X  
access, X access, A, -, BC access, A, -, BC VA, MBV
access, X native-untagged access, X  
access, X native-untagged, A access, X  
access, X native-untagged, A, DE access, X  
access, X native-untagged, A, ADE native-untagged, A, ADE VA
access, X native-untagged, A, ADE, BC native-untagged, A, ADE, BC VA, MBV
access, X native-untagged, -, -, BC access, X  
access, X native-tagged access, X  
access, X native-tagged, A access, X  
access, X native-tagged, A, DE access, X  
access, X native-tagged, A, ADE native-untagged, X, XADE VA
access, X native-tagged, X, XDE native-tagged, X, XDE VA
access, X native-tagged, A, ADE, BC native-untagged, X, XADE, BC VA
access, X native-tagged, -, -, BC access, X  
native-untagged, X, YZ - native-untagged, X, YZ  
native-untagged, X, YZ access native-untagged, X, YZ  
native-untagged, X, YZ access, A native-untagged, A, AYZ VA
native-untagged, X, YZ access, A, ADE native-untagged, X, YZ  
native-untagged, X, YZ access, A, ADE, BC native-untagged, X, YZ  
native-untagged, X, YZ access, -, -, BC native-untagged, X, YZ  
native-untagged, X, YZ access, A, -, BC access, A, -, BC VA, MBV
native-untagged, X, YZ native-untagged native-untagged, X, YZ  
native-untagged, X, YZ native-untagged, A native-untagged, X, YZ  
native-untagged, X, YZ native-untagged, A, DE native-untagged, X, YZ  
native-untagged, X, YZ native-untagged, A, ADE native-untagged, A, ADE VA
native-untagged, X, YZ native-untagged, A, ADE, BC native-untagged, A, ADE, BC VA, MBV
native-untagged, X, YZ native-untagged, -, -, BC native-untagged, X, YZ  
native-untagged, X, YZ native-tagged native-untagged, X, YZ  
native-untagged, X, YZ native-tagged, A native-untagged, X, YZ  
native-untagged, X, YZ native-tagged, A, DE native-untagged, X, YZ  
native-untagged, X, YZ native-tagged, A, ADE native-untagged, X, XADE VA
native-untagged, X, YZ native-tagged, X, XDE native-tagged, X, XDE VA
native-untagged, X, YZ native-tagged, A, ADE, BC native-untagged, X, XADE, BC VA, MBV
native-untagged, X, YZ native-tagged, -, -, BC native-untagged, X, YZ  
native-untagged, X, XYZ - native-untagged, X, XYZ  
native-untagged, X, XYZ access native-untagged, X, XYZ  
native-untagged, X, XYZ access, A native-untagged, A, AXYZ VA
native-untagged, X, XYZ access, A, ADE native-untagged, X, XYZ  
native-untagged, X, XYZ access, A, ADE, BC native-untagged, X, XYZ  
native-untagged, X, XYZ access, -, -, BC native-untagged, X, XYZ  
native-untagged, X, XYZ access, A, -, BC native-untagged, A, AXYZ, BC VA, MBV
native-untagged, X, XYZ native-untagged native-untagged, X, XYZ  
native-untagged, X, XYZ native-untagged, A native-untagged, X, XYZ  
native-untagged, X, XYZ native-untagged, A, DE native-untagged, X, XYZ  
native-untagged, X, XYZ native-untagged, A, ADE native-untagged, A, ADE VA
native-untagged, X, XYZ native-untagged, A, ADE, BC native-untagged, A, ADE, BC VA, MBV
native-untagged, X, XYZ native-untagged, -. -, BC native-untagged, X, XYZ  
native-untagged, X, XYZ native-tagged native-untagged, X, XYZ  
native-untagged, X, XYZ native-tagged, A native-untagged, X, XYZ  
native-untagged, X, XYZ native-tagged, A, DE native-untagged, X, XYZ  
native-untagged, X, XYZ native-tagged, A, ADE native-untagged, X, XADE VA
native-untagged, X, XYZ native-tagged, X, XDE native-tagged, X, XDE VA
native-untagged, X, XYZ native-tagged, A, ADE, BC native-untagged, X, XADE, BC VA, MBV
native-untagged, X, XYZ native-tagged, -. -, BC native-untagged, X, XYZ  
native-tagged, X, YZ - native-tagged, X, YZ  
native-tagged, X, YZ access native-tagged, X, YZ  
native-tagged, X, YZ access, A native-untagged, A, AYZ VA
native-tagged, X, YZ access, A, ADE native-tagged, X, YZ  
native-tagged, X, YZ access, A, ADE, BC native-tagged, X, YZ  
native-tagged, X, YZ access, -, -, BC native-tagged, X, YZ  
native-tagged, X, YZ access, A, -, BC native-untagged, A, AYZ, BC VA, MBV
native-tagged, X, YZ native-untagged native-tagged, X, YZ  
native-tagged, X, YZ native-untagged, A native-tagged, X, YZ  
native-tagged, X, YZ native-untagged, A, DE native-tagged, X, YZ  
native-tagged, X, YZ native-untagged, A, ADE native-untagged, A, ADE VA
native-tagged, X, YZ native-untagged, A, ADE, BC native-untagged, A, ADE, BC VA, MBV
native-tagged, X, YZ native-untagged, -, -, BC native-tagged, X, YZ  
native-tagged, X, YZ native-tagged native-tagged, X, YZ  
native-tagged, X, YZ native-tagged, A native-tagged, X, YZ  
native-tagged, X, YZ native-tagged, A, DE native-tagged, X, YZ  
native-tagged, X, YZ native-tagged, A, ADE native-tagged, A, ADE VA
native-tagged, X, YZ native-tagged, X, XDE native-tagged, X, XDE VA
native-tagged, X, YZ native-tagged, A, ADE, BC native-tagged, A, ADE, BC VA, MBV
native-tagged, X, YZ native-tagged, -, -, BC native-tagged, X, YZ  
native-tagged, X, XYZ - native-tagged, X, XYZ  
native-tagged, X, XYZ access native-tagged, X, XYZ  
native-tagged, X, XYZ access, A native-untagged, A, AXYZ VA
native-tagged, X, XYZ access, A, ADE native-tagged, X, XYZ  
native-tagged, X, XYZ access, A, ADE, BC native-tagged, X, XYZ  
native-tagged, X, XYZ access, -, -, BC native-tagged, X, XYZ  
native-tagged, X, XYZ access, A, -, BC native-untagged, A, AXYZ, BC VA, MBV
native-tagged, X, XYZ native-untagged native-tagged, X, XYZ  
native-tagged, X, XYZ native-untagged, A native-tagged, X, XYZ  
native-tagged, X, XYZ native-untagged, A, DE native-tagged, X, XYZ  
native-tagged, X, XYZ native-untagged, A, ADE native-untagged, A, ADE VA
native-tagged, X, XYZ native-untagged, A, ADE, BC native-untagged, A, ADE, BC VA, MBV
native-tagged, X, XYZ native-untagged, -, -, BC native-tagged, X, XYZ  
native-tagged, X, XYZ native-tagged native-tagged, X, XYZ  
native-tagged, X, XYZ native-tagged, A native-tagged, X, XYZ  
native-tagged, X, XYZ native-tagged, A, DE native-tagged, X, XYZ  
native-tagged, X, XYZ native-tagged, A, ADE native-tagged, A, ADE VA
native-tagged, X, XYZ native-tagged, X, XDE native-tagged, X, XDE VA
native-tagged, X, XYZ native-tagged, A, ADE, BC native-tagged, A, ADE, BC VA, MBV
native-tagged, X, XYZ native-tagged, -, -, BC native-tagged, X, XYZ  

Examples

Configuring VLAN modes and VLANs 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

Deleting VLAN configuration from a role:

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