From: Larkin, Eric (NE) (Eric.Larkin@gd-ns.com)
Date: Mon Oct 03 2005 - 09:04:48 EDT
>From the response sys-unconfig was the most resomended method to change an ip.
My problem ended up being that I was using the wrong default route, usually
x.x.x.254, but we are using some oddball number.
Original message:
Sorry, I am sure this is in sunmanagers archives, but I can't access them
due to internet security restrictions here. What files need to be changed in
order to change the IP address on a Solaris 9 server. I moved a server to a
different subnet with a different IP and I am having issues pertaining to
NFS and routing. The hostname stayed the same.
/etc/hosts
/etc/defaultrouter
/etc/netmask
Are there any others?
Eric
RESPONCES: not all posted
=======================================
Hi,
Sun only suport the use of sys-unconfig.
Richard Skelton [Richard.Skelton@infineon.com]
========================================
Yes, /etc/hostaneme.[interface_name] and if ipV6 /etc/ipnodes.
If you are using SUN application/web/dir server prods, read the manual
or search sunsolve for "Change IP" info. Example. Some prod may require
you to run "adminip.pl" or something like that.
Gary
Tay, Gary [Gary_Tay@platts.com]
=======================================
http://www.dbaoncall.net/references/ht_change_ip_sun.html
First hit from a Google search:
David Magda [dmagda@ee.ryerson.ca]
=======================================
<http://unixguide.net/sun/x86faq/6.8.shtml>
Blackshear, Lisa [lblackshear@shopathometv.com]
=======================================
Hi,
that's easy: You forgot to change /etc/nodename, :-)
Another good way to change all system informations is using
"sys-unconfig", just take a look at it.
Btw.: In Solaris 10, I *had* to use sys-unconfig, just changing the
files didn't change the system informations. I don't know why, :-)
HTH,
Harald
hhuseman [bofh@dh9dat.de]
=======================================
If all else fails use 'sys-unconfig', just be sure to read the man page
before using it.
Dave Foster
David Foster [foster@ncmir.ucsd.edu]
=======================================
Others will probably tell you the sun-specific files that'll work well.
This message will describe a procedure that works on nearly any *ix.
1. cd /etc
2. vi `find . -type f -print | xargs grep -il old.hostname.com` #
go through and change the occurences of old.hostname.com to
new.hostname.com. You can use :n to go to the next file
3. vi `find . -type f -print | xargs grep -il 128.200.34` # go
through and change occurences of your old IP address to your new
one. This example assumes you were on subnet 128.200.34
This won't work on AIX, but I believe it does work on Solaris, Linux,
Tru64, IRIX, and probably most others that don't have a "windows
registry"-like "AIX ODM"-like database that stores this stuff, rather
than using the traditional "files under /etc" approach.
Dan Stromberg [strombrg@dcs.nac.uci.edu]
========================================
The sys-unconfig command will take care of everything.
-- Joe
Joe Matusiewicz [joem@nist.gov]
========================================
> /etc/hosts
> /etc/defaultrouter
> /etc/netmask
/etc/nodename
/etc/hostname.primary-interface
Gary Chambers
Gary Chambers [gwc@ll.mit.edu]
========================================
$ ls -l /etc/hostname.*
-rw-r--r-- 1 root root 11 May 19 1971 /etc/hostname.ce0
-rw-r--r-- 1 root other 13 Apr 19 2004 /etc/hostname.ce2
-rw-r--r-- 1 root other 13 Apr 19 2004 /etc/hostname.ce3
-rw-r--r-- 1 root other 13 Apr 16 2004 /etc/hostname.ce4
-rw-r--r-- 1 root other 13 Apr 19 2004 /etc/hostname.qfe0
-rw-r--r-- 1 root other 13 Apr 19 2004 /etc/hostname.qfe1
-rw-r--r-- 1 root other 13 Apr 19 2004 /etc/hostname.qfe2
-rw-r--r-- 1 root other 13 Apr 19 2004 /etc/hostname.qfe3
contain the IP address.
Depending on the name of your net cards, replace the corresponding name
LHERCAUD@bouyguestelecom.fr
===================================
If you are onl;y changing the IP address and _not_ the hostname, all you
need to cahnge is /etc/hosts and /etc/netmasks
If you are changing the hostname than there are a few more files to touch.
/etc/defaultdomain
/etc/defaultrouter
/etc/hostname.interface
/etc/inet/hosts
/etc/inet/netmasks
/etc/nodename
/etc/net/*/hosts
Timon, John [john.timon@labatt.com]
===================================
No; if you are just changing the address then those would be sufficient
(if you change the name, there are many more)
Perhaps /etc/resolv.conf?
Casper
Casper.Dik@Sun.COM
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:32:06 EDT