Operating System - HP-UX
1753344 Members
5099 Online
108792 Solutions
New Discussion

Re: Change IP address lan2 for lan0

 
SOLVED
Go to solution
mura-kei7
Advisor

Change IP address lan2 for lan0

A Itanim HP-UX has been running lan0=192.168.1.1 and lan2=10.1.1.1, and

I must exchange IP address lan2 for lan0.

 

I have a plan that modify settings in /etc/rc.config.d/netconf, and reboot the system.

(for detail [0] is changed to [2], [2] to [0])

 

What' s problem in this  procedure?

I have a only one chance to change it, so, 

please help and advice about this procedure's wrong point.

 

Regards,

mura-kei7

 

5 REPLIES 5
donna hofmeister
Trusted Contributor

Re: Change IP address lan2 for lan0

be sure to have backup copies of any files that you change so that you have a way to return to your original configuration!

 

in addition to modifying your netconf file, you'll also want to check your /etc/hosts file.

 

rebooting is probably the best way to implement this change.  if you can't do that, you may need to watch for routing errors and be prepared to react (route add and route delete)

Naj
Valued Contributor

Re: Change IP address lan2 for lan0

HI,

1. Backup old configuration ( if needed)
2. change ip address
3. restart network service
4. check routing table and try ping to gateway
5.if there getting worst, restart the server

Thanks

BR
Naj

____________________________________________
:: Really appreciate if you could assign some points.
:: Don't know how to assign point? Click the KUDOS! star!
Steven E. Protter
Exalted Contributor

Re: Change IP address lan2 for lan0

Shalom,

So many services require networking that I would plan on a reboot.

Also, access the system via console so that when you are making network changes you don't cut off your access.

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
Torsten.
Acclaimed Contributor

Re: Change IP address lan2 for lan0

Consider to connect to the console and use "set_parms" to do the change - then do a reboot.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
mura-kei7
Advisor
Solution

Re: Change IP address lan2 for lan0

I thank all of you, this change was finished successfully, no trouble occurred.

With Best Regards,

mura-kei