You can follow the Following Steps:
1. Static NAT Configuration :
To configure static inside source address translation for the example shown in above Figure , the following need to be performed on the router:
- Specify the inside interface:
- Router(config)#interface ethernet0
- Router(config-if)# ip nat inside
- Specify the outside interface:
- Router(config)#interface serial0
- Router(config-if)# ip nat outside
- Enter static translation entry 1:
- Router(config)# ip nat inside source static 10.0.0.3 179.2.2.80
2. Dynamic NAT Configuration :
To configure dynamic inside source address translation for the example shown in above figure , the following need to be performed:
- Specify the inside interface:
- Router(config)#interface ethernet0
- Router(config-if)# ip nat inside
- Specify the outside interface:
- Router(config)#interface serial0
- Router(config-if)# ip nat outside
- Define an Access List to permit the inside local addresses to be translated 2:
- Router(config)#access-list 1 permit 10.0.0.0 0.0.0.255
- Define a pool of global addresses 3:
- Router(config)# ip nat pool figure1 179.2.2.65 179.2.2.90 netmask 255.255.255.224
- Enter dynamic translation entry 4:
- Router(config)# ip nat inside source list 1 pool figure1
3. Port NAT Configuration :
To configure NAT Overloading for the example shown in following figure , the following need to be performed on the router interfaces :
- Specify the inside interface:
- Router(config)#interface ethernet0
- Router(config-if)# ip nat inside
- Specify the outside interface:
- Router(config)#interface serial0
- Router(config-if)# ip nat outside
- Define an Access List to permit the inside local addresses to be translated:
- Router(config)#access-list 1 permit 10.0.0.0 0.0.0.255
- Enter dynamic translation entry 5:
- Router(config)# ip nat inside source list 1 interface serial0 overload
Note : Some Important Commsnd syntaxs which useful during NAT configuration on Routers.
1 Router(config)# ip nat inside source static [local IP address] [global IP address]
2 Router(config)# access-list [access list number] permit
3 Router(config)# ip nat pool [pool name] [start IP address] [end IP address] netmask [netmask]
4 Router(config)# ip nat inside source list [access list number] pool [pool name]
5 Router(config)# ip nat inside source list [access list number] interface [interface] overload
I hope this is Helpful to all.