Linux Administration
medium

Questão de Linux Administration #019e3987

Enunciado da Questão
Linux Administration
#routing-table
#subnet
#gateway
#eth0
#netmask
Médio

Given the following routing table:
Question

How would an outgoing packet to the destination 192.168.2.150 be handled?

A

It would be passed to the default router 192.168.178.1 on wlan0.

B

It would be directly transmitted on the device eth0.

C

It would be passed to the default router 255.255.255.0 on eth0.

D

It would be directly transmitted on the device wlan0.

E

It would be passed to the router 192.168.1.1 on eth0.

Correta

Explicação Oficial / Explicações da Comunidade

The packet to 192.168.2.150 is handled by the routing table. The destination 192.168.2.150 falls within the subnet 192.168.1.0/24 (netmask 255.255.255.0) because the first three octets match 192.168.1.0 and the fourth octet can be any value from 0 to 255. The routing table shows a route for 192.168.1.0/24 via gateway 192.168.1.1 on eth0. Therefore, the packet is forwarded to the router at 192.168.1.1 on eth0.