Search code examples
solarissunos

On solaris, is there a command to get the Ethernet Card MAC Address without being root


On Solaris, is there a command that I can run to get the MAC address of an ethernet card without running "/sbin/ifconfig -a" as root. Running /sbin/ifconfig -a as a non root user leaves out the MAC address - go figure!

Thanks,

Paul


Solution

  • Try an "arp -a", and look for your own hostname. (This works for me on the Solaris 9 machine I tried it on, but your mileage may vary.)