1827286 Members
1735 Online
109717 Solutions
New Discussion

change mac address

 
Maurizio_5
Frequent Advisor

change mac address

Hi,
I've a rp5470 HPUX 11 server,
it has two nic, is it possible to change the NICs' mac address?

Regards,
Maurizio
Mau
10 REPLIES 10
John Meissner
Esteemed Contributor

Re: change mac address

yeah... just replace the nic with a new one :)

I don't belive it's possible.. it's hard coded into the nic I believe
All paths lead to destiny
Maurizio_5
Frequent Advisor

Re: change mac address

I see that changing the sw mac address is possible, but which is the mac address used by the switch tha connect the server to the gateway?
If I change the mac addres does the switch correct and renew all the arp table?

Regards,
Maurizio
Mau
John Meissner
Esteemed Contributor

Re: change mac address

Pete - you've caused me to lean something new today... thank you. Sorry for my flawed answer Maurizio
All paths lead to destiny
Paul Sperry
Honored Contributor

Re: change mac address

in /etc/rc.config.d directory depending on the nic you are using the file will vary.
mine is hpetherconf. Any way look for the file containing
HP_ETHER_STATION_ADDRESS[0]
grep HP_ETHER_STATION_ADDRESS[0] *

edit it to be

HP_ETHER_STATION_ADDRESS[0]="whateever_mac_address"

and reboot.

be carefull you don't use a mac that is allready on your lan/wan
twang
Honored Contributor

Re: change mac address

go to /etc/rc.config.d, find your NIC's coresponding conf file,eg. /etc/rc.config.d/hpbase100conf, then change the following variable to desired value HP_BASE100_STATION_ADDRESS[0]=0x00306E031990
Pete Randall
Outstanding Contributor

Re: change mac address

Maurizio,

I don't know for certain but strongly believe that the switch will see the software mac address.


Pete

Pete
Bill Douglass
Esteemed Contributor

Re: change mac address

Your layer 2 devices will see the new mac address, as that is what will be listed in packets coming from the host after you make the change.

You may need to dump the ARP table on your switch and/or gateway, esp. if you have a firewall like a cisco PIX.

Why do you want to change the MAC address?
Maurizio_5
Frequent Advisor

Re: change mac address

Hi,
I've to create a port aggregation manualy without APA, so test the working nic each 30'' and if It doesn't work a script shout down it and start-up the second nic with the same IP.
Mau
Caesar_3
Esteemed Contributor

Re: change mac address

Hello!

Yes it's posiable:
1. run /usr/sam/sbin/laninfo
(* if i wrong in the path try to search)
it will return you your NICs the last field is the type of the card (hpbase100, hpether, etc.)
remember the name.
2. cd /etc/rc.config.d
3. open file hpbase100 or hpether or other that is like the name that you get from the laninfo inside fill the parameters of your card and the wanted mac adress.

Caesar