Hi every body!
I was reading my book when encountered the following:
The command " netstat-rn" on windows xp host shows host routing table.
I always believe the routers have routing table. How could a host have routing table?
Thanks a lot.
Hosts still can have routing tables although they usually only contain a default route pointing to the hosts default-gateway.
However there is nothing to stop you adding static routes to the host with the "route add ..." command and you can even run a dynamic routing protocol such as RIP on a host if you want.
Bear in mind that a host still needs to do a route lookup to send packets. Usually this consists purely of
1) if it's on my own subnet then arp out and send packet
2) if it's not on my subnet then send to default-gateway
It's recommended to let routers do the routing and hosts to just have a default-gateway.