Command Groups 41
switchport access vlan Configures the VLAN membership mode of a port. Interface
Configuration
switchport access vlan Configures the VLAN ID when the interface is in access
mode.
Interface
Configuration
switchport trunk
allowed vlan
Adds or removes VLANs from a port in general mode. Interface
Configuration
switchport trunk native
vlan
Defines the port as a member of the specified VLAN, and
the VLAN ID is the "port default VLAN ID (PVID)".
Interface
Configuration
switchport general
allowed vlan
Adds or removes VLANs from a general port. Interface
Configuration
switchport general pvid Configures the PVID when the interface is in general
mode.
Interface
Configuration
switchport general
ingress-filtering disable
Disables port ingress filtering. Interface
Configuration
switchport general
acceptable-frame-type
tagged-only
Discards untagged frames at ingress. Interface
Configuration
switchport forbidden
vlan
Forbids adding specific VLANs to a port. Interface
Configuration
map protocol
protocols-group
Adds a special protocol to a named group of protocols,
which may be used for protocol-based VLAN assignment.
VLAN
Configuration
switchport general map
protocols-group vlan
Sets a protocol-based classification rule. Interface
Configuration
ip internal-usage-vlan
Reserves a VLAN as the internal usage VLAN of an interface.
Interface
Configuration
show vlan Displays VLAN information. Privileged User
EXEC
show vlan internal
usage
Displays a list of VLANs being used internally by the
switch.
Privileged User
EXEC
show vlan protocols-
groups
Displays protocols-groups information. Privileged User
EXEC
show interfaces
switchport
Displays switchport configuration. Privileged User
EXEC
switchport mode Configures the VLAN membership mode of a port Interface
configuration
(Ethernet, port-
channel)