[SunHELP] How can i get the MAC address

Joe Pampel joe at ardsley.com
Tue Jun 18 08:58:47 CDT 2002


What's this then? :-)   "arp <hostname>" is a cleaner quicker command I agree,
good tip! But ifconfig -a
does in fact return the MAC.

M5# ifconfig -a
lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet A.B.C.39 netmask ffffff00 broadcast A.B.C.255
        groupname multi1
        ether 8:0:20:92:c7:a4
hme0:1:
flags=9040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER> mtu
1500 index 2
        inet A.B.C.36 netmask ffffff00 broadcast A.B.C.255
hme1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
        inet A.B.C.38 netmask ffffff00 broadcast A.B.C.255
        groupname multi1
        ether 8:0:20:92:c7:a4
hme1:1:
flags=9040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER> mtu
1500 index 3
        inet A.B.C.37 netmask ffffff00 broadcast A.B.C.255
M5#

and here is arp <hostname>

M5# arp m5
m5 (A.B.C.39) at 8:0:20:92:c7:a4 permanent published

- Joe




>>> -Mark Sailer- <n2jtw at yahoo.com> 06/18/02 09:03AM >>>
ifconfig -a doesn't return the mac address.
Try arp hostname.  This will give you IP and MAC
address

Mark

--- Joe Pampel <joe at ardsley.com> wrote:
> For host ID:  just type "hostid"  This will return
> the hex host ID.
> For hostname, type "hostname" This will return the
> given machine name.
>
> For the MAC address, type "ifconfig -a"  This will
> return all info about your
> interfaces including the MAC addresses.
>
> hth
>
> Joe
>
>
>
> >>> "Zakaria A. Mattar" <zmattar at atc.com.sa>
> 06/18/02 08:10AM >>>
> Hello there,
> How can i get the MAC address, and the host id for a
> sparc machine while
> its up.
>
> Zakaria A. Mattar
> Advanced Telecom Co.
> Operation Engineer
> Tel:   +966 1 4601877/114
> Fax:   +966 1 4601988
> Email: zmattar at atc.com.sa
> _______________________________________________
> SunHELP maillist  -  SunHELP at sunhelp.org
> http://www.sunhelp.org/mailman/listinfo/sunhelp
>
>
>
>
**********************************************************************
> This email and any files transmitted with it are
> confidential and
> intended solely for the use of the individual or
> entity to whom they
> are addressed. If you have received this email in
> error please notify
> the system manager.
>
> This footnote also confirms that this email message
> has been swept by
> MIMEsweeper for the presence of computer viruses.
>
> www.mimesweeper.com
>
**********************************************************************
> _______________________________________________
> SunHELP maillist  -  SunHELP at sunhelp.org
> http://www.sunhelp.org/mailman/listinfo/sunhelp
_______________________________________________
SunHELP maillist  -  SunHELP at sunhelp.org
http://www.sunhelp.org/mailman/listinfo/sunhelp



More information about the SunHELP mailing list