LPI
201-450 · Question #140
201-450 Question #140: Real Exam Question with Answer & Explanation
The correct answer is A. Run route add default gw 192.168.0.1 eth1.. See the full explanation below for the reasoning.
Question
A network client has an ethernet interface configured with an IP address in the subnet 192.168.0.0/24. This subnet has a router, with the IP address 192.168.0.1, that connects this subnet to the Internet. What needs to be done on the client to enable it to use the router as its default gateway?
Options
- ARun route add default gw 192.168.0.1 eth1.
- BRun route add gw 192.168.0.1 eth1.
- CRun ifconfig eth0 defaultroute 192.168.0.1.
- DAdd "defaultroute 192.168.0.1" to /etc/resolv.conf.
- ERun route add defaultgw=192.168.0.1 if=eth0.
Community Discussion
No community discussion yet for this question.