PROJET AUTOBLOG


Shaarli - Librement Shaarli

Site original : Shaarli - Librement Shaarli

⇐ retour index

linux - How to get the IPV4 address for an interface from /proc - Unix & Linux Stack Exchange

vendredi 4 août 2017 à 17:49
The table is pretty intelligible doing a mere, first comes the Main: and then Local:

cat /proc/net/fib_trie

or to see your network, IP addresses and netmask:

cat /proc/net/fib_trie | grep "|--"   | egrep -v "0.0.0.0| 127."
       |-- 193.136.1.0
       |-- 193.136.1.2
    |-- 193.136.1.255
       |-- 193.136.1.0
       |-- 193.136.1.2
    |-- 193.136.1.255      

Permalink