474 VLAN Commands
Syntax
•
switchport trunk native vlan
vlan-id
• no switchport trunk native vlan
•
vlan-id
— Specifies the ID of the native VLAN.
Default Configuration
VID=1.
Command Mode
Interface Configuration (Ethernet, port-channel) mode.
User Guidelines
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 configures VLAN number 123 as the native VLAN when Ethernet port 1/e16 is in
trunk mode.
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
— Specifies the list of VLAN IDs to be added. Separate non-consecutive VLAN IDs
with a comma and no spaces. A hyphen designates a range of IDs.
•
remove
vlan-list
— Specifies the list of VLAN IDs to be removed. Separate non-consecutive VLAN
IDs with a comma and no spaces. A hyphen designates a range of IDs.
•
tagged
— Indicates that the port transmits tagged packets for the VLANs.
•
untagged
— Indicates that the port transmits untagged packets for the VLANs.
Console(config)# interface ethernet 1/e16
Console(config-if)# switchport trunk native vlan 123
book.book Page 474 Thursday, December 18, 2008 7:40 PM