Operating System - HP-UX
1826290 Members
4492 Online
109692 Solutions
New Discussion

Re: Changing IP of interface

 
SOLVED
Go to solution
Chris2005
Regular Advisor

Changing IP of interface

I want to change my interface's IP. I've done that by ifconfig .

But where and how do I configure the machine, so it boots with this IP in the future?

Thanx in advance.

Regards,
Chris
2 REPLIES 2
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: Changing IP of interface

Edit /etc/rc.config.d/netconf. You will see an array of entries like:
INTERFACE_NAME[0]="lan0"
IP_ADDRESS[0]=xxxxxx

multiple ip addresses can be defined by making copies of these entries and changing the array subscript.
If it ain't broke, I can fix that.
Sp4admin
Trusted Contributor

Re: Changing IP of interface

Hey Chris,

To make IP change you can vi the /etc/rc.config.d/netconf file or even use SAM if you want. I would make a copy of the file before making the change.

sp,