Wednesday, 2 May 2012

Dynamic NAT






ON ROUTER 1

access-list 1 permit 192.168.0.0 0.0.0.255

ip nat pool ranjeet 10.0.0.1 10.0.0.2 netmask 255.0.0.0
ip nat inside source list 1 pool ranjeet

ip route 0.0.0.0 0.0.0.0 FastEthernet0/0

interface FastEthernet0/0
 ip address 192.168.1.1 255.255.255.0
 ip nat outside

interface FastEthernet0/1
 ip address 192.168.0.254 255.255.255.0
 ip nat inside

to verify

Router#sh ip nat translations
Pro  Inside global     Inside local       Outside local      Outside global
icmp 10.0.0.1:1        192.168.0.1:1      192.168.2.3:1      192.168.2.3:1
icmp 10.0.0.1:2        192.168.0.1:2      192.168.2.3:2      192.168.2.3:2
icmp 10.0.0.1:3        192.168.0.1:3      192.168.2.3:3      192.168.2.3:3
icmp 10.0.0.1:4        192.168.0.1:4      192.168.2.3:4      192.168.2.3:4
icmp 10.0.0.1:5        192.168.0.1:5      192.168.2.3:5      192.168.2.3:5
icmp 10.0.0.1:6        192.168.0.1:6      192.168.2.3:6      192.168.2.3:6
icmp 10.0.0.1:7        192.168.0.1:7      192.168.2.3:7      192.168.2.3:7
icmp 10.0.0.1:8        192.168.0.1:8      192.168.2.3:8      192.168.2.3:8
icmp 10.0.0.2:10       192.168.0.2:10     192.168.2.3:10     192.168.2.3:10
icmp 10.0.0.2:11       192.168.0.2:11     192.168.2.3:11     192.168.2.3:11
icmp 10.0.0.2:12       192.168.0.2:12     192.168.2.3:12     192.168.2.3:12
icmp 10.0.0.2:13       192.168.0.2:13     192.168.2.3:13     192.168.2.3:13
icmp 10.0.0.2:14       192.168.0.2:14     192.168.2.3:14     192.168.2.3:14
icmp 10.0.0.2:15       192.168.0.2:15     192.168.2.3:15     192.168.2.3:15
icmp 10.0.0.2:16       192.168.0.2:16     192.168.2.3:16     192.168.2.3:16
icmp 10.0.0.2:9        192.168.0.2:9      192.168.2.3:9      192.168.2.3:9



THIS POOL WILL SUPPORT ONLY 2 PCs for NAT.

TWO CONCURRENT CONNECTIONS ARE SUPPORTED BY ROUTER1

No comments:

Post a Comment