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

This entry was posted in the operating system and you. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.
  • Advertising

One Trackback

  1. By solaris | mister-wong.de | Social Bookmarking Tool on February 13, 2007 at 5:01 pm

    [...] » solaris » most popular (fresh) 1 2 » Solaris Enterprise System solaris askwar Hinzugefügt vor 120 Tagen von askwar, 3 Benutzer,für Windows, Mac OS X, Linux und Solaris. windows mac linux tools benchmark performance solaris [»] Hinzugefügt vor 42 Tagen von smile, 1 Benutzer kopieren Blastwave.org – An OpenSolaris… solaris askwar Hinzugefügt vor 120 Tagen von askwar, 1 Benutzer kopieren 1 2 » Was kann, hat und macht Mister Wong?» [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>