Solaris 10 – Change IP Address without reboot

March 19, 2008 · Filed Under Networking, Solaris 10 

Adding or editing the IP address on a Solaris 10 server is different from the previous versions of the OS (Solaris 9, Solaris 8 etc).

In the previous versions of the Solaris Operating System, you need to edit the /etc/hosts file and add/edit the entry for the IP address and the hostname.

Example:

192.168.1.1   sun1

However, in Solaris 10, you should edit the /etc/hosts file (a symlink to /etc/inet/hosts file) and the  /etc/inet/ipnodes file and add an entry for IP address and hostname.

Once done, restart the Network service using

# svcadm restart network/physical

or reboot the server for the changes to take effect.

Although, the /etc/inet/ipnodes files is primarily for IPv6 only, without adding an entry to the file, the IP address (IPv4) doesn’t become active. This seems to be a known problem but the good news is this is now fixed in the Solaris 10 U4 (08/07 build).

Also, ensure that the /etc/netmasks file with the network ID and the netmask.

Comments

4 Responses to “Solaris 10 – Change IP Address without reboot”

  1. F4U on August 19th, 2008 9:45 pm

    Thanks its usefully for me.

  2. Sajeev on December 3rd, 2008 2:03 am

    Thanks , it is usefull .

  3. Ravinder on December 22nd, 2008 10:38 pm

    please send the information change ip sunsolaris

  4. guru on January 1st, 2009 4:59 am

    thanks a lot ,its very usefull for newbie ‘s

Leave a Reply