2013年2月10日日曜日

การกำหนดค่าของซิสโก้เป็นครั้งที่สองตัวอย่าง NAT

config นี้แสดงให้เห็นถึงสองครั้ง NAT ก็หมายความแหล่งที่มาและ nat ปลายทาง

กรณีที่ลูกค้าต่อไปนี้หมายถึง (192.168.1.1) จะเข้าถึงไปยังเซิร์ฟเวอร์ (192.168.10.12)


แหล่งที่อยู่ของลูกค้า (192.168.1.1) จะแปลให้ 172.16.1.1


ที่อยู่ destinaion เซิร์ฟเวอร์ (192.168.10.12) จะแปลให้ 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 件のコメント:

コメントを投稿