who_is_using_this_ip_address
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
who_is_using_this_ip_address [2013/12/01 11:02] – created samer | who_is_using_this_ip_address [2014/02/08 23:27] – samer | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | A frequent question that faces network administrators or application developers consists in identifying //who is using a specific public IP address// | + | ====== Who is Using This IP Address? ===== |
- | == Limitations of the whois information | + | A frequent question that faces network administrators or application developers consists in identifying //who is using a specific public IP address//. This information |
- | A typical method to identify the AS that announces a specific IP address is to use the whois protocol. A whois command is available on main OSes and enables to query the databases | + | ===== -- Limitations |
- | <pre class=" | + | A typical method to identify the AS that announces a specific IP prefix is to use the whois protocol. A whois command is available on main OSes and enables to query the databases of regional registries such as ARIN, RIPE, LACNINC, ... A very interesting [[http:// |
- | origin: | + | |
- | </ | + | |
- | One way to do this is by querying the whois server of a routing registry such as RADB or RIPE, and looking for the origin attribute of a route object. However, not all networks properly register their route objects, so the information might not be available or may be outdated. Another method is by looking at the actual BGP route table for the origin AS of a prefix. You could do this on your own BGP speaking routers or on a public route server with the "show ip bgp" command (or equivalent), | + | $ whois -h whois.ripe.net |
+ | origin: | ||
- | == Using BGP information | + | However things get complicated very rapidly since the route object |
- | <pre class=" | + | $ whois -h whois.apnic.net 203.178.141.194 | grep origin |
- | % This is RIPE NCC's Routing Information Service | + | |
- | % whois gateway to collected BGP Routing Tables | + | |
- | % IPv4 or IPv6 address to origin | + | |
- | % | + | |
- | % For more information visit http:// | + | |
- | route: | + | ===== -- Using BGP Information ===== |
- | origin: | + | |
- | descr: | + | |
- | lastupd-frst: 2013-11-09 23: | + | |
- | lastupd-last: | + | |
- | seen-at: | + | |
- | num-rispeers: | + | |
- | source: | + | |
- | route: 217.0.0.0/8 | + | An alternative method for identifying the AS that announces a specific IP prefix consists in studying the BGP routing information. Typically, each BGP speaking router stores in a BGP table the routing announcements received for each prefix together with some protocol attributes such as the AS-PATH. This attribute contains the list of ASes traversed by the BGP announcement, |
- | origin: AS3303 | + | |
- | descr: | + | [{{ : |
- | lastupd-frst: 2013-09-24 09:23Z 217.29.66.120@rrc10 | + | |
- | lastupd-last: 2013-11-09 23: | + | However, having access to a DFZ BGP router is not easy in practice. Alternatively, |
- | seen-at: rrc04,rrc10 | + | Let us try for example to log on the Allstream route server in Canada and identify the origin AS of '' |
- | num-rispeers: 3 | + | |
- | source: RISWHOIS | + | $ telnet route-server.east.bb.allstream.net |
+ | route-server.east> | ||
+ | BGP routing table entry for 148.60.0.0/ | ||
+ | Paths: (4 available, best #4, table default) | ||
+ | Not advertised to any peer | ||
+ | 15290 3356 1273 2200 | ||
+ | 199.212.162.69 from 199.212.162.69 (199.212.162.69) | ||
+ | | ||
+ | Community: 15290:3356 15290:64995 15290:65050 15290: | ||
+ | 15290 3356 1273 2200 | ||
+ | 199.212.162.68 from 199.212.162.68 | ||
+ | Origin IGP, localpref 100, valid, external | ||
+ | Community: 15290:3356 15290:64995 15290:65050 15290: | ||
+ | 15290 3356 1273 2200 | ||
+ | 199.212.162.66 from 199.212.162.66 (199.212.162.66) | ||
+ | Origin IGP, localpref 100, valid, external | ||
+ | Community: 15290:3356 15290:64995 15290:65050 15290: | ||
+ | 15290 3356 1273 2200 | ||
+ | 199.212.162.67 from 199.212.162.67 (199.212.162.67) | ||
+ | Origin IGP, localpref 100, valid, external, best | ||
+ | Community: 15290:3356 15290:64995 15290:65050 15290: | ||
+ | |||
+ | Despite its availability, | ||
+ | |||
+ | ==== -- Team Cymru whois Server ==== | ||
+ | |||
+ | Team Cymru implements the '' | ||
+ | |||
+ | < | ||
+ | $ whois -h whois.cymru.com 148.60.0.0/16 | ||
+ | AS | IP | AS Name | ||
+ | 2200 | 148.60.0.0 | ||
+ | </ | ||
+ | |||
+ | and another example that demonstrates the possibility of sending multiple addresses in the same query: | ||
+ | |||
+ | < | ||
+ | $ whois -h whois.cymru.com 148.60.0.0/ | ||
+ | AS | IP | AS Name | ||
+ | 2200 | 148.60.0.0 | ||
+ | AS | IP | AS Name | ||
+ | 2500 | 203.178.141.194 | WIDE-BB WIDE Project | ||
+ | </ | ||
+ | |||
+ | ==== -- Riswhois Server ==== | ||
+ | RIPE NCC implements a similar whois service named RISwhois by providing a higher level view over the most recently collected set of routing tables from the Remote Route Collectors (RRCs) | ||
+ | |||
+ | <WRAP info> | ||
+ | As mentioned on the [[http:// | ||
+ | </ | ||
+ | |||
+ | In the following, a simple example shows the output of a riswhois query: '' | ||
- | route: | + | < |
- | origin: | + | $ whois -h riswhois.ripe.net 203.178.141.194 |
- | descr: | + | route: |
- | lastupd-frst: | + | origin: |
- | lastupd-last: | + | descr: |
+ | lastupd-frst: | ||
+ | lastupd-last: | ||
seen-at: | seen-at: | ||
- | num-rispeers: | + | num-rispeers: |
source: | source: | ||
- | </pre> | + | </code> |
- | ## A Do-It-Yourself BGP query service | + | ===== -- A Do-It-Yourself BGP Query Service ===== |
- | [1]: http:// | + | Start by downloading multiple routing tables for routeviews or RIPE RIS servers. Transform these tables into parsable format bu using bgpdump. Use any scripting language |
who_is_using_this_ip_address.txt · Last modified: 2014/02/15 23:31 by samer