NWAM (NetWork Auto Magic) is a new addition to Solaris and is the default network configurator in recent builds of Solaris Nevada.
My new Multi-terabyte ZFS server (the first one is full) came up with DHCP address and I wanted a static IP for this server. I was a little stumped at first as to how to change from DHCP to static.
I got my first hint from here. But there's some extra discussion in there that started to confuse me a little (and I don't really care about such things, I just want a static IP).
In a nutshell, if all you want to do is change from DHCP to static then edit the file /etc/nwam/llp
You'll see something like this:
nge0 dhcp
Change it to something like this:
nge0 static 192.168.1.11/24
In my case, I wanted a address of 192.168.1.11 and a netmask of 255.255.255.0 or /24
Then restart your NWAM SMF service (as root):
svcadm restart svc:/network/physical:nwam
This should work for most home networks that are managed by a Linksys or similar router.
Or, disable nwam and enable the network/physical service together with having /etc/hostname.nge0
Posted by Sean on February 11, 2008 at 01:38 AM PST #
That was the first thing I tried. It didn't work reliably. Not sure if something changed with the old style networking or I just plain forgot how to configure.
My point of the blog entry was that new NWAM is way easier to administer than the old way, and that's a good thing!
Posted by Mark Koch on February 11, 2008 at 10:01 AM PST #
Note that if one makes a typo in the static declaration, nwam will quietly "fix" it, by adding the name of the interface and dhcp (e.g. elxl0 and elx10 are not quite the same ;>).
One other bit that might be worth expanding upon, would be how to fix an address, but still use DHCP for the DNS server information.
Posted by Keith Bierman on May 29, 2008 at 09:43 PM PDT #
What kind of power do you suck with your terabyte server? I found your first post, and I love it - but I have to wonder how many watts you're pulling..
Posted by Rick Romero on July 18, 2008 at 01:09 PM PDT #
This is from memory, but I believe the post-boot idle power draw (all drives up and spinning) is something like 135W. I think it adds about $10/mo per server to my power bill.
Posted by Mark Koch on July 18, 2008 at 01:59 PM PDT #