Use the following commands to configure NAT, which allows private IP addresses on a local network to be translated into public IP addresses before being sent over the internet:
| Command | Description |
|---|---|
ip nat [inside | outside] |
Specifies whether the NAT operation is applied to traffic entering or leaving the router’s network |
ip nat inside source {list {access-list-number | access-list-name}} interface type number [overload] |
Establishes dynamic source translation. Use the list keyword to specify an ACL to identify the traffic that will be subject to NAT. The overload option enables the router to use one global address for many local addresses |
ip nat inside source static local-ip global-ip |
Establishes a static translation between an inside local address and an inside global address |