EasyManua.ls Logo

Cisco SPS2024 - Page 495

Cisco SPS2024
552 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
VLAN Commands
switchport general allowed vlan
SPS208G/SPS224G4/SPS2024 Command Line Interface Reference Guide 493
34
Parameters
add
vlan-list
— Specifies the list of VLAN IDs to be added. Separate
nonconsecutive 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
nonconsecutive 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.
Default Configuration
If the port is added to a VLAN without specifying tagged or untagged, the default
setting is tagged.
Command Mode
Interface Configuration (Ethernet, port-channel) mode
User Guidelines
This command enables changing the egress rule (for example from tagged to
untagged) without first removing the VLAN from the list.
Example
The following example adds VLANs 2, 5, and 6 to the allowed list of Ethernet port
1.
Console(config)# interface ethernet 1
Console(config-if)# switchport mode general
Console(config-if)# switchport general allowed vlan add 2,5-6
tagged

Table of Contents

Related product manuals