MAC Address

Hi,I am trying to get the MAC address of the NIC from a non-global zone using 'dlpi'. But I am not able to retrieve the MAC adress . Is it possible to get the MAC address from a non-global zone ? Thanks and Regards,Basent V
[253 byte] By [Basenta] at [2007-11-27 4:18:28]
# 1
The global zone may have multiple interfaces, but this should get you the MAC of the interface your local zone is running on:arp -a | grep `hostname`
MichaelMyersa at 2007-7-12 9:25:14 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 2

Thanx for your reply .. But the problem is I am trying to get the MAC address from my appplication using DLPI interface. For that, first I am trying to open the ethernet card under '/dev' folder which I am not able to find in the local zone. If I could open the device say '/dev/bge0' (which is present in the system) but not listed in the /dev folder in non - global zone I can find the MAC address using DLPI interface.

Thanks and Regards,

Basent

Basenta at 2007-7-12 9:25:14 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 3

Well, you could certainly add the network interface (bge) to $ZONEROOT/dev but that significantly chips away at the isolation that zones provide (root in the zone can probably take down IP addresses of other zones or even the global zone). That's probably the only way to get DLPI to work.

That said, if you just need a programatic interface to this information, do a "man -s 7p arp" to find out how to use the arp interface.

MichaelMyersa at 2007-7-12 9:25:14 > top of Java-index,Solaris Operating System,Solaris 10 Features...