Virtual Local Area Network (VLAN) Commands
1065
OL-32830-01 Command Line Interface Reference Guide
56
Default Configuration
The default native VLAN is the Default VLAN.
Command Mode
Interface (Ethernet, Port Channel) Configuration mode
User Guidelines
If the interface does not belong to the VLAN it is added to the VLAN, if the
interface is not a forbidden member of this VLAN. If the interface is a forbidden
member of an added VLAN, the interface does not become a member of this
specific VLAN and an error message is displayed. This message will only be
displayed once.") and the command continues to execute if there are more VLANs
in the vlan-list.
The interface is set as VLAN untagged egress interface. A value of the interface
PVID is set to this VLAN ID.
Examples
Example 1 - The following example defines VLAN 2 as native VLAN for port
gi1
1
:
switchxxxxxx(config)#
interface
gi1
1
switchxxxxxx(config-if)#
switchport trunk native vlan
2
switchxxxxxx(config-if)# exit
56.16 switchport general allowed vlan
General ports can receive tagged or untagged packets. Use the switchport
general allowed vlan Interface Configuration mode command to add/remove
VLANs to/from a general port and configure whether packets on the egress are
tagged or untagged. Use the no form of this command to reset to the default.
Syntax
switchport general allowed vlan {[add
vlan-list
[tagged | untagged]] | [remove
vlan-list
]}
Parameters
•
add
vlan-list
—Specifies the list of VLAN IDs to add. Separate
nonconsecutive VLAN IDs with a comma and no spaces; use a hyphen to
designate a range of IDs.
Summary of Contents for 300 Series
Page 2: ......