This quiz is part of the DevOpsTheHardWay course.

Please answer the quiz and click the "Test" button at the bottom right.

Networking - subnets - multichoice questions

Question 1

How many different hosts can be connected to the subnet denoted by 10.0.1.0/24?

Question 2

Which of the following subnets is most specifically describes the following list of hosts IP:

  1. 172.31.8.17
  2. 172.31.37.152
  3. 172.31.33.152
  4. 172.31.42.73
  5. 172.31.8.46


Use the following transcript to answer the next 4 questions.

[madonna@station madonna]$ ip address
eth0        Link encap:Ethernet HWaddr 00:00:86:4D:F0:0C
            inet addr:118.45.92.51 Bcast:118.45.92.255 Mask:255.255.255.0
            UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
            RX packets:242939 errors:0 dropped:0 overruns:0 frame:0
            TX packets:302515 errors:0 dropped:0 overruns:1 carrier:1
            collisions:0 txqueuelen:100
            RX bytes:24308852 (23.1 Mb) TX bytes:166603272 (158.8 Mb)
            Interrupt:11 Base address:0xd400

lo          Link encap:Local Loopback
            inet addr:127.0.0.1 Mask:255.0.0.0
            UP LOOPBACK RUNNING MTU:16436 Metric:1
            RX packets:29291 errors:0 dropped:0 overruns:0 frame:0
            TX packets:29291 errors:0 dropped:0 overruns:0 carrier:0
            collisions:0 txqueuelen:0
            RX bytes:2661822 (2.5 Mb) TX bytes:2661822 (2.5 Mb)

[madonna@station madonna]$ route -n
Kernel IP routing table
Destination     Gateway     Genmask         Flags Metric Ref Use Iface
118.45.92.0     0.0.0.0     255.255.255.0   U     0      0   0   eth0

Question 3

What is the IP address of madonna's machine?

Question 4

Which of the following error messages most likely appear when madonna sends traffic to 16.74.114.3

Question 5

To which network interface will the traffic be routed for the IP address 127.1.1.1?

Question 6

Suppose you have the following IP address: 192.168.1.128 Using the longest prefix match algorithm to determine the route, which of the following networks will this IP address be routed to?

Question 7

Given an IP address of 10101010 11110000 00111111 00001111, which of the below routes would be taken when using the longest prefix match algorithm?

Question 8

Given the below output of the ip address command:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
       inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever

2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
         inet 192.168.0.2/24 brd 192.168.0.255 scope global eth0
         valid_lft forever preferred_lft forever

3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
          inet 192.168.1.2/24 brd 192.168.1.255 scope global wlan0
          valid_lft forever preferred_lft forever

Assuming that a request is made to the IP address 192.168.2.0, which network interface will be used to route this request?

Consider the below network, described by 156.1.0.0/16.

                    +--------------+
                    |  Subnet A    |
                    | 127 hosts    |
                    | 156.1.1.0/24 |
                    +--------------+
                           |
                           |
                           |
          +-----------------------------+
          |                             |
+-----------------+                   +----------------+
|    Subnet B     |                   |    Subnet C    |
|    58 hosts     |                   |    29 hosts    |
|   156.1.45.0/24 |                   | 156.1.5.0/24   |
+-----------------+                   +----------------+

Answer the below 4 question:

Question 9

Is the address space public or private?

Question 10

Excluding the network address, and broadcast address of each subnet, how many hosts can potentially be connected in the given network diagram?

Question 11

What is the first address of subnet A (excluding the network and broadcast addresses)?

Question 12

What is the broadcast address of subnet A?

Question 13

Which address would be used to broadcast a message to all network's hosts?

Suppose the following route table of host Y:

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.1.1     0.0.0.0         UG    100    0        0 eth0
10.0.0.0        10.0.0.1        255.255.255.0   UG    0      0        0 eth1
192.168.1.0     0.0.0.0         255.255.255.0   U     100    0        0 eth0

Answer the below 4 questions.

Question 14

What is the default gateway address of Y?

Question 15

What is most likely the CIDR of the subnet host Y belongs to?

Question 16

To which network interface will the traffic to 10.0.0.234 be routed?

Question 17

To which network interface will the traffic to 10.0.1.234 be routed?

license