456 VLAN Commands
Command Mode
Interface Configuration (Ethernet, port-channel) mode.
User Guidelines
• This command has the following consequences: incoming untagged frames are assigned to this VLAN
and outgoing traffic in this VLAN on this port is sent untagged (despite the normal situation where
traffic sent from a trunk-mode port is all tagged).
• The command adds the port as a member in the VLAN. If the port is already a member in the VLAN
(not as a native), it should be first removed from the VLAN.
Example
The following example g8, in trunk mode, is configured to use VLAN number 123 as the "native" VLAN.
switchport general allowed vlan
The switchport general allowed vlan Interface Configuration mode command adds or removes VLANs
from a general port.
Syntax
•
switchport general allowed vlan add
vlan-list
[
tagged
|
untagged
]
•
switchport general allowed vlan remove
vlan-list
•
add
vlan-list
— List of VLAN IDs to add. Separate non consecutive VLAN IDs with a comma and
no spaces. A hyphen designates a range of IDs.
•
remove
vlan-list
— List of VLAN IDs to remove. Separate non consecutive VLAN IDs with a
comma and no spaces. A hyphen designates a range of IDs.
•
tagged
— Sets the port to transmit tagged packets for the VLANs. If the port is added to a VLAN
without specifying tagged or untagged the default is tagged.
•
untagged
— Sets the port to transmit untagged packets for the VLANs.
Default Configuration
This command has no default configuration.
Command Mode
Interface Configuration (Ethernet, port-channel) mode.
Console (config)# interface ethernet g8
Console (config-if)# switchport trunk native vlan 123
5400_CLI.book Page 456 Wednesday, December 17, 2008 4:33 PM