Operating System - HP-UX
1748176 Members
4117 Online
108758 Solutions
New Discussion юеВ

Re: How to find MAC address ?

 
SOLVED
Go to solution
Deepak Kulkarni
Regular Advisor

Re: How to find MAC address ?

Hi etc.

I mean first ping the with IP adress of the server which you would like to know. And then run `arp -a`.

For Ex.

1) Ping xxx.xxx.xxx.xxx
2) arp -a

Cheers
DK
Sp4admin
Trusted Contributor

Re: How to find MAC address ?

Hi etc,

This will give you the MAC addess for all the interfaces.

#lanscan -ia
Jaime Bolanos Rojas.
Honored Contributor

Re: How to find MAC address ?

Hello etc!

From SAM ---> Networking and communication, select interface, then actions, then modify and it will show you the current mac address.

Regards,

Jaime.
Work hard when the need comes out.
Patrick Wallek
Honored Contributor

Re: How to find MAC address ?

The 'arp -a' command will give you the MAC addresses for other machines, but NOT your local machine.
Sean Dale
Trusted Contributor

Re: How to find MAC address ?

I would use lanscan since it also shows the hardware address and status of the cards.
Live life everyday
James R. Ferguson
Acclaimed Contributor

Re: How to find MAC address ?

Hi:

Interesting. My first query would have been to do:

# man -k lan

...and noted commands like 'lanadmin(1M)' 'lan*conf(1M)' and 'lanscan'. From there I would scan the corresponding manpages...

:-))

Regards!

...JRF...
Deepak Kulkarni
Regular Advisor

Re: How to find MAC address ?

Hi Patrick,

Yesi Patrick you are right. I was in the impression that, to find the other server MAC address from the local server. :-)

Cheers
DK
Ivan Ferreira
Honored Contributor

Re: How to find MAC address ?

If you want to find out the mac of a remote machine, ping to that machine and then run arp -a:

# ping 1.2.3.4
PING 1.2.3.4 (1.2.3.4): 56 data bytes
64 bytes from 1.2.3.4: icmp_seq=0 ttl=255 time=1 ms

# arp -a |grep 1.2.3.4

1.2.3.4 at 08-e8-18-ef-c2-c3
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
dictum9
Super Advisor

Re: How to find MAC address ?

Here is the problem, I need to find the MAC of a specific interface on all machines and I don't know if it's lan0, lan1 or whatever.

I need the equivalent of the Solaris command "ifconfig -a" which as you are aware displays MAC addresses for all interfaces.

Therefore, for me, it's a 2 or 3 step process, first I need to determine which interface I should be looking at (and how do I do that??) and then determine its MAC.
James R. Ferguson
Acclaimed Contributor

Re: How to find MAC address ?

Hi (again):

With regard to you last question, if you use:

# netstat -i

...the first field is the name of the interface. This name can be used in a subsequent 'lanscan' query:

# netstat -i|grep "$(hostname)"|cut -d" " -f1

...note output, and:

# lanscan|grep

Regards!

...JRF...