Switches, Hubs, and Modems
cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with HP Procurve 5412 routing

JMHH
Occasional Visitor

Problem with HP Procurve 5412 routing

Hello all

I have a 5412 with IP routing enabled and 2x VLANs.

The problem I am experiencing is that traffic between VLAN1(172.16.0.0/16) and VLAN2(192.168.0.0/24) pass through the default gateway (192.168.0.254).

Both VLANs have IP address specified.

I thought inter VLAN traffic would bypass the default gateway. Is this correct?

Thank you for your help

James


Destination Gateway VLAN Type Sub-Type Metric Dist.
------------------ --------------- ---- --------- ---------- ---------- -----
0.0.0.0/0 192.168.0.254 1 static 1 1
127.0.0.0/8 reject static 0 0
127.0.0.1/32 lo0 connected 1 0
172.16.0.0/16 New subnet 2 connected 1 0
192.168.0.0/24 DEFAULT_VLAN 1 connected 1 0


3 REPLIES
Patrick Terlisten
Honored Contributor

Re: Problem with HP Procurve 5412 routing

Hello James,

which ip interfaces have you created? You need a ip interface in each VLAN.

Regards,
Patrick
Best regards,
Patrick
Olaf Borowski
Respected Contributor

Re: Problem with HP Procurve 5412 routing

You need an IP address on each VLAN and the default gateway of the clients set to that address. You also need to enable routing on the switch (to route between vlans). Looks like you default gateway address is on VLAN 1?
What you need to do is the following (example for 3 VLANs:

VLAN 1 = 192.168.0.x/24
VLAN 2 = 172.16.0.0/24
VLAN 3 = 172.16.1.0/24

IP address on each VLAN = x.x.x.254 so for VLAN 2 it would be 172.16.0.254/24 and VLAN 3 = 172.16.1.254/24.
VLAN 1 is the subnet the default gateway sits on. IP on VLAN 1 = 192.168.0.254/24
The IP address of the switches gateway would be somethingk like 192.168.0.253/24.
If you now enable "ip routing" and add a statice route of "ip route 0.0.0.0/0 192.168.0.253" on the switch, everything should work. Don't forget to set the default gateway of the clients to the appropriate VLAN. For VLAN 2 the clients gateway is 172.16.0.254.
Patrick Terlisten
Honored Contributor

Re: Problem with HP Procurve 5412 routing

Hello James,

can you provide us a "show running-config" of your switch?

As we already said: You need an IP interface in each VLAN, the clients in this VLAN need this interface set as default-gateway. If IP routing is enabled, this settings should be sufficient.

Regards,
Patrick
Best regards,
Patrick