CHAPTER 8. Configuring Network Flashcards

1
Q

Which of the following IP addresses belong to the same network?

I. 192.168.4.17/26
II. 192.168.4.94/26
III. 192.168.4.97/26
IV. 192.168.4.120/26

a. I and II
b. II and III
c. III and IV
d. II, III, and IV

A

D.

Based on the /26 subnet mask, the networks are 192.168.4.0, 192.168.4.64, 192.168.4.128, and 192.168.4.192. That means that IP addresses II, III, and IV
belong to the same network.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which of the following is not a private IP address?

a. 10.10.10.10
b. 169.254.11.23
c. 172.19.18.17
d. 192.168.192.192

A

B.

The 169.254.0.0 network address does not belong to the private address ranges, which are 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16. The address
169.254.0.0 is from the APIPA range. This is a range of IP addresses that can be automatically self-assigned by a client that is trying to reach an unreachable
DHCP server.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which of the following would be the default network interface name on a RHEL 8 system?

a. p6p1
b. eth0
c. eno1677783
d. e0

A

C.

By default, the network device names are based on the device type, location, and identification. You’ll find the legacy name eth0 only if the driver of
the network card is not capable of revealing information about its physical location.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which command shows the recommended way to display information about the network interface as well as its IP configuration?

a. ifconfig -all
b. ipconfig
c. ip link show
d. ip addr show

A

D.

Use of the ifconfig command is deprecated; use the ip command instead. The ip addr show command shows information about the state of the
interface as well as the current IP address assignment.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which statement about NetworkManager is not true?

a. It is safe to disable NetworkManager and work with the network service instead.
b. NetworkManager manages network connections that are applied to network interfaces.
c. NetworkManager has a text-based user interface with the name nmtui.
d. NetworkManager is the default service to manage networking in RHEL 8.

A

A.

The network service no longer exists in RHEL 8.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Which man page contains excellent examples on nmcli usage?

a. nmcli
b. nmcli-examples
c. nm-config
d. nm-tools

A

B.

The nmcli-examples man page was created to make working with the long commands in nmcli a bit easier. Note that nmcli also has excellent commandline
completion features.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Which of the following is the name of the text user interface to specify network connection properties?

a. system-config-network
b. system-config-networkmanager
c. nmtui
d. nmcli

A

C.

On RHEL 8, nmtui is the default utility to set and modify the network interface. Note that RHEL 8 no longer has the system-config utilities for configuring
networking that were available in older versions of RHEL.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which of the following commands shows correct syntax to set a fixed IP address to a connection using nmcli?

a. nmcli con add con-name “static” ifname eth0 autoconnect no type ethernet ipv4 10.0.0.10/24 gw4 10.0.0.1
b. nmcli con add con-name “static” ifname eth0 autoconnect no type ethernet ipv4 10.0.0.10/24 gwv4 10.0.0.1
c. nmcli con add con-name “static” ifname eth0 type ethernet ipv4 10.0.0.10/24 gw4 10.0.0.1
d. nmcli con add con-name “static” ifname eth0 autoconnect no type ethernet ip4 10.0.0.10/24 gw4 10.0.0.1

A

D.

When the connection is added, you use ip4 and gw4 (without a v).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Which of the following is not a recommended way to specify which DNS servers to use?

a. Edit /etc/resolv.conf.
b. Set the DNS options in /etc/sysconfig/network-scripts/ifcfg-.
c. Set the DNS server names using nmcli.
d. Use nmtui to set the DNS server names.

A

A.

You should not set the DNS servers directly in /etc/resolv.conf, because that file is automatically written by the NetworkManager service.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

In which configuration file would you set the hostname?

a. /etc/sysconfig/network
b. /etc/sysconfig/hostname
c. /etc/hostname
d. /etc/defaults/hostname

A

C.

The name of the configuration file that contains the hostname is /etc/ hostname. You should use hostnamectl to change its contents.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly