Dual NAT Overload
iproute
Member Posts: 269
in CCNA & CCENT
Howdy all. I have a fairly simple problem with likely a simple answer. I've noticed that the 2611XM I'm working with won't readily accept a double NAT overload configuration. In short, I have two NAT outside links on which I'd like to do NAT overload (PAT). However, IOS seems to want to clear the previous NAT overload statement prior to accepting the second one. Is this a limitation or am I simply taking the wrong approach?
Basically I want to do the following: Two NAT outside links which I'd like to direct some traffic over one with the remainder of the traffic traversing the other.
Thanks in advance.
Basically I want to do the following: Two NAT outside links which I'd like to direct some traffic over one with the remainder of the traffic traversing the other.
Thanks in advance.
CCNP Progress
ROUTE [X] :: SWITCH [X] :: TSHOOT [X]
ROUTE [X] :: SWITCH [X] :: TSHOOT [X]
Comments
-
dtlokee Member Posts: 2,378 ■■■■□□□□□□Are you using the same access-list to determine what is allowed to be translated? This would confuse the router and it won't allow it. You may want to look into identity nat which uses a route map to control the nat process.The only easy day was yesterday!
-
iproute Member Posts: 269dtlokee wrote:Are you using the same access-list to determine what is allowed to be translated? This would confuse the router and it won't allow it. You may want to look into identity nat which uses a route map to control the nat process.CCNP Progress
ROUTE [X] :: SWITCH [X] :: TSHOOT [X] -
tech-airman Member Posts: 953iproute wrote:Howdy all. I have a fairly simple problem with likely a simple answer. I've noticed that the 2611XM I'm working with won't readily accept a double NAT overload configuration. In short, I have two NAT outside links on which I'd like to do NAT overload (PAT). However, IOS seems to want to clear the previous NAT overload statement prior to accepting the second one. Is this a limitation or am I simply taking the wrong approach?
Basically I want to do the following: Two NAT outside links which I'd like to direct some traffic over one with the remainder of the traffic traversing the other.
Thanks in advance.
iproute,
What is the purpose of the two inside global IP addresses? -
iproute Member Posts: 269tech-airman wrote:iproute wrote:Howdy all. I have a fairly simple problem with likely a simple answer. I've noticed that the 2611XM I'm working with won't readily accept a double NAT overload configuration. In short, I have two NAT outside links on which I'd like to do NAT overload (PAT). However, IOS seems to want to clear the previous NAT overload statement prior to accepting the second one. Is this a limitation or am I simply taking the wrong approach?
Basically I want to do the following: Two NAT outside links which I'd like to direct some traffic over one with the remainder of the traffic traversing the other.
Thanks in advance.
iproute,
What is the purpose of the two inside global IP addresses?CCNP Progress
ROUTE [X] :: SWITCH [X] :: TSHOOT [X] -
iproute Member Posts: 269As for configs, this is basically it:
Interface Configs
FA0/0 - ip nat inside
FA0/1 - ip nat outside (Dynamic IP Link)
S0/0 - ip nat outside (Static IP Link)
NAT Configs
ip nat inside source list 1 interface FastEthernet0/1 overload
ip nat inside source list 2 interface Serial0/0 overload
ACLs
1: permit 10.10.0.0, wildcard bits 0.0.255.255
2: permit 10.10.0.0, wildcard bits 0.0.255.255
Static Route for Testing
4.2.2.2 [1/0] via 8.8.8.8
Results
I can get out (ping) 4.2.2.2 via the router but the workstation hangs.
A sh ip nat tra | inc workstation_ip shows that the router is trying to do NAT, but it's showing the inside global address of the dynamic IP link instead of the static. I'm going to take a stab as to why and say that it may be because the two ACLs for the two NAT statements use the same block of inside local IP addresses, this could be causing some confusion.CCNP Progress
ROUTE [X] :: SWITCH [X] :: TSHOOT [X] -
iproute Member Posts: 269dtlokee wrote:You may want to look into identity nat which uses a route map to control the nat process.CCNP Progress
ROUTE [X] :: SWITCH [X] :: TSHOOT [X] -
dtlokee Member Posts: 2,378 ■■■■□□□□□□Are both of the Internet connections to the same ISP? You may have some issues providing static routes based on the two connections you have. Since your FastEthernet connection is dynamic, how are you creating a default route to the provider?
here is an example of using route map with natip nat inside source route-map FastEthernet interface FastEthernet0/1 ! ip nat inside source route-map Serial interafce serial0/0 ! access-list 1 permit 10.10.0.0 0.0.255.255 ! route-map FastEthernet permit 10 match interface FastEthernet0/1 match ip address 1 ! route-map ISP2_MAP permit 10 Match interface Serial0/0 Match ip address 1 !
The only easy day was yesterday! -
iproute Member Posts: 269dtlokee wrote:Are both of the Internet connections to the same ISP? You may have some issues providing static routes based on the two connections you have. Since your FastEthernet connection is dynamic, how are you creating a default route to the provider?
here is an example of using route map with natip nat inside source route-map FastEthernet interface FastEthernet0/1 ! ip nat inside source route-map Serial interafce serial0/0 ! access-list 1 permit 10.10.0.0 0.0.255.255 ! route-map FastEthernet permit 10 match interface FastEthernet0/1 match ip address 1 ! route-map ISP2_MAP permit 10 Match interface Serial0/0 Match ip address 1 !
Thanks for the response dtlokee. The two Internet connections are from two different ISPs (one being a DSL line and the other being a T1). For the DSL (the default route), we were provided with a device they call a DSL modem (which is actually a DSL bridge, a router, and a switch in one). This device is configured to obtain all of its WAN IP information automatically from the provider. We then set this "DSL Modem" as the default route on the router and perform NAT on the interface.
I'll look into trying your route map with NAT example. Thanks.CCNP Progress
ROUTE [X] :: SWITCH [X] :: TSHOOT [X] -
rossonieri#1 Member Posts: 799 ■■■□□□□□□□iproute wrote:Results
I can get out (ping) 4.2.2.2 via the router but the workstation hangs.
hi iproute,
what exactly does it mean hangs? like RTO or something?
i've used almost the same config as you are at home - but no problem so far.
1 using static ADSL line and the other is cable. default route using cable, doing NAT-overload in both interfaces, and make a telnet connection to remote-sites using the ADSL line with basic ip route.
hmmm... try to pass all connection in the ACL --> permit any - lets see how it works.
HTH.
Cheers.the More I know, that is more and More I dont know. -
iproute Member Posts: 269rossonieri#1 wrote:what exactly does it mean hangs? like RTO or something?CCNP Progress
ROUTE [X] :: SWITCH [X] :: TSHOOT [X] -
iproute Member Posts: 269rossonieri#1 wrote:hmmm... try to pass all connection in the ACL --> permit any - lets see how it works.
(config)#do show access-list 2 Standard IP access list 2 10 permit any
CCNP Progress
ROUTE [X] :: SWITCH [X] :: TSHOOT [X] -
dtlokee Member Posts: 2,378 ■■■■□□□□□□The problem may be that when it translates the addresses it is using the ip address provided by ISP 1 but sending it on the link to ISP 2, which sees this as a spoofed source address (since it's not in their address block) and drops it. That is why I suggested using a route map to determine what IP address to translate to based upon the exit interface.The only easy day was yesterday!
-
iproute Member Posts: 269dtlokee wrote:The problem may be that when it translates the addresses it is using the ip address provided by ISP 1 but sending it on the link to ISP 2, which sees this as a spoofed source address (since it's not in their address block) and drops it. That is why I suggested using a route map to determine what IP address to translate to based upon the exit interface.CCNP Progress
ROUTE [X] :: SWITCH [X] :: TSHOOT [X] -
dtlokee Member Posts: 2,378 ■■■■□□□□□□I love it when a plan comes together!The only easy day was yesterday!
-
rossonieri#1 Member Posts: 799 ■■■□□□□□□□iproute wrote:rossonieri#1 wrote:hmmm... try to pass all connection in the ACL --> permit any - lets see how it works.
(config)#do show access-list 2 Standard IP access list 2 10 permit any
hmmm...
in my config i just did an ip route somewhere via this interface - not via this ip,
not a very complicated thing to be done.
just my opinion.
but - i see it has worked for you now - good then.
cheers..the More I know, that is more and More I dont know. -
iproute Member Posts: 269rossonieri#1 wrote:iproute wrote:rossonieri#1 wrote:hmmm... try to pass all connection in the ACL --> permit any - lets see how it works.
(config)#do show access-list 2 Standard IP access list 2 10 permit any
hmmm...
in my config i just did an ip route somewhere via this interface - not via this ip,
not a very complicated thing to be done.
just my opinion.
but - i see it has worked for you now - good then.
cheers..CCNP Progress
ROUTE [X] :: SWITCH [X] :: TSHOOT [X]