Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Switch 2950 question

Status
Not open for further replies.

cisco99999

IS-IT--Management
Nov 5, 2007
71
US
hi guys,

I have a 24 ports switch.

=====
Switch#sh vlan

VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/13, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18, Fa0/19, Fa0/20
Fa0/21, Fa0/22, Fa0/23, Fa0/24
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active

VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 0 0
1002 enet 101002 1500 - - - - - 0 0
1003 enet 101003 1500 - - - - - 0 0
1004 enet 101004 1500 - - - - - 0 0
1005 enet 101005 1500 - - - - - 0 0
=====

Can i create another VLAN ? If so Can i assign a certain ports to one VLAN ? Let's say i want 6 port for one VLAN and the rest of ports for other VLAN.
Thanks.
 
If it's possible what is the right command ? Thans
 
Oh sorry, I overlooked it in the subnet line. Yes you can create another vlan, but you must have a layer 3 device to route between the vlans.

switch# configure terminal

Switch(config)# vlan 20

Switch(config-vlan)# name test20

Switch(config-vlan)# end


To configure the port in the vlan

switch# configure terminal

Switch(config)# int f0/1

Switch(config-vlan)# switch access vlan 20

 
brian---don't you have to do
switch(config-if)#switchport mode access
on layer 2 switches?

Burt
 
That command sets the switchport into access mode for vlans on a layer 2 switch. By default, it is simply a switchport. On a layer three switch (example 3560), the switchports are in switchport mode access by default.

Burt
 
By default the ports are dynamic desirable and are technically access ports unless you connect a port to a another switch which has a port as desriable or auto at which point a trunk will be created . Access mode just keeps the port from trunking but really doesn't have to be on there for a user port.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top