1826460 Members
3209 Online
109692 Solutions
New Discussion

Change MAC Address

 
SOLVED
Go to solution
Konrad Hegner
Frequent Advisor

Change MAC Address

We have to change the MAC-addresses by K380 and rp54x0 -Servers (because the history). Now I would know, in which OSI-levels is the new Address observable. They told me, that on OSI-Level 1 you would see always the original MAC-address and also with a 'sniffer' you will find anytime the original address.

What's the true story and where I have to change the MAC-address, that it is 'for ever'?

Regards Konrad
6 REPLIES 6
Stefan Farrelly
Honored Contributor

Re: Change MAC Address


You change the mac address using lanadmin -x or -X (for startup it usually reads the info from the lan config file in /etc/rc.config.d matching your lancard eg. netconf or if youre using a 100Mb card the appropriate config file, eg. hpetherconf).

Weve used this before when necessary and it worked fine. arp was updated with the new address, I can remember our network guys checking it and dont remember anyone saying they could still detect the original mac address after we had changed it. We thought the change was permanent and the original address was now undetectable.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Armin Feller
Honored Contributor

Re: Change MAC Address

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.
Rajeev  Shukla
Honored Contributor

Re: Change MAC Address

MAC address is in the physical layer but why do you need to change that. It is automatically updated by ARP(Address resolution protocol).
By the way do you mean that you are replacing K380 by rp54x0 server and want to swap the IP.

Cheers
Rajeev
Carlos Fernandez Riera
Honored Contributor

Re: Change MAC Address


See:
/sbin/rc2.d/S320hpether
/sbin/rc2.d/S323hpbase100

and their conf. files:

/etc/rc.config.d/hpbase100conf
/etc/rc.config.d/hpetherconf


unsupported
U.SivaKumar_2
Honored Contributor
Solution

Re: Change MAC Address

Hi,

First run
#lanscan
Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI DLPI
Path Address In# State NamePPA ID Type Support Mjr#
10/0/12/0 0x0030D301688D 0 UP lan0 snap0 1 ETHER Yes 119

Here 0 is the PPA number of the interface ( folowing MAC address ).

Now use lanadmin command with -A option to change the MAC address.

Be very very careful in selection of new MAC address.

eg:

#lanadmin -A 0x__________ 0

Ref:

-A station_addr Set the new station address of the interface
corresponding to PPA. The station_addr must
be entered in hex format with a '0x' prefix.
You must have superuser privileges. When
station_addr is DEFAULT, the factory default
physical address will be restored.

WARNING: To ensure the interface and the
system work correctly, the interface MUST be
brought down before setting the new station
address. After the new station address is
set, the interface should be brought up in
order to be functional. See ifconfig(1M) for
bringing down and bringing up the interface.



regards,
U.SivaKumar

Innovations are made when conventions are broken
Bill McNAMARA_1
Honored Contributor

Re: Change MAC Address

for xterminals btw (which use bootp so be careful) you'd have to do a remsh xterm debug
and remsh xterm get log (to see exact syntax)
Later,
Bill
It works for me (tm)