11-12
Catalyst 6000 Family Software Configuration Guide—Releases 6.3 and 6.4
78-13315-02
Chapter 11 Configuring VLANs
Assigning Switch Ports to a VLAN
Assigning Switch Ports to a VLAN
A VLAN created in a management domain remains unused until you assign one or more switch ports to
the VLAN. You can create a new VLAN and then specify the module and ports later, or you can create
the VLAN and specify the module and ports in a single step.
Note
Make sure you assign switch ports to a VLAN of the proper type. For example, assign Ethernet, Fast
Ethernet, and Gigabit Ethernet ports to 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 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
<...output truncated...>
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
]]