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

HP Procurve 5406zl Ip Default Route

SimonPHawkins
Occasional Visitor

HP Procurve 5406zl Ip Default Route

Hi All,

On my procurve switches I would like to add the default route (as my firewall) so devices in VLANs can access the Internet. I know you can using the "ip route 0.0.0.0..." command to do this, but can you define a metric too?

I'd like to be able to define two default routes with separate metrics so if the primary internet gateway dies the switch will use the other, for example:

ip route 0.0.0.0/0 xxx.xxx.xxx.xxx 1
ip route 0.0.0.0/0 yyy.yyy.yyy.yyy 2

The above 1 and 2 are the metrics.

Thanks.
5 REPLIES
Olaf Borowski
Respected Contributor

Re: HP Procurve 5406zl Ip Default Route

This should work:
ip route 0.0.0.0/0 xxx.xxx.xxx.xxx dist 1
ip route 0.0.0.0/0 yyy.yyy.yyy.yyy dist 2

Otherwise, what version of software are you using?

Olaf

SimonPHawkins
Occasional Visitor

Re: HP Procurve 5406zl Ip Default Route

Thanks for that.

I've added both of the routes but when I do:

"show ip route" it just shows one default route (the primary one) with a distance of 1.

Would this be correct?

If the primary firewall fails, will the default route automatically change to the secondary route?

Thanks.
Olaf Borowski
Respected Contributor

Re: HP Procurve 5406zl Ip Default Route

Simon,

That is correct. If you use K.14.x software, you can even configure 2 static routes (default routes) with the same metric (distance) and enable load-sharing.

That said, you will run into another issue. The two different default gateways will reside on the same VLAN. How will you detect that one of the routers or link failed. For the route to be marked "invalid", the VLAN has to go down. There is no way for the 54xx to detect that the default gateway has gone down.

Hope this helps,

Olaf
SimonPHawkins
Occasional Visitor

Re: HP Procurve 5406zl Ip Default Route

Thanks for your help. :)
SimonPHawkins
Occasional Visitor

Re: HP Procurve 5406zl Ip Default Route

.