Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

default gateway backup

Hello,

I need to have two different default gateways for different network segments. I have 2 routers using hsrp to backup each other in routing vlan interfaces. These vlan interfaces are for internal network routing. Each router has a different default gateway for the different segments. I need to maintain the same default gateways if one of the routers goes down. How can I do this?

3 REPLIES

Re: default gateway backup

Hello,

I might not fully understand the question, but could you not just use two static routes on each HSRP router, pointing to the different segments ? Let's say your segment 1 has address space 192.168.1.0/24, and the gateway is 192.168.1.1, and your segment 2 has address space 192.168.2.0/24, with gateway 192.168.2.1. Now if you put:

ip route 192.168.1.0 255.255.255.0 192.168.1.1

ip route 192.168.2.0 255.255.255.0 192.168.2.1

on both HSRP routers, the gateways for both are always the same.

Does that make sense ?

Regards,

GNT

New Member

Re: default gateway backup

these are invalid route statements.

Re: default gateway backup

Hi there,

Again, I'm not 100% sure what your after but some policy routing may be the answer.

You can specify which next hop will be taken depending on the network that it arrived from. For example, anything from 192.168.2.x could be sent out of serial0/0 and anything from 192.168.1.x could be sent out of serial0/1.

If you want any more info - post away or check out http://www.cisco.com/univercd/cc/td/doc/product/software/ios122/122cgcr/fipr_c/ipcprt2/1cfindep.htm#wp1001398

Regards,

LH

Please rate all posts

121
Views
0
Helpful
3
Replies