Link to home
Start Free TrialLog in
Avatar of TBG_Perth
TBG_Perth

asked on

routing VLANs

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!
Avatar of from_exp
from_exp
Flag of Latvia image

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
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>
Avatar of TBG_Perth
TBG_Perth

ASKER

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?
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
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!
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.
so the first thing you should archive - workstation should be able to ping linksys
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.
I am increasing the point value because its not as simple as I first thought.
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
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.
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
Here are the Linkysys info..

What am I missing?  
Linksys-IP.jpg
Linksys-IP-Routing.jpg
ASKER CERTIFIED SOLUTION
Avatar of from_exp
from_exp
Flag of Latvia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks exp for all your help.  Changing the gateway on workstation solved the issue!