Tuesday July, 26 2005
One of the things I always seem to forget when using my Solaris workstation is simple config/setup stuff. This is undoubtably because I typically get my workstation setup how I like it and never have to mess with it again for years. However, when the time actually comes to do the setup again I always have to sift through mounds of google queries in order to get things working again :/ This time I'm going to try and document some of the little gotchas that come up and record them here.
This morning I was helping my new officemate setup networking on his workstation and I thought "sure, I know how to do that." Well, I *sorta* knew how to do it, but of course I left out a couple key steps.
Here it is. Basic networking using a static ip/hostname ...
# lets assume the ip is 200.0.0.22 and hostname is "foo" # setup interface (interface is usually hme0 or bge0) vi /etc/hostname.hme0 -- foo -- vi /etc/hosts -- 200.0.0.22 foo -- # set default route (depends on your network) vi /etc/defaultrouter -- 200.0.0.1 -- # set netmask (depends on your network) vi /etc/netmasks -- 200.0.0.0 255.255.255.0 -- # set dns resolution vi /etc/resolv.conf -- domain your.domain nameserver [primary dns server ip] nameserver [secondary dns server ip] -- # enable dns resolution for hosts vi /etc/nsswitch.conf and add "dns" to the line with "hosts: "
Maybe there is an easier/better way to do it, but this was enough to get his machine properly on the network.

Posted by 192.18.42.10 on July 26, 2005 at 12:57 PM PDT #
true, but sys-unconfig also removes some other non-networking related config elements, which is why I usually don't use it.
Posted by gconf on July 26, 2005 at 01:22 PM PDT #
Michael
Posted by maal on July 31, 2005 at 02:06 PM PDT #