CCNA Routing and Switching (legacy) — Question 165

Which command can you enter to set the default route for all traffic to an interface?

Answer options

Correct answer: A

Explanation

The correct command is A, as it sets a default route (0.0.0.0/0) pointing to the specified interface, GigabitEthernet0/1. Option B is related to redistributing default routes in routing protocols, which does not set a default route. Option C incorrectly uses a subnet mask of 255.255.255.255 which does not define a valid default route, and option D is also incorrect as it does not configure a default route but rather pertains to routing protocol configurations.