Operating System - HP-UX
1826501 Members
1873 Online
109692 Solutions
New Discussion

Configuring IP addresses in HP-UX

 
SOLVED
Go to solution
Ryan Bernard
Frequent Advisor

Configuring IP addresses in HP-UX

Hi. I am trying to configure loopback address in HP-UX. Can somebody please kindly advice the correct steps to do it?

I did some search and think the steps are something as below?
1) Change in /etc/rc.config.d/netconf
2) /sbin/init.d/start

thanks alot in advance
10 REPLIES 10
Mel Burslan
Honored Contributor

Re: Configuring IP addresses in HP-UX

Your question is a little bit puzzling. Are you trying to change your loopback address from 127.0.0.1 to something else ? This address gets set up when you install your system and changing it might result in unpredictable behavior. So, take this a s word of caution and proceed at your own risk.
________________________________
UNIX because I majored in cryptology...
Steven E. Protter
Exalted Contributor

Re: Configuring IP addresses in HP-UX

Shalom,

1) is correct.

2) is not

/sbin/init.d/net stop
/sbin/init.d/net start

Many network services are impacted by changes here, practically speaking its better to reboot.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ryan Bernard
Frequent Advisor

Re: Configuring IP addresses in HP-UX

Thanks to all who reply. I just trying out to configure the loopback address for some testing. Thanks for your caution.

So bascially the steps are to edit /etc/rc.config.d/netconf and reboot server? Any other changes required?
Laurent Menase
Honored Contributor

Re: Configuring IP addresses in HP-UX

Hi Ryan,

I will not bet on the result.

What sort of tests are you trying to do?

there may be some places in the kernel which is using 127.0.0.1 as loopback in any cse.

Steven E. Protter
Exalted Contributor

Re: Configuring IP addresses in HP-UX

Shalom,

So bascially the steps are to edit /etc/rc.config.d/netconf and reboot server? Any other changes required?

That will do it.

Changing the loopback address will most likely make it impossible for the server to work with any network at all.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Shiv007
Frequent Advisor
Solution

Re: Configuring IP addresses in HP-UX

Hi Shalom,

You can use the command "set_parms ip_address"

or you can try doing that using.

"ifconfig inet netmask up"

or you can try the below:

change whichever network parameter you want and follow this


cd /etc/rc.config.d
vi netconf

Edit the "LAN" card number:
EXAMPLE:
INTERFACE_NAME[0]=lan0
to ...
INTERFACE_NAME[0]=lan1

Save file.

Then stop and restart network services on the target server:

cd /sbin/init.d
./net stop
./net.init stop
./nettl stop

start in reverse order
./nettl start
./net.init start
./net start

hope any of these should solve your problem.

Thanks
Shivaprasad
Laurent Menase
Honored Contributor

Re: Configuring IP addresses in HP-UX

Hi Ryan,

It may be interesting that you tell us what test you are trying to achieve.
There is may be some less hazardous solutions.
Steven E. Protter
Exalted Contributor

Re: Configuring IP addresses in HP-UX

Shivaprasad A V,

Shalom is sometimes a name, but in this case is how I greet, when I post answers to threads.

It means hello, goodbye and peace.

Interesting follow up answer. Keep on ITRC'ing.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ryan Bernard
Frequent Advisor

Re: Configuring IP addresses in HP-UX

Thanks to all for your advice. Now I know what "shalom" mean as I see it pretty frequently. :)