Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

'ip addr show dev eth0' will show you the cruft just for eth0, but I'm not sure if there's a way to limit it to just listing the ipv4 or v6 addresses.


just add -4 or -6:

  ip -4 addr show dev eth0 or ip -6 a s eth0




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: