05-10-2004 07:59 AM - edited 03-02-2019 03:35 PM
Hi all,
I have prepared a NAT config. but when run it in a Cisco router, there is error. Below is the sample secnerio, please advise what's wrong with my config.
CONFIG
------------------------
interface FastEthernet 0
ip address 192.168.0.1 255.255.255.0
ip nat inside
interface Serial 0
ip address 192.168.168.1 255.255.255.252
encapsulation ppp
ip nat outside
!
ip nat pool NAT 192.168.0.2 192.168.0.2 netmask 255.255.255.0
ip nat inside source list 100 pool NAT overload
!
access-list 100 permit ip 192.168.0.0 0.0.0.255 host 192.168.1.1
----------------------
When the network 192.168.0.0/24 connect to host 192.168.1.1, all the traffic will translated to 192.168.0.2
The nat pool ip address is in the same subnet of the internal ip, please advise it is allowed or not.
Thanks
Andy
05-10-2004 10:52 AM
you can't translate on the same subnet, you must do it with differents subnet. you can't translate 192.168.0.0 to 192.168.0.0.
05-10-2004 04:56 PM
Hi,
Then is there any configuration can achieve my goal?
05-11-2004 03:31 AM
You can NAT such that the translated address is the address on one of the interface. You could therefore put the 192.168.0.2 address on the fastethernet interface, and nat to that.
05-11-2004 04:20 AM
Hi,
You means bind a secondary address in the Ethernet Interface?
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide