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:
IP hostname hostname.domain

#Google’s name servers, easy to remember



hosts: files dns

#for 192.168.1 network it would be

svcadm enable svc:/network/physical:default

root@opensolaris:/etc/inet# dladm show-link
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