How to change IP address in Unix Solaris

To change IP address in Unix server (Solaris), you need to edit the following files.

  • /etc/hosts
  • /etc/hostname.**
  • /etc/rc2.d/S70staticroutes
  • /etc/inet/ipnodes

The “ipnodes” file in latest Solaris 10 release is a softlink to /etc/hosts, therefore it will be reflected upon editing /etc/hosts file. So manual changes is not required.

Tips for Linux / Unix Systems Administrator

How to un-mount the unresponsive media drive

First, let’s simulate it. Stick a disk in your CD/DVD drive, open up a terminal, and mount the CD/DVD drive. If your system automatically mount, then you can skip the mounting part.

root@server:~# mount /media/cdrom
root@server:~# cd /media/cdrom
root@server:~# while [ 1 ]; do echo "All your drives are belong to us!"; sleep 30; done

Now lets open up a second terminal and try to eject the media drive:

root@server:~# eject

Read More