Mod 12 Network Configuration

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

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? a. /etc/hosts b. /etc/nsswitch.conf c. /etc/resolv.conf d. /etc/named.conf

/etc/nsswitch.conf

What file lists ports and their associated protocols? a. /etc/services b. /etc/ports.conf c. /etc/hosts d. /etc/nsswitch.conf

/etc/services

You would like to configure the connection options allowed for the SSH daemon. What file should you edit? a. /etc/ssh/ssh.conf b. /etc/ssh/sshd.conf c. ~/.ssh/sshd d. ~/.ssh/options

/etc/ssh/sshd.conf

Which of the following IPv4 addresses can only be used behind a proxy server or NAT router? a. 3.0.2.7 b. 10.4.9.2 c. 192.139.188.42 d. 100.1.1.1

10.4.9.2

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 ports would be used to resolve a domain name to an IP address? a. 443 b. 23 c. 53 d. 69

53

Ricky has configured a VNC server on his Linux workstation that listens on the second X Windows display. What port must he allow on his network firewall in order to access his VNC server from a remote system? a. 23 b. 6100 c. 5902 d. 22

5902

Which of the following is a media access method? a. TCP/IP b. UDP/IP c. ICMP d. Ethernet

Ethernet

Doug notices that the DNS server IP address listed in /etc/resolv.conf is 127.0.0.53. What does this indicate? a. DNS name resolution is disabled on the system. b. Name resolution requests will be forwarded to Systemd-resolved. c. The local system is running a DNS server service. d. The system will only use DNS servers listed in /etc/hosts.

Name resolution requests will be forwarded to Systemd-resolved.

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

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

When connecting to a host via SSH for the first time, the user is prompted to accept the encryption fingerprint for the target computer. In which file is this fingerprint stored? a. ~/.ssh/options b. ~/.ssh/rsa.pub c. ~/.ssh/known_hosts d. ~/.ssh/rsa

~/.ssh/known_hosts

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. How would this be represented by the ip addr command using CIDR notation? a. /23 b. /24 c. /27 d. /28

/27

Houston is an IT support specialist who needs to modify the IP address configuration on a Fedora Workstation on the network remotely via an SSH connection. What configuration file should he modify once he has connected to the remote system? a. /etc/NetworkManager/system-connections/eth0.nmconnection b. /etc/netplan/00-installer-config.yaml c. /etc/networks/eth0.conf d. /etc/sysconfig/network-services/eth0

/etc/NetworkManager/system-connections/eth0.nmconnection

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

/etc/hostname

Seema needs to modify the static IP address configuration on an Ubuntu Server system on the network. What configuration file should she modify? a. /etc/networks/eth0.conf b. /etc/netplan/00-installer-config.yaml c. /etc/NetworkManager/system-connections/eth0.nmconnection d. /etc/sysconfig/network-services/eth0

/etc/netplan/00-installer-config.yaml

What command can be run within a desktop environment to configure a DSL connection on a system that uses NetworkManager? a. modem-manager-gui b. nm-connection-editor c. dslconf d. pppoeconf

nm-connection-editor

Which of the following is a valid DNS server definition in the /etc/resolv.conf file? a. dns 1.1.1.1 b. order hosts, bind c. 10.1.15.60 server10 d. nameserver 8.8.8.8

nameserver 8.8.8.8

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

VNC

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? (Choose all that apply.) a. ifconfig eth0 up b. activate eth0 c. int eth0 up d. ip link set eth0 up

a. ifconfig eth0 up d. ip link set eth0 up

Which of the following commands will add a route to the route table on a Linux router to the 192.139.188.0/24 network via the router 15.2.199.6? a. route add -net 192.139.188.0 netmask 255.255.255.0 gw 15.2.199.6 b. route add -target 192.139.188.0/24 -source 15.2.199.6 c. ip route add 192.139.188.0/24 gw 15.2.199.6 d. ip route add 192.139.188.0/24 via 15.2.199.6

a. route add -net 192.139.188.0 netmask 255.255.255.0 gw 15.2.199.6 d. ip route add 192.139.188.0/24 via 15.2.199.6

Which of the following commands copy the /etc/hosts file on server5 to the root directory on the local system using SSH? (Choose all that apply.) a. scp root@server5:/etc/hosts / b. scp root@server5:/etc/hosts >/hosts c. ssh root@server5:/etc/hosts | ssh &> / d. ssh root@server5 cat /etc/hosts > /hosts

a. scp root@server5:/etc/hosts / d. ssh root@server5 cat /etc/hosts > /hosts

What command can be used to connect to server5 using SSH as the user eschmidt? (Choose all that apply.) a. ssh -l eschmidt server5 b. ssh //server5/eschmidt c. ssh eschmidt@server5 d. ssh -u eschmidt@server5

a. ssh -l eschmidt server5 c. ssh eschmidt@server5

Which of the following are available network renderer services on Linux systems? a. Systemd-networkd b. Netplan c. NetworkManager d. Cloud-init

b. Netplan c. NetworkManager

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? (Choose all that apply.) a. trace6 b. traceroute6 c. tracert6 d. tracepath6

b. traceroute6 d. tracepath6

Which of the following commands can be used to display TCP connections on a Linux system? (Choose all that apply.) a. sockstat b. ss -t c. netstat -t d. sstat

b.ss -t c. netstat -t

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

ethtool

You run the command hostname server1 and then 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


Kaugnay na mga set ng pag-aaral

analogous structures male/femail

View Set

Amino Acids - Structure to full name

View Set

Chapter 12: Postpartum Physiological Assessments and Nursing Care

View Set

Anatomy and physiology chapter 16

View Set

ROMAN FORM FUNCTION CONTEXT AND CONTENT

View Set

Introduction to Programming - TXC1, Introduction to Programming - TXC1 Practice

View Set