There is a GUI under System/Administration/Network

or

Make sure there is a correctly populated /etc/resolv.conf for DNS



svcadm disable svc:/network/physical:nwam                # Turn off DHCP
svcadm enable svc:/network/physical:default                # Turn on static

motie:/home/lxxx ->ls -l /etc/resolv.conf
-rw-r--r-- 1 root root 128 Sep 12 10:20 /etc/resolv.conf

svcadm enable svc:/network/dns/client:default # Needed if /etc/resolv.conf exists

cp /etc/nsswitch.dns nsswitch.conf
svcadm restart svc:/system/name-service-cache:default # Reread nsswitch.conf

Plus you only need the following if you use /etc/defaultrouter and if you do not use defaultroute, then "in.routed" will probably be running per "svc:/network/routing/route:default" service.

motie:/home/lw31248 ->svcs -a | grep rout
disabled       10:18:36 svc:/network/routing/ripng:default
disabled       10:18:36 svc:/network/routing/legacy-routing:ipv4
disabled       10:18:36 svc:/network/routing/legacy-routing:ipv6
disabled       10:18:36 svc:/network/routing/route:default
disabled       10:18:36 svc:/network/routing/rdisc:default
online         10:18:52 svc:/network/routing-setup:default
online         10:18:53 svc:/network/routing/ndp:default

Check if defaultroute exists with

netstat -rn

...Les

Gregory Gee wrote, On 09/12/09 13:50:
I am trying to change it from automatic config to a static IP.  It seems to 
work except DNS resolution no longer works.  Everything worked ok when 
automatic.  How do I fix?

Greg

_______________________________________________
opensolaris-help mailing list
opensolaris-help@opensolaris.org

Reply via email to