|
6 years ago | |
---|---|---|
LICENSE.txt | 6 years ago | |
README.md | 6 years ago | |
tfip.c | 6 years ago |
This tool simply gives you output of the ip addresses on your systems, and what interfaces they're attached to. It yields this in a format compatible with tools like 'awk' or other useful text processors for easy use in scripts.
git clone git://github.com/erikh/tfip
cd tfip
make tfip
Just running tfip
is the simplest introduction. Just running that will give
you a list of all the IPv4 and IPv6 addresses and the interfaces they are
attached to on a machine.
There are two arguments:
tfip 4
will only display IPv4 addressestfip 6
will only display IPv6 addresses$ tfip
lo: 127.0.0.1
enp3s0: 10.0.1.6
docker0: 172.17.42.1
lo: ::1
enp3s0: fe80::ae22:bff:fe2b:6b71%enp3s0
enp3s0: fe80::eaec:25ce:1f4:5ac5%enp3s0
docker0: fe80::5484:7aff:fefe:9799%docker0
docker0: fe80::5ed2:fa94:613f:6138%docker0
$ tfip 4
lo: 127.0.0.1
enp3s0: 10.0.1.6
docker0: 172.17.42.1
$ tfip 6
lo: ::1
enp3s0: fe80::ae22:bff:fe2b:6b71%enp3s0
enp3s0: fe80::eaec:25ce:1f4:5ac5%enp3s0
docker0: fe80::5484:7aff:fefe:9799%docker0
docker0: fe80::5ed2:fa94:613f:6138%docker0
Erik Hollensbe github@hollensbe.org
Public Domain, free to use for any reason.