1822040 Members
3325 Online
109640 Solutions
New Discussion юеВ

Re: Change MAC address

 
SOLVED
Go to solution
Bravo_1
Advisor

Change MAC address

Hi,

I would like to find out if other than using SAM, is there any other way to change a MAC address? ie any configuartion files that can be changed, etc

Thanks in advance!
16 REPLIES 16
Sandy Chen
Honored Contributor

Re: Change MAC address

Hi,

If you mean IP address, it's on /etc/rc.config.d/netconf

if you really mean for MAC Address, then I would love to know any way to change it.

Regards,
Sandy
I never think of the future. It comes soon enough.
Luk Vandenbussche
Honored Contributor

Re: Change MAC address

Why will you do this.
A MAC address is unique to a network card.
vinu_2
Advisor

Re: Change MAC address

Hi bravo,

For getting the mac addresss follow the folowing steps:

1. As the root user (or user with appropriate permissions)

2. Type "/usr/sbin/lanscan"
From the displayed information, find lan0 (this is the default first Ethernet adapter)
3. Locate the number below Address. This is your MAC address The MAC Address will be displayed in the form of 0x000E7F0D81D6 -- the leading hexadecimal indicator should be removed. For this example, the actual MAC Address would be 00:0E:7F:0D:81:D6.




As per my knowledge we cannot change the mac address because its factory made.

Thanks and regards,

Vinu
Think before whatever you are doing
AwadheshPandey
Honored Contributor

Re: Change MAC address

Bravo,

Mac address of network card is unique and vendor specific. I belive you cant change it.
if u mean the ip_address then you can change it with set_parms ip_address

Regards,

Awadhehs
It's kind of fun to do the impossible
Steven E. Protter
Exalted Contributor

Re: Change MAC address

Shalom,

Well lanscan will of course show you the address. I'm not sure the OS itself supports changing it, at least from the response center will help perspective.

http://docs.hp.com/en/B5502-90006/B5502-90006.pdf
lanadmin can apparently be used to do this job.


SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
whiteknight
Honored Contributor

Re: Change MAC address


Hi Bravo,

The System Administration Manager (SAM) updates the
/etc/rc.config.d/hpetherconf file, whereas lanadmin -A does not.

If the file exists, the contents are read and assigned mac addresses
for network cards. If the file does not exist, the mac address is
read off the card.

To change the mac address in SAM:

1. On the network and communication menu, select network interface card.

2. Select card.

3. Do ACTION configure.

4. Make the mac address changes in the Advance options portion. <<=


Again, we don't usually change it as it is a unique number (hardcoded by factory)

Problem never ends, you must know how to fix it
Steven Schweda
Honored Contributor

Re: Change MAC address

Many modern Ethernet cards can have their
hardware addresses changed, usually using a
vendor-specific utility program which runs on
x86 hardware. The manufacturer can normally
be trusted to assign a unique number when
the card is made. Most other folks are less
reliable. One reason to want to do it is a
hardware failure on a system where some
software product's license enforcement is
tied to the Ethernet card's hardware address.
Many _very_ old cards had plug-in PROM chips
which could be swapped around when the card
was replaced.

> [...] change a MAC address?

Why?
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: Change MAC address

You don't need SAM at all. Find the Ethernet configuration applicable to your NIC and OS version (hpetherconf, btlanconf, ...) in /etc/rc.config.d. If applicable there will be a value something like HP_BTLAN_STATION_ADDRESS[0]=
When blank, the logical MAC address is that of the physical MAC (ie. what is on the card itself) but if not blank, the logical MAC address becomes the value supplied. You can then run lanadmin -A 0x01234567890AB but it's best to actually reboot so that you are certain of your changes in the config file.

Now, why are you doing this? If you are trying to "out bushwhack" licensing that was based upon the old MAC address (which is normally the only reason you would want to do this) then that may or may not be successful. I've seen some license monitors which read the physical MAC no matter what the logical value is.
If it ain't broke, I can fix that.
Juan M Leon
Trusted Contributor

Re: Change MAC address

I believe on SUN machines you can clone the MAC address via eprom, hoever I don't think you can do the same on HPUX servers.

Good luck
Bravo_1
Advisor

Re: Change MAC address

Hi guys,

Thanks for all the info! The reason is because, in my system, we have a sudden change of mac address detected by the router and was puzzled how it happened. To my knowledge, no one would really wan to change a mac address. So I wanted to see if there was any configuration files to check for any corruption or error.

Regards
A. Clay Stephenson
Acclaimed Contributor

Re: Change MAC address

I suspect that what really happened is that at some point the same IP address was found associated with different MAC addresses --- not at all uncommon in a DHCP environment or if someone made a booboo.
If it ain't broke, I can fix that.
Bravo_1
Advisor

Re: Change MAC address

AC,

do you mean software error or bug? In my case, the IP is fixed. We have changed the entire router hope it will solve the problem.

Thanks again!
A. Clay Stephenson
Acclaimed Contributor

Re: Change MAC address

It could simply mean that someone assigned the same IP address to two different hosts briefly. The router doesn't have a clue that it was your host --- all it would know that at one time IP address 10.1.2.3 was associated with MAC address 0x1234567890AB and then it saw that IP address 10.1.2.3 was associated with MAC Address 0xBA0987654321. You message was probably informational only.
If it ain't broke, I can fix that.
Bravo_1
Advisor

Re: Change MAC address

Thanks alot guys!
Bravo_1
Advisor

Re: Change MAC address

Thanks alot!
rick jones
Honored Contributor

Re: Change MAC address

Strictly speaking, the MAC address isn't "changed." Rather the MAC address used by the card is overridden. If you were to pull the card and put it into another system it would revert to the MAC address "permanently" configured into the card.

there is no rest for the wicked yet the virtuous have no pillows