200-301 Question 311
Select 2You are configuring static routes on a router in a dual-stack network. The router has two interfaces: GigabitEthernet0/0 with an IPv4 address of 192.168.1.1/24 and GigabitEthernet0/1 with an IPv6 address of 2001:db8:1::1/64. You need to add a static route to reach the IPv4 network 192.168.2.0/24 via the next-hop address 192.168.1.2, and an IPv6 static route to reach the IPv6 network 2001:db8:2::/64 via the next-hop address 2001:db8:1::2. Which configuration commands would you use?
- A
ip route 192.168.2.0 255.255.255.0 192.168.1.2
- B
ipv6 route 2001:db8:2::/64 GigabitEthernet0/1
- C
ipv6 route 2001:db8:2::/64 2001:db8:1::2
- D
ip route 192.168.2.0 255.255.255.0 GigabitEthernet0/0
- E
ipv6 route 2001:db8:2::/64 192.168.1.2
Show answer and explanation
Correct answers: A, C
Explanation
Static routes must be configured using the correct syntax and appropriate next-hop addresses. For IPv4, the 'ip route' command is used with the network, subnet mask, and next-hop IPv4 address. For IPv6, the 'ipv6 route' command is used with the network prefix and next-hop IPv6 address. Outgoing interfaces should not be used unless necessary and are not appropriate in this scenario.
- A. Correct.
This is the correct command to configure an IPv4 static route to the 192.168.2.0/24 network using the next-hop IPv4 address 192.168.1.2.
- B. Incorrect.
This command is incorrect because it specifies an outgoing interface (GigabitEthernet0/1) for the IPv6 static route. IPv6 static routes typically use the next-hop IPv6 address.
- C. Correct.
This is the correct command to configure an IPv6 static route to the 2001:db8:2::/64 network using the next-hop IPv6 address 2001:db8:1::2.
- D. Incorrect.
This command is incorrect because it specifies an outgoing interface (GigabitEthernet0/0) for the IPv4 static route. IPv4 static routes typically use the next-hop IPv4 address.
- E. Incorrect.
This command is incorrect because it attempts to configure an IPv6 static route using an IPv4 next-hop address, which is invalid.