RE: NAT using only a real interface?

From: Asbjorn Hojmark (Asbjorn@Hojmark.ORG)
Date: Thu Jan 18 2001 - 20:11:27 EST


> We have Cisco 2600 connected to internet using public IP
> 123.123.123.1/24 address on the eth0/0 port.
>
> Is possible, using only that ethernet port, create a intranet
> LAN using 192.168.1.0/24 space and natting on o the ethernet
> interface?

I think you can do this using a loopback. Something like:

interface Lo0
 desc *** FakeNet ***
 ip addr 192.168.255.1 255.255.255.252
 ip nat in

interface E0/0
 desc *** LAN ***
 ip addr 123.123.123.1 255.255.255.0
 ip addr 192.168.1.1 255.255.255.0 sec
 ip nat out
 ip policy route-map ViaLoopback

ip nat pool NatAddress 123.123.123.1 123.123.123.1 prefix 24
ip nat in source list 1 pool NatAddress over

access-list 1 permit 192.168.1.0 0.0.255.255

route-map ViaLoopback permit 10
 match ip address 1
 set ip next-hop 192.168.255.2

Mind you, I haven't tried this.

HTH,

--
Heroes: Vint Cerf & Bob Kahn, Leonard Kleinrock, Robert Metcalfe
Links : http://www.hojmark.org/networking/



This archive was generated by hypermail 2b29 : Sun Aug 04 2002 - 04:12:25 EDT