C
HAPTER
36
| VLAN Commands
Configuring VLAN Interfaces
– 840 –
DEFAULT SETTING
All frame types
COMMAND MODE
Interface Configuration (Ethernet, Port Channel)
COMMAND USAGE
When set to receive all frame types, any received frames that are untagged
are assigned to the default VLAN.
EXAMPLE
The following example shows how to restrict the traffic received on port 1
to tagged frames:
Console(config)#interface ethernet 1/1
Console(config-if)#switchport acceptable-frame-types tagged
Console(config-if)#
RELATED COMMANDS
switchport mode (842)
switchport allowed
vlan
This command configures VLAN groups on the selected interface. Use the
no form to restore the default.
SYNTAX
switchport allowed vlan {add vlan-list [tagged | untagged] |
remove vlan-list}
no switchport allowed vlan
add vlan-list - List of VLAN identifiers to add.
remove vlan-list - List of VLAN identifiers to remove.
vlan-list - Separate nonconsecutive VLAN identifiers with a comma
and no spaces; use a hyphen to designate a range of IDs. Do not
enter leading zeros. (Range: 1-4093).
DEFAULT SETTING
All ports are assigned to VLAN 1 by default.
The default frame type is untagged.
COMMAND MODE
Interface Configuration (Ethernet, Port Channel)
COMMAND USAGE
â—† A port, or a trunk with switchport mode set to hybrid, must be
assigned to at least one VLAN as untagged.
â—† If a trunk has switchport mode set to trunk (i.e., 1Q Trunk), then you
can only assign an interface to VLAN groups as a tagged member.