Identify the statement that would create a default route using a gateway of 192.168.1.1.

Identify the statement that would create a default route using a gateway of 192.168.1.1.

Identify the statement that would create a default route using a gateway of 192.168.1.1.

A.
netstat -add default gw

B.
route default 192.168.1.1

C.
ip route default 192.168.1.1

D.
route add default gw 192.168.1.1

E.
ifconfig default gw 192.168.1.1eth0

Explanation/Reference:
From the man pages:
route – show / manipulate the IP routing table
       [-v]  [-A  family]  add [-net|-host] target [netmask Nm] [gw Gw] [metric N] [mss M] [window W] [irtt I] [reject] [mod] [dyn] [reinstate] [[dev] If]

where target is default and Gw is the IP address of the Gateway.



Leave a Reply 0

Your email address will not be published. Required fields are marked *