2013年5月31日 星期五

NAT -- PAT (Port Address Translation) Labs

NAT Lab (PAT , Port Address Translation)

//--------------------------------------------------//

R1#
R1#

interface FastEthernet0/0
no sh
 ip address 192.168.1.254 255.255.255.0
 ip nat inside
 ip virtual-reassembly
 duplex auto
 speed auto
!
interface FastEthernet0/1
no sh
 ip address 10.1.1.1 255.255.255.0
 ip nat outside
 ip virtual-reassembly
 duplex auto
 speed auto


ip nat pool pat-test 10.1.1.8 10.1.1.8 netmask 255.255.255.0
ip nat inside source list 10 pool pat-test overload
!
access-list 10 permit 192.168.1.0 0.0.0.255
!

//--------------------------------------------------//

R2#
R2#
interface FastEthernet0/1
 ip address 10.1.1.2 255.255.255.0
 duplex auto
 speed auto
!
//--------------------------------------------------//

R1#sh ip nat translations
Pro Inside global      Inside local       Outside local      Outside global
icmp 10.1.1.8:20614    192.168.1.10:20614 10.1.1.2:20614     10.1.1.2:20614
icmp 10.1.1.8:20870    192.168.1.10:20870 10.1.1.2:20870     10.1.1.2:20870
icmp 10.1.1.8:21126    192.168.1.10:21126 10.1.1.2:21126     10.1.1.2:21126
icmp 10.1.1.8:21382    192.168.1.10:21382 10.1.1.2:21382     10.1.1.2:21382
icmp 10.1.1.8:21638    192.168.1.10:21638 10.1.1.2:21638     10.1.1.2:21638
icmp 10.1.1.8:16774    192.168.1.11:16774 10.1.1.2:16774     10.1.1.2:16774
icmp 10.1.1.8:17286    192.168.1.11:17286 10.1.1.2:17286     10.1.1.2:17286
icmp 10.1.1.8:17542    192.168.1.11:17542 10.1.1.2:17542     10.1.1.2:17542
icmp 10.1.1.8:17798    192.168.1.11:17798 10.1.1.2:17798     10.1.1.2:17798
icmp 10.1.1.8:18054    192.168.1.11:18054 10.1.1.2:18054     10.1.1.2:18054
R1#]




沒有留言:

張貼留言