For this, i realize a prototype with two routers like this :
My server---(My Network)
|
[ROUTER A]
s0
|
s0
[ROUTER B]
|
(Other Network)---Workstations
ROUTER A :
=========
This router Translate the server destination Ip Address of my companie.
Ip address 172.16.0.12 is translate in 10.145.254.1 (the server's ip
address in my network)
ip nat inside source static 10.145.254.1 172.16.0.12
!
interface Serial0
ip address 192.168.212.1 255.255.255.0
ip nat outside
!
interface TokenRing0
ip address 10.145.254.77 255.255.0.0
ip nat inside
!
ip route 10.144.244.0 255.255.255.0 192.168.212.254
ip route 10.144.250.0 255.255.255.0 192.168.212.254
ROUTER B :
=========
This router Translate the workstation source ip address of the other
companie :
the subnet 10.51.217.0 is translate in my 'ip address plan'
10.144.244.0
ip nat pool one-pool 10.144.244.1 10.144.244.254 netmask 255.255.255.0
ip nat inside source list 1 pool one-pool
!
interface Serial0
ip address 192.168.212.254 255.255.255.0
ip nat outside
clockrate 2000000
!
interface TokenRing0
ip address 192.168.211.1 255.255.255.0
ip nat inside
!
no ip classless
ip route 10.145.0.0 255.255.0.0 192.168.212.1
ip route 172.16.0.0 255.255.0.0 192.168.212.1
ip route 10.51.217.0 255.255.255.0 192.168.211.254
access-list 1 permit 10.51.217.0 0.0.0.255
So, could you say me if is possible to this with a single router ?
Thank for all.
> So, could you say me if is possible to this with a single router ?
For sure.
Pair:
ip nat ins static
ip nat outs static
Do not forget to add a static route for the local outside addresses.
--
Regards, Daniel Kharitonov ( dan "at" amtel "dot" ru)