36.
Which man page contains excellent examples on nmcli usage?
- A.nmcli
- B.nmcli-examples
- C.nm-config
- D.nm-tools
- Answer & Explanation
- Report
Answer : [B]
Explanation :
Explanation :
The nmcli-examples man page was created to make working with the long commands in nmcli a bit easier. |
37.
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
- Answer & Explanation
- Report
Answer : [C]
Explanation :
Explanation :
On RHEL 7, nmtui is the default utility to set and modify the network interface. Notice that RHEL 7 does not have system-config utilities anymore for configuring networking that were available in earlier versions of RHEL. |
38.
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
- Answer & Explanation
- Report
Answer : [D]
Explanation :
Explanation :
When the connection is added, you use ip4 and gw4 without a V. |
39.
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-<ID>
- C.Set the DNS server names using nmcli
- D.Use nmtui to set the DNS server names
- Answer & Explanation
- Report
Answer : [A]
Explanation :
Explanation :
You should not set the DNS servers directly in /etc/resolv. conf, because the /etc/resolv.conf file is automatically written by the Network- Manager service. |
40.
In which configuration file would you set the hostname?
- A./etc/sysconfig/network
- B./etc/sysconfig/hostname
- C./etc/hostname
- D./etc/defaults/hostname
- Answer & Explanation
- Report
Answer : [C]
Explanation :
Explanation :
The name of the configuration file that contains the hostname is /etc/hostname. Notice that on earlier versions of RHEL the file /etc/ sysconfig/network was used for this purpose. |