Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Find out Mac address of unplumbed NICs.

5,129 views
Skip to first unread message

per.l...@gmail.com

unread,
Aug 22, 2011, 9:55:59 AM8/22/11
to

// Sys: latest Solaris 10/SPARC //

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

Sami Ketola

unread,
Aug 22, 2011, 1:16:31 PM8/22/11
to
per.l...@fouredge.se <per.l...@gmail.com> wrote:
>
> // Sys: latest Solaris 10/SPARC //
>
> 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).

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

Andrew Gabriel

unread,
Aug 22, 2011, 4:53:39 PM8/22/11
to
In article <0f1224e1-88ce-4f43...@n12g2000yqh.googlegroups.com>,

"per.l...@fouredge.se" <per.l...@gmail.com> writes:
>
> // Sys: latest Solaris 10/SPARC //
>
> 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).

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]

Sami Ketola

unread,
Aug 23, 2011, 1:09:55 AM8/23/11
to
Andrew Gabriel <and...@cucumber.demon.co.uk> wrote:
> In article <0f1224e1-88ce-4f43...@n12g2000yqh.googlegroups.com>,
> "per.l...@fouredge.se" <per.l...@gmail.com> writes:
>>
>> // Sys: latest Solaris 10/SPARC //
>>
>> 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).
>
> dladm show-phys -m (can't remember if this works on S10)

Not in Solaris 10.

Sami

per.l...@gmail.com

unread,
Aug 23, 2011, 5:48:47 AM8/23/11
to
On Aug 22, 7:16 pm, Sami Ketola <Sami.Ket...@iki.finland.invalid>
wrote:

Thx but I need to know which interface is associated with which MAC.
I'll ask the switch.


Rgds

/PL

Sami Ketola

unread,
Aug 23, 2011, 6:50:19 AM8/23/11
to
per.l...@fouredge.se <per.l...@gmail.com> wrote:
> Thx but I need to know which interface is associated with which MAC.

Then you need to plumb them.

> I'll ask the switch.

Switch does not have that information.

Sami

Wolfgang Ley

unread,
Aug 26, 2011, 5:14:56 AM8/26/11
to

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.

per.l...@gmail.com

unread,
Aug 29, 2011, 6:22:48 AM8/29/11
to
On Aug 26, 11:14 am, Wolfgang Ley <newsp...@drusus.de> wrote:

> 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

kcm...@gmail.com

unread,
Aug 23, 2016, 1:14:40 AM8/23/16
to
Solaris 11 you can use ...

dladm show-linkprop|grep mac-add

======
root@S11:~# dladm show-linkprop|grep mac-add
net0 mac-address rw 0:c:29:c3:6f:f3 0:c:29:c3:6f:f3 0:c:29:c3:6f:f3 --
net2 mac-address rw 0:c:29:c3:6f:7 0:c:29:c3:6f:7 0:c:29:c3:6f:7 --
net1 mac-address rw 0:c:29:c3:6f:fd 0:c:29:c3:6f:fd 0:c:29:c3:6f:fd --
net6 mac-address rw 0:c:29:c3:6f:2f 0:c:29:c3:6f:2f 0:c:29:c3:6f:2f --
net5 mac-address rw 0:c:29:c3:6f:25 0:c:29:c3:6f:25 0:c:29:c3:6f:25 --
net3 mac-address rw 0:c:29:c3:6f:11 0:c:29:c3:6f:11 0:c:29:c3:6f:11 --
net4 mac-address rw 0:c:29:c3:6f:1b 0:c:29:c3:6f:1b 0:c:29:c3:6f:1b --
net8 mac-address rw 0:c:29:c3:6f:43 0:c:29:c3:6f:43 0:c:29:c3:6f:43 --
net7 mac-address rw 0:c:29:c3:6f:39 0:c:29:c3:6f:39 0:c:29:c3:6f:39 --
net9 mac-address rw 0:c:29:c3:6f:4d 0:c:29:c3:6f:4d 0:c:29:c3:6f:4d --
root@S11:~#
0 new messages