Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can your run a looking glass script at home, and see what the BGP route is to a given IP via your cable/dsl provider?

share|improve this question
up vote 9 down vote accepted

Generally no.

The upstream(s) need to explicitly configure their routers to let you connect to them and receive their bgp feed.

share|improve this answer
and assuming they have done that, how would the script than work? – win08r2newbie Nov 8 '10 at 23:05
The feed would constantly update the global routing information. Assuming you want to track a single IP, you would monitor said feed for changes relating to the netblock that IP is in. – Joris Nov 9 '10 at 19:21

You generally are not given access to your upstream ISP's routing table.

You can infer how they route with traceroute for a given destination IP. (keep in mind that this can change over time)

You could also write a script to login to other external looking glass systems to see how a particular route is being announced to the outside world. That might give you some insight too.

Route Views is one well known one.

share|improve this answer

I'm not sure you want a looking glass script. You could just traceroute out to the destination and see how it goes via the traceroute, and make guesses on the BGP path with the reverse DNS on the IPs... or you could use a looking glass that your ISP happens to have.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.