Operating System - HP-UX
1825747 Members
2608 Online
109687 Solutions
New Discussion

Re: Changing IP address / Hostname using SET ATTRIBUTE

 
SOLVED
Go to solution
Vassilios
Frequent Advisor

Changing IP address / Hostname using SET ATTRIBUTE

Hello all:

When changing the IP address/hostname of an HP unix workstation, i know there are certain files to update/change etc, but someone informed me of a command called SET ATTRIBUTE . They said that this was a utility that did all the IP changes for you. How does this work?? (i cant say i've come across it before)

If this is not the case, what steps do i need to do to execute an IP and Hostname change? for me, its just:

a) /etc/hosts --> change IP @ and host name here
b) plumb and unplumb the Network Interface cards with the correct IP addresses.

Anything else missing from this list??
5 REPLIES 5
JASH_2
Trusted Contributor
Solution

Re: Changing IP address / Hostname using SET ATTRIBUTE

Vassilios,

SAM would go away and change all of the files for you, or using the job:-
#set_parms initial

But I have not heard of aet attribute.

Regards,

JASH
If I can, I will!
IT_2007
Honored Contributor

Re: Changing IP address / Hostname using SET ATTRIBUTE

Hi,

use set_parms utility to change hostname, ip address etc..

set_parms hostname
set_parms ip_address
set_parms addl_netwrk

For every above command you run, it will ask to reboot your system say no to it. Once you done all steps then reboot.

Otherwise, you can do this way, change necessary info on /etc/hosts and /etc/rc.config.d/netconf file and reboot machine.

Thanks,
Srini
spex
Honored Contributor

Re: Changing IP address / Hostname using SET ATTRIBUTE

Vassilios,

If you are uncomfortable with doing it from the command line, SAM will let you change a host's IP address:

1) sam &
2) Networking and Communications
3) Network Interface Cards
4) Double-click on the appropriate interface

PCS
Patrick Wallek
Honored Contributor

Re: Changing IP address / Hostname using SET ATTRIBUTE

If changing the IP address manually you will also need to modify the /etc/rc.config.d/netconf file. This is the file that HP-UX gets the name and IP address from when the machine boots up.

If you are using DNS you must also remember to change the IP address on your DNS server.

Vassilios
Frequent Advisor

Re: Changing IP address / Hostname using SET ATTRIBUTE

ok. That's great. Thank u all. I'm going to give u all 10 points.

Have a great summer!