cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
800
Views
0
Helpful
4
Replies

Nat multiple networks

nitinnigam
Level 1
Level 1

Hi

What I want is, there are two IP addresses 1.1.1.1 and 2.2.2.1 and I want to translate these address to 3.3.3.1 using nat

If this is possible can someone send me the documentation or solution for this.

Thanks

4 Replies 4

jolmo
Level 4
Level 4

Try this:

access-list 1 permit 1.1.1.1 0.0.0.0

access-list 1 permit 2.2.2.1 0.0.0.0

ip nat pool XYZ 3.3.3.1 3.3.3.1

ip nat inside source list 1 pool XYZ overload

Then config 'ip nat inside' and 'ip nat outside' to your router NAT inside and outside interfaces

This config has been taken from:

http://www.cisco.com/en/US/tech/tk648/tk361/technologies_tech_note09186a0080094e77.shtml#topic5

HTH

saif_farooq
Level 1
Level 1

Dear All,

i am facing problem configuring nat.

we are connecting central site to remote site using dxx link.At both ends we have 1751 routers.Task is to let the computers on remote office to access the internet from cental site.Network at central site is 192.168.1.0,network at remote site is 192.168.4.0.Computers at central site connect to internet through a deicated connection using linyx server.

At central site a PC access the internet by simply defining the gateway of

Linyx server and no proxy server settings required at PC.

We have a number of free IPs in 192.168.1.0 network.Therefore, i am trying

to configure NAT to work in a way that when a remote office IP e.g 192.168.4.2

enters central site router,it is converted to e.g. 192.168.1.80(which is a free IP at central site)

and then it should be able to access internet.

But after a lot tries,,Computers at Rmote office are unable to access internet.

I have tried both static and dynamic mapping.

One important thing,Remote office users can access the Mail server which is hosted at central office

on the internet but unable to browse the net.

Configuration:

interface FastEthernet0/0

ip address 192.168.1.81 255.255.255.0

ip nat outside

!

interface Serial0/0

ip address 192.168.100.1 255.255.255.0

ip nat inside

!

ip nat inside source static 192.168.4.2 192.168.1.85

Sample Debug output:

May 20 17:49:24 PST: NAT*: s=192.168.4.2->192.168.1.84, d=192.168.1.3 [31548]

May 20 17:49:24 PST: NAT: s=192.168.1.3, d=192.168.1.84->192.168.4.2 [11908]

May 20 17:49:24 PST: NAT: s=192.168.1.3, d=192.168.1.84->192.168.4.2 [11909]

May 20 17:49:24 PST: NAT*: s=192.168.4.2->192.168.1.84, d=192.168.1.3 [31551]

May 20 17:49:24 PST: NAT: s=192.168.1.3, d=192.168.1.84->192.168.4.2 [11910]

May 20 17:49:24 PST: NAT*: s=192.168.4.2->192.168.1.84, d=192.168.1.3 [31553]

May 20 17:49:24 PST: NAT: s=192.168.1.3, d=192.168.1.84->192.168.4.2 [11911]

Please Guide.

Saif

Since you used the same network as is on your e0 interface the problem is probably that the router is not responding arp requests for the nat'd address. If you had used a different network you would have used routing to send the packets to the router doing the nat. But since you need to use the same network as the e0 is on you must use its address. Your text said 192.168.1.80 but your config says 192.168.1.85. In either case change your ip nat statement to use the e0 address.

ip nat inside source 192.168.4.2 interface e0

Note that fpr Natting, traffic should flow from an nat inside interface, to a nat outside interace. check your topology and see if the way traffic is flowing from the remote site matches this.