By Wei Guan on Dec 24, 2008
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,
\*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 :126.96.36.199
\*the fixed defualt gateway:188.8.131.52
\*the manager's user:root
i configure our network as following: (first your should enter manager enviroment,command:'su root')
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:
184.108.40.206 opensolaris loghost
4、modify the documnet of netmask and filled subnet mask
jerry@opensolaris:~# gedit /etc/netmasks,then add '220.127.116.11 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 '18.104.22.168'into the showing text.
6、add DNS into the document of resolv.conf
jerry@opensolaris:~# gedit /etc/resolv.conf,then add'nameserver 22.214.171.124'into the showing text.
7、modify the document of nsswitch.conf,add 'dns' into the list of host and ipnodes
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: