![Cisco 2948G - Catalyst Switch Скачать руководство пользователя страница 216](http://html.mh-extra.com/html/cisco/2948g-catalyst-switch/2948g-catalyst-switch_configuration-manual_67462216.webp)
10-10
Catalyst 4500 Series, Catalyst 2948G, Catalyst 2980G Switches Software Configuration Guide
—
Release 8.1
78-15486-01
Chapter 10 Configuring VLANs
Configuring VLANs on the Switch
This example shows how to change the state of an extended-range Ethernet VLAN and verify the
configuration:
Console> (enable) set vlan 2000 state suspend
Vlan 2000 configuration successful
Console> (enable) show vlan 2000
VLAN Name Status IfIndex Mod/Ports, Vlans
---- -------------------------------- --------- ------- ------------------------
2000 VLAN2000 suspend
61
VLAN Type SAID MTU Parent RingNo BrdgNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ ------ ---- -------- ------ ------
2000 enet 102000 1500 - - - - - 0 0
VLAN Inst DynCreated RSPAN
---- ---- ---------- --------
2000 - static disabled
VLAN AREHops STEHops Backup CRF 1q VLAN
---- ------- ------- ---------- -------
Console> (enable)
Assigning Switch Ports to a VLAN
A VLAN that is created in a management domain remains unused until you assign one or more switch
ports to the VLAN. If you specify a VLAN that does not exist, the VLAN is created and the specified
ports are assigned to it.
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 500 2/4
VLAN 500 modified.
VLAN 560 modified.
VLAN Mod/Ports
---- -----------------------
500
2/4
Console> (enable) show vlan 500
VLAN Name
Status
IfIndex Mod/Ports, Vlans
---- -------------------------------- --------- ------- ------------------------
500 Engineering
active
59
2/4
VLAN Type SAID
MTU
Parent RingNo BrdgNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ ------ ---- -------- ------ ------
500 enet 100500
1500 -
-
-
-
-
0
0
VLAN AREHops STEHops Backup CRF
---- ------- ------- ----------
Task
Command
Step 1
Assign one or more switch ports to a VLAN.
set vlan vlan_num mod_num/port_num
Step 2
Verify the port VLAN membership.
show vlan [vlan_num]
show port [mod_num[/port_num]]