Switchport General Allowed Vlan - Cisco 300 Series Cli Manual

Stackable managed switches
Hide thumbs Also See for 300 Series:
Table of Contents

Advertisement

56
1065
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
switchxxxxxx(config)#
switchxxxxxx(config-if)#
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
]}
Parameters
vlan-list
add
—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.
Virtual Local Area Network (VLAN) Commands
interface gi1
1
switchport trunk native vlan
vlan-list
OL-32830-01 Command Line Interface Reference Guide
2
[tagged | untagged]] | [remove
1
gi1
:

Advertisement

Table of Contents
loading

Table of Contents