3 ms·
'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.
by vacri 15y ago
'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.
- mrud 15y agojust add -4 or -6: ip -4 addr show dev eth0 or ip -6 a s eth0