This post from the Things I need to remember… blog describes how to configure a static on in OpenIndiana.
1. Disable the auto-magic network daemon
#svcadm disable physical:nwam
2. Define in /etc/hosts, if not already, an entry for this host.
For example: 192.168.1.22 hostname hostname.local localhost loghost
3. Enable the default physical service with svcadm and configure the interface:
#svcadm enable physical:default
4. Configure interface with ipadm
# ipadm create-addr -T static -a local=192.168.1.22/24 bge0/v4static
4.1 If you do not know what the interface name is bge0 in this case type in #kstat -c net | grep net and look for hme0, bge0, e1000g0 or soemthing that resembles the driver in use.
5.add gateway
#route -p add default 192.168.1.121 or
#sudo nano /etc/defaultrouter enter in your gateway 192.168.1.121
6. set dnsserver
#sudo nano /etc/resolv.conf enter in the DNS server IP/s
nameserver 192.168.1.121
7. set the workgroup
#sudo smbadm join -w workgroupname
8. Restart
Note: If you cannot ping google.com run this command and try again.
#sudo cp /etc/nsswitch.dns /etc/nsswitch.conf
 
Original post: http://barbz.com.au/blog/?p=5