Thursday, May 6, 2010

NETWORK ADDRESS TRANSLATION IN ROUTER

1. Label Interfaces
2. Identify Internal IP addresses to be translated
3. Enable NAT Overload

CONFIGURING STATIC NAT

Router(config)# interface ethernet 0
Router(config-if)# ip nat inside
Router(config-if)# exit

Router(config)# interface serial 0
Router(config-if)# ip nat outside

Router(config)# ip nat inside source static 192.168.1.1 200.200.200.1


CONFIGURING Dynamic NAT

Router(config)# interface ethernet 0
Router(config-if)# ip nat inside
Router(config-if)# exit

Router(config)# interface serial 0
Router(config-if)# ip nat outside


Router(config)# access-list 1 permit host 192.168.1.10
Router(config)# access-list 1 permit host 192.168.1.11
Router(config)# ip nat pool nat-pool 200.200.200.2 200.200.200.3 netmask 255.255.255.0
Router(config)# ip nat inside source list 1 pool nat-pool

PAT Configuration

Router(config)# interface ethernet 0
Router(config-if)# ip nat inside
Router(config-if)# exit

Router(config)# interface serial 0
Router(config-if)# ip nat outside

Router(config)# access-list 1 permit host 192.168.1.10
Router(config)# access-list 1 permit host 192.168.1.11

Router(config)# ip nat pool nat-pool 200.200.200.2 200.200.200.2 netmask 255.255.255.0

Router(config)# ip nat inside source list 1 pool nat-pool overload


Router# clear ip nat translation

No comments:

Post a Comment