May 28, 2012

Solaris 10 Static IP Network configuration guide

This is pretty simple task. Although some find it difficult because it is different from other Linux distributions.

To configure Solaris 10 network interface in Local files mode, you must first remove the file /etc/dhcp.interface (for ex. /etc/dhcp.e1000g0), then you have to configure six files.

/etc/nodename
/etc/hostname.interface
/etc/inet/hosts
/etc/inet/ipnodes
/etc/defaultdomain
/etc/defaultrouter

In /etc/nodename, you must specify your name of the server/host.
Ex.

#cat /etc/nodename
solarisbox1

The interface names in solaris include ce, hme, bge, e1000g etc. So, if you have an interface called e1000g0 there should be a file named /etc/hostname.e1000g0 In this file, you must specify network configuration information such as IP address, netmask etc.
Ex.

#cat /etc/hostname.e1000g0
10.91.10.5 netmask 255.255.255.0
#cat /etc/hostname.qfe0
192.168.0.88 netmask 255.255.255.0

The /etc/inet/hosts file serves as local file name resolver. It resolves hostnames, log hosts etc. You can specify any number of hosts associted with IP addresses in it. You must specify hostname of you system in it.
Ex.

#cat /etc/inet/hosts
#
# Internet host table
#
::1          localhost
127.0.0.1    localhost loghost solarisbox1
10.91.10.5   solarisbox1
192.168.0.88 solarisbox1
10.91.10.6   solarisbox2

For Solaris 10 11/06 and earlier releases, you must keep /etc/inet/ipnodes updated.
Ex.

# vi /etc/inet/ipnodes
10.0.0.14 myhost

The /etc/defaultdomain file specifies nothing other than FQDN (Fully Qualified Domain Name) of the System.
Ex.

#cat /etc/defaultdomain
solarisbox1.solarisstudy.com

The /etc/defaultrouter file specifies your default router (or gateway) details.
Ex.

#touch /etc/defaultrouter
#echo 10.91.10.1 >> /etc/defaultrouter

This will help you progress towards basic interface configuration in Solaris 10.
This article refers Oracle Documentation and is made in simple format to help newbies to configure network interface quickly.
For more information see:
http://docs.oracle.com/cd/E19253-01/816-4554/ipconfig-1/index.html
Solaris 10 System Administration Guide: IP Services

Labels:

8 Comments:

At October 15, 2012 at 4:18 AM , Anonymous Anonymous said...

Thank you so much for posting this. This was exactly what I needed.

 
At January 22, 2014 at 2:49 PM , Blogger Priyank Mankad said...

Hi Thanks for this info but after doing this if i reboot my VM IP is no more present on the VM once it is rebooted. do you know any way how can we make ip persistent on solaris 10

 
At January 23, 2014 at 9:51 PM , Blogger KG said...

Did you remove /etc/dhcp.interface file (for ex. /etc/dhcp.e1000g0) ? You must remove it for static configuration to stay.

 
At March 6, 2014 at 3:45 PM , Anonymous InLineCom said...

These are static network information and code if we need some dynamic IP or VOIP system code then what i do or changes in upper code.

voip line Toronto

 
At December 6, 2015 at 3:21 PM , Blogger Unknown said...

Thank you , very helpful

 
At December 5, 2016 at 4:57 PM , Blogger Unknown said...

Is there any way to configure the proxy in Solaris 10 Sparc text?

 
At October 17, 2018 at 11:17 PM , Blogger Unknown said...

Straight forward and good file to reference for process

 
At July 9, 2021 at 2:06 AM , Blogger Unknown said...

It's 2021 and I just had to work on an old Solaris machine from the early 90s (I was just a baby) when it lost its networking configuration. You were the only place with this very helpful information! Thanks so much.

 

Post a Comment

Subscribe to Post Comments [Atom]

<< Home