Exam 200-301 | Question id=5378 | IP Services |
Which command would be used to establish static translation between an inside local address 192.168.144.25 and an inside global address 202.56.63.102?
A. |
router(config)#ip nat inside source static 192.168.144.25 202.56.63.102 | |
B. |
router(config)#ip source nat inside static local-ip 192.168.144.25 global-ip 202.56.63.102 | |
C. |
router(config)#ip nat static inside source 192.168.144.25 202.56.63.102 | |
D. |
router(config)#ip nat inside static source 192.168.144.25 202.56.63.102 |
To establish a static translation between an inside local address 192.168.144.25 and an inside global address 202.56.63.102, you would use the ip nat inside source static 192.168.144.25 202.56.63.102 command executed in global configuration mode. The correct format of the command is:
ip nat inside source static local-ip global-ip
This static configuration can be removed by entering the global no ip nat inside source static command.
Simply executing the ip nat inside source command will not result in NAT functioning. The NAT process also has to be applied correctly to the inside and outside interfaces. For example if, in this scenario the Fa0/0 interface hosted the LAN and the S0/0 interface connected to the Internet the following commands would complete the configuration of static NAT.
Router(config)#interface F0/0
Router(config-if)#ip nat inside
Router(config-if)#exit
Router(config)#interface S0/0
Router(config-if)#ip nat outside
The other options are incorrect because they are not valid Cisco IOS configuration commands. They all contain syntax errors.