how to get mac address of network interfaces

  • Follow


the Question is how to get the mac adress of NOT plumbed network
interfaces.

It is easy to get mac addr. of plumbed interfaces (ifconfig -a) but
what about not plumbed interfaces.

the local-mac-address? is set to true.

Thx
potros
 
0
Reply mohm 2/7/2005 6:45:26 PM

mohm senad wrote:
> the Question is how to get the mac adress of NOT plumbed network
> interfaces.
> 
> It is easy to get mac addr. of plumbed interfaces (ifconfig -a) but
> what about not plumbed interfaces.
> 
May be 'arp' is your friend
0
Reply PM 2/7/2005 7:00:43 PM


On Mon, 07 Feb 2005 20:00:43 +0100, PM <pm@gmx.de> wrote:

>mohm senad wrote:
>> the Question is how to get the mac adress of NOT plumbed network
>> interfaces.
>> 
>> It is easy to get mac addr. of plumbed interfaces (ifconfig -a) but
>> what about not plumbed interfaces.
>> 
>May be 'arp' is your friend

as I wrote the interface is not plumbed! it has no IP-addr. It is used
for heart-beat, without IP.
0
Reply mohm 2/7/2005 7:56:35 PM

mohm senad wrote:

> the Question is how to get the mac adress of NOT plumbed network
> interfaces.
> 
> It is easy to get mac addr. of plumbed interfaces (ifconfig -a) but
> what about not plumbed interfaces.
> 
> the local-mac-address? is set to true.
> 
> Thx
> potros
>  

# prtconf -pv | grep local-mac-address
will give you some, but sadly not all the info.
--
Chris
0
Reply Chris 2/7/2005 8:24:37 PM

`prtpicl -v` 
may work

0
Reply brandysimon 2/8/2005 4:22:43 AM

mohm senad <mohmi2003@yahoo.de> wrote in 
news:ljdf01d19v4gv4vkc9rcguf48e9m1bftdm@4ax.com:

> the Question is how to get the mac adress of NOT plumbed network
> interfaces.
> 
> It is easy to get mac addr. of plumbed interfaces (ifconfig -a) but
> what about not plumbed interfaces.
> 
> the local-mac-address? is set to true.
> 
> Thx
> potros
>  

Why don't you plumb the interface, then you can find the mac address with 
the ifconfig command.

0
Reply John 2/11/2005 2:57:19 AM

On Fri, 11 Feb 2005 02:57:19 GMT, John Blackburn
<john.d.blackburn@transport.qlNO_SPAMd.gov.au> wrote:

>mohm senad <mohmi2003@yahoo.de> wrote in 
>news:ljdf01d19v4gv4vkc9rcguf48e9m1bftdm@4ax.com:
>
>> the Question is how to get the mac adress of NOT plumbed network
>> interfaces.
>> 
>> It is easy to get mac addr. of plumbed interfaces (ifconfig -a) but
>> what about not plumbed interfaces.
>> 
>> the local-mac-address? is set to true.
>> 
>> Thx
>> potros
>>  
>
>Why don't you plumb the interface, then you can find the mac address with 
>the ifconfig command.
the interface is used for llt in a very early system startup phase.
so I do not like tp get tcpip on it running at all.
0
Reply mohm 2/13/2005 5:53:29 PM

mohm senad <mohmi2003@yahoo.de> writes:
> the interface is used for llt in a very early system startup phase.
> so I do not like tp get tcpip on it running at all.

In that case, the best answer is probably to do it the way ifconfig
does: open the DLPI node (/dev/<name> or /dev/<name><ppa>), and use
DL_PHYS_ADDR_REQ to get the address.

-- 
James Carlson, IP Systems Group                <james.d.carlson@sun.com>
Sun Microsystems / 1 Network Drive         71.234W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.497N   Fax +1 781 442 1677
0
Reply James 2/23/2005 1:02:26 PM

In article <qr4v0153hi2mfphuru6bkup2nfgdu9jbki@4ax.com>,
mohm senad  <mohmi2003@yahoo.de> wrote:
>On Fri, 11 Feb 2005 02:57:19 GMT, John Blackburn
><john.d.blackburn@transport.qlNO_SPAMd.gov.au> wrote:
>
>>mohm senad <mohmi2003@yahoo.de> wrote in 
>>news:ljdf01d19v4gv4vkc9rcguf48e9m1bftdm@4ax.com:
>>
>>> the Question is how to get the mac adress of NOT plumbed network
>>> interfaces.
>>> 
>>> It is easy to get mac addr. of plumbed interfaces (ifconfig -a) but
>>> what about not plumbed interfaces.
>>> 
>>> the local-mac-address? is set to true.
>>> 
>>> Thx
>>> potros
>>>  
>>
>>Why don't you plumb the interface, then you can find the mac address with 
>>the ifconfig command.
>the interface is used for llt in a very early system startup phase.
>so I do not like tp get tcpip on it running at all.

You would not have to leave it plumbed.  You could plumb it (but not set up
a tcp address), find out the mac address, and then unplumb it.  You would
only have to do this once.
-- 
Tom Schulz
schulz@adi.com
0
Reply schulz 2/23/2005 10:17:09 PM

8 Replies
1724 Views

(page loaded in 0.024 seconds)

Similiar Articles:













7/22/2012 8:43:00 PM


Reply: