Networking Fundamentals Flashcards
How many bits make up an IPv6 address? A. 32 B. 48 C. 64 D. 128 E. 256
128
Which command is used to manually assign an IP address to a network interface? (Specify ONLY
the command without any path or parameters.)
ifconfig, /sbin/ifconfig, ip, /sbin/ip
Which of the following files is consulted when programs like netstat try to match port numbers to names? A. /etc/networks B. /etc/portmapper C. /etc/protocols D. /etc/resolv.conf E. /etc/services
/etc/services
Which of the following statements is valid in the file /etc/resolv.conf? A. order hosts,bind B. 192.168.168.4 dns-server C. hosts: files,dns D. domain example.com
domain example.com
Which of the following is a correct entry in the /etc/hosts file?
A. localhost 127.0.0.1 localhost.localdomain
B. localhost.localdomain localhost 127.0.0.1
C. localhost localhost.localdomain 127.0.0.1
D. 127.0.0.1 localhost.localdomain localhost
E. localhost.localdomain 127.0.0.1 localhost
D. 127.0.0.1 localhost.localdomain localhost
What is the assigned port number for the HTTP service? (Specify the port number using digits.)
80
What is the purpose of the dig command?
A. It can be used as a tool for querying DNS servers.
B. It can be used for searching through indexed file content.
C. It can be used to look for open ports on a system.
D. It can be used to ping all known hosts on the current subnet.
It can be used as a tool for querying DNS servers.
Given the following line from /etc/nsswitch.conf:
hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
By default, which file will be queried first for hostname lookups? (Specify the full name of the file,
including path.)
/etc/hosts
When issuing the command ifconfig eth0 192.168.1.20/24 up, which of the following happens?
(Choose TWO correct answers.)
A. The address 192.168.1.20 is associated with the interface eth0.
B. A network route to 192.168.1.0 with the netmask 255.255.255.0 pointing directly to eth0 is
created.
C. 192.168.1.1 is probed for router functionality and, in case of success, it is added to the list of
default routers.
D. The addresses from 192.168.1.20 to 192.168.1.24 are activated on the interface eth0.
E. If eth0 was configured with a previous IP address, it is retained in addition to adding the new
address.
A. The address 192.168.1.20 is associated with the interface eth0.
B. A network route to 192.168.1.0 with the netmask 255.255.255.0 pointing directly to eth0 is
created.
What is the name of the file that defines the sources (like DNS or local configuration files) and the order in which they are consulted when resolving hostnames? (Specify the full name of the file, including path.)
/etc/nsswitch.conf
Given the following routing table
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.178.0 0.0.0.0 255.255.255.0 U 9 0 0 wlan0
Why does the command route add default gw 192.168.1.1 fail?
A. Because there is no route to 192.168.1.1.
B. Because only one route can exist at a time.
C. Because there is already a default route.
D. Because default routes can not be set manually.
E. Because default routes must be set with ifconfig.
Because there is no route to 192.168.1.1.
In order to discover the link layer address of the device that owns a specific IPv4 or IPv6 address, which mechanism is used?
A. Both IPv4 and IPv6 use ARP.
B. Both IPv4 and IPv6 use Neighbor Discovery.
C. IPv4 uses ARP while IPv6 uses Neighbor Discovery.
D. IPv4 uses Neighbor Discovery while IPv6 uses ARP.
E. Both IPv4 and IPv6 can use either ARP or Neighbor Discovery depending on the network.
IPv4 uses ARP while IPv6 uses Neighbor Discovery.
Which of the following are valid IPv4 network masks? (Choose TWO correct answers.) A. 255.255.0.0 B. 255.255.255.65 C. 255.255.0.255 D. 0.0.0.1 E. 255.255.255.248
- 255.0.0
255. 255.255.248
How does the ping command work by default?
A. It sends a UDP packet to port 0 of the remote host and waits to receive a UDP error response
in return.
B. It sends an ARP request to a remote host and waits to receive an ARP response in return.
C. It sends a TCP SYN packet to a remote host and waits to receive an TCP ACK response in
return.
D. It sends a broadcast packet to all hosts on the net and waits to receive, among others, a
response from the target system.
E. It sends an ICMP Echo Request to a remote host and waits to receive an ICMP Echo Response
in return.
E. It sends an ICMP Echo Request to a remote host and waits to receive an ICMP Echo Response
in return.
How many IP-addresses can be used for unique hosts inside the IPv4 subnet 192.168.2.128/28?
(Specify the number only without any additional information.)
14