Cisco Systems Default gateway based on interface IP?

Bookmark this page:  YahooMyWeb Yahoo!  Google Google  Windows Live Favorites Windows Live  del.icio.us del.icio.us  digg digg  Add to Netscape Netscape
Subject Author Date
Default gateway based on interface IP? Rodre 09-08-08
Posted by Rodre on September 8, 2008, 8:03 pm
Please log in for more thread options


Hello,

Pardon me for any indiscretions, this is my first time posting to this
group. I have a Cisco 1720 router with IOS12.3(26) . It's Outside
interface has a Primary IP from one carrier, and a Secondary IP from
another carrier. I have it filtering and NAT-ing SMTP traffic for our
email server which sits in RFC 1918 address space behind it. I have
it's primary IP address published in our DNS as the primary MX record.
I would like to publish it's secondary IP in our DNS as the backup MX
record. The problem is that ISP 'A' won't route packets with the IP
address from ISP 'B' (secondary IP) and visa versa. I am guessing that
they both have egress filtering turned on and are silently dropping
packets that are not part of their address space. My question is:

How can I have packets destined for the Primary IP be routed back
through ISP 'A's default gateway, and have packets destined for the
Secondary IP be routed back through ISP 'B's default gateway? Is this
possible? If so what would the NAT rules look like as well?

Thanks in advance.

~Rodre

Posted by Thrill5 on September 8, 2008, 9:26 pm
Please log in for more thread options


Search Cisco's web site for "route-map". This will allow you to route
packets based on the source address of the packet instead of the
destination.


> Hello,
>
> Pardon me for any indiscretions, this is my first time posting to this
> group. I have a Cisco 1720 router with IOS12.3(26) . It's Outside
> interface has a Primary IP from one carrier, and a Secondary IP from
> another carrier. I have it filtering and NAT-ing SMTP traffic for our
> email server which sits in RFC 1918 address space behind it. I have
> it's primary IP address published in our DNS as the primary MX record.
> I would like to publish it's secondary IP in our DNS as the backup MX
> record. The problem is that ISP 'A' won't route packets with the IP
> address from ISP 'B' (secondary IP) and visa versa. I am guessing that
> they both have egress filtering turned on and are silently dropping
> packets that are not part of their address space. My question is:
>
> How can I have packets destined for the Primary IP be routed back
> through ISP 'A's default gateway, and have packets destined for the
> Secondary IP be routed back through ISP 'B's default gateway? Is this
> possible? If so what would the NAT rules look like as well?
>
> Thanks in advance.
>
> ~Rodre



Posted by Rodre on September 9, 2008, 7:49 pm
Please log in for more thread options


> Search Cisco's web site for "route-map". This will allow you to route
> packets based on the source address of the packet instead of the
> destination.
>

Hello,

Thanks for your reply. I tried this with no success. Can someone
provide a short example? Thanks.

~Rodre



Posted by Thrill5 on September 9, 2008, 10:18 pm
Please log in for more thread options


If you go to http://www.cisco.com and type "route-map" into the search
field, their are no less than 4 different results on the first result page
that return examples of using route-maps.


>> Search Cisco's web site for "route-map". This will allow you to route
>> packets based on the source address of the packet instead of the
>> destination.
>>
>
> Hello,
>
> Thanks for your reply. I tried this with no success. Can someone
> provide a short example? Thanks.
>
> ~Rodre
>
>



Similar ThreadsPosted
Default gateway based on interface IP? September 8, 2008, 8:03 pm
VPN Client is assigning the same IP Address to both the interface and the default gateway. January 2, 2008, 10:03 am
VPN Client is assigning the same IP Address to both the interface and the default gateway. January 2, 2008, 10:02 am
PIX 501 VPN/Default Gateway July 5, 2005, 7:55 am
PIX 501 dhcpd and default gateway September 1, 2005, 10:51 am
OK for Default Gateway to be in Different Subnet? September 20, 2005, 10:31 am
Changing default gateway over. December 19, 2005, 10:57 am
4006 Sup Eng III as a Default Gateway? February 7, 2006, 10:03 am
Default Gateway Problems October 2, 2006, 4:06 pm
ASA 5500 and VPN default gateway January 20, 2007, 1:46 pm
Default Gateway outside of subnet May 21, 2007, 10:28 am
Edge BGP Router as Default Gateway November 4, 2005, 11:58 am
route-map to override default gateway April 19, 2006, 7:22 pm
default gateway for pc's connected to 2960??? March 6, 2008, 8:44 am
Cisco PPTP VPN - default gateway (sharing local and VPN resources) May 5, 2006, 8:42 am