Infrastructure

Interfaces are already marked ip nat inside and ip nat outside. A server at 10.1.1.20 on the inside network must be reachable from the Internet as 203.0.113.20. Which command creates the required translation?

Show the answer

Correct answerC. ip nat inside source static 10.1.1.20 203.0.113.20

AWhy not this: The rule expects the inside local address first; this order maps the public address as if it were the inside host.

BWhy not this: Outside source rules translate addresses of hosts on the outside, not an inside server's address.

CWhy this is right: Inside local 10.1.1.20 comes first and inside global 203.0.113.20 second, publishing the server.

DWhy not this: This translates an outside host using source 203.0.113.20 to 10.1.1.20; it does not publish the inside server.

A static inside source rule lists the inside local address first and the inside global address second. Traffic from the Internet to 203.0.113.20 is then translated to 10.1.1.20, and the server's replies leave as 203.0.113.20. Outside source rules translate the addresses of outside hosts instead.