Switches, Hubs, and Modems
1753774 Members
6788 Online
108799 Solutions
New Discussion юеВ

Re: HP 5412zl IP Routing problem

 
BeKTra Admin
New Member

HP 5412zl IP Routing problem

I'm planning to create a few VLAN to free up some IP's on our main IP range, so we bought this switch to do the job.

At first I just wanted to see if I could get the VLANs and routing between them to work and no I couldn't.

The Default VLAN seems to route to the other VLANs with out problem. But the created VLANs can only Ping the Gateway adresses for the VLANs and the Gateway of the Firewall.

IP routing is enabled, VLANs have manually configured IP's, ip route 0.0.0.0/0 x.x.x.x configured to our main firewall. Even tried out Default VLAN as ip route 0.0.0.0/0 x.x.x.x, but no routing between VLANs.

I have updated the firmeware, rebooted and still no routing between VLANs. But when a computer from Default VLAN connect to another PC on another VLAN, then that PC can Ping the PC on the Default VLAN.

What is missing here?
6 REPLIES 6
Gary Chu PQ
Occasional Advisor

Re: HP 5412zl IP Routing problem

I'm a newbie to vlan and networking but when i was setting up the same scenario as you using the same switch i ran into the same issue, what worked for me was adding routes to our firewall for the other vlans using the switch IP as their default gateway since we had the default vlan using the firewall interface as the default gateway.

cenk sasmaztin
Honored Contributor

Re: HP 5412zl IP Routing problem

hi please check pc default gateway address

pc default gateway address must be vlan ip address

for example
for vlan 1 pc
ip adress 192.168.249.10
subnet mask 255.255.255.0
default gateway 192.168.249.145

for vlan 240 pc
ip address 192.168.240.10
subnet mask 255.255.255.0
default gateway 192.168.240.50

cenk
cenk

Yan Henrichon
Frequent Advisor

Re: HP 5412zl IP Routing problem

In my case, I had the same issue few months ago and I had to add a route on my servers.

My management and server vlan was in 172.16.x.x network and my pc's were in multiple 10.x.0.0 vlans.

hth.
Pieter 't Hart
Honored Contributor

Re: HP 5412zl IP Routing problem

please change the destinations in :
>>> ip default-gateway 192.168.249.50
>>> ip route 0.0.0.0 0.0.0.0 192.168.249.195

the default gateway is neccessary for routing between the VLAN's on this switch, so if you don't have an external router, this should point to one of the local addresses.
The default route (0.0.0.0) is used for external connectivity (router to internet)

good luck
Pieter
Dmitry G. Spitsyn
Trusted Contributor

Re: HP 5412zl IP Routing problem

Hi !

1. Your 5412zl is a swouter (switch/router) now.
It doesn't need a default gateway.
To route an ip packet to unknown address it needs a default route via an external router.
To unset the default gateway:
#config
#no ip default-gateway 192.168.249.50

2. In your configuration a default route points to an internal ip address of VLAN 1 (192.168.249.195). It should point to an external router (if any).
Please correct it.

Then try:
#sh ip route
You will see ip routes to all the connected ip interfaces of your VLANs.

Good luck,
Dmitry
Pieter 't Hart
Honored Contributor

Re: HP 5412zl IP Routing problem

Dimitry is partially correct.
either you do the routing between your local VLAN's internally in the switch, or use an external router for this.

However the external router will NOT automatically route between your vlan's as Dimitry suggests. It wil have to be configured for this AND it wil have to know about the used vlan's

As you are still building up knowledge about networks, I would suggest keeping the external router ignorant for most of your network, and continue go the current path using a local router (router funcion built into he switch) for your local subnets.