Chapter 12 Flashcards
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?
Answer: False
- Which Windows program is often used to connect to a Linux server via SSH?
a. SSHD
b. Putty
c. Rdesktop
d. mstsc
b. Putty
- Standalone daemons are started on demand using xinetd. True or False?
Answer: False
- 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?
a. /etc/hosts
b. /etc/host.conf
c. /etc/resolve
d. /etc/resolv.conf
d. /etc/resolv.conf
- To test DNS configuration by resolving a host name to an IP address, which command or commands can you use? (Choose all that apply.)
a. nslookup hostname
b. dig hostname
c. host hostname
d. resolve hostname
a. nslookup hostname
b. dig hostname
c. host hostname
- Which two commands can be used to modify the route table on a Linux computer? (Choose two answers.)
a. route
b. ipconfig
c. ip
d. traceroute
a. route
c. ip
- Which file holds the methods to be used and the order in which they will be applied for host name resolution?
a. /etc/nsswitch.conf
b. /etc/resolve.conf
c. /etc/hosts
d. /etc/dns.conf
a. /etc/nsswitch.conf
- What are two means available to resolve a host name to the appropriate IP address? (Choose two answers.)
a. DHCP
b. DNS
c. /etc/hosts
d. /etc/resolve.conf
b. DNS
c. /etc/hosts
- SSH encrypts all traffic that passes across the network, whereas telnet does not. True or False?
Answer: True
- 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.)
a. ssh-keygen
b. ssh-add
c. ssh-copy-id
d. ssh-agent
a. ssh-keygen
c. ssh-copy-id
- Which of the following can be used to provide graphical remote administration? (Choose all that apply.)
a. telnet
b. ssh -X
c. ssh
d. VNC
b. ssh -X
d. VNC
- The daemons associated with network services listen for network traffic associated with a particular _____.
a. station
b. port
c. IP address
d. allocation number
b. port
- The IP address of 127.0.0.1 is also referred to as the _____.
a. local address
b. lookup address
c. local host
d. loopback address
d. loopback address
- The line that configures the host name for the computer at boot time can be found in /etc/hostname. True or False?
Answer: True
- Which commands can be used to display TCP/IP connections on your Linux system? (Choose all that apply.)
a. netstat -t
b. mtr
c. traceroute show
d. ss -t
a. netstat -t
d. ss -t
- Which of the following port numbers is associated with SSH?
a. 22
b. 137
c. 49
d. 23
a. 22
- Which file would you modify to permanently change the IP address of a network interface on a Fedora 28 system?
a. /etc/sysconfig/network-scripts/ifcfg-enp8s0
b. /etc/sysconfig/network
c. /etc/netplan/50-cloud-init.yaml
d. /etc/network/interfaces
a. /etc/sysconfig/network-scripts/ifcfg-enp8s0
- Before a computer can use a router, what configuration information must it be provided?
a. routing table
b. subnet mask
c. default gateway
d. default router
c. default gateway
- Which of the following are stand-alone daemons? (Choose all that apply.)
a. Apache (httpd)
b. Washington University FTP (in.ftpd)
c. telnet (in.telnetd)
d. DNS (named)
a. Apache (httpd)
d. DNS (named)
- Which of the following utilities can be used to check TCP/IP configuration and test network connectivity? (Choose all that apply.)
a. ifconfig
b. iwconfig
c. ping
d. nmcli
a. ifconfig
b. iwconfig
c. ping
d. nmcli
Which commands can you use to find the IP address of a host by name? (Select two)
nslookup
dnslookup
host
server
nslookup
host
The network interface configuration entered by ip or ifconfig command will survive the reboot.
True
False
False
Linux system can function as a router by enabling IP forwarding and entering the static IP routes and/or running a dynamic routing protocol such as RIP.
True
False
True
For the network interface configuration to survive the reboot, it must be saved in a configuration file.
True
False
True
Which commands may be used to display a routing path from the source to the destination? (Select two) mtr routepath traceroute ip route show path
mtr
traceroute
How is SSH used? (Select two)
Login to a shell on a remote system
Browse websites securely
X Window forwarding from a remote system
Securely ping a remote system
Login to a shell on a remote system
X Window forwarding from a remote system
ifconfig command is deprecated in most modern distros.
True
False
True
Where do you find the configuration file for enp0s3 on a modern Ubuntu?
/etc/network/interfaces
/etc/network/enp0s3.conf
/etc/netplan/50-clound-init.yaml
/etc/sysconfig/network-scripts/ifcfg-enp0s3
/etc/netplan/50-clound-init.yaml
How do you assign an IPv4 address using DHCP on modern Fedora? (Select two)
dhclient
BOOTPROTO=dhcp (in configuration file)
dhcp4: yes (in configuration file)
dhcp4: true (in configuration file)
dhclient
BOOTPROTO=dhcp (in configuration file)
Each Linux workstation or server is configured with a default gateway and one or more DNS servers that exist on the local subnet.
True
False
False
Where do you find the configuration file for enp0s3 on a modern Fedora?
/etc/network/interfaces
/etc/network/enp0s3.conf
/etc/netplan/50-clound-init.yaml
/etc/sysconfig/network-scripts/ifcfg-enp0s3
/etc/sysconfig/network-scripts/ifcfg-enp0s3
What influences how the network interface is being configured? (Select two)
Quick vs slow boot
Dynamic vs static assignment
Temporal vs permanent configuration
Democrats vs Republicans
Dynamic vs static assignment
Temporal vs permanent configuration
Which commands may be used to display the configured ip address information? (Select three)
ip
ip a
ip address show
ifconfig
ip a
ip address show
ifconfig
The network interface configuration entered by ip or ifconfig command will survive the reboot.
True
False
False