I know what you're going through because I've had the same problem and I'll
show you how to solve it. It has to do with the new Cayman installer in
OpenSolaris not allowing you to choose a static IP address like the old
installer in Solaris Express and Solaris 10 does when you install the operating
system. The old text based installer for Solaris 10 and Solaris Express is
pretty awesome (you can install the OS through a serial tty cable without even
using a keyboard and monitor). It asks a million complicated questions that no
Solaris noob would ever know how to answer correctly, but I love it anyway
because it really lets you make a highly customized system with just the
packages you want on it and a static IP address, etc. etc. This is what the
old installer (which is not included by in 2009.06) looks like:
http://adamncopeland.com/work/installing-zfs-as-root-filesystem-on-solaris-10/
I guess to try to make it easier for newbies coming from Microsoft Windows or
Ubuntu to start using OpenSolaris 2008.05 through 2009.06, they got rid of the
text based installer and went with this "one button" turn-key graphical Cayman
installer that doesn't ask any questions anymore other than what you want your
user name and root password to be and then it just installs the OS with GNOME
desktop and turns on the NWAM network automagic daemon and gets an IP address
from the DHCP server. This is nice for desktop users but it is terrible for
people like me who were trying to run it as a server.
Anyway, to assign a static IP address type in the following commands:
svcadm disable physical:nwam
svcadm enable physical:default
pfexec network-admin
Click "Continue" (you DO NOT want to have it manage the network automatically,
as that will re-enable NWAM). Now do the following:
1. Click Manual to disable Automatic mode
2. Select the network connection to be configured
3. Click Properties
4. Set the values you want in the Interface Properties panel
5. Enable the device by setting the IP address, subnet, and default gateway
6. Go back to the command line and restart networking with this command:
svcadm restart milestone/network
Now use these commands:
ifconfig -a
netstat -nr
to check if the default route / default gateway and IP address are set
correctly and you also want to have the nameservers for DNS set up in the
/etc/resolv.conf file and in the /etc/nsswitch.conf file you need to have a
line that says:
hosts: files dns
for DNS to work correctly.
There was also a way that you can kind of reconfigure everything using
something similar to the old text installer from Solaris 10 that I loved so
much called "sys-unconfig". You can type in "man sys-unconfig" to read about it
or "pfexec sys-unconfig" to run the command. The "sys-unconfig" command makes
it easy to use a text menu to change the hostname, IP address, DNS, etc. etc.
However, there are rumors floating around on google that running sys-unconfig
on certain versions of OpenSolaris can corrupt some of the configuration files
in the system. I've run sys-unconfig before and I've never had these problems,
but I thought I would mention that for you as a warning of something that might
happen in certain / builds versions of opensolaris.
--
This message posted from opensolaris.org