[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now


Parent Router

Posted on 2001-06-15
Medium Priority
Last Modified: 2010-04-02
Is their a way to programatically find the parent router of an ip address.  I am writing a program that requires a ping or to know the parent router for a given ip address.  I would like to see some code or sample.

Thanks in advance

Question by:ramrocket
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 32

Expert Comment

ID: 6196789
Get the source code for TRACEROUTE.  It's in every Linux or FreeBSD distribution out there.  There is no guarantee that a "parent" router is always the same since routing is a dynamic thing and packets can take different paths at different times.  But using the technique in traceroute, you will get _A_ route from A to B.  For any IP in the list, the next one will be a "parent".

Author Comment

ID: 6197010
hance, that is the problem, routing is dynamic however that is ok with my requirements.  Where do I get traceroute?  What do you mean the next one will be a parent?
LVL 32

Accepted Solution

jhance earned 800 total points
ID: 6197249
>>>Where do I get traceroute?  

It's in every Linux or FreeBSD distribution out there.  

>>What do you mean the next one will be a parent?

TRACEROUTE gives you a list of IP addresses, one after the other in sequence.  That is the ROUTE to the endpoint.

Try it, you'll see.  If you have Windows NT or 2000 there is TRACERT that does the same thing.
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 6204140
jhance, will these traceroute work with NT?  Can you give a url to download the source?
LVL 32

Expert Comment

ID: 6204509

Author Comment

ID: 6206761
jhance, this code does not compile using vc6.0 under winnt2000.  

>>>If you have Windows NT or 2000 there is TRACERT that does the same thing.

can you point me where the source to tracert.  I need this to work on an nt machine.  I am not doing development under unix or its flavor.

LVL 32

Expert Comment

ID: 6207154
Sorry.  You expanded the scope of this question well beyond its original parameters.  You asked for an explanation of HOW to do this and for a source code sample and I've provided both!  

Now you want a complete VC++ 6.0 application for Windows 2000.


Author Comment

ID: 6208226
jhance, I apologize for the misunderstanding.  I am not requiring a complete vc6.0 app for win2k.  Like I said in my original query, I am writing a program that need to incorporate this functionality.  The source code that you point me to is not integratable with my program and therefore is useless to me.  Please work with me on this.  I am willing to increase the points but I need something that is usable.


Expert Comment

ID: 6451128

You logged in recently.  This appears to have been overlooked, or perhaps due to some of the system problems we had for a brief time with Email notifications, your last comments may not have been received by the participating experts.  PLEASE RETURN here and accept/grade this if it helped you or provide additional information to ensure that the need still exists today and nothing further has changed to get you what you need as quickly as possible.

This remains open today, awaiting your next action.


Community Support Moderator @ Experts Exchange
LVL 11

Expert Comment

ID: 6819161
I think you forgot this question. I will ask Community Support to close it unless you finalize it within 7 days. Unless there is objection or further activity,  I will suggest to accept "jhance" comment(s) as an answer.

If you think your question was not answered at all, you can post a request in Community support (please include this link) to refund your points.
The link to the Community Support area is: http://www.experts-exchange.com/jsp/qList.jsp?ta=commspt


Expert Comment

ID: 6837614
Accepted recommendation by:

CS Admin @ EE

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question