Guest User

Untitled

a guest
Feb 22nd, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. cat /proc/net/fib_trie
  2.  
  3. cat /proc/net/fib_trie | grep "|--" | egrep -v "0.0.0.0| 127."
  4. |-- 193.136.1.0
  5. |-- 193.136.1.2
  6. |-- 193.136.1.255
  7. |-- 193.136.1.0
  8. |-- 193.136.1.2
  9. |-- 193.136.1.255
  10.  
  11. $ ip addr | awk '/^[0-9]+/ { currentinterface=$2 } $1 == "inet" { split( $2, foo, "/" ); print currentinterface ,foo[1] }'
  12. lo: 127.0.0.1
  13. eth0: 10.28.9.29
Add Comment
Please, Sign In to add comment