cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1337
Views
0
Helpful
2
Replies

Default route decision based upon Source address

Kevin Melton
Level 2
Level 2

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 2

vladrac-ccna
Level 5
Level 5

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

devang_etcom
Level 7
Level 7

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