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

Special NAT

cwy
Level 1
Level 1

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

4 Replies 4

hmcdavid
Level 1
Level 1

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.

Hi,

Then is there any configuration can achieve my goal?

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.

Hi,

You means bind a secondary address in the Ethernet Interface?

Review Cisco Networking for a $25 gift card