1848881 Members
4350 Online
104038 Solutions
New Discussion

Change address

 
SOLVED
Go to solution
O'lnes
Regular Advisor

Change address

Hi,

I am an HP-UX programmer, who is out of my arena on SCO-Unix. We have a
facility which has a HP unix box, which is currently unsupported and will
be trashed shortly after they get connected into our corporate computer.
However, to connect them to our corporate computer, I need to change the IP
addresses of the unix machine and the PC's that connect to it (they use real
Class-A addresses, and I am going to connect to corporate via internet
tunnel).

Anyway, to make a long story short, could someone run me thru the commands
to change the IP address on the unix box. Thx.
Andy
11 REPLIES 11
Bill Hassell
Honored Contributor

Re: Change address

Use the command set_parms. You'll need to run it twice: once for the ip address and again for the additional network parameters. This will have to be accomplished from the serial console as the changes will terminate any existing connection. You may need to change /etc/resolv.conf to match the new network's DNS servers.


Bill Hassell, sysadmin
S.K. Chan
Honored Contributor

Re: Change address

You can do this 2 ways actually, using the "set_parms" command ..
# set_parms ip_address
===> It'll prompt for you to enter the IP address.
# set_parms addl_netwrk
===> Run this ONLY if you need to the subnet mask and default gateway.
Another way is modifying 2 files
a) /etc/rc.config.d/netconf
b) /etc/hosts
Both ways will require a system reboot.



T G Manikandan
Honored Contributor
Solution

Re: Change address


Usage: set_parms
Where can be:
hostname
timezone
date_time
root_passwd
ip_address
addl_netwrk
O'lnes
Regular Advisor

Re: Change address

What deamon need to restart after change the setting?
Andy
benoit Bruckert
Honored Contributor

Re: Change address

/sbin/init.d/net stop
/sbin/init.d/net start
Don't do it from a network connection, but from the console !
hth
Benoit
Une application mal pansée aboutit à une usine à gaze (GHG)
U.SivaKumar_2
Honored Contributor

Re: Change address

Hi,
You need not give net stop as it will interrupt
the network users.

Simply give net start even network is running , it will cause rereading of netconf file.
This is mush faster without interruption.
#/sbin/init.d/net start

regards,
U.SivaKumar



Innovations are made when conventions are broken
O'lnes
Regular Advisor

Re: Change address

I also use the set_parms to change the hostname 'set_parms hostname' , then run /sbin/init.d/net stop and /sbin/init.d/net start , but the hostname still not change , what service should i restart ? cos i really don't want to reboot the host.

Thx.
Andy
T G Manikandan
Honored Contributor

Re: Change address

Try doing a
/sbin/init.d/hostname start

Else you should reboot the workstation
T G Manikandan
Honored Contributor

Re: Change address

Make sure that /etc/hosts
and /etc/rc.config.d/netconf

The hostname is changed

Thanks
O'lnes
Regular Advisor

Re: Change address

thx all
Andy
harry d brown jr
Honored Contributor

Re: Change address


Of course you could fix this issue:

This member has assigned points to 190 of 466 responses to his/her questions.

http://forums.itrc.hp.com/cm/TopSolutions/1,,CA759973!1!questions,00.html


live free or die
harry
Live Free or Die