LPI Linux Essentials 010 V1.6 - Chapter 15 Quiz

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

What network setting defines the network device that routes packets intended for hosts on remote networks? A. Default router B. Netmask C. Host name D. IP address E. DNS server

A. The default router is used to send packets from the local network to remote networks, so to communicate with a remote host you need to define the default router address, making option A correct. The netmask only defines the local network—it doesn't define what to do with packets for remote hosts—so option B is incorrect. The host name and IP address only define features of the local host, so options C and D are incorrect, whereas the DNS server defines how to retrieve the IP address of a host based on its domain name, so option E is incorrect.

What device setting defines a host that maps a host name to an IP address? A. Default router B. Netmask C. Host name D. IP address E. DNS server

E. The DNS server maps the host name to an IP address, so you must have a DNS server defined in your network configuration to be able to use host names in your applications. Thus, option E is correct. The default router only defines how to send packets to remote hosts—it doesn't map the host name to the IP address—so option A is incorrect. The netmask value defines the local network, not how to map host names to IP addresses, so option B is incorrect. The host name and IP address define features of the local host, so options C and D are incorrect.

What command can you use to both display and set the IP address, netmask, and default router values? A. ifconfig B. iwconfig C. router D. ifup E. ip

E. The ip command allows you to both display and set the IP address, netmask, and default router values for a network interface, so option E is correct. The ifconfig command can set the IP address and netmask values, but not the default router. The iwconfig command is used to set the wireless access point settings, and the router command is used to set the default router but not the IP address or netmask values. The ifup command only activates the network interface—it can't set the address values.

Which command displays what processes are using which ports on a Linux systems? A. iwconfig B. ip C. ping D. nmtui E. ss

E. The ss command displays a list of the open ports on a Linux system, along with the processes associated with each port, so option E is correct. The iwconfig command sets wireless network information, not open ports, so option A is incorrect. The ip command displays or sets network information on a network interface but doesn't display open ports, so option B is incorrect. The ping command sends ICMP messages to a remote host but doesn't display any open ports, so option C is incorrect. The nmtui command allows you to configure network parameters for a network interface but doesn't display the open ports on the system, so option D is incorrect.

Which command would you use to find the mail server for a domain? A. dig B. netstat C. ping6 D. host E. ss

A. The dig command can display individual host records for a domain, which you can use to find the MX mail host for the domain, so option A is correct. The host command only displays host IP address information—it can't determine the server type from the DNS records—so option D is incorrect. The netstat and ss commands display active network connections but not the remote host types, so options B and E are both incorrect. The ping6 command sends IPv6 ICMP packets to test remote hosts but can't tell if the remote host is a mail server, so option C is incorrect.

Which command displays the duplex settings for an Ethernet card? A. ethtool B. netstat C. iwconfig D. iwlist E. route

A. The ethtool command displays features and parameters for network cards, so option A is the correct answer. The netstat command displays network statistics and connections, so option B is incorrect. The iwconfig and iwlist commands are used to set wireless network parameters not Ethernet card settings, so options C and D are incorrect. The route command sets or displays routing information and not Ethernet card settings, so option E is incorrect.

Which ifconfig format correctly assigns an IP address and netmask to the eth0 interface? A. ifconfig eth0 up 192.168.1.50 netmask 255.255.255.0 B. ifconfig eth0 255.255.255.0 192.168.1.50 C. ifconfig up 192.168.1.50 netmask 255.255.255.0 D. ifconfig up E. ifconfig down

A. The ifconfig command must specify the network interface, the IP address, then the netmask option before the netmask address. You can use the up or down option to place the network card in an active or inactive state by default, but it's not required. Option A is the only option that uses the correct values in the correct order. Option C is close but fails to specify the network interface. Option B is not in the correct format, and options D and E fail to list the necessary configuration settings.

What command displays all the available wireless networks in your area? A. iwlist B. iwconfig C. ifconfig D. ip E. arp

A. The iwlist command displays the available wireless network access points detected by the wireless network card, so option A is correct. The iwconfig command configures the network card to connect to a specific access point but doesn't list all of the detected access points, making option B incorrect. Option C specifies the ifconfig command, which is used to assign an IP address to a wireless network card, but doesn't list the access points. The ip command specified in option D likewise can be used to set the IP address of the card but doesn't list the access points. Option E, the arp command, maps hardware addresses to IP addresses so that you can find duplicate IP addresses on your network, but it doesn't list the wireless access points.

What is used to automatically assign an IP address to a client? A. Default router B. DHCP C. ARP table D. Netmask E. ifconfig

B. The Dynamic Host Configuration Protocol (DHCP) is used to assign dynamic IP addresses to client workstations on a network, so option B is correct. The default router can't assign addresses to devices, so option B is incorrect. The ARP table maps the hardware address of the network card to IP addresses but doesn't assign the IP addresses, so option C is incorrect. The netmask value determines the network address but not the IP address of the host, so option D is incorrect. The ifconfig command can set the static IP address of the host but doesn't automatically assign the IP address, so option E is incorrect.

Which two commands set the IP address, subnet mask, and default router information on an interface using the command line? (Choose two.) A. netstat B. ping C. nmtui D. ip E. route

C, D. The nmtui command provides an interactive text menu for selecting a network interface and setting the network parameters, and the ip command provides a command- line tool for setting network parameters, so both options C and D are correct. The netstat command displays information about network connections but doesn't set the network parameters, so option A is incorrect. The ping command can send ICMP packets to a remote host but doesn't set the local network parameters, so option B is incorrect. The route command sets the routing network parameters but not the IP address or subnet mask, so option E is incorrect.


Set pelajaran terkait

Math 7, Chapter 5 Review (Pg. 205-207)

View Set

Ch. 3 Life Insurance Policy Riders, Provisions, Options, and Exclusions

View Set

Chapter 1 - The Generally Accepted Accounting Principles

View Set

Implementing Windows Server Update Services

View Set

Levels of organization (atom-molecule-cell-tissue-organ-organ-system-organism)

View Set

Acute Respiratory Distress Syndrome

View Set