Different way of connecting external network has different method to configure your network ,so you must choose the right way to configure your network.
In my laboratory,every PC has it's own fixed IP address,
declaration:
*the name of PC :opensolaris
*the type of my network card:rtls0,you can use command:ifconfig -a to view the type of your network
*the user of opensolaris operation:jerry
*the fixed IP address is :210.40.20.45
*the fixed defualt gateway:210.40.20.1
*the dns:210.40.0.33
*the manager's user:root
i configure our network as following: (first your should enter manager enviroment,command:'su root')
1、disable nwam
jerry@opensolaris:~# svcadm disable /etc/nwam
2、filled computer name into hostname.rtls0 and nodenanme
jerry@opensolaris:~# gedit /etc/hostname.rtls0 ,then the text will show,enter your computer name:'opensolaris'
jerry@opensolaris:~# gedit /etc/nodename,then the text will show,enter your computer name:'opensolaris'
3、modify the document of hosts
jerry@opensolaris:~# gedit /etc/hosts,then add following information:
210.40.20.45 opensolaris loghost
::1 localhost
127.0.0.1 localhost
4、modify the documnet of netmask and filled subnet mask
jerry@opensolaris:~# gedit /etc/netmasks,then add '210.40.20.0 255.255.255.0' into the showing text.
5、create the document of defaultrouter and filled gateway's address
jerry@opensolaris:~# gedit /etc/defaultrouter ,then add '210.40.20.1'into the showing text.
6、add DNS into the document of resolv.conf
jerry@opensolaris:~# gedit /etc/resolv.conf,then add'nameserver 210.40.0.33'into the showing text.
7、modify the document of nsswitch.conf,add 'dns' into the list of host and ipnodes
after modify:
hosts:files dns
ipnodes:files dns
Then you can't active rtls0 immediately,you should load network card first,using 'jerry@opensolaris:~# ifconfig rtls0 plumb',now you can choose system/system manager/network and click active button.
At last ,enyour net:)
There is a remaining problem,i must load network card and active rtls0 per rebooting operation,why?
some articles about introducing configure network:
http://wiki.developers.sun.com.cn/index.php/OpenSolaris/Solaris%E4%B8%AD%E6%96%87FAQ
http://blogs.sun.com/rickyzhou/entry/opensolaris%E7%BD%91%E7%BB%9C%E9%85%8D%E7%BD%AE
http://topic.csdn.net/u/20080625/10/ba6e5f17-0817-460d-b579-d570de96161f.html