I'm Looking at this routing table from netstat -r
.
How does the interface relate to the Gateway? the first entry has gateway 192.168.1.1
which is the gateway to the router. the Interface says 192.168.1.1
which is private IP in the 192.168.1.*
network current. so I think any packet that doesn't match any other entry is sent to the router.
My confusion is with an entry like the 5th one 192.168.1.0
with subnet mask 255.255.255.0
so a packet going to 192.168.1.32
for example is taken to Gateway On-link
(not 100% sure what that means) and the interface is 192.168.1.11
which is the same interface as the default. so is this entry doing the same as the default? does the gateway make a difference?
so what happens when a packet wants to go to 192.168.1.32
does it go to the router 192.168.1.1
or does it mean that it just goes to 192.168.1.11
which is the same as just staying on the computer?