Skip to content

Look up route origin information from the command-line

License

Notifications You must be signed in to change notification settings

thatmattlove/addr

Repository files navigation

addr


Look up route origin information from the command-line

GitHub Workflow Status Codecov GitHub release (latest SemVer)

addr gets its information from the wonderful bgp.tools.

Installation

macOS

Homebrew

brew tap thatmattlove/addr
brew install addr

Linux

Debian/Ubuntu (APT)

echo "deb [trusted=yes] https://repo.fury.io/thatmattlove/ /" > /etc/apt/sources.list.d/thatmattlove.fury.list
sudo apt update
sudo apt install addr

RHEL/CentOS (YUM)

echo -e "[fury-thatmattlove]\nname=thatmattlove\nbaseurl=https://repo.fury.io/thatmattlove/\nenabled=1\ngpgcheck=0" > /etc/yum.repos.d/thatmattlove.fury.repo
sudo yum update
sudo yum install addr

Windows

TODO In the meantime, download from releases

Usage

./addr --help
addr is a tool to look up IP & ASN ownership and routing information.

Usage:
  addr [flags]
  addr [command]

Available Commands:
  asn         Look up an ASN
  completion  Generate the autocompletion script for the specified shell
  help        Help about any command
  ip          Look up an IP address or prefix

Flags:
  -h, --help      help for addr
  -v, --version   version for addr

Use "addr [command] --help" for more information about a command.

ASN

IP Address/Prefix

GitHub