How to change the IP address in Solaris 10

Here is a list of files that you need to edit when changing the IP address of an interface in Solaris 10.

Add the ip address and server name to the host file.

vi /etc/hosts server-name

Select the interface you want, your server may have more than one network interfaces.

vi /etc/hostname.bge0 netmask

Change the node name

vi /etc/nodename

Add the gateway ip address

vi /etc/defaultrouter

Add the DNS servers ip addresses

vi /etc/resolv.conf

Add the network address

vi /etc/netmasks

Now reboot the server.

About Andrew Lin

Hi, I have always wanted to creat a blog site but never had the time. I have been working in Information Technology for over 15 years. I specialize mainly in networks and server technologies and dabble a little with the programming aspects. Andrew Lin

View all posts by Andrew Lin →