Refer to the exhibit. Which entry is the longest-prefix match for host IP address 192.168.10.5?
192.168.10.5
The longest-prefix match is the matching route with the most specific subnet mask. For 192.168.10.5, all listed networks match, but entry 2 uses mask 255.255.255.192 (/26), which is more specific than entry 1 (/23), entry 3 (/16), and entry 4 (/19). The /26 network 192.168.10.0/26 includes addresses 192.168.10.0 through 192.168.10.63, so 192.168.10.5 falls within it and entry 2 is selected.
255.255.255.192
/26
/23
/16
/19
192.168.10.0/26
192.168.10.0
192.168.10.63
Community Discussion