You are on page 1of 1

.

32.Steps on how to configure: Static and Dynamic NAT


Chat Conversation End-
STATIC NAT
1. Enter global configuration mode.
router#configure terminal
2. Configure the static NAT translation (this command can be used multiple
times depending on the number of static translations required). The overload
keyword enables the use of PAT.
router(config)#ip nat inside source static local-ip global-ip [overload]
3. Enter interface configuration mode for the inside interface.
router(config)#interface interface-id
4. Configure the interface as the inside NAT interface.
router(config-if)#ip nat inside
5. Enter interface configuration mode for the outside interface.
router(config-if)#interface interface-id
6. Configure the interface as the outside NAT interface.
router(config-if)#ip nat outside
7. Exit configuration mode.
router(config-if)#end

DYNAMIC NAT
1. Enter global configuration mode.
router#configure terminal
2. Configure the dynamic NAT address pool.
router(config)#ip nat pool pool-name start-ip end-ip {netmask netmask | prefix-
length prefix-length}
3. Configure a static access list to define the addresses to be translated.
router(config)#access-list access-list-number permit source [source-wildcard]
4. Configure the dynamic NAT translation. The overload keyword enables the
use of PAT.
router(config)#ip nat inside source list access-list-number pool pool-name
[overload]
5. Enter interface configuration mode for the inside interface.
router(config)#interface interface-id
6. Configure the interface as the inside NAT interface.
router(config-if)#ip nat inside
7. Enter interface configuration mode for the outside interface.
router(config-if)#interface interface-id
8. Configure the interface as the outside NAT interface.
router(config-if)#ip nat outside
9. Exit configuration mode.
router(config-if)#end

You might also like