Giter VIP home page Giter VIP logo

ipaddr's Introduction

ipaddr - human friendly list of IP addresses and network interfaces

CircleCI Go Report Card

ipaddr - human friendly list of IP addresses and network interfaces

ipaddr is a convenience tool to quickly show the configured IP addresses with their interfaces on the current system. It's mostly helpful for people working with systems where the output of ip addr show or ifconfig is too big to be human readable.

Installation

# go install github.com/x-way/ipaddr@latest

Usage

Usage: ipaddr [-6] [-l] [<interface>]

Parameters:
  -6	also show IPv6 addresses
  -l	also show IPv6 link-local addresses

By default IPv4 addresses of all interfaces are shown

# ipaddr
lo          127.0.0.1/8
ens5        198.51.100.160/24
tun24008    10.123.199.78/32
tun71991639 10.200.123.5/32
tun26724    10.100.100.235/32
tun3883710  10.123.111.7/32

With the name as parameter only this interface is shown

# ipaddr ens5
ens5 198.51.100.160/24

Use the -6 flag to also show IPv6 addresses

# ipaddr -6
lo          127.0.0.1/8
            ::1/128
ens5        198.51.100.160/24
            2a001:db0:0:1234::1/64
tun24008    10.123.199.78/32
            fdd9:349c:e7dd:248::78/64
tun71991639 10.200.123.5/32
            fdd9:349c:e7dd:719::5/64
tun26724    10.100.100.235/32
            fdd9:349c:e7dd:267::235/64
tun3883710  10.123.111.7/32
            fdd9:349c:e7dd:388::7/64

Use the -l flag to also show IPv6 link-local addresses

# ipaddr -6 -l
lo          127.0.0.1/8
            ::1/128
ens5        198.51.100.160/24
            2a001:db0:0:1234::1/64
            fe80::a9cd:fcff:fc68:fcb/64
tun24008    10.123.199.78/32
            fdd9:349c:e7dd:248::78/64
            fe80::de9:248f/64
tun71991639 10.200.123.5/32
            fdd9:349c:e7dd:719::5/64
            fe80::de9:719f/64
tun26724    10.100.100.235/32
            fdd9:349c:e7dd:267::235/64
            fe80::de9:267f/64
tun3883710  10.123.111.7/32
            fdd9:349c:e7dd:388::7/64
            fe80::de9:388f/64
veth4020119 fe80::8b4b:8ff:fd1c:59ca/64
veth8ba0ee1 fe80::d5cb:c7ff:fe08:3f/64
veth57f5701 fe80::8df8:a5ff:fdb6:42f6/64
veth4bb8ef3 fe80::db6e:bcff:fe48:4b71/64
vethb812901 fe80::69f6:8cff:fdde:67a3/64
veth00898c8 fe80::ed12:59ff:fe68:ebd7/64

ipaddr's People

Contributors

renovate[bot] avatar x-way avatar

Stargazers

 avatar

Watchers

 avatar  avatar

ipaddr's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

circleci
.circleci/config.yml
  • cimg/go 1.22
gomod
go.mod
  • go 1.19

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.