2013年5月31日 星期五

NAT -- Dynamic NAT pool


Dynamic NAT Lab for CCNA exam




//-----------------------------------------------------//
R1#
R1#
interface FastEthernet0/0
no sh
 ip address 192.168.1.254 255.255.255.0
 ip nat inside
!
interface FastEthernet0/1
no sh
 ip address 100.1.1.1 255.255.255.0
 ip nat outside
!
ip nat pool dynat 100.1.1.5 100.1.1.6 netmask 255.255.255.0
ip nat inside source list 10 pool dynat
access-list 10 permit 192.168.1.0 0.0.0.255
//-----------------------------------------------------//
R2#
R2#
interface FastEthernet0/1
no sh
 ip address 100.1.1.2 255.255.255.0
//-----------------------------------------------------//



dynat#ping 100.1.1.2 source fa0/0
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 100.1.1.2, timeout is 2 seconds:
Packet sent with a source address of 192.168.1.254
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/24/32 ms
dynat#


dynat#sh ip nat translations
Pro Inside global      Inside local       Outside local      Outside global
icmp 100.1.1.5:0       192.168.1.254:0    100.1.1.2:0        100.1.1.2:0
icmp 100.1.1.5:1       192.168.1.254:1    100.1.1.2:1        100.1.1.2:1
icmp 100.1.1.5:2       192.168.1.254:2    100.1.1.2:2        100.1.1.2:2
--- 100.1.1.5          192.168.1.254      ---                ---
dynat#


 

沒有留言:

張貼留言