You are on page 1of 4

*********************STATIC NAT****************

2600-C2(config)#int fa0/0

2600-C2(config-if)#ip nat inside

2600-C2(config-if)#exit

2600-C2(config)#int fa0/1

2600-C2(config-if)#ip nat outside

2600-C2(config)#ip nat inside source static 192.168.10.1 132.132.25.100

2600-C2(config)#ip nat inside source static 192.168.10.2 132.132.25.150

2600-C2(config)#ip nat inside source static 192.168.10.3 132.132.25.200

Verify....

2600-C2#sh ip nat translations

2600-C2#debug ip nat

{ ping from inside pc to outside pc} {check output on router.}


 To stop debug

2600-C2#no debug ip nat

--To clear all translation

2600-C2#clear ip nat translation *

Remove static Nat....

2600-C2(config)#no ip nat inside source static 192.168.10.1 132.132.25.100

2600-C2(config)#no ip nat inside source static 192.168.10.2 132.132.25.150

2600-C2(config)#no ip nat inside source static 192.168.10.3 132.132.25.200

*********************Dynamic NAT****************

2600-C2(config)#int fa0/0
2600-C2(config-if)#ip nat inside
2600-C2(config-if)#exit
2600-C2(config)#int fa0/1
2600-C2(config-if)#ip nat outside
2600-C2(config-if)#exit

Implement Dynamic Nat


2600-C2(config)#access-list 10 permit 192.168.1.0 0.0.0.255
2600-C2(config)#ip nat pool surat 132.132.25.150 132.132.25.200
netmask 255.255.0.0
2600-C2(config)#ip nat inside source list 10 pool surat
Verify....

2600-C2#sh ip nat translations

2600-C2#debug ip nat

{ping from inside pc to outside pc} {check output on router.}

 To stop debug

2600-C2#no debug ip nat

--To clear all translation

2600-C2#clear ip nat translation *

To remove Dynamic Nat

2600-C2#clear ip nat translation *

2600-C2(config)#no access-list 10 permit 192.168.1.0 0.0.0.255


2600-C2(config)#no ip nat pool surat 132.132.25.150
132.132.25.200 netmask 255.255.0.0
2600-C2(config)#no ip nat inside source list 10 pool surat

***************** PAT *****************************

2600-C2(config)#int fa0/0
2600-C2(config-if)#ip nat inside
2600-C2(config-if)#exit
2600-C2(config)#int fa0/1
2600-C2(config-if)#ip nat outside
2600-C2(config-if)#exit

Implement PAT
2600-C2(config)#access-list 10 permit 192.168.1.0 0.0.0.255
2600-C2(config)#ip nat pool surat 132.132.25.150 132.132.25.150
netmask 255.255.0.0
2600-C2(config)#ip nat inside source list 10 pool surat OVERLOAD

Verify....

2600-C2#sh ip nat translations

2600-C2#debug ip nat

{ping from inside pc to outside pc} {check output on router.}

To stop debug

2600-C2#no debug ip nat

--To clear all translation

2600-C2#clear ip nat translation *

You might also like