"route print" questions

  • Thread starter Thread starter Polaris
  • Start date Start date
P

Polaris

Hi Experts:

I have a few questions regarding route table:

(1) does "route print" give the same result as IPHelper API
"GetIPForwardTable()" ?
(2) will "route print" give same results on different machines belonging to
same subnet?

Thanks in Advance!
Polaris
 
Polaris said:
(1) does "route print" give the same result as IPHelper API "GetIPForwardTable()" ?

"Depends" indicates that route.exe actually uses the (undocumented on MSDN!) function
AllocateAndGetIpForwardTableFromStack(). This function probably returns the same
data as GetIpForwardTable().
(2) will "route print" give same results on different machines belonging to same subnet?

By definition: No. The routing table has several entries that contain the host's own IP
address (as you can see from the "route print" output), so the results must be different
on different machines.

Please also note that every host maintains it routing table independently.

Regards,
-Roger
 
So each host will have a unique entry for itself, but unless the routing
table is modified by something or someone manually, the automatic Windows
build should be the same otherwise.

....kurt
 
Each adapter of the host have few routes in route table so there may be many
routes unique to the host
Arkady
 
Back
Top