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/inet/ipnodes
/etc/defaultdomain
/etc/defaultrouter
In /etc/nodename, you must specify your name of the server/host.
Ex.
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.
For Solaris 10 11/06 and earlier releases, you must keep /etc/inet/ipnodes updated.
Ex.
The /etc/defaultdomain file specifies nothing other than FQDN (Fully Qualified Domain Name) of the System.
Ex.
The /etc/defaultrouter file specifies your default router (or gateway) details.
Ex.
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
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: UNIX/Linux