1753840 Members
8856 Online
108806 Solutions
New Discussion юеВ

ifconfig & netconf

 
Sharon Bi_4
Occasional Advisor

ifconfig & netconf

Hi,

I tried to change IP address on HP box. As I know that all the IP, subnet mask
and default gateway are stored in /etc/rc.config.d/netconf file.

* In order to change IP, can I just go the change those parameters in file "
netconf"

* I tried to use " ifconfig" command also.

First, I use " hpux -is " to bring up the machine to single user mode.

Then I executed command: " ifconfig lan0 x.x.x.x "

Then I did a " lanscan lan0 " to check. The IP WAS changes. But those
parameters in "netconf" wasn't changed.

Then I reboot the system. The IP WAS NOT changed.

Does anybody know what is the right procedure to change an IP?
4 REPLIES 4
Mark Waddington_2
New Member

Re: ifconfig & netconf

We recently added a second network card in a HP-UX system. Then moved the
address of the existing network card to the new one.

To change the address of the new card, the following was done through SAM:

Select: Networking and Communications
Select: Network Interface Cards
select the Card Type
Under Actions > Configure
then change the Internet Address

This changed the address in the netconf file.
Fernando Santana
Frequent Advisor

Re: ifconfig & netconf

Hi, just simply change the necessary parameters in your netconf file and
reboot. I preffer this rather than do it online, run level 2 or higher, with
"ifconfig lanX down" and use ifconfig with your new IP to bring the interface
back up. I feel changing netconf and rebooting is cleaner because the "arp"
table entry for this server gets renewed at other systems when they retry
connection.
Frank Broeer
Frequent Advisor

Re: ifconfig & netconf

an easy and simple way to change the network parameter is to use the
set_parms command

option:
ip_address >>>> changes the ip address
addl_netwrk >>>> changes default gatway,...

and so on
Berlene Herren_1
Super Advisor

Re: ifconfig & netconf

I have to agree with Frank!

Berlene