Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

Default route decision based upon Source address

I have a router that has 2 routes (Route A and Route B) to 0.0.0.0.

I have a Mail Server and set the Gateway of the Mail Server as the router address, how can I manipulate traffic originating from the Mail Server to be directed out to Route A only ( necessary because the NAT translations for the public address exist across Route A).

I would greatly appreciate any recommendations on this..I have tried making this work twice without success...the router wants to load balance the two default routes...

2 REPLIES

Re: Default route decision based upon Source address

Hello this can be done using PBR (policy based routing).

You can route based on the source

!(match subnet where the mail traffic is )

access-list 1 permit 10.0.0.0 0.255.255.255

route-map mail-out

match ip address 1

set ip next-hop IPofrouterA

interface (incoming traffic)

ip policy route-map mail-out

check the link:

http://www.cisco.com/univercd/cc/td/doc/product/software/ios120/12cgcr/qos_c/qcpart1/qcpolicy.htm

For redundancy you need a different feature:

http://www.cisco.com/en/US/tech/tk364/technologies_configuration_example09186a0080211f5c.shtml

but this depends on your network design (interface types, configs , etc)

HTH,

if it does please rate this post.

vlad

Re: Default route decision based upon Source address

here you are using the default routes with the same AD thats why it is using loadbalancing...if you want to let your data traffic out to router A only then you need to confiugre the PBR as per vlad said...

first of all you have to configur accesslist which include host ip as mail server and then you have to configure routmaps which match the accesslist statement and the set the next hop as your router A...

i think this will help you to clear idea

rate this post if it helps

regards

Devang

435
Views
0
Helpful
2
Replies
CreatePlease to create content