Panduan Setting Network IP Solaris 10
Posted by on 12 June 2015 03:35 PM

The procedure below shows how to setup the IP address for the Intel e1000 Network Interface in Solaris 10:

1. Edit /etc/hostname.nxge0 and add the IP address and Netmask:
# vi /etc/hostname.nxge0
Format: IP-address netmask + netmask
Example: netmask +

2. Edit /etc/inet/hosts and /etc/inet/ipnodes
Add IP-address hostname
Example: test-server

3. Check Interface ethernet
Use dladm to add and configure other NICs:
dladm – configure data-link interfaces, to list the NICs
# dladm show-link
List activated NICs
# ifconfig –a
To enable a NIC:
Example, enable nxge2
# ifconfig nxge2 plumb
To inactive a NIC:
Example, inactivate nxge2
# ifconfig nxge2 unplumb
To add an IP address:
# ifconfig nxge2 netmask broadcast
Bring up the network card:
# ifconfig nxge2 up
Save the network configuration:
Make a new file in /etc with format hostname.interface
# vi /etc/hostname.nxge2
and edit /etc/inet/hosts and /etc/inet/ipnodes
How to add routing:
# route –p add default your-gateway
# route –p add default
-p option = persistence over reboot
Register a default gateway for the PC, to add another routing:
# route –p add –net network-address –gateway gateway-address
Using the –p option so routing wont be flushed when reboot.
Add gateway in /etc/defaultrouter
To check your routing you can type:
# netstat –rn
To flush your routing:
# route flush


Setting Name Server

#cat /etc/nodename

Setting Hostname Interface Network

#cat /etc/hostname.e1000g0 netmask
#cat /etc/hostname.qfe0 netmask

Setting /etc/hosts -> /etc/inet/hosts

#cat /etc/inet/hosts
# Internet host table
::1          localhost    localhost loghost solarisbox1   solarisbox1 solarisbox1   solarisbox2

Setting ipnodes

# vi /etc/inet/ipnodes myhost

Setting FQDN (Fully Qualified Domain Name) of the System.

#cat /etc/defaultdomain

Setting Default Gateway

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

(3 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Post a new comment
Full Name:
CAPTCHA Verification 
Please enter the text you see in the image into the textbox below. This is required to prevent automated registrations and form submissions.

Help Desk Software by Kayako fusion