Operating System - HP-UX
1832872 Members
2625 Online
110048 Solutions
New Discussion

Edit with a new IP with new MAC to existing NICs

 
santosh_12_1
Occasional Contributor

Edit with a new IP with new MAC to existing NICs

Is there anyway that i can edit a NIC with a IP and a MAC.
Also, if so, is it possible to update a NIC with a MAC address of my choice. For ex: 0x000000000.

Please help me to know on this.

Thanks
4 REPLIES 4
Pete Randall
Outstanding Contributor

Re: Edit with a new IP with new MAC to existing NICs

Do a man on lanadmin. This command will temporarily change NIC properties. To make permanent changes you will need to edit the appropriate /etc/rc.config.d/hp*conf file.


Pete

Pete
Hakki Aydin Ucar
Honored Contributor

Re: Edit with a new IP with new MAC to existing NICs

As far as I know;

Under HP-UX, you can change the MAC address in SAM by selecting Networking and Communications, then selecting the interface, then Action, Modify, Advanced Options. HP-UX refers to the MAC address as the "station address".
sen_ux
Valued Contributor

Re: Edit with a new IP with new MAC to existing NICs

man page says..

lanadmin -A 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.
Jestin John Chacko
Regular Advisor

Re: Edit with a new IP with new MAC to existing NICs

Hai,



Use this link i think it will help U
to have a better understanding

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1364510