When you already install Solaris 10, what you need to do is to setup the network configuration. Here we are going to talk about how to change the default IP address, adding up Ethernet card, and some simple routing.
The first one is to change the IP address in e1000g0 interface, this setting will be persist over reboot
Edit /etc with format hostname.interface
vi /etc/hostname.e1000g0
Inside there write
Ip-address netmask + netmask
192.168.3.9 netmask + 255.255.255.0
Now you need to edit /etc/inet/hosts
Add this
Ip-address hostname
192.168.3.9 test-machine
Now you need to edit /etc/inet/ipnodes
Add this
Ip-address hostname
192.168.3.9 test-machine
After that type:
reboot — -r
The next step is to add and configure extra ethernet card in your machine, if you want to know what Ethernet is plug in your machine, type
dladm show-link
Enable the network card, in this case e1000g3, you can change according your machine
ifconfig e1000g3 plumb
To check you can type ifconfig –a, to see if e1000g3 is already activated, to inactivate the Ethernet card just type
ifconfig e1000g3 unplumb
Now we can add an IP address to e1000g3,for example we wan to put 192.168.2.9 to that ethernet type:
ifconfig e1000g3 192.168.2.9 netmask 255.255.255.0 broadcast 192.168.2.255
Then you have to bring up the network card
ifconfig e1000g3 up
But wait if you just do that, next time you reboot, all of your configuration will be gone, to prevent it this is what you need to do
Make a new file in /etc with format hostname.interface
vi /etc/hostname.e1000g3
Inside there write
Ip-address netmask + netmask
192.168.2.9 netmask + 255.255.255.0
Now you need to edit /etc/inet/hosts
Add this
Ip-address hostname
192.168.2.9 test-machine
Now you need to edit /etc/inet/ipnodes
Add this
Ip-address hostname
192.168.2.9 test-machine
After that type:
reboot — -r
Then the next step that you can do is to add some routing to this configuration
route –p add default your-gateway
route –p add default 192.168.2.1
-p = persistence over reboot
Default = all destination 0.0.0.0/0.0.0.0
This will try to register a default gateway for the PC, if you want to add another routing for this PC to specified network you can do:
route –p add –net network-address –gateway gateway-address
I suggest you always to use –p so that your routing wont be flushed when the machine is reboot. Also you need your gateway in /etc/defaultrouter
To check your routing you can type:
netstat –rn
To flush your routing, but the one that from installation wont be flushed
route flush
These configuration at least will make your Solaris box able to communicate with other machine.


