- Home
- Server Administration
- LPIC-2 Linux Engineer 201
41.
You try to set up a computer on a local network via a static TCP/IP configuration, but you
lack a gateway address. Which of the following is true?
- A.Because the gateway address is necessary, no TCP/IP networking functions will work
- B.TCP/IP networking will function, but you'll be unable to convert hostnames to IP addresses, or vice versa.
- C.You'll be able to communicate with machines on your local network segment but not with other systems.
- D.The computer won't be able to tell which other computers are local and which are remote.
- Answer & Explanation
- Report
Answer : [C]
Explanation :
Explanation :
The gateway computer is a router that transfers data between two or more network segments. As such, if a computer isn't configured to use a gateway, it won't be able to communicate beyond its local network segment. (If your DNS server is on a different network segment, name resolution via DNS won't work, although other types of name resolution, such as /etc/hosts file entries, will still work.) |
42.
Which of the following types of information is returned by typing ifconfig eth0 ?
(Choose all that apply.)
- 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
- Answer & Explanation
- Report
Answer : [B, C]
Explanation :
Explanation :
When used to display information on an interface, ifconfig shows the hardware and IP addresses 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 on programs using the interface or the hostname associated with the interface. |
43.
Under what circumstances might you use the iwconfig utility?
- A.You must diagnose problems on a Token Ring network.
- B.You need to bring up or shut down an Ethernet network link.
- C.You need to connect a Linux system to a new wireless network.
- D.You must diagnose the failure of a DHCP client on a PPP network.
- Answer & Explanation
- Report
Answer : [C]
Explanation :
Explanation :
The iwconfig utility configures a Linux wireless (Wi - Fi) connection, so option C is correct. Options A, B, and D all refer to wired network hardware, for which iwconfig is useless. |
44.
Which of the following utilities can bring up a network connection? (Choose all that apply.)
- A.ifconfig
- B.netstat
- C.ifup
- D.ping
- Answer & Explanation
- Report
Answer : [A, C]
Explanation :
Explanation :
The ifconfig command is Linux's basic tool for manually bringing up a network connection using options provided on the command line, while ifup is a utility that brings up a network connection based on the contents of the network configuration files. The netstat and ping commands are both useful network diagnostic tools, but they don't bring up network connections. |
45.
Which of the following commands should you use 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
- 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 stated in option B. Specifying the IP address of the host system is not necessary and in fact will confuse the route command. Options A, C, and D are all distortions of the correct answer and will not work correctly. |