I'll try to help you to use OpenSolaris without the headache ! I am an ex Sun Microsystems and please don't hesitate to contact me for any matter having a link with OpenSolaris... No stupid questions... It is a very nice OS ! Don't miss it !

Monday, January 4, 2010

Configuration of the Network through Files (DHCP)

Very easy... Please have a look to my previous post...

root@vsolutions:/export/home/rudy/bin# cat cleanNetwork
rm /etc/hostname.rge0
rm /etc/defaultrouter
cp /etc/nsswitch.default /etc/nsswitch.conf
rm /etc/dhcp.rge0
rm /etc/resolv.conf

root@vsolutions:/export/home/rudy/bin# cat enableDHCP
echo "...run as root..."
/export/home/rudy/bin/cleanNetwork
touch /etc/hostname.rge0
touch /etc/dhcp.rge0

root@vsolutions:/export/home/rudy/bin# ./enableDHCP
...run as root...
rm: cannot remove `/etc/dhcp.rge0': No such file or directory

There was no /etc/dhcp.rge0 and it ns normal that the script cleanNetwork did complain...

...Reboot the machine...

-Rudy-

No comments:

Post a Comment