I want to list all availible physical (or virtual on DomU) NICs connected to motherboard and see it's MAC addresses.
I guess that related information should be somewhere in /proc or may be in output of some command.
The option to list ifcfg-ethX files clearly not suitable here.
Thank you for ahead.
echo $line | cut -d'/' -f 5\t:"; echo -e "\tcat $line/address"; done – Rodnower Aug 23 '10 at 10:47for i in /sys/class/net/* ; do echo -en "${i##*/}:\t" ; cat "$i"/address ; done– Ignacio Vazquez-Abrams Aug 23 '10 at 15:41