Refer to the exhibit. R1 is performing NAT for the 10.1.1.0/24 network, and R2 is performing NAT for the 192.168.1.2/24 network. What would be valid destination IP address for HostA to put in its IP header when communicating with the web server?
-
10.1.1.1
-
172.30.20.2
-
192.168.1.2
-
255.255.255.255
B
Correct answer
Explanation
When HostA communicates with the web server, it must use the web server's actual public IP address (172.30.20.2) as the destination. R1 performs NAT on the 10.1.1.0/24 network, translating HostA's private source address to a public address. R2 performs NAT for the 192.168.1.0/24 network on the server side. The destination IP in HostA's IP header remains the web server's public address throughout; only the source address gets translated by NAT.