Get ethernet address

Hi,

How do I get ethernet (mac) address of all the interfaces (including the unplumbed interfaces) ? I do not want to use ifconfig -a plumb and unplumb. Looking for some other ways. Even c program will help.

I am looking for S9 as well as S10. So dladm also wont work as it is only for S10

Thanks

Here it is... in C
Retrieving MAC Address in Solaris using C as a non-root user : paulie's world in blog form

1 Like

Thank you "incredible" for the info. One last question. Is there a way to get IP address too?