View Full Version : Can we configure two different interfaces of same router in nat so that both the ips
subhamsensit
01-29-2011, 09:56 AM
Can we configure two different interfaces of same router in nat so that both the ips connected to the interfaces translate to same outside ip
I tried to make the topology and configuration as followed
R1 int e1/0 10.10.0.6 (ip nat inside)
R1 int e 1/1 20.20.20.10 (ip nat inside )
R1 int e 1/3 192.168.76.80 (ip nat outside)
Nat configuration
R1(config)# ip nat inside source static 10.10.0.6 192.168.67.80
R1(config)#ip nat inside source static 20.20.20.10 192.168.67.80
% similar static entry (10.10.0.6 -> 192.168.67.80) already exists
HermeszData
01-31-2011, 11:25 PM
Can we configure two different interfaces of same router in nat so that both the ips connected to the interfaces translate to same outside ip
I tried to make the topology and configuration as followed
R1 int e1/0 10.10.0.6 (ip nat inside)
R1 int e 1/1 20.20.20.10 (ip nat inside )
R1 int e 1/3 192.168.76.80 (ip nat outside)
Nat configuration
R1(config)# ip nat inside source static 10.10.0.6 192.168.67.80
R1(config)#ip nat inside source static 20.20.20.10 192.168.67.80
% similar static entry (10.10.0.6 -> 192.168.67.80) already exists
simply put ... YES!
this is a named access list I use on the router in my home office which also gives limited access to the internet for my lab rack.
ip access-list standard HDT_NAT
remark Access list for NAT Control
permit 10.10.11.0 0.0.0.31
permit 10.10.11.192 0.0.0.31
permit 10.10.11.224 0.0.0.31
permit 172.16.0.0 0.0.0.1
permit 192.168.1.0 0.0.0.3
Assuming one has the necessary routes extablished on the routers, static or dynamic, applying ip nat inside will take care of everything.
I would recommend PAT (overload) when doing translations of this nature unless you have several static IPs to work with!
subhamsensit
02-02-2011, 11:17 AM
Thanks I will try PAT as u said
Why would you want to do this? Is it purely a lab exercise to see how NAT works?
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.