Wednesday, 2 May 2012

PAT
















 ON ROUTER1

access-list 1 permit 192.168.0.0 0.0.0.255

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

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: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.1:1024     192.168.0.2:1      192.168.2.3:1      192.168.2.3:1024
icmp 10.0.0.1:1025     192.168.0.2:2      192.168.2.3:2      192.168.2.3:1025
icmp 10.0.0.1:1026     192.168.0.2:3      192.168.2.3:3      192.168.2.3:1026
icmp 10.0.0.1:1027     192.168.0.2:4      192.168.2.3:4      192.168.2.3:1027

No comments:

Post a Comment