Operating System - HP-UX
1830973 Members
2408 Online
110018 Solutions
New Discussion

Re: How to change hostname/ip documentation?

 
SOLVED
Go to solution
Bart_6
Advisor

How to change hostname/ip documentation?

I want to change the hostname and IP on a HPUX 11.i system. But I cannot seem to find any documentation on how to correctly do this and what considerations I have to take in account.

Thanks in advance for the replies.
oh no.... not THAT again
7 REPLIES 7
Robert-Jan Goossens
Honored Contributor

Re: How to change hostname/ip documentation?

Hi,

You could use the

# set_parms
Usage: set_parms
Where can be:
hostname
timezone
date_time
root_passwd
ip_address
addl_netwrk
or initial (for entire initial boot-time dialog sequence)

After you run the command, check the
/etc/hosts and the /etc/rc.config.d/netconf files and reboot your server.

Hope this helps,
Robert-Jan
miracle
Frequent Advisor

Re: How to change hostname/ip documentation?

There are two ways that I know of.
1) use the set_parms script

2) Change the /etc/hosts file and the /etc/rc.config.d/netconf file and either reboot or shutdown from the console to run level two and restart that run level.
miracle
Frequent Advisor

Re: How to change hostname/ip documentation?

okay.. what about other software that is on your system? Some of these may require new licences depending on what they are.

I am not sure why you have awarded points when the suggestion we have given are the correct methods. The only other method is using SAM if you wish and then reboot your server.
Muthukumar_5
Honored Contributor

Re: How to change hostname/ip documentation?

You can change your hostname permanently and as well as temporarily,

Permanent:

1. set_parms hostname
set_parms ipaddress
2. /etc/rc.config/netconfig file

Temporary:

hostname

wmtp files you have use,
uname -S

IP-Address:
ifconfig up

You can use SAM too to do this.
Easy to suggest when don't know about the problem!
Ravi_8
Honored Contributor

Re: How to change hostname/ip documentation?

Hi

you can do in two ways

1. use the command "set_parms hostname" and "set_parms ip"

2. by editing the files
a. vi /etc/hosts
change the IP and hostname of the machine
b. vi /etc/rc.config.d/netconf
in this file also change hostname, IP

In the first method system will ask you to reboot. New hostname,IP comes into effect after reboot.
whereas in second method, you need to reboot for the changes
never give up
Sergejs Svitnevs
Honored Contributor
Solution

Re: How to change hostname/ip documentation?

Bart_6
Advisor

Re: How to change hostname/ip documentation?

I've been searching with "hostname change" and under those answers I could not find the doc I wanted. Could be my fault . Anyway.

Thanx for the suggestions and solutions. I think this will be fine to do the task at hand.
oh no.... not THAT again