?
Solved

routing VLANs

Posted on 2008-11-11
15
Medium Priority
?
1,554 Views
Last Modified: 2012-05-05
Hi Experts,

I am trying to get a computer on VLAN 2 to talk to a server residing on VLAN 1.  I currently have:

- The  switch is in standalone layer 3 mode.
- IP for VLAN 1 (192.168.1.0/24) and VLAN 2 (192.168.2.0/24)
- IP for Server (192.168.1.1) and the computer (192.168.2.1)
- Ports are untagged, with appropriate VLAN ID assigned.
- IP Routing has both subnet listed as local, as well as a 0.0.0.0/0 entry with Next Hop pointed to the server (192.168.1.1)
- Computer and server can't ping each other.

What have I missed?

Thanks for your help!
0
Comment
Question by:TBG_Perth
  • 8
  • 7
15 Comments
 
LVL 21

Expert Comment

by:from_exp
ID: 22937175
hi!
in this case you should have ip address for vlan 2 configured on the switch and your pc should have your switch as a default gw
0
 
LVL 21

Expert Comment

by:from_exp
ID: 22937180
and one more thing:
server should also know where the second subnet is. so you have to add static route to the server:
route add <subnet2> mask 255.255.255.0 via <ip address of a switch in vlan1>
0
 

Author Comment

by:TBG_Perth
ID: 22937282
Hi exp,

Thanks for replying.  Regarding your first comment, what do you mean by "should have ip address for vlan 2 configured on the switch"?  The switch has IP assigned to VLAN1 (192.168.1.252) and VLAN2 (192.168.2.252) already.  Computers on VLAN2 have used the VLAN2 IP as the gateway.

I've added the route as per your suggestion, but its still not working.  On the server, its currently registered as:

Active Routes
Network Destination - 192.168.2.0
Netmask - 255.255.255.0
Gateway - 192.168.1.252 (Switch's VLAN1 IP)
Interface - 192.168.1.1
Metric - 1

Any other suggestions?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 21

Expert Comment

by:from_exp
ID: 22937356
hi!
at present time your setup seems correct
can you ping 1.252 from client?
and can you ping 2.252 from server?
please provide traceroute from server to computer ip
0
 

Author Comment

by:TBG_Perth
ID: 22937683
Hi exp,

Thanks for your help so far.  Perhaps I should explain the whole setup, as I might've missed something elsewhere...

My whole setup as follow:

Workstations (192.168.2.0/24) --- HP2626 layer3 switch --- Linksys SFE2000 --- server(192.168.1.1) + workstations (192.168.1.0/24)

For HP switch
VLAN Default (192.168.3.251)
VLAN2 (192.168.2.251) (Primary VLAN)
All ports are untagged with VLAN2 ID
IP Routing enabled
port1 connects to Linksys port1 via cross-over (not trunked)

For Linksys switch
VLAN1 (192.168.1.252)
VLAN2 (192.168.2.252)
port1 tagged with VLAN ID 2, connected to HP switch, trunk mode
port2 tagged with VLAN ID 1, connected to server, trunk mode
IP Routing has VLAN1 and VLAN2 subnets listed as local, as well as a 0.0.0.0/0 entry with Next Hop pointed to the server (192.168.1.1)

Server can ping both Linksys VLAN IPs, but not HP.  HP switch can ping VLAN2 IP of Linksys, and VLAN1 IP of Linksys is "unreachable on this VLAN".

I hope this will help in sorting the problem out.  Thanks!
0
 
LVL 21

Expert Comment

by:from_exp
ID: 22937713
hi!
trunking in hp is the same as tragging in linksys
so if port 1 on hp is not trunked, then linksys port 1 should be untagged for vlan 2
the same for server - port 2 should be untagged in vlan 1.
0
 
LVL 21

Expert Comment

by:from_exp
ID: 22937716
so the first thing you should archive - workstation should be able to ping linksys
0
 

Author Comment

by:TBG_Perth
ID: 22941737
Hi exp,

Yes, I can ping the Linksys from workstations connected to HP, but only the IP of the same subnet.  Vise versa for the server from Linksys side.  What's next?  Seems so close to solving this problem!

Thanks.
0
 

Author Comment

by:TBG_Perth
ID: 22941837
I am increasing the point value because its not as simple as I first thought.
0
 
LVL 21

Expert Comment

by:from_exp
ID: 22943071
ok, please provide me with ip settings (screenshots) from your workstation and server
Please also show me screenshots from routing sections of your linksys.
I would like to be 200% sure, that we haven't missed something.
Because at this point everything should work, so I suppose some small nasty typo is hiding from us
0
 

Author Comment

by:TBG_Perth
ID: 22946717
The Linksys web interface just went down..  I can ping it, but the time varies greatly from 160ms back to 1ms..  Someone was working on the server just now, so not sure if its related.  Will restart the switch later today and see if I can get it back.
0
 

Author Comment

by:TBG_Perth
ID: 22947069
Here are the details, minus the info from the Linksys.  Will grab those soon.
HP-IP--800x600-.jpg
HP-Ports--800x600-.jpg
HP-VLAN--800x600-.jpg
Workstation-IP--800x600-.jpg
Server-IP.jpg
0
 

Author Comment

by:TBG_Perth
ID: 22947210
Here are the Linkysys info..

What am I missing?  
Linksys-IP.jpg
Linksys-IP-Routing.jpg
0
 
LVL 21

Accepted Solution

by:
from_exp earned 1600 total points
ID: 22949339
Hi!
thanks for screenshots.
1. I would say, that you have to reconfigure default gw on workstation from 251 to 252, because hp does not route anything.
2. please allow autoconfiguration for ports on hp, I would say 10Full is very ancient mode.... should be auto and they should negotiate 100Full normally
3. server has default to 8.2, possibly to firewall and second nic has 1.1 address, so you have to add static route for server:
          route add -p 192.168.2.0 mask 255.255.255.0 192.168.1.252


hopefully it should work after all :)
0
 

Author Closing Comment

by:TBG_Perth
ID: 31515848
Thanks exp for all your help.  Changing the gateway on workstation solved the issue!  
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

We've been using the Cisco/Linksys RV042 for years as: - an internet Gateway - a site-to-site VPN device - a leased line site-to-site subnet-to-subnet interface (And, here I'm assuming that any RV0xx behaves the same way as an RV042.  So that's …
This tutorial will go through the steps required to write a script that will back up the configuration settings of a HP-ProCurve switch. You will need to get the following things to follow this tutorial: Telnet Scripting Tool e.g. TST10.exe …
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question