Is there a nice way to find out the MAC address of an interface that
has never been plumbed?
(# arp -a doesn't solve this one).
Thanks.
Rgds
/PL
you can grep local-mac-address from prtconf -vp output.
but without plumbing them there is no way of knowing which interface name
each interface gets.
Sami
dladm show-phys -m (can't remember if this works on S10)
or
plumb it, ifconfig <interface>, unplumb it.
--
Andrew Gabriel
[email address is not usable -- followup in the newsgroup]
Not in Solaris 10.
Sami
Thx but I need to know which interface is associated with which MAC.
I'll ask the switch.
Rgds
/PL
Then you need to plumb them.
> I'll ask the switch.
Switch does not have that information.
Sami
The dladm show-phys command is indeed Solaris 11 only. There is no
specific command in Solaris 10 to get this information.
The easiest way is to use "ifconfig -a plumb" and then use the
"ifconfig -a" command to check for the mac addresses.
If you do not want this then then alternative would be to manually
parse the output of the prtpicl command. Check the output of
"prtpicl -c network -v". This should include "driver-name" and
"instance" to associate an a block to a specific network interface
and the "local-mac-address" to get the mac address of that entry.
Bye,
Wolfgang.
> If you do not want this then then alternative would be to manually
> parse the output of the prtpicl command. Check the output of
> "prtpicl -c network -v". This should include "driver-name" and
> "instance" to associate an a block to a specific network interface
> and the "local-mac-address" to get the mac address of that entry.
This did the trick. Many thanks!
Rgds
/PL