Chapter 12 Flashcards

1
Q

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?

A

Answer: False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
  1. Which Windows program is often used to connect to a Linux server via SSH?
    a. SSHD
    b. Putty
    c. Rdesktop
    d. mstsc
A

b. Putty

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
  1. Standalone daemons are started on demand using xinetd. True or False?
A

Answer: False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
  1. 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
A

d. /etc/resolv.conf

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
  1. 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

a. nslookup hostname
b. dig hostname
c. host hostname

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
  1. 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

a. route

c. ip

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q
  1. 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

a. /etc/nsswitch.conf

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q
  1. 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
A

b. DNS

c. /etc/hosts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
  1. SSH encrypts all traffic that passes across the network, whereas telnet does not. True or False?
A

Answer: True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
  1. 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

a. ssh-keygen

c. ssh-copy-id

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q
  1. 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
A

b. ssh -X

d. VNC

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q
  1. The daemons associated with network services listen for network traffic associated with a particular _____.
    a. station
    b. port
    c. IP address
    d. allocation number
A

b. port

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q
  1. 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
A

d. loopback address

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q
  1. The line that configures the host name for the computer at boot time can be found in /etc/hostname. True or False?
A

Answer: True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q
  1. 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

a. netstat -t

d. ss -t

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q
  1. Which of the following port numbers is associated with SSH?
    a. 22
    b. 137
    c. 49
    d. 23
A

a. 22

17
Q
  1. 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

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

18
Q
  1. 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
A

c. default gateway

19
Q
  1. 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

a. Apache (httpd)

d. DNS (named)

20
Q
  1. 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

a. ifconfig
b. iwconfig
c. ping
d. nmcli

21
Q

Which commands can you use to find the IP address of a host by name? (Select two)

nslookup
dnslookup
host
server

A

nslookup

host

22
Q

The network interface configuration entered by ip or ifconfig command will survive the reboot.
True
False

A

False

23
Q

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

A

True

24
Q

For the network interface configuration to survive the reboot, it must be saved in a configuration file.

True
False

A

True

25
Q
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
A

mtr

traceroute

26
Q

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

A

Login to a shell on a remote system

X Window forwarding from a remote system

27
Q

ifconfig command is deprecated in most modern distros.

True
False

A

True

28
Q

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

A

/etc/netplan/50-clound-init.yaml

29
Q

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)

A

dhclient

BOOTPROTO=dhcp (in configuration file)

30
Q

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

A

False

31
Q

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

A

/etc/sysconfig/network-scripts/ifcfg-enp0s3

32
Q

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

A

Dynamic vs static assignment

Temporal vs permanent configuration

33
Q

Which commands may be used to display the configured ip address information? (Select three)

ip
ip a
ip address show
ifconfig

A

ip a
ip address show
ifconfig

34
Q

The network interface configuration entered by ip or ifconfig command will survive the reboot.

True
False

A

False