QuestionQ25

VerifiedNetworking Configuration

A network client has an Ethernet interface (eth0) configured with an IP address in the 192.168.0.0/24 subnet. This subnet includes a router at IP address 192.168.0.1 that connects the subnet to the Internet. Which of the following commands can be run on the client to configure that router as its default gateway?

Choose two
Explanation

A default route can be installed with the legacy route command by specifying default, the gw keyword, the gateway address, and the interface. It can also be installed with ip route add default via followed by the gateway address. /etc/resolv.conf configures DNS resolvers rather than routing, and the other shown syntaxes are not valid commands for setting a default route.

Community Discussion

No comments yet. Be the first to start the discussion!