Giter VIP home page Giter VIP logo

nics's Introduction

nics

Display information about Network Interface Cards (NICs). This program's output is easier to read compared to ipconfig, ip, or ifconfig.

Usage

nics: Display information about Network Interface Cards (NICs)
usage: nics [options]
  -a	show all details on ALL interfaces, includes DHCP info on Windows
  -d	show debug information
  -i string
    	interface name
  -v	show program version

Installation

  • macOS: brew tap jftuga/homebrew-tap; brew update; brew install jftuga/tap/nics
  • Binaries for Linux, macOS and Windows are provided in the releases section.

Examples

C:\GitHub\nics>nics
+----------+----------------+-------------------+------+------------------------+
|   NAME   |      IPV4      |    MAC ADDRESS    | MTU  |         FLAGS          |
+----------+----------------+-------------------+------+------------------------+
| Ethernet | 172.16.7.89/24 | 98:ff:aa:cb:24:a0 | 1500 | up|broadcast|multicast |
+----------+----------------+-------------------+------+------------------------+

+------------+------------+------------+
|  GATEWAY   |    DNS1    |    DNS2    |
+------------+------------+------------+
| 172.22.7.1 | 172.16.7.2 | 172.16.7.3 |
+------------+------------+------------+
pi@raspberrypi:~ $ nics -a
+---------+---------------+------------------------------+-------------------+-------+-----------+
|  NAME   |     IPV4      |             IPV6             |    MAC ADDRESS    |  MTU  |   FLAGS   |
+---------+---------------+------------------------------+-------------------+-------+-----------+
| lo      | 127.0.0.1/8   | ::1/128                      |                   | 65536 | up        |
|         |               |                              |                   |       | loopback  |
+---------+---------------+------------------------------+-------------------+-------+-----------+
| eth0    | 172.16.7.6/24 | fe80::51d3:4fc2:5a11:3abc/64 | b8:27:eb:b2:ea:11 |  1500 | up        |
|         |               |                              |                   |       | broadcast |
|         |               |                              |                   |       | multicast |
+---------+---------------+------------------------------+-------------------+-------+-----------+
| wlan0   |               |                              | b8:27:eb:c4:4e:2a |  1500 | up        |
|         |               |                              |                   |       | broadcast |
|         |               |                              |                   |       | multicast |
+---------+---------------+------------------------------+-------------------+-------+-----------+
| docker0 | 172.17.0.1/16 |                              | 02:42:60:1b:aa:30 |  1500 | up        |
|         |               |                              |                   |       | broadcast |
|         |               |                              |                   |       | multicast |
+---------+---------------+------------------------------+-------------------+-------+-----------+

+------------+-----------+-------+
|  GATEWAY   |   DNS 1   | DNS 2 |
+------------+-----------+-------+
| 172.16.7.1 | 127.0.0.1 |       |
+------------+-----------+-------+
jftuga@debian:~$ nics -a

+---------+---------------+------------------------------+-------------------+-------+-----------+
|  NAME   |     IPV4      |             IPV6             |    MAC ADDRESS    |  MTU  |   FLAGS   |
+---------+---------------+------------------------------+-------------------+-------+-----------+
| lo      | 127.0.0.1/8   | ::1/128                      |                   | 65536 | up        |
|         |               |                              |                   |       | loopback  |
+---------+---------------+------------------------------+-------------------+-------+-----------+
| enp3s0  | 172.22.2.6/24 | fe80::51d3:4fc2:face:6b4c/64 | d4:b4:e7:aa:73:c2 |  1500 | up        |
|         |               |                              |                   |       | broadcast |
|         |               |                              |                   |       | multicast |
+---------+---------------+------------------------------+-------------------+-------+-----------+
| docker0 | 172.17.0.1/16 |                              | 02:42:60:42:af:a3 |  1500 | up        |
|         |               |                              |                   |       | broadcast |
|         |               |                              |                   |       | multicast |
+---------+---------------+------------------------------+-------------------+-------+-----------+

+------------+------------+------------+
|  GATEWAY   |   DNS 1    |   DNS 2    |
+------------+------------+------------+
| 172.22.2.1 | 172.22.2.2 | 172.22.2.3 |
+------------+------------+------------+

nics's People

Contributors

dependabot[bot] avatar jftuga avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

nics's Issues

Feature Request: Allow -i <INTERFACE NAME> to show full output of selected interface

Wanted to see how difficult it would be to add -i <NIC_NAME> if I have a bunch of interfaces? I use MacOS and it shows a bunch of garbage info when I do -a, making it hard to parse and goes against the spirit of this application (IMHO).

This would also be used in conjunction with -a as it's more useful than doing ifconfig en0 on MacOS

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.