Operating System - HP-UX
1826490 Members
3887 Online
109692 Solutions
New Discussion

Re: Changing the Machine IP Address

 
SOLVED
Go to solution
Vinesh Dhevcharran
Occasional Advisor

Changing the Machine IP Address

Hi,

I need to change the machine IP address. What do I need to do?

From SAM /Networking & Communications / Network Interface Cards I can modify the IP address.

Is there anything else that I need to do or are there other files in the OS that I may need to change manually?
11 REPLIES 11
Michael Steele_2
Honored Contributor

Re: Changing the Machine IP Address

Just run:

set_parms ip_address

...and the system will do the rest automatically.

If you need to reconfigure all of your network settings then:

set_parms initial
Support Fatherhood - Stop Family Law
A. Clay Stephenson
Acclaimed Contributor

Re: Changing the Machine IP Address

The easist is set_parms ip_address. It will walk you through the process and make the necessary changes.

man set_parms for details.
If it ain't broke, I can fix that.
Ken Hubnik_2
Honored Contributor

Re: Changing the Machine IP Address

If you are using DNS then you have to make the changes to your DNS server also.
Gary Yu
Super Advisor

Re: Changing the Machine IP Address

Hi,

We are going to do change IP address on 2 servers too. I think besides chaning the IP address itself, you have to update /etc/hosts files on other servers' in the same local network or update DNS entry accordingly.

Most important, many applications may have IP binding configs, you may want to go through them one by one, make sure no apps are broken. i.e, if it's oracle server, you need to modify tnsname resolution for listener. if it's iPlanet server, you also need to modify something. also check OTHER servers have communications with this server, there may have some settings/scripts are based on IP, not host name.

thanks,
Gary
Vinesh Dhevcharran
Occasional Advisor

Re: Changing the Machine IP Address

Hi,

Thanks for the responses thus far.

I made the IP change using set_parms ip_address and I changed the broadcast address via SAM.

I rebooted the machine and noticed that the IP address had not changed. I then changed it via SAM and I also changed the default gateway via set_parms netwrk.

I then tried running SAM and it just got stuck. I tried init 0 and this also got stuck. I eventually hard booted the machine and noticed that there was a failure on "Configuring the network interface". Also, SAM is still not working.

Any ideas as to what is going on here?
Yuri Kozlov
Advisor

Re: Changing the Machine IP Address

init 1
vi /etc/rc.config.d/netconf
vi /etc/hosts
reboot machine

Murray Lawrence
Occasional Advisor
Solution

Re: Changing the Machine IP Address

1) sam ==> Network and Communications ==>
Network Interface Cards
Configure IP addressing,
default gateway, etc

2) vi /etc/rc.config.d/netconf and confirm
all changes have been done. This is probably where your problem lies. smit doesn't always properly update this boottime config.

3) we must do that lunch sometime; let me know
when next the lot of you are in town.

4) reboot

5) phone me if it still doesn't work

Marco Santerre
Honored Contributor

Re: Changing the Machine IP Address

I would definitely look into /etc/rc.config.d/netconf and make sure that :

1) Your new IP address is configured
2) That your old IP address is not in the file anymore
3) Your indexes are labeled correctly (eg. INTERFACE_NAME[0], INTERFACE_NAME[1], etc.. )
4) You do not have any backup of the netconf file in your /etc/rc.config.d directory.

After that I would reboot, and verify my lan config to make sure it is alright.
Cooperation is doing with a smile what you have to do anyhow.
Michael Steele_2
Honored Contributor

Re: Changing the Machine IP Address

Regarding 'init 0'. This 'halts' the machine and is equivalent to 'shutdown -h now'.

SAM can be unreliable unless all patched up. If you depend upon SAM then I would check the patch releases periodically.

To obtain new patches from HP select 'maintenance and support' > 'individual patches' > HP-UX > fill out the version and enter 'SAM' into the search data field. There will be a lot patches because SAM is all encompassing, so it might be better to just load the patch releases as you receive them by CDROM.

Also, SAM is not a trouble shooting utility. HP even publishes this. Its just a convenient configuration utility in GUI format.
Support Fatherhood - Stop Family Law
Gary Yu
Super Advisor

Re: Changing the Machine IP Address

Hi, I would check /etc/rc.config.d/netconf file, especially the default gateway, most probably after you changed the IP address, the default gateway is not reachable anymore, so the server failed on initializing the network interface.

thanks,
Gary
KCS_1
Respected Contributor

Re: Changing the Machine IP Address

Hi,


Here is one of thread what are you looking for

have a look at this

http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000007950779


Easy going at all.