4
Command Line Interface
Example
The following example configures a VLAN ID of 23 to the untagged layer 2 VLAN
Ethernet port 1/e16.
Console(config)# interface ethernet 1/e16
Console(config-if)# switchport access vlan 23
Related Commands
switchport mode
switchport trunk allowed vlan
switchport trunk native vlan
switchport general allowed vlan
switchport general pvid
switchport general ingress-filtering disable
switchport general acceptable-frame-type tagged-only
switchport forbidden vlan
show interfaces switchport
switchport access multicast-tv vlan
switchport trunk allowed vlan
The
switchport trunk allowed vlan
removes VLANs to or from a trunk port.
Syntax
switchport trunk allowed vlan
Parameters
•
vlan-list — List of VLAN IDs to be added. Separate nonconsecutive
add
VLAN IDs with a comma and no spaces. A hyphen designates a range of
IDs.
•
remove
nonconsecutive VLAN IDs with a comma and no spaces. A hyphen
designates a range of IDs.
Default Setting
This command has no default configuration.
Command Mode
Interface Configuration (Ethernet, port-channel) mode
Command Usage
There are no user guidelines for this command.
670
Interface Configuration mode command adds or
{
vlan-list — List of VLAN IDs to be removed. Separate
vlan-list |
add
remove
vlan-list}