NAT and backup default route

I want to accomplish the following: when traffic is routed over primary route (int fa1) then packets must be NATed onto fa1 address, but when traffic is routed over secondary route (int dialer 0) then it should be NATed onto dialer 0 address (dynamically assigned by ISP). Above is sample configuration which gives me undesirable result since all packets are translated onto dialer 0 interface address even if primary route trough fa1 interface is still active and it's the only default route. Now, I know that NAT occurs on the first match principle, but can I somehow tie it with active default route or something similar?

access-list 1 permit ip any access-list 2 permit ip any

ip nat inside source list 1 interface dialer 0 overload ip nat inside source list 2 interface fa1 overload

Reply to
Igor Mamuzic aka Pseto
Loading thread data ...

IOS NAT Load-Balancing for Two ISP Connections

formatting link
Configuring dynamic NAT with route-maps
formatting link

Reply to
Martin Gallagher

Cabling-Design.com Forums website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.