Nat config

download Nat config

If you can't read please download the document

Transcript of Nat config

  1. 1. TO CONFIGURE STATIC NAT------------ r3>en r3#conf t r3(config)#int serial 0/0 r3(config-if)#ip nat outside r3(config-if)#int fa 0/0 r3(config-if)#ip nat inside r3(config-if)#exit r3(config)#ip nat inside source static 10.0.0.2 20.0.0.3 r3(config)#exit r3#sh ip nat translations r3#sh ip nat statistics TO REMOVE STATIC NAT:---- r3#conf t r3(config)#no ip nat inside source static 10.0.0.2 20.0.0.3 HOW TO CONFIGURE DYNAMIC NAT--- r3>en r3#conf t r3(config)#int serial 0/0 r3(config-if)#ip nat outside r3(config-if)#int fa 0/0 r3(config-if)#ip nat inside r3(config-if)#exit r3(config)#ip nat pool partho 20.0.0.3 20.0.0.5 netmask 255.255.255.0 r3(config)#access-list 1 permit any r3(config)#ip nat inside source list 1 pool partho r3(config)#^Z r3#sh ip nat translations r3#sh ip nat statistics r3#clear ip nat translation * HOW TO REMOVE DYNAMIC NAT------------ r3>en r3#conf t r3(config)#no ip nat inside source list 1 pool partho forced r3(config)#no access-list 1 r3(config)#no ip nat pool partho HOW TO CONFIGURE DYNAMIC NAT WITH OVERLOAD (PAT- PORT ADDRESS TRANSLATION)--- r3>en r3#conf t r3(config)#int serial 0/0 r3(config-if)#ip nat outside r3(config-if)#int fa 0/0 r3(config-if)#ip nat inside r3(config-if)#exit r3(config)#ip nat pool partho 20.0.0.1 20.0.0.1 prefix-length 24 r3(config)#access-list 1 permit any r3(config)#ip nat inside source list 1 pool partho overload r3(config)#^Z r3#sh ip nat translations r3#sh ip nat statistics r3#clear ip nat translation *
  2. 2. HOW TO REMOVE DYNAMIC NAT WITH OVERLOAD (PAT- PORT ADDRESS TRANSLATION)--- r3>en r3#conf t r3(config)#no ip nat inside source list 1 pool partho forced r3(config)#no access-list 1 r3(config)#no ip nat pool partho