conditional NAT

From: fferrer10@vodafone.es
Date: Tue Jan 04 2005 - 15:44:59 GMT-3


Hi group:

Anyone knows a way to configure some form of "conditional natting"?
This is, i have 1 router with 2 adsl interfaces to connect to internet,
and i want to load balance the traffic using both the interfaces...then
i thought: well, maybe using policy based routing i could redirect a
group of internal subnets to one interface and the another group to the
other configuring a route-map like this one:

route-map salidaeth permit 10
 match ip address 101
 set default interface atm0/0 atm0/1
!
route-map salidaeth permit 20
 description toINTERNET
 match ip address 102
 set default interface atm0/1 atm0/0

Where 101, 102 are ACL matching the subnets i said...

However, this router must also do the natting, and i only have the 2
public ip addresses of the adsl interfaces to use, and i must assure
that if one adsl interface goes down, all the traffic use the other adsl
interface to go to internet. Also i can't use BGP on this router.

Then, i'm wondering if there is any way to nat the subnets matching 101
acl to the ip of atm0/0 if this atm0/0 is up, and to nat them to the ip
of the atm0/1 if that it is down (and similarly with the other group of
subnets).

Regards



This archive was generated by hypermail 2.1.4 : Wed Feb 02 2005 - 22:10:18 GMT-3