Tuesday July, 26 2005

solaris networking: basic config    \\ the basics

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 gconf at Jul 26 2005, 11:47:59 AM PDT | Permalink | Comments (3)

Search

The Grabbag

Powered by
Roller Version 4.0.1.1 (BSC)
© copyright gconf ... don't copy me!