Virtual Local Area Network (VLAN) Commands
OL-32830-01 Command Line Interface Reference Guide
1064
56
•
remove
vlan-list
—Specifies a list of VLAN IDs to remove from a port.
Separate nonconsecutive VLAN IDs with a comma and no spaces; use a
hyphen to designate a range of IDs.
Default Configuration
By default, trunk ports belongs to the default VLAN.
Command Mode
Interface (Ethernet, Port Channel) Configuration mode
User Guidelines
If the interface is a forbidden member of an added VLAN, the interface does not
become a member of this specific VLAN. The system displays an error message
about this issue ("An interface cannot become a a member of a forbidden VLAN.
This message will only be displayed once."), and the command continues to
execute in case there are more VLANs in the vlan-list.
Example
To add VLANs 2,3 and 100 to trunk ports 1 to 13:
switchxxxxxx(config)#
interface range
gi11-3
switchxxxxxx(config-if)#
switchport
mode
trunk
switchxxxxxx(config-if)#
switchport
trunk
allowed
vlan
add
2-3,100
switchxxxxxx(config-if)#
exit
56.15 switchport trunk native vlan
Use the switchport trunk native vlan Interface Configuration mode command to
define the native VLAN for a trunk interface. Use the no form of this command to
restore the default native VLAN.
Syntax
switchport trunk native vlan
vlan-id
no switchport trunk native vlan
Parameters
•
vlan-id
—Specifies the native VLAN ID.
Содержание 300 Series
Страница 2: ......