200-301 Question 313
Single answerYou are configuring static routes on a router to ensure connectivity between two directly connected networks. The router has the following interfaces:
- GigabitEthernet0/0 with IP 192.168.1.1/24 connected to the 192.168.1.0/24 network
- GigabitEthernet0/1 with IP 10.1.1.1/24 connected to the 10.1.1.0/24 network. You also need to configure a static route to reach the 172.16.0.0/16 network via the next-hop IP 10.1.1.2. Which of the following static route commands will correctly accomplish this?
- A
ip route 172.16.0.0 255.255.0.0 10.1.1.2
- B
ip route 172.16.0.0 255.255.255.0 GigabitEthernet0/1
- C
ipv6 route 172.16.0.0/16 10.1.1.2
- D
ip route 10.1.1.0 255.255.255.0 172.16.0.1
Show answer and explanation
Correct answer: A
Explanation
When configuring an IPv4 static route, you must use the 'ip route' command followed by the destination network, subnet mask, and the next-hop IP address or outgoing interface. In this scenario, the destination network is 172.16.0.0/16, the subnet mask is 255.255.0.0, and the next-hop IP address is 10.1.1.2. Option 1 correctly specifies all the required parameters.
- A. Correct.
This is the correct command for configuring a static route for an IPv4 network (172.16.0.0/16) using the next-hop IP address 10.1.1.2. The subnet mask 255.255.0.0 correctly represents the /16 prefix.
- B. Incorrect.
This command is incorrect because it specifies the wrong subnet mask (255.255.255.0 instead of 255.255.0.0) and uses an outgoing interface instead of the next-hop IP address.
- C. Incorrect.
This command is incorrect because it uses the 'ipv6 route' keyword, which is used for IPv6 routing, not IPv4.
- D. Incorrect.
This command is incorrect because it specifies the wrong destination network (10.1.1.0/24 instead of 172.16.0.0/16) and uses an invalid next-hop IP address.