Operating System - HP-UX
1832805 Members
3164 Online
110045 Solutions
New Discussion

Re: How to change ip address & hostname on HP-ux9.04

 
원유광
Advisor

How to change ip address & hostname on HP-ux9.04

I using HPUX9.04.
my server is crached so i did installed this server by dd.
after install, I want setup the ip address & hostname. I can not this because old version.

Please help me
10 REPLIES 10
Orhan Biyiklioglu
Respected Contributor

Re: How to change ip address & hostname on HP-ux9.04

Try

#set_parms initial


hth
Muthukumar_5
Honored Contributor

Re: How to change ip address & hostname on HP-ux9.04

change hostname with ipaddress informations with /etc/rc.config.d/netconf.

You can set also with,

set_parms initial

hth.
Easy to suggest when don't know about the problem!
Bharat Katkar
Honored Contributor

Re: How to change ip address & hostname on HP-ux9.04

# set_parms initial

allows you to configure entire things.


Specifically for Ip add and network configuration use:

# set_parms addl_netwrk

To configure hostname use:

# set_parms hostname


If you configure hostname system will reboot so first configure networks and then hostname.

Regards,

You need to know a lot to actually know how little you know
Muthukumar_5
Honored Contributor

Re: How to change ip address & hostname on HP-ux9.04

Are you able to use set_parms utility?

Try if it is not there,

# hostname
# vi /etc/hosts
xx.xx.xx.xx hostname.domainname.com hostname

save this.

# ifconfig ip-address up

Save this settings with /etc/rc.config.d/netconf configuration file and reboot the machine. Is the configuration existing?

hth.
Easy to suggest when don't know about the problem!
Victor BERRIDGE
Honored Contributor

Re: How to change ip address & hostname on HP-ux9.04

Hi,
What system is it?
I suppose if you dont know much about 9.04 the easiest way would be:
Setting the system name and IP by using Networks/Communication menu in SAM:
Start SAM by typing sam as root on the console, the SAM main menu will show up.
Move the cursor by using arrow keys or pressing key
Go to Networks/Communication ->
For IP select the menu item
Select menu item
Press the sftkey which will bring you to a choices screen with one or more lan card and select lan0 it should then return to View/Modify screen with additional fields.
Fill the fields and once finished press softkey
Then exit sam...

Good luck
Victor
melvyn burnard
Honored Contributor

Re: How to change ip address & hostname on HP-ux9.04

Well 9.04 is quite old, and long out of support, but if I recall the file you need to look at is /etc/netlinkrc
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Victor BERRIDGE
Honored Contributor

Re: How to change ip address & hostname on HP-ux9.04

Thinking of it,
I agree with previous replies, Im quite sure I used at the time set_parms... because I remember now watching after I installed my first HPUX 9 how it booted for the first time and noticed it called a file in /etc: set_parms and looking at the file saw I could use it to reset the time...
So try /etc/set_parms hostname
It should do both (name, IP...)


All the best
Victor
Pete Randall
Outstanding Contributor

Re: How to change ip address & hostname on HP-ux9.04


Checking back in my training text from way back in 9.04 days, it says the hostname can be set in either or both /etc/src.sh or /etc/rc. The entries look like this:

SYSTEM_NAME=your_host_name
export SYSTEM_NAME


The IP address can, indeed, be set with /etc/set_parms. Verify that it appears in /etc/hosts afterwards.


Pete

Pete
Pete Randall
Outstanding Contributor

Re: How to change ip address & hostname on HP-ux9.04

Come to think of it, you can set the hostname with /etc/set_parms, too!


Pete

Pete
Shibin_2
Honored Contributor

Re: How to change ip address & hostname on HP-ux9.04

Change the parameters on the file netconf located at /etc/rc.config.d/.

It is the easy way.

Hope this helps.
Regards
Shibin