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
8 Comments:
Thank you so much for posting this. This was exactly what I needed.
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
Did you remove /etc/dhcp.interface file (for ex. /etc/dhcp.e1000g0) ? You must remove it for static configuration to stay.
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
Thank you , very helpful
Is there any way to configure the proxy in Solaris 10 Sparc text?
Straight forward and good file to reference for process
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