Refer to the following routing table output from a Cisco router:
text
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
Gateway of last resort is 10.1.1.1 to network 0.0.0.0
S* 0.0.0.0/0 [1/0] via 10.1.1.1
D 192.168.0.0/16 [90/307200] via 10.2.2.2, 01:45:12, GigabitEthernet0/0/1
O 192.168.4.0/24 [110/20] via 10.3.3.3, 00:12:34, GigabitEthernet0/0/2
S 192.168.4.128/26 [1/0] via 10.4.4.4
D 192.168.4.144/28 [90/281600] via 10.5.5.5, 00:05:10, GigabitEthernet0/0/3
O 192.168.4.148/30 [110/50] via 10.6.6.6, 00:01:20, GigabitEthernet0/0/4
The router receives an IP packet with a destination IP address of . Which next-hop IP address will the router select to forward this packet, and for what reason?
- 10.6.6.6, because the 192.168.4.148/30 prefix provides the longest matching subnet mask for the destination address.Answer
- B10.4.4.4, because static routes have the lowest administrative distance compared to dynamic routing protocols.
- C10.5.5.5, because 192.168.4.150 is evaluated under the 192.168.4.144/28 route due to EIGRP having a lower administrative distance than OSPF.
- D10.1.1.1, because 192.168.4.150 is the broadcast address of 192.168.4.148/30, forcing the packet to use the default gateway.