To enable a network interface card under Solaris you should install the device driver, reconfigure the system by rebooting and assigning an IP address to the interface. The last one is what we are going to deal with.
First of all we should assign an IP address to the interface by adding an entry to /etc/hostname.device_name_number, where device_name is eri and number is 0 (i.e. /dev/eri0, a single interface). So edit or create /etc/hostname.eri0 and add:
supercomputer.yourdomain
Then map the IP address 192.168.100.55 (change this by your own IP address) to the hostname and the domain. Edit /etc/hosts file and add:
192.168.100.55 supercomputer.yourdomain supercomputer
Then edit the /etc/netmasks file and add:
192.168.100.0 255.255.255.0
Next step is to set the default gateway for supercomputer. Edit /etc/defaultrouter and add the following entry:
192.168.100.1
In multi-homed hosts (i.e quad ethernet) you could…
touch /etc/notrouter
to prevent routing (in some cases this could be an interesting point).
Now reboot the system and you’ll have your interface up and running.
You can use the ifconfig command to plumb and configure the interface for non persistence configuration once it has been enabled.
The ifconfig command can be used to view all active interfaces.
/usr/sbin/ifconfig -a
The following command should configure the interface:
ifconfig eri0 plumb
Once the device is plumbed it could also be configured by using the command…
ifconfig eri0 192.168.100.55 broadcast 192.168.100.255 netmask 255.255.255.0
And finally bring up the interface…
ifconfig eri0 up
All this could be done in one step…
ifconfig eri0 192.168.100.55 broadcast 192.168.100.255 netmask 255.255.255.0 plump up
Again, remember that you will still need to make the modifications in the files as previously shown or your interface will not be configured upon reboot.