Disable nwam on Opensolaris and manually configure IP settings

Nwam stands for “Network Auto-Magic” and is part of Opensolaris project. It is meant to automatically configure IP settings for primarily laptop users. While it is useful to an extent, real annoyance is that is enabled by default (I guess it is supposed to be, otherwise it wouldn’t serve its purpose) upon Opensolaris installation. If you want to manually setup your IP, do the following:

svcadm disable svc:/network/physical:nwam

make sure that everything looks good in the following files:
/etc/hosts
IP hostname hostname.domain

/etc/resolv.conf
#Google’s name servers, easy to remember
nameserver 8.8.8.8
nameserver 8.8.4.4

/etc/defaultrouter
IP_of_your_router

/etc/hostname.yge0
IP_of_the_host

/etc/nsswitch.conf
hosts: files dns

/etc/inet/netmasks
#for 192.168.1 network it would be
192.168.1.0 255.255.255.0

svcadm enable svc:/network/physical:default

root@opensolaris:/etc/inet# dladm show-link
LINK CLASS MTU STATE BRIDGE OVER
yge0 phys 1500 up — –

If any any time you experience difficulties, run ‘svcs -x’ (no quotes) to see which service has a problem and what is causing it. To list all services running, type ‘svcs’, to list all services including disabled ones type ‘svcs -a’.
These changes are persistent across reboots.

One Response to “Disable nwam on Opensolaris and manually configure IP settings”

  1. alanv72 says:

    Good article. Just need to add this…

    modify /etc/nsswitch.conf

    Look for line
    hosts: file

    append “dns” to the line so that it looks like this..

    hosts: file dns

    I prefer nano as text editor..

    1. pfexec nano /etc/nsswitch.conf
    2. change line (as stated above)
    3. ctrl+x then “Y’ to save changes.

Leave a Reply

Spam Protection by WP-SpamFree