I have a virtual machine running OpenIndiana. There are a lot of stories out there on how to enable static IP in OpenSolaris/OpenIndiana/Solaris 11 etc. Most of the involve turning NWAM off, now this isn’t the way you’re supposed to do it. There’s a much better and easier way, use nwamcfg.
# nwamcfg nwamcfg> create ncp Nickebo nwamcfg:ncp:Nickebo> create ncu phys e1000g0 Created ncu 'e1000g0'. Walking properties ... activation-mode (manual) [manual|prioritized]> prioritized enabled (true) [true|false]> priority-group> 0 priority-mode [exclusive|shared|all]> shared link-mac-addr> link-autopush> link-mtu> nwamcfg:ncp:Nickebo:ncu:e1000g0> end Committed changes nwamcfg:ncp:Nickebo> create ncu ip e1000g0 Created ncu 'e1000g0'. Walking properties ... enabled (true) [true|false]> ip-version (ipv4,ipv6) [ipv4|ipv6]> ipv4-addrsrc (dhcp) [dhcp|static]> static ipv4-addr> 172.16.0.21 ipv4-default-route> 172.16.0.1 ipv6-addrsrc (dhcp,autoconf) [dhcp|autoconf|static]> dhcp,autoconf,static ipv6-addr> 2001:470:df83::21 ipv6-default-route> 2001:470:df83::1 nwamcfg:ncp:Nickebo:ncu:e1000g0> end Committed changes nwamcfg:ncp:Nickebo> end # nwamadm enable -p ncp Nickebo Enabling ncp 'Nickebo'
That’s it. You now have a static IPv4 and a static IPv6 address. Don’t forget to add your other NICs, if you have more than one, to the same ncp. You don’t have to name your configuration Nickebo, it was what I named mine.