Operating System - HP-UX
1752801 Members
5876 Online
108789 Solutions
New Discussion юеВ

How to known mac address in one lan900

 
SOLVED
Go to solution
Carme Torca
Super Advisor

How to known mac address in one lan900

Hi,

I want to know the mac address of all the interfaces of one lan900.
When I do
# lanscan -q
900 0 2
And if I do:
# lanscan
LinkAgg0 0x0019BBEB2E40 900 UP lan900 snap900 11 ETHER Yes 119

and if I do:

#ifconfig lan900
lan900: flags=8000000000001843
inet 14.5.11.82 netmask ffffffe0 broadcast 14.25.111.95
#arp -a

14.5.11.65 (14.5.11.65) at 0:16:47:a2:94:5e ether

When I put arp -a, the mac address is not the same...What is it this mac? and How could I known the mac of lan0 and lan2, because I only have one mac (0x0019BBEB2E40).

Thanks a lot of,
Carmen.

Users are not too bad ;-)
5 REPLIES 5
Taifur
Respected Contributor

Re: How to known mac address in one lan900

Hi,

U can check mac addrees as follows,
# lanscan -a
is showing MAC address only,
# lanscan -v
gives a lot of information.
see
# man lanscan

Cheers//
Taifur
Taifur
Respected Contributor

Re: How to known mac address in one lan900

Hi,

U can check mac addrees as follows,
# lanscan |awk '{print $2}'|grep -v Station|grep -v Address

As for example the above command displayed the mac address in HEX again ie 0x00108303390F..

Cheers//
Taifur
Taifur
Respected Contributor
Solution

Re: How to known mac address in one lan900

Hi,

A MAC address *IS* HEX. Always.
You will never find a MAC address that is not hex. The only difference you will see is upper-case versus lower case, and differences in the seperator(s)

0x0019BBEB2E40 =00.19.BB.EB.2E.40

Cheers//
Taifur
Benoy Daniel
Trusted Contributor

Re: How to known mac address in one lan900

Do a lanadmin -g 0 and lanadmin -g 2. In that, station address is called MAC address for that particular interface.

Raj D.
Honored Contributor

Re: How to known mac address in one lan900

Carmen,

If you are using 11.31 use # nwmgr to see the mac address:, else lansacn can be use.

Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "