Sunday, May 17, 2020

Basic Routing Question

Here are some lines when I run "route print":

IPv4 Route Table

Active Routes:

Network Destination Netmask Gateway Interface Metric

0.0.0.0 0.0.0.0 192.168.1.1 192.168.1.5 25

127.0.0.0 255.0.0.0 On-link 127.0.0.1 331

127.0.0.1 255.255.255.255 On-link 127.0.0.1 331

127.255.255.255 255.255.255.255 On-link 127.0.0.1 331

You can see that the top line has a metric of 25 while the other lines have a metric of 331. Because the packet should follow the route with the lowest metric, that should mean if I ping 127.0.0.1, the packet should go out the 192.168.1.5 interface. This is not what happens. What's going on, why is the packet taking the route with the higher metric?



No comments:

Post a Comment