Why I cannot access internet from Solaris guest using url?

Hi all,

I'm using virtualbox bridged adapter

Host:Windows 7
Guest: Solaris 11

while I can ping between the host and guess, I cannot access the Internet from the solaris guest.

here's my settings:

while I can ping 173.194.38.128 (which is actually google.com), I cannot ping google.com

why is this so?

here' my results

root@solaris:~# netadm list

TYPE PROILE STATE
ncp Automatic disabled
ncp DefaultFixed online
loc Automatic offline
loc NoNet offline
loc DefaultFixed online

root@solaris:~#ipadm show-if
IFNAME CLASS 	STATE ACTIVE OVER
lo0    loopback ok	  yes	 --	 
net0   loopback ok	  yes	 --

root@solaris:~#ipadm show-addr
ADDROBJ	TYPE STATE ADDR
lo0/v4  static ok  127.0.0.1/8
net0/acme static ok  192.168.0.231/24
lo0/v6   static  ok  ::1/128

root@solaris:~#route get default
route to:default
destination:default
mask:default
gateway:192.168.0.1
interface: net0
flags: <UP,GATEWAY, DONE, STATIC>
recvpipe sendpipe sshthresh rtt,ma rttvar,ms hopcount mt expire

0	     0         0        0        0       0      1500 0



thanks a lot!

How is your guest confirmed w.r.t. networking? NAT, Bridge, or what? Obviously DNS on the guest is not working correctly for you. The question is why? Are your resolver (/etc/resolv.conf) and name service switch (/etc/nsswitch.conf) configurations correct?

How is your guest confirmed w.r.t. networking? NAT, Bridge, or what?

it is bridge and I can ping from host to guest and guest to host.

I follow mostly Install Oracle Solaris 11 on Oracle VM VirtualBox

Configuring an IPv4 Network - Configuring and Administering Oracle Solaris 11.1 Networks

Are your resolver (/etc/resolv.conf) and name service switch (/etc/nsswitch.conf) configurations correct?

I check from /etc/resolv.conf I'm using 192.168.0.1, i.e default gateway as name server

how do I know if nsswitch.config is correct or not

thanks

Because you configured your network manually but didn't know the all correct parameters.

You likely didn't configured your Windows 7 host networking but simply let the OS do the configuration itself. Just do the same with your Solaris guest, i.e. don't select the "DefaultFixed" profile but the "Automatic" one with this command:

netadm enable -p ncp Automatic