Daily Shaarli

All links of one day in a single page.

August 4, 2017

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

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

grep '32 host LOCAL' -B 1 /proc/net/fib_trie | grep -Po '|-- \K(.*)' | grep -v '127.0.0.1' | sort | uniq | tr '\n' ' '

sinon via une commande propre : "hostname --all-ip-addresses || hostname -I"

Bonjour DGCCRF, je souhaite parler à Orange, stp - GuiGui's Show

Avis pertinent et intéressant sur l'offre fibre Orange.