Fixing the network configuration on my OpenSolaris box

If you have read this post, then you would have known i have this motherboard and that it has two nic’s. Now during the installation, i just went with the default and that means it is automatically configured via nwam (see this pdf -page 11- or this page, they’re practically the same!). Of course, i can’t have that…

So, here’s howto configure it manually, just the way you like it:
First, see what the status is of – and disable nwam:

pouwiel@behemoth:/etc#svcadm disable nwam
pouwiel@behemoth:/etc# svcs -xv nwam
svc:/network/physical:nwam (physical network interface autoconfiguration)
 State: disabled since Mon May 11 22:17:00 2009
Reason: Disabled by an administrator.
   See: https://sun.com/msg/SMF-8000-05
   See: man -M /usr/share/man -s 1M nwamd
   See: https://opensolaris.org/os/projects/nwam/
   See: https://opensolaris.org/os/projects/nwam/phase0/
Impact: This service is not running.

and enable network

pouwiel@behemoth:/etc#svcadm enable network
pouwiel@behemoth:/etc# svcs -xv svc:/network/dns/client:default
svc:/network/dns/client:default (DNS resolver)
 State: online since Mon May 11 22:17:08 2009
   See: man -M /usr/share/man -s 3RESOLV resolver
   See: /var/svc/log/network-dns-client:default.log
Impact: None.

Now, you need to assign the ip’s, when you two nic’s you need two files named after your physical devices. In my case: hostname.rge0 and hostname.rge1 and here’s what’s inside:

pouwiel@behemoth:/etc# cat hostname.rge0 netmask broadcast + up
pouwiel@behemoth:/etc# cat hostname.rge1 netmask broadcast + up

You want to be able to wander about the internet:

pouwiel@behemoth:/etc# cat defaultrouter
pouwiel@behemoth:/etc# cat resolv.conf
pouwiel@behemoth:/etc# cat nsswitch.conf
# "hosts:" and "services:" in this file are used only if the
# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.

passwd:     files
group:      files
hosts:         dns

Now, clear the cache like so:

svcadm restart system/name-service-cache:default

And you’re good to go !

*edit | 20090815@2307* : Well, not quite. Probably I have been working at it for so-o-o-o long, I couldn’t remember what I did.
I do know, you’d have to follow this bit here and just to be on the safe side, alter your ‘llp’ file like they say here. Then it works….

Comments are closed.