how to change network information of sun solaris systems
people new to networking under solaris seem to wonder how to change the ip-address or hostname of a machine regularly. so here you go, this is the list of files to change when updating your network information.
for ip changes edit the following files:
- /etc/hosts
- /etc/defaultrouter
- /etc/netmasks
- /etc/inet/ipnodes (if it contains the accordant entry for your hostname)
to change the hostname of a solaris system edit these files:
- /etc/hosts
- /etc/nodename
- /etc/hostname.xyz (xyz stands for the corresponding network interface, such as bge0)
- /etc/net/ticlts/hosts (obsolete in Solaris 10)
- /etc/net/ticots/hosts (obsolete in Solaris 10)
- /etc/net/ticotsord/hosts (obsolete in Solaris 10)
- /etc/inet/ipnodes (if it contains the accordant entry for your old hostname)
you do not need to reboot your machine to apply this new information (this is unix, remember? ;)) - all you need is to restart the adequate service using the service management facility (smf):
svcadm restart svc:/milestone/network:default

February 13th, 2007 at 5:01 pm