Switchport Mode - Cisco 220 Series Smart Plus Reference Manual

Smart plus switches command line interface
Hide thumbs Also See for 220 Series Smart Plus:
Table of Contents

Advertisement

VLAN Commands
switchport general pvid
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x
Syntax
switchport general pvid
no switchport general pvid
Parameters
vlan-id
—The VLAN as the PVID.
Default Configuration
The default VLAN is the PVID.
Command Mode
Interface Configuration (Ethernet, port channel) mode
Examples
Example 1—The following example configures gi2 as a general port and sets its
PVID to 234:
switchxxxxxx(config)# interface gi2
switchxxxxxx(config-if)# switchport mode general
switchxxxxxx(config-if)# switchport general pvid 234
Example 2—The following example adds VLAN 2 as tagged, and VLAN 100 as
untagged to the general port gi 1 4, defines VID 100 as the PVID, and then reverts to
the default PVID (VID=1).
switchxxxxxx(config)# interface gi14
switchxxxxxx(config-if)# switchport mode general
switchxxxxxx(config-if)# switchport general allowed vlan add 2 tagged
switchxxxxxx(config-if)# switchport general allowed vlan add 100 untagged
switchxxxxxx(config-if)# switchport general pvid 100
switchxxxxxx(config-if)# no switchport general pvid
Example 3—The following example configures VLAN on gi 1 4 as untagged on input
and untagged on output:
switchxxxxxx(config)# interface gi14
switchxxxxxx(config-if)# switchport mode general
switchxxxxxx(config-if)# switchport general pvid 2
vlan-id
41
516

Advertisement

Table of Contents
loading

Table of Contents