Configuring VLANs in 3750

Hi,

I have configured a VLAN using following commands:

SWITCH01(config)# vlan 50
SWITCH01(config-if)#Exit
SWITCH01(config)# interface vlan 50
SWITCH01(config-if)# ip address 172.16.50.254 255.255.255.0
SWITCH01(config-if)# no shutdown
SWITCH01(config-if)# exit
SWITCH01(config)#interface giga 1/0/1
SWITCH01(config-if-range)#switchport
SWITCH01(config-if-range)#switchport host
SWITCH01(config-if-range)#switchport access vlan 50
SWITCH01(config-if-range)#spanning-tree portfast disable
SWITCH01(config-if-range)#no shutdown

This is a Cisco 3750 switch, first of all I don't understand what these commands mean, I just searched on Google and followed insturctions, all I can see is that VLAN 50 is configured and Switch port 1 is part of VLAN 50 now.

On same switch from port # 13 to 23 I have other servers connected, they are in default vlan1 and have IP addresses of different subnets e.g. 128.128.x.x/16, 192.168.1.0/24 etc

No IP adress is configured in switch for vlan1.

My problem is, I'm unable to ping devices from vlan50 to vlan1 and vice versa, I'm sure I'm missing something, please guide me in right direction, regards.
tayyabq8Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

IronmannenCommented:
Hello
To route between two vlans you have to have ip routing enabled:
conf t
ip routing

Then you also must have an ip interface for vlan wich is on ONE subnet only. You can't have two subnets on the same vlan. Take a new vlan for the other subnet:

SWITCH01(config)# vlan 1
SWITCH01(config-if)#Exit
SWITCH01(config)# interface vlan 1
SWITCH01(config-if)# ip address 128.128.X.X 255.255.0.0
SWITCH01(config-if)# no shutdown
SWITCH01(config-if)# exit


SWITCH01(config)# vlan 10
SWITCH01(config-if)#Exit
SWITCH01(config)# interface vlan 10
SWITCH01(config-if)# ip address 192.168.1.X 255.255.0.0
SWITCH01(config-if)# no shutdown
SWITCH01(config-if)# exit

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
tayyabq8Author Commented:
Hi,

Thanks for your reply. So you are saying, now I have to create a different VLAN for each subnet which was available in default vlan1, but they are able to communicate to each other without IP interface, they can't only communicate to newly created vlan50?

what i understand after reading, once i create vlans for different subnets, then I have to change default gateway of my servers as well who are connected to these ports? and similarly users as well, there is no way i can't use this default vlan1 the way it is now? sorry for my ignorance.

You haven't used switchport commands, aren't they required?

Regards,
0
IronmannenCommented:
Hello
You don't have to applogize, you are here to get your questions answered...

You have understanded it correctly, one subnet per vlan and point the computers default gateway to the ip of switch (it is called SVI - Switch Virtual Interface).

A client port must be configured as a access-port and assigned to a vlan but if it is only clients or servers connected eg. no switches, I would disable  "spanning-tree portfast disable" with "no spanning-tree portfast disable", on new ports you just don't add the line
0
SouljaSenior Network EngineerCommented:
You can do this also, if you want to keep the two old subnets on VLAN 1.

SWITCH01(config)# vlan 1
SWITCH01(config-if)#Exit
SWITCH01(config)# interface vlan 1
SWITCH01(config-if)# ip address 128.128.X.X 255.255.0.0
SWITCH01(config-if)# ip address 192.168.1.X 255.255.0.0 secondary
SWITCH01(config-if)# no shutdown
SWITCH01(config-if)# exit

On another note, why are you using a /16?

0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Network Operations

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.