Here's the situation:
I have a couple of clients connected to a switch and the switch is connected to a Cisco 2621.
The clients all have IP addresses in the range 192.168.1.0/24 and the router address is 192.168.1.254.
So, host A has the address 192.168.1.1 and host B has the address 192.168.1.2.
I would like to be able to get to each host using another address (172.16.1.1 for 192.168.1.1 for example).
So I need to be able to NAT this on the router. I have played about and used a loopback interface and assigned an address and used ip nat outside on there, though I couldn't really get it working.
Any ideas on how to do this would be great.
Thanks
Best Answer
This configuration is called 'NAT on a stick', as the router will forward to the same end of the stick.
Cisco has a good design technote here which explain how to use it with indeed a loopback, but also with route-maps. This could help you.
Here is the configuration they're using. With only a little ajustments you should be able to use it with your setup: