06-08-2006 11:23 AM - edited 03-03-2019 03:34 AM
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...
06-08-2006 11:57 AM
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
06-08-2006 12:09 PM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide