Assigning Switch Ports To A Vlan - Cisco WS-C2948G-GE-TX Configuration Manual

Catalyst 4500 series switch
Table of Contents

Advertisement

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
---- -------------------------------- --------- ------- ------------------------
2000 VLAN2000
VLAN Type
---- ----- ---------- ----- ------ ------ ------ ---- -------- ------ ------
2000 enet
VLAN Inst DynCreated
---- ---- ---------- --------
2000 -
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:
Task
Step 1
Assign one or more switch ports to a VLAN.
Step 2
Verify the port VLAN membership.
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
---- -----------------------
500
Console> (enable) show vlan 500
VLAN Name
---- -------------------------------- --------- ------- ------------------------
500
VLAN Type
---- ----- ---------- ----- ------ ------ ------ ---- -------- ------ ------
500
VLAN AREHops STEHops Backup CRF
---- ------- ------- ----------
Catalyst 4500 Series, Catalyst 2948G, Catalyst 2948G-GE-TX, and Catalyst 2980G Switches Software Configuration Guide—Release 8.2GLX
10-10
SAID
MTU
102000
1500
RSPAN
static
disabled
Mod/Ports
2/4
Engineering
SAID
MTU
enet
100500
1500
Status
IfIndex Mod/Ports, Vlans
suspend
61
Parent RingNo BrdgNo Stp
-
-
-
-
Command
set vlan vlan_num mod_num/port_num
show vlan [vlan_num]
show port [mod_num[/port_num]]
Status
IfIndex Mod/Ports, Vlans
active
59
Parent RingNo BrdgNo Stp
-
-
-
-
Chapter 10
Configuring VLANs
BrdgMode Trans1 Trans2
-
0
0
2/4
BrdgMode Trans1 Trans2
-
0
0
78-15908-01

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents