46.
Which of the following are not Linux DHCP clients? (Select two.)
- A.pump
- B.dhcpcd
- C.dhcpd
- D.dhclient
- E.ifconfig
- Answer & Explanation
- Report
Answer : [C, E]
Explanation :
Explanation :
47.
Which of the following types of information are returned by typing ifconfig eth0?
(Select two.)
- A.The names of programs that are using eth0
- B.The IP address assigned to eth0
- C.The hardware address of eth0
- D.The hostname associated with eth0
- E.The kernel driver used by eth0
- Answer & Explanation
- Report
Answer : [B, C]
Explanation :
Explanation :
When used to display information on an interface, ifconfig shows the hardware and IP addresses (options B and C) of the interface, the protocols (such as TCP/IP) bound to the interface, and statistics on transmitted and received packets. This command does not return information about programs using the interface (option A), the hostname associated with the interface (option D), or the kernel driver used by the interface (option E). |
48.
Which of the following programs is conventionally used to perform a DNS lookup?
- A.host
- B.dnslookup
- C.pump
- D.ifconfig
- E.netstat
- Answer & Explanation
- Report
Answer : [A]
Explanation :
Explanation :
The host program (option A) is a commonly used program to perform a DNS lookup. There is no standard dnslookup program (option B), although the nslookup program is a deprecated program for performing DNS lookups. pump (option C) is a DHCP client. ifconfig (option D) is used for configuration of networking parameters and cards. netstat (option E) is a general-purpose network diagnostic tool. |
49.
Which of the following commands should you type to add to host 192.168.0.10 a default
gateway to 192.168.0.1?
- A.route add default gw 192.168.0.10 192.168.0.1
- B.route add default gw 192.168.0.1
- C.route add 192.168.0.10 default 192.168.0.1
- D.route 192.168.0.10 gw 192.168.0.1
- E.route host gw 192.168.0.1
- Answer & Explanation
- Report
Answer : [B]
Explanation :
Explanation :
To add a default gateway of 192.168.0.1, the command would be route add default gw 192.168.0.1, as in option B. Specifying the IP address of the host system (as in options A, C, and D) is not necessary and in fact will confuse the route command. Although route provides a -host option, using host (without a dash), as in option E, is incorrect. Furthermore, option E omits the critical add parameter. |
50.
Which of the following commands might bring up an interface on eth1? (Select two.)
- A.dhclient eth1
- B.ifup eth1
- C.ifconfig eth1
- D.network eth1
- E.netstat -up eth1
- Answer & Explanation
- Report
Answer : [A, B]
Explanation :
Explanation :
The dhclient utility, if installed, attempts to configure and bring up the network(s) passed to it as options (or all networks if it’s given no options) using a DHCP server for guidance. Thus, option A may work, although it won’t work if no DHCP server is available. Option B applies whatever network options are configured using distribution-specific tools and brings up the network. Thus, options A and B both may work, although neither is guaranteed to work. Option C displays the network status of eth1, but it won’t activate eth1 if it’s not already active. There is no standard network utility in Linux, so option D won’t work. The netstat utility is a network diagnostic tool; it won’t bring up a network interface, so option E is incorrect. |