200-301 · Question #1047
Which command creates a static NAT binding for a PC address of 10.1.1.1 to the public routable address 209.165.200.225 assigned to the PC?
The correct answer is A. R1(config)#ip nat inside source static 10.1.1.1 209.165.200.225. A static NAT binding, which maps a private internal IP address to a public external IP address, is created using the ip nat inside source static command.
Question
Options
- AR1(config)#ip nat inside source static 10.1.1.1 209.165.200.225
- BR1(config)#ip nat outside source static 209.165.200.225 10.1.1.1
- CR1(config)#ip nat inside source static 209.165.200.225 10.1.1.1
- DR1(config)#ip nat outside source static 10.1.1.1 209.165.200.225
How the community answered
(22 responses)- A95% (21)
- B5% (1)
Why each option
A static NAT binding, which maps a private internal IP address to a public external IP address, is created using the `ip nat inside source static` command.
The `ip nat inside source static` command correctly establishes a one-to-one static mapping between an internal local IP address (the PC's private address 10.1.1.1) and an external global IP address (the public address 209.165.200.225). This command specifies the inside local IP first, followed by the inside global IP.
The `ip nat outside source static` command is used for mapping outside local to outside global addresses, which is not the scenario described for a PC behind a NAT device, and the order of addresses is incorrect for the stated purpose.
While `ip nat inside source static` is the correct command prefix, the order of the IP addresses is reversed; the inside local address (10.1.1.1) should come before the inside global address (209.165.200.225).
The `ip nat outside source static` command is for a different NAT scenario and not for mapping an internal private PC address to a public address.
Concept tested: Static NAT configuration
Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ipaddr_nat/configuration/xe-3s/nat-xe-3s-book/iadnat-static-nat.html
Topics
Community Discussion
No community discussion yet for this question.