"route print" questions

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
 
R

Roger Hunen

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
 
K

Kurt

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
 
A

Arkady Frenkel

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top