Operating System - HP-UX
1836937 Members
2214 Online
110111 Solutions
New Discussion

Need to change IP address on a K460 running HP-UX 11.0.

 
Vince Arends
Frequent Advisor

Need to change IP address on a K460 running HP-UX 11.0.

I need to change the IP address on my K460, running HP-UX 11.0, Oracle 8.0.5 and Oracle Web Application Server 3.0.2. I have been told that I need to: 1) with the Oracle Listener down, change the host= parameter in my Oracle listener.ora file; 2) change /etc/hosts; 3) change the IP_ADDRESS, SUBNET_MASK, BROADCAST_ADDRESS and ROUTE_GATEWAY parameters in my /etc/rc.config.d/netconf file; 4) do a route delete default address for the old ROUTE_GATEWAY address; 5) do a /sbin/init.d/net start. When all changes are complete, then do netstat -rn, ifconfig lan0 (K460 only has one nic) and then start Oracle up. Does anybody out there know if there is anything else I should do, must do or need to do?
10 REPLIES 10
Rick Garland
Honored Contributor

Re: Need to change IP address on a K460 running HP-UX 11.0.

Any DNS is play? If so, make sure you resolve every which way.

Rita C Workman
Honored Contributor

Re: Need to change IP address on a K460 running HP-UX 11.0.

Recommend using 'set_parms' to change the IP address.

Also go back and make sure all the files /etc/rc.config.d/netconf; etc....look good.

John Palmer
Honored Contributor

Re: Need to change IP address on a K460 running HP-UX 11.0.

Well the way that I'd do it is as follows:-

1) Edit /etc/rc.config.d/netconf.
2) Shutdown to single user mode (shutdown 0)
3) Edit /etc/hosts
4) 'reboot'

Provided you only have your hostname and not a hard coded IP address in your listener.ora file then you don't have to change it. The same applies to tnsnames.ora.

I'm assuming that you have shutdown and startup scripts for Oracle and the Application Server.

Mark Mitchell
Trusted Contributor

Re: Need to change IP address on a K460 running HP-UX 11.0.

A user friendly way to do this is to use SAM
and change the network card settings in there, and then double check your hosts files and configs to make sure there aren't dupplicate entries.
Berlene Herren
Honored Contributor

Re: Need to change IP address on a K460 running HP-UX 11.0.

Like John said - don't forget to edit your hosts file.

Berlene
http://www.mindspring.com/~bkherren/dobes/index.htm
Vince Arends
Frequent Advisor

Re: Need to change IP address on a K460 running HP-UX 11.0.

Thank you all for your responses. Some of them brought more questions. The card is an HP-PB 10/100Base-TX. Comments, please, on using ifconfig (or SAM) to add the second address (it's on a different subnet and router) to the card, then have the DNS entry at corporate changed, and then proceeding from there. And when everything else is changed and working, use ifconfig or SAM to remove the original address?
John Palmer
Honored Contributor

Re: Need to change IP address on a K460 running HP-UX 11.0.

Having a second LAN card to switch to makes the job a lot easier.

You can simply use 'ifconfig' to configure your second card and 'route add' to add any specific network routes that you require. If any of these routes are replacing existing ones on the old card then you can delete the old routes later.

You will have to amend /etc/hosts for the new host IP address and /etc/rc.config.d/netconf so that the configuration is correct the next time you reboot.

It still might be worth rebooting though to ensure that you have got 'netconf' correct. If you just replace references to the old card with the new one then you won't have to remove any of the old addresses.
Rick Garland
Honored Contributor

Re: Need to change IP address on a K460 running HP-UX 11.0.

With a second LAN card, can modify the /etc/rc.config.d/netconf file and add into there. If this is going to be a second LAN for the host, duplicate the entries for the first card and make the necessary changes. Do increase the subscript for the second card. If the first card has subscript of [0], make the entry for the second card [1].

Can also do this for the route changes as well.
Vince Arends
Frequent Advisor

Re: Need to change IP address on a K460 running HP-UX 11.0.

John and Rick, I am only using one card with two addresses, not two separate cards. DNS is controlled by corporate offices - I need to contact them to change address; name is not changing. Do I change /etc/hosts after they have changed DNS, before, or doesn't it matter?
Vince Arends
Frequent Advisor

Re: Need to change IP address on a K460 running HP-UX 11.0.

Thank you, everyone for your help. It went suprisingly well, except the Oracle Forms server had a problem - still don't know why (got the infamous FRM-99999 error. I stopped and restarted the listeners and things seem to be working OK).