Wednesday, 2 May 2012

Static NAT














ON R1

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

ip nat inside source static 192.168.0.1 10.0.0.1
ip nat inside source static 192.168.0.2 10.0.0.2

ip route 0.0.0.0 0.0.0.0 FastEthernet0/0 


to verify

Router(config)#do sh ip nat tra
Pro  Inside global     Inside local       Outside local      Outside global
icmp 10.0.0.2:10       192.168.0.2:10     11.0.0.1:10        11.0.0.1:10
icmp 10.0.0.2:11       192.168.0.2:11     11.0.0.1:11        11.0.0.1:11
icmp 10.0.0.2:12       192.168.0.2:12     11.0.0.1:12        11.0.0.1:12
icmp 10.0.0.2:1        192.168.0.2:1      10.0.0.1:1         10.0.0.1:1
icmp 10.0.0.2:2        192.168.0.2:2      10.0.0.1:2         10.0.0.1:2
icmp 10.0.0.2:3        192.168.0.2:3      10.0.0.1:3         10.0.0.1:3
icmp 10.0.0.2:4        192.168.0.2:4      10.0.0.1:4         10.0.0.1:4
icmp 10.0.0.2:5        192.168.0.2:5      11.0.0.1:5         11.0.0.1:5
icmp 10.0.0.2:6        192.168.0.2:6      11.0.0.1:6         11.0.0.1:6
icmp 10.0.0.2:7        192.168.0.2:7      11.0.0.1:7         11.0.0.1:7
icmp 10.0.0.2:8        192.168.0.2:8      11.0.0.1:8         11.0.0.1:8
icmp 10.0.0.2:9        192.168.0.2:9      11.0.0.1:9         11.0.0.1:9


ON R2

interface FastEthernet0/0
 ip address 192.168.1.2 255.255.255.0
 ip nat outside

interface FastEthernet0/1
 ip address 192.168.2.254 255.255.255.0
 ip nat inside

ip nat inside source static 192.168.2.1 11.0.0.1
ip nat inside source static 192.168.2.2 11.0.0.2

ip route 0.0.0.0 0.0.0.0 FastEthernet0/0 

No comments:

Post a Comment