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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

setting up VLANs on Cat 2950

Status
Not open for further replies.

pctechnician

Technical User
Feb 10, 2003
134
0
0
US
How would you go about setting up a simple VLAN on one switch

for instance: setting up port 5 and port 9 on the 2950 for VLAN name Sales


Thanks

A+,Net+
 
Switch# vlan database
Switch(vlan)# vlan vlan-num name vlan-name
Switch(vlan)# exit
Switch# configure terminal
Switch(config)# interface interface module/number
Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan vlan-num
Switch(config-if)# end

Simon Yu
CCNP
 
hsh2hsh,

could you please explain your last post, i am a newbie and i didn't totally understand your configuration

A+,Net+
 
Switch# vlan database
Switch(vlan)# vlan vlan-num name vlan-name
Switch(vlan)# exit

that gets you into the vlan config mode, the vlan-num = number of the vlan you want to make, then you can name it as well..

Switch# configure terminal
Switch(config)# interface interface module/number
Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan vlan-num
Switch(config-if)# end


This is where you actually tell the ethernet ports to be port of that vlan..

Hopefully this helps


BuckWeet
 
The VLAN database has been superceeded with the 2950 & 3550 (it was a requirement on the 3500XL & 2900XL switches). Create the VLANs in Global configuration (may require newer software, but you can download this free from CCO anyway). In global configuration just type the VLAN numbers, i.e.

switch# conf t
switch(config)#vlan 10
switch(config)#vlan 20

Then place the ports you need in each VLAN

switch(config)#interface fastethernet 0/1
switch(config-if)#switchport mode access
switch(config-if)#switchport access vlan 10

If you create vlans in the VLAN database instead of global config these are not stored in the config file and if you do a restore of a config then the VLANs will be lost (vlan database uses a separate file - vlan.dat).

Andy
 
interface VLAN1
ip address 172.16.1.103 255.255.0.0
no ip directed-broadcast
no ip route-cache
!
interface VLAN2
ip address 10.15.15.99 255.255.255.0
ip helper-address 10.15.15.100
no ip directed-broadcast
no ip route-cache
shutdown

How to remove shutdown in VLAN2? Switch is a 2950.



Experimenter
 
It seems like you're setting up your vlans on the 2950 and trying to do layer 3 on that switch. That won't work, as the 2950s don't support L3. You need to run a 802.1Q trunk to an L3 router, which would route between the vlans for you. Can't remember off the top of my head, but I think you'd need to create VLAN interfaces or subintefaces on the router.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top