Ch14 Network Configuration Exam
-
The system administrator tries to assign the value
host*2014@SNG
using thehostname
command. What is the result of executing this command?- This value cannot be assigned since special characters other than – and . are not allowed in the hostname
- The special characters will be deleted and the value assigned to the hostname
- The command will complete successfully
- The command will complete with a warning
-
Which file is referred to on systems where DNS is not set up?
/etc/network-hosts
/etc/host-config
/etc/hosts
/etc/resolv.conf
-
The _____ command is used to view the fully qualified domain name of the host.
hostname
cat /etc/hosts
hostname -f
uname
-
Which configuration file is referred to for DNS resolution?
/etc/dns.conf
/etc/names.conf
/etc/resolv.conf
/etc/hosts
-
Which of the configuration directives given below is not found in the
/etc/resolv.conf
file?- parameters
- nameserver
- domain
- sortlist
-
Which file is referred to by the Name Service Switch (NSS) resolver?
/etc/nssconfig.conf
/etc/hosts
/etc/resolv.conf
/etc/nsswitch.conf
-
The
/etc/nsswitch.conf
file defines the order in which DNS and the/etc/hosts
file are queried for host name information.True or False?
- True
- False
-
What type of interface is a network interface card?
- Software interface
- Proxy interface
- Hardware interface
- Physical interface
-
Which file contains host and routing details of all configured network interfaces for Red Hat based systems?
/etc/sys/network
/etc/sysconfig/network
/etc/sysconfig
/etc/network
-
The
ifconfig
will accept an interface name as an argument.True or False?
- True
- False
-
Which command is used to assign a netmask to the
eth1
interface?ifconfig eth1 submask 255.255.255.224
ifconfig eth1 netmask 255.255.255.224
ifconfig eth1 -net-mask 255.255.255.224
ifconfig eth1 netmask 255.255.255.*
-
Which command is used to find the netmask of the
eth0
interface?ifconfig -eth0
ifconfig -A
ifconfig eth0
ifconfig -netmask eth0
-
The kernel’s routing table contains static and dynamic routes.
True or False?
- True
- False
-
The routing table shows an entry with
genmask 0.0.0.0
, this indicates the _____.- Default Name Server
- Default Host
- Default Subnet Mask
- Default Route
-
Which command is used to delete entries from the routing table?
route down
route del
route --del
route rm
-
Which of the following is not shown in the output of the
ifconfig
command?- Packets dropped
- Packets received
- TTL
- Packets transmitted
-
The IP address of your host is
192.168.10.16
. In order to connect to another host with the IP address of192.86.74.16
, your router will have to be connected to the subnets:255.255.255.0
and192.86.74.0
192.168.10.0
and255.255.255.0
192.168.10.0
and192.86.74.0
192.168.1.1
and192.86.74.0
-
Which command is used to setup broadcast addresses for a network interface?
route
ifconfig
ip broadcast
host
-
Which file will be used to enable DHCP based configuration on Red Hat based systems?
/etc/sysconfig/network-scripts/ifconfig-eth0
/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/sysconfig/network-scripts/eth0
/etc/network-scripts/ifcfg-eth0
-
Which command can be used to verify the connectivity to a network after adding a new route?
resolvctl
ping
ifconfig
ip up
-
The ____ file is read at boot time on Red Hat based systems to set the host name.
/etc/sys/network
/etc/sysconfig/network
/etc/network/sysconfig
/etc/sys/config
-
Which API is used to query address information from the Name Service Switch (NSS) resolver?
getaddrinfo()
getaddrent()
getaddrfields()
gethostinfo()
-
Which command can you use to block packets to a specific host?
route reject
route del
route block
route add with reject option
-
How is the DNS configuration file
/etc/resolv.conf
setup?- Downloaded from Internet
- By the
ifconfig
utility - Default values provided during installation
- By network initialization scripts
-
The
networkmanager
service works on wired interfaces only.True or False?
- True
- False
-
Which of the following is false about
networkmanager
.- Supports Virtual Private Network (VPN) connections
- Provides a graphical utility for configuring network interfaces
- Requires root access to display device information
- Was originally developed by Red Hat
-
Which command will display easily readable information on the
eth0
interface?nmcli -h sho eth0
cat nmcli eth0 | eth0 -p
nmcli -p > eth0 show
nmcli -p con show eth0
-
The
nmcli
command can be used to create a new network connection.True or False?
- True
- False
-
Systemd-networkd cannot be used for _____________________.
- Creating virtual network devices for cloud computing
- Automatically detecting and configuring a USB Ethernet connector
- Changing usernames on remote systems
- Resolving domain names with
/etc/resolv.conf.
-
Which of these is not a systemd-networkd configuration file?
/usr/lib/network/
/etc/systemd/network
/run/systemd/network
/etc/network/system.d
-
The
resolvectl
tool is part of theifconfig
command.True or False?
- True
- False
-
The
iproute2
equivalent for thearp
command is _________.ip neighbor
ip -arp
ip route a -rp
netstat -a
-
Which of the following commands can be used to set the hostname to
netlab01
on a systemd system?sudo hostnamectl set-hostname netlab01
hostnamectl status change hostname netlab01
- Edit the
/etc/systemd/hosts.cfg
file hostname netlab01
Subscribe
0 Comments
Newest