The sys admin's daily grind: ASN

Charly's Column – ASN

Article from Issue 254/2022

When digging into BGP routing information, Charly avoids the highway through parameter hell thanks to the ASN tool. In addition to a system's AS number, ASN delivers other information, such as its peering partners upstream and downstream.

Every admin knows how to deal with IP addresses. Unfortunately, IPs never turn up alone. They belong to a network, and the network is almost always assigned to an autonomous system (AS), which uses the Border Gateway Protocol (BGP) to exchange routing information.

There is a simple way to find out which AS a particular individual IP belongs to. By way of an example, the following is the IP address of Computec Media's web server, The associated IP address can be discovered using dig or by simply pinging.

I then feed this IP address to a tool named ASN [1]. The shell script aggregates the output of several other tools and presents the results in a clear-cut way. It has a number of dependencies that vary depending on the distribution you are using. What exactly needs to be installed for ASN to work is explained in a separate section on the tool's GitHub page.


Use Express-Checkout link below to read the full article (PDF).

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Charly's Column: Trickle

    If your data traffic suffers from congestion at times, don't worry. Now you can shoot down programs that are heavy on traffic to free up the inflow and outflow.

  • Charly's Column: GestióIP

    A tidy house, a tidy mind they say, and I’ll leave it up to you to consider what being disorganized might mean. Anybody who has tried to manage hundreds of IP addresses using just a sheet of paper or a spreadsheet will probably appreciate some help.

  • Charly's Column – Speedometer

    Thanks to LTE, state-of-the-art Internet technology has now made its way into Charly's quiet home. Accustomed to the sorrows of low surf speeds, our columnist prefers to make his own measurements.

  • Charly's Column: Pulse

    Equal treatment, as sys admin Charly so boldly proposes, should be the norm. What he really wants is a free tool to sync user data across multiple computers.

  • The sys admin's daily grind: Smorgasbord

    Sys admin columnist Charly Kühnast has an electronic note box in which he collects ideas and small snippets of code. He calls it his "quarry" and is taking this opportunity to offer up some collectors' items to regular readers.

comments powered by Disqus

Direct Download

Read full article as PDF:

Price $2.95