Operating System - Tru64 Unix
1819803 Members
3042 Online
109607 Solutions
New Discussion юеВ

How to change ip address - Tru64 v4.0

 
SOLVED
Go to solution
Jeff Hoevenaar
Frequent Advisor

How to change ip address - Tru64 v4.0

I have a Tru64 V4.0 server that I need to change the ip address on. How do I do that?

I tried sysman but it gives the the following error:

# sysman
Usage: sysman config_report or sysman escalation

Thanks.
8 REPLIES 8
Vladimir Fabecic
Honored Contributor
Solution

Re: How to change ip address - Tru64 v4.0

Try setup or netsetup.
Or just edit /etc/rc.config.
In vino veritas, in VMS cluster
Victor Semaska_3
Esteemed Contributor

Re: How to change ip address - Tru64 v4.0

Jeff,

On V4.0 try /usr/sbin/netsetup. Here's a thread about it:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=262567

Vic
There are 10 kinds of people, one that understands binary and one that doesn't.
Victor Semaska_3
Esteemed Contributor

Re: How to change ip address - Tru64 v4.0

Jeff,

If you manually make the change as Vladimir suggests by editing /etc/rc.config, make sure you also edit /etc/hosts.

Vic
There are 10 kinds of people, one that understands binary and one that doesn't.
Al Licause
Trusted Contributor

Re: How to change ip address - Tru64 v4.0

Sysman is a V5.x Tru64unix utility not found in v4.x.

As mentioned you can hand edit the rc.config file but the safer method is to use the rcmgr utility which allow changes to this file w/o hand edits.

If you do had edit rc.config, make sure you make a back that you can revert to should you have problems. We've had to walk customers through repairs of rc.config on occassion as a result of hand edits.

You can also use netsetup or setup and chose the line configuration option.

As already mentioned make sure that the hosts file is changed as well and if you are changing subnets, if you have static routes defined in /etc/routes, this will have to be changed as well.

A good practice when changing ip addresses is to grep for the old address or some portion of it in all files in /etc just incase some other reference exists.
Roger Mansard
Advisor

Re: How to change ip address - Tru64 v4.0

change it in /etc/rc.config and gated.conf if used
Ross Minkov
Esteemed Contributor

Re: How to change ip address - Tru64 v4.0

Jeff,

Here is how I would do it.

# shutdown -h now
>>> boot -fl 1
bcheckrc
df (make sure everything is ok)
init 2
vi /etc/hosts (change the hostname & IP)
vi /etc/rc.config
change hostname, IP, netmask (if needed)
mv /usr/sys/OLD_NODE_NAME /usr/sys/NEW_NODE_NAME
vi /etc/routes
(put the new default gateway there if different)
mv /usr/sys/conf/OLD_NODE_NAME /usr/sys/conf/NEW_NODE_NAME
edit /usr/sys/conf/NEW_NODE_NAME
(the first line has the nodename - change it)
check /var/opt/advfsd/socket/hosts.allow or /usr/var/advfs/daemon/socket/hosts.allow
cd /
doconfig -a
cp -p /vmunix /vmunix.todaysdate
cp -p /sys/NEW_NODE_NAME/vmunix /
shutdown -r now
verify the new nodename is set correctly

Well, some of the above might be a bit of a overkill, but it works... ;-)

-Ross
Ross Minkov
Esteemed Contributor

Re: How to change ip address - Tru64 v4.0

I read your question again and noticed that you said change the IP address, not the hostname so, if you are only changing the IP address follow this procedure:

# shutdown -h now
>>> boot -fl 1
bcheckrc
df
init 2
vi /etc/hosts (change the IP)
vi /etc/rc.config
change the IP and netmask if needed; hostname will remain the same
vi /etc/routes
(put the new default gateway there if different)
no need to rebuild the kernel if you are not changing the nodename
shutdown -r now
verify the new nodename is set correctly

-Ross
Jeff Hoevenaar
Frequent Advisor

Re: How to change ip address - Tru64 v4.0

thanks