- Introducing the IOS XE REST API
- Installing the Virtual Services Management Container
- Client Authentication
- Global Configuration Requirements
- Domain Name System (DNS) Server
- Network Time Protocol (NTP)
- IP Interface Configuration Requirements
- L2 Interfaces
- Bridge Domains
- Multicast
- VxLAN
- DHCP Server and Relay Agent
- Routing Protocol (OSPF, BGP, EIGRP) Requirements
- ACL Requirements for Subnets or IP Ranges
- Network Address Translation (NAT)
- Firewall Inspection Requirements
- License Requirements
- Memory and CPU Usage Report
- VRF
- Virtual Private Networks (SVTI and EzVPN)
- LISP
- QoS
- HSRP
Network Address Translation (NAT)
Resource Summary for NAT
The attribute “pat” (port address translation) in the REST API is equivalent to the Cisco IOS NAT term “overload”.
|
|
|||||
|---|---|---|---|---|---|
|
|
|
|
|
|
|
NAT Pool Resource
A NAT Pool models a pool of global IP addresses used during dynamic NAT translation.
History
|
|
|
Properties
|
|
|
|
|
|---|---|---|---|
First IP address of public IP address range in the format x.x.x.x |
|||
Last IP address of public IP address range in the format x.x.x.x |
|||
Retrieve a NAT Pool
Resource URI
|
|
|
|---|---|
Properties for Retrieve
|
|
|
|
|---|---|---|
First IP address of public IP address range in the format x.x.x.x |
||
Last IP address of public IP address range in the format x.x.x.x |
||
Example
Retrieve All NAT Pools
Resource URI
|
|
|
|---|---|
Properties for Retrieve All
|
|
|
|
|---|---|---|
First IP address of public IP address range in the format x.x.x.x |
||
Last IP address of public IP address range in the format x.x.x.x |
||
Example
Modify a NAT Pool
When updating the NAT pool, the old pool is deleted and a new NAT pool is created with the same pool-id, using new parameters.
Resource URI
|
|
|
|---|---|
Example
Delete a NAT Pool
Resource URI
|
|
|
|---|---|
Example
Create a NAT Pool
Resource URI
|
|
|
|---|---|
Example
Static NAT Rule Resource
A static NAT resource models static address translation where there is a one-to-one mapping between local and global IP addresses.
There are three types of one-to-one mapping NAT: static NAT, port static NAT, and network static NAT.
History
|
|
|
Properties
Retrieve a Static NAT Rule
Resource URI
|
|
|
|---|---|
Example
JSON Response of a Port Static NAT Rule
JSON Response of a Network Static NAT
Retrieve All Static NAT Rules
Resource URI
|
|
|
|---|---|
Properties for Retrieve All
JSON Representation
Example
Modify a Static NAT Rule
Resource URI
|
|
|
|---|---|
Example Request of a Static NAT Rule
Example Request of a Port Static NAT Rule
Example Request of a Network Static NAT
Delete a Static NAT Rule
Resource URI
|
|
|
|---|---|
Example
Create a Static NAT Rule
Resource URI
|
|
|
|---|---|
Example Request of a Static NAT Rule
Example Request of a Port Static NAT Rule
Example Request of a Network Static NAT
Dynamic NAT Rule Resource
Packets with source and/or destination addresses that pass the access list are dynamically translated using global addresses from the named pool.
History
|
|
|
Properties
JSON Representation
Retrieve a Dynamic NAT Rule
Resource URI
|
|
|
|---|---|
Example
Retrieve All Dynamic NAT Rules
Resource URI
|
|
|
|---|---|
Properties for Retrieve All
JSON Representation
Example
Modify a Dynamic NAT Rule
Resource URI
|
|
|
|---|---|
Example
Delete a Dynamic NAT Rule
Resource URI
|
|
|
|---|---|
Example
Create a Dynamic NAT Rule
Resource URI
|
|
|
|---|---|
Example
NAT Translations Resource
NAT Translation resource represents the active NAT translations.
- Retrieve all NAT translations: All relevant properties are shown in the tables below.
- Clear all NAT translations: Uses the POST operation and an action property described in Clear All NAT Translations .
History
|
|
|
Properties
|
|
|
|
|---|---|---|
|
|
|
|
|---|---|---|
The legitimate IP address that represents one or more inside local IP addresses to the outside world. |
||
IP address of an outside host as it appears to the inside network |
||
JSON Representation
Retrieve All NAT Translations
Resource URI
|
|
|
|---|---|
Example
Clear All NAT Translations
The NAT translations resource supports the clearing of active translations and all automatic bindings on the router. Use POST as shown below.
Note
The action property is applicable only for this operation.
Properties for the POST Operation
|
|
|
|
|
|---|---|---|---|
| Clears active translations and automatic bindings on the router. |
Feedback