Solaris 11 problem with static ip

I have installed Solaris 11.2 in VMware Player, networked in bridged mode. When Solaris uses DHCP everything is OK, I can reach internet, as well as other systems on my LAN. When I switch to static, I have connections to my LAN, but can not get to internet, the DNS resolution is somehow not working, or so I think.

Here are some relevant details (I am typing by hand, somehow cut/paste between VM and the host is not working)

~ ipadm show-addr
net0/reg static ok 192.168.1.101/24

~ route -p show
persistent: route add default 192.168.1.1

~ dig www.unix.com
... everything is ok, address resolved

~ ping www.unix.com
ping: unknown host www.unix.com

if I switch back to DHCP by netadm enable -p automatic system gets its new IP and all is working.

I made sure there is no 192.168.1.101 on my LAN.

Any idea what I do wrong? Thanks.

Have you configured resolving via dns/client and name-service/switch smf services ?

1 Like

I did not, that was the problem, thank you! followed the Solaris docs link:

http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CCAQFjAA&url=http%3A%2F%2Fdocs.oracle.com%2Fcd%2FE36784_01%2Fhtml%2FE37473%2Fgmowi.html&ei=GB1gVOiCOsOqogT4moCABA&usg=AFQjCNFPDCwfHo1CxlrIkL1Y6vsAxIPwCA&bvm=bv.79189006,d.cGU

and it works now.