# Configuration

<figure><img src="https://1474932522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAgItg4KAZpnXjAFPWRf8%2Fuploads%2FuvNM8Rr8DbEn0b3E24wu%2FScreenshot%20from%202023-08-16%2015-34-34.png?alt=media&#x26;token=6b1a1f49-1c44-4a76-b7ea-51544b9030f2" alt=""><figcaption></figcaption></figure>

Define the 'inside' interface(s) connected to the internal network.

```
R1(config)# int g0/1
R1(config-if)# ip nat inside
```

Define the 'outside' interface(s) connected to the external network.

```
R1(config-if)# int g0/0
R1(config-if)# ip nat outside
```

Configure the one-to-one IP address mappings: `ip nat inside source static <inside-local-ip> <inside-global-ip>`

```
R1(config)# ip nat inside source static 192.168.0.167 100.0.0.1
R1(config)# ip nat inside source static 192.168.0.168 100.0.0.2
```

<figure><img src="https://1474932522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAgItg4KAZpnXjAFPWRf8%2Fuploads%2FLFB3ETGVigivZlzhAM22%2FScreenshot%20from%202023-08-16%2015-46-53.png?alt=media&#x26;token=ba541782-5e47-4d6a-9efc-9374c25cbc72" alt=""><figcaption></figcaption></figure>

* **Outside Local** - The IP address of the *outside* host, from the perspective of the local network.
* **Outside Global** - The IP address of the *outside* host, from the perspective of the outside network

{% hint style="info" %}
Unless **destination NAT** is used, Outside Local and Outside Global will be the same.
{% endhint %}

{% hint style="info" %}
**Inside/Outside** - Location of the host

**Local/Global** - Perspective
{% endhint %}

`clear ip nat translation *` - can be used to clear all NAT configurations.
