User:Needle/mdev

From Gentoo Wiki
Jump to: navigation, search

Get MAC address for /etc/mactab

root #ip addr | egrep 'eth[0-9]:|ether' |awk '{print $2}'
eth0:
aa:bb:cc:dd:ee:ff
eth1:
12:34:56:78:90:ab
root #chmod 600 /etc/mactab