Configure New Ethernet Card in Solaris
First things first! Source of this information is this. I am just summarizing it here for quick actions, along with my practical outputs. When a new ethernet card is added to a solaris machine, its not configured automatically. Following steps have to be performed for this. 1. Boot the machine with -r option from OK prompt, so that Solaris rescans all the devices and updates the devices directories accordingly. Otherwise if its already running, type reboot -r to reboot it. For example, in may case, one card was already there, and I added a new card. After installing the card, prtconf -vD | grep instances output contains
pci15ad,750, instance #0 (driver name: e1000g)
However, after rebooting with -r, prtconf -vD | grep instances output contains
pci15ad,750, instance #0 (driver name: e1000g) pci15ad,750, instance #1 (driver name: e1000g)
Now, OS can at least see the device. Its reachable. However, its not yet configured or working. For this, there are 2 options.
Non-Persistent: Easy to setup, however, settings lost on reboot. Persistent: Your network card will be working even after reboots, takes longer to setup.
Non-persistent
3 step process!
Initialize the card
ifconfig e1000g1 plumb
Configure the card
ifconfig e1000g1 192.168.116.100 netmask 255.255.255.0
Bring the card online
ifconfig e1000g1 up
Thats it. The network card is working and can be pinged from any other computer in the same network, it will be reachable.