Chapter 12 Network Configuration

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

Which of the following ports would be used to resolve a domain name to an IP address? a. 443 b. 23 c. 53 d. 69

53

What are two means available to resolve a host name to the appropriate IP address? (Choose two answers.) DHCP DNS /etc/hosts /etc/resolve.conf

DNS /etc/hosts

The daemons associated with network services listen for network traffic associated with a particular . station port IP address allocation number

port

Upon running the ifconfig command, the IP address is listed along with the subnet mask in dotted decimal notation listed as 255.255.255.224. You have installed a remote access software that has an address field that requires the address to be configured in CIDR notation. Which of the following is the equivalent CIDR notation for the subnet mask listed? a. /23 b. /24 c. /27 d. /28

/27

Which file holds the methods to be used and the order in which they will be applied for host name resolution? /etc/nsswitch.conf /etc/resolve.conf /etc/hosts /etc/dns.conf

/etc/nsswitch.conf

You currently have a Linux system configured to check the /etc/hosts file before trying to contact a DNS server to resolve host names. You want to reverse the configuration so that it checks with a DNS server before falling back to the /etc/hosts file. Which of the following files should you modify to make this possible? /etc/hosts /etc/nsswitch.conf /etc/resolv.conf /etc/named.conf

/etc/nsswitch.conf

Which file stores the IP addresses of the DNS servers used to resolve host names if no DNS servers are specified within the network configuration file for the network interface? /etc/hosts /etc/host.conf /etc/resolve /etc/resolv.conf

/etc/resolv.conf

Which of the following is a valid APIPA address? a. 127.0.0.1 b. 169.254.38.101 c. 10.11.12.13 d. 192.168.1.17

169.254.38.101

Which of the following port numbers is associated with SSH? 443 22 53 69

22

Which Windows program is often used to connect to a Linux server via SSH? SSHD Putty Rdesktop mstsc

Putty

Before a computer can use a router, with what configuration information must it be provided?

default gateway

The system administrator has shut ethernet interface eth0 down while making some changes to the system. Which of the following commands can they use to bring the network connection back up? a. netctl eth0 up b. ifup eth0 c. int eth0 up d. interface eth0 --status up

ifup eth0

The IP address of 127.0.0.1 is also referred to as the . local address lookup address local host loopback address

loopback address

Which of the following commands will show active UDP connections on a Linux system? (Choose all that apply.) a. netstat -u b. netstat --udp c. netstat -t udp d. netstat udp

netstat -u netstat --udp

On a system running NetworkManager, which of the following commands can be used to view or modify connection information? a. netman b. nm c. netctonf d. nmcli

nmcli

To test DNS configuration by resolving a host name to an IP address, which command or commands can you use? (Choose all that apply.) nslookup hostname dig hostname host hostname resolve hostname

nslookup hostname dig hostname host hostname

Which two commands can be used to modify the route table on a Linux computer? (Choose two answers.) route ipconfig ip traceroute

route ip

Which of the following commands can be used to display socket information out to the terminal screen? a. opensocks b. ss c. woolsocks d. sstat

ss

Which commands can be used to display TCP/IP connections on your Linux system? (Choose all that apply.) netstat -t mtr traceroute show ss -t

ss -t netstat -t

Which of the following commands can be used to trace an IPv6 route? (Choose two.) a. trace6 b. traceroute6 c. tracert6 d. tracepath6

traceroute6 tracepath6

What is the complete path and filename of the file where ports and their associated protocols are defined?

/etc/services

Which of the following commands will send 4 ICMP echo requests to a remote host named server1 to determine the round trip time it takes a packet to travel? a. ping -4 server1 b. ping server1 c. ping -c 4 server1 d. ping -n 4 server1

ping -c 4 server1

You want to generate SSH keys for your user account and copy them to a remote computer to simplify future SSH authentication. What two commands can you use to perform these actions? (Choose two answers.) ssh-keygen ssh-add ssh-copy-id ssh-agent

ssh-keygen ssh-copy-id

Stand-alone daemons are started on demand using xinetd. True or False?

False

The NetworkManager or Systemd-networkd components must be installed on a Linux system in order to configure an IP address on a network interface. True or False?

False

When connecting to a host via SSH for the first time, the user is prompted to accept the encryption fingerprint for the target computer which is stored in the _______________ file in the ~/.ssh/ directory.

Known_hosts

Which of the following utilities can be used to check IP configuration and test network connectivity? (Choose all that apply.) ifconfig iwconfig ping nmcli

ifconfig iwconfig ping nmcli

Which file would you modify to permanently change the IP address of a network interface on a Fedora 28 system? /etc/sysconfig/network-scripts/ifcfg-enp8s0 /etc/sysconfig/network /etc/netplan/50-cloud-init.yaml /etc/network/interfaces

/etc/sysconfig/network-scripts/ifcfg-enp8s0

The output of the ifconfig shows a HWaddr expressed in hexadecimal. How many bits is the hardware address shown made up of? a. 8 b. 32 c. 48 d. 128

48

What is the most commonly used LAN protocol? a. UDP/IP b. IPX/SPX c. TCP/IP d. DLC

TCP/IP

SSH encrypts all traffic that passes across the network, whereas telnet does not. True or False?

True

The line that configures the host name for the computer at boot time can be found in /etc/hostname. True or False?

True

You have set up a TFTP server to support PXE booting of several workstations. Which of the following protocols would this setup make use of? a. TCP b. UDP c. ICMP d. IGMP

UDP

Which of the following can be used to graphically remotely administer a Linux machine? a. RDP b. Telnet c. FTP d. VNC

VNC

Which of the following can be used to provide graphical remote administration? (Choose all that apply.) telnet ssh -X ssh VNC

VNC ssh -X

6. Which of the following types of technologies will create a tunneled encrypted connection from a remote location into a corporate network to be able to access resources as if the user was physically connected to the LAN? a. ADSL b. VPN c. NTP d. VLAN

VPN

Which of the following files does the hostnamectl command modify to set the hostname on a machine? a. /etc/hostname b. /etc/host.conf c. /etc/hosts.conf d. /etc/hostname.conf

a. /etc/hostname

Which of the following are valid statements in the /etc/resolv.conf file? (Choose two.) a. domain comptia.org b. order hosts, bind c. 10.1.15.60 server10 d. nameserver 10.1.1.4

domain comptia.org nameserver 10.1.1.4

Which of the following commands will display detailed information for network hardware? a. lsnet b. hwdisp --network c. lshw --net d. ethtool

ethtool

Which of the following is the keyword that should be listed after the hosts statement in the /etc/nsswitch.conf file so that the system will consult the /etc/hosts file to resolve a name to an IP address? a. local b. files c. hosts d. etchosts

files

Which of the following will display entries from the Name Service Switch libraries? nsslist nss getent dispdet

getent

. You run the command hostname server1 and issue the reboot command. You notice that the host name has reverted back to what it was before the reboot. Which of the following commands should you have used to change the host name instead? a. ifconfig server1 b. host server1 c. hostnamectl set-hostname server1 d. set hostname="server1"

hostnamectl set-hostname server1


Ensembles d'études connexes

Substance Abuse, Eating Disorders, Impulse Control Disorders NCLEX

View Set

Ch. 22- Learning: Alterations of Hemostasis

View Set

Cuantos son Select the correct option to complete each sentence

View Set

Computer Security - CGS 2100 Midterm

View Set

Intro to Bus MGT1 Book Questions 11-

View Set

Computer Hardware and Software Practice

View Set

3.2 China - Types and Forms of Power

View Set