11-11
Catalyst 6500 Series Switch Software Configuration Guide—Release 8.7
OL-8978-04
Chapter 11 Configuring VLANs
Assigning Switch Ports to a VLAN
Note
Make sure that you assign the switch ports to a VLAN of the proper type. For example, assign the
Ethernet, Fast Ethernet, and Gigabit Ethernet ports to the Ethernet-type VLANs.
To assign one or more switch ports to a VLAN, perform this task in privileged mode:
This example shows how to assign the switch ports to a VLAN and verify the assignment:
Console> (enable)
set vlan 560 4/10
VLAN 560 modified.
VLAN 1 modified.
VLAN Mod/Ports
---- -----------------------
560 4/10
Console> (enable)
show vlan 560
VLAN Name Status IfIndex Mod/Ports, Vlans
---- -------------------------------- --------- ------- ------------------------
560 Engineering active 348 4/10
VLAN Type SAID MTU Parent RingNo BrdgNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ ------ ---- -------- ------ ------
560 enet 100560 1500 - - - - - 0 0
VLAN AREHops STEHops Backup CRF
---- ------- ------- ----------
Console> (enable)
show port 4/10
Port Name Status Vlan Duplex Speed Type
----- ------------------ ---------- ---------- ------ ----- ------------
4/10 connected 560 a-half a-100 10/100BaseTX
Port AuxiliaryVlan AuxVlan-Status
----- ------------- --------------
4/10 none none
.
.
.
Last-Time-Cleared
--------------------------
Tue Jun 6 2000, 16:45:18
Console> (enable)
Task
Command
Step 1
Assign one or more switch ports to a VLAN.
set vlan
vlan mod/port
Step 2
Verify the port VLAN membership.
show vlan
[
vlan
]
show port
[
mod
[
/
port
]]