2013年2月10日日曜日

Cisco twice NAT sample configuration

This config shows twice nat, it means source and destination nat.

The following case means Client(192.168.1.1) is accessing to server(192.168.10.12) .


The client source address(192.168.1.1) is translated to 172.16.1.1 .


The server destinaion address(192.168.10.12) is translated to 192.168.15.12 .


-------------------------------------------------------------

!
interface FastEthernet0
ip address 192.168.1.254 255.255.255.0
ip nat inside
ip virtual-reassembly
duplex auto
speed auto
!
interface Vlan1
ip address 192.168.15.1 255.255.255.0
ip nat outside
ip virtual-reassembly
!
ip route 192.168.10.12 255.255.255.255 192.168.15.12
!
!
no ip http server
no ip http secure-server
ip nat inside source static 192.168.1.1 172.16.1.1
ip nat outside source static 192.168.15.12 192.168.10.12
!
!
!

-------------------------------------------------------------


0 件のコメント:

コメントを投稿