LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   Cant connect to the Internet Solaris 10 (https://www.linuxquestions.org/questions/solaris-opensolaris-20/cant-connect-to-the-internet-solaris-10-a-470004/)

hal8000b 08-02-2006 04:09 AM

Cant connect to the Internet Solaris 10
 
II cant connect to the Internet, I can ping my network card and router but cannot ping www.google.com or browse. I am wondering if this is a default route or DNS problem.

My network card is a Marvell/ Yukon 10/100/1000M ethernet adaptoer and I have installed
the driver http://www.marvell.com/drivers/drive...dId=133&pId=22

Output from prtconf -pv

Node 0x000015
assigned-addresses: 82022810.00000000.feaf8000.00000000.0000400 0.81022814.00000000.0000d800.00000000.00000100
reg: 00022800.00000000.00000000.00000000.00000000.02022810.0000 0000.00000000.00000000.00004000.01022814.00000000.00000000.00000000.00000100
compatible: 'pci11ab,4320.1043.811a.13' + 'pci11ab,4320.1043.811 a' + 'pci1043,811a' + 'pci11ab,4320.13' + 'pci11ab,4320' + 'pciclass,020000' + ' pciclass,0200'
model: 'Ethernet controller'
power-consumption: 00000001.00000001
66mhz-capable:
fast-back-to-back:
devsel-speed: 00000001
interrupts: 00000001
max-latency: 0000001f
min-grant: 00000017
subsystem-vendor-id: 00001043
subsystem-id: 0000811a
unit-address: '5'
class-code: 00020000
revision-id: 00000013
vendor-id: 000011ab
device-id: 00004320
name: 'pci1043,811a'

When solaris boots I see the network card as yukonx. I am using a router to connect to the IInternet with static addressing, my router gateway is 192.168.254.254
My ethernet card is 192.168.254.197 255.255.255.0
Under linux I set resolv.conf to point at the router
i.e. nameserver 192.168.254.254
and the router has my ISP's DNS settings.

I have a single computer under solaris called "orac" and here is contnts of:
/etc/hosts
# Internet host table
#
127.0.0.1 localhost loghost orac
192.168.254.197 yukon

cat /etc/nodename
orac

cat /etc/defaultrouter
192.168.254.254

cat /etc/driver_aliases
--snip--
si3124 "pci1095,3124"
yukonx "pci11ab,4320"
yukonx "pci11ab,4340"
yukonx "pci11ab,4341"
yukonx "pci11ab,4342"
yukonx "pci11ab,4343"
yukonx "pci11ab,4344"
yukonx "pci11ab,4345"
yukonx "pci11ab,4346"
yukonx "pci11ab,4347"
yukonx "pci11ab,4350"
yukonx "pci11ab,4351"
yukonx "pci11ab,4360"
yukonx "pci11ab,4361"
yukonx "pci11ab,4362"

cat /etc/resolv.conf
domain tuxnet
nameserver 192.168.254.254

cat /etc/orac.yukonx0
orac

cat /etc/hostname.yukonx0
yukon

As you can see things are in a bit of a pickle, I am reading the Idiots guide to Solaris 9, I wonder if setup has changed between Solaris 9 and 10? Thanks in advance for any advice
or online references.

If I type ping 192.168.254.197 I get the message "..is alive", the same with my router (192.168.254.254)

angel115 08-02-2006 05:26 AM

Hi hal8000b,

What happen when you try to ping the DNS of your provider and when you try to ping an IP address on internet?
Try to ping as well the gateway of you ISP.

just an idea like that can you do a "traceroute" on google domain name and on the IP address of google it will tell you where it stop.

Angel115

jlliagre 08-02-2006 07:19 AM

what says "grep hosts /etc/nsswitch.conf" ?

kebabbert 08-02-2006 09:53 AM

I had a similar problem, then I just execute "sys-unconfig" which resets the settings of the computer, and it works.

jlliagre 08-02-2006 10:00 AM

Quote:

Originally Posted by kebabbert
I had a similar problem, then I just execute "sys-unconfig" which resets the settings of the computer, and it works.

"sys-unconfig" would work but is overkill, the configuration looks correct, I think there is just one missing setting in nsswitch.conf.

hal8000b 08-02-2006 03:35 PM

Cannot browse [Solved]
 
Thanks guys, all of you.
It appeared that I could not browse or ping a domain name, but yet I could ping an external IP e.g. 216.239.59.104 (and If I copied that IP onto my browser location the page would appear).

jlliagre was right, the contents of nsswitch.conf were wrong. I simply appended dns to the following line in

/etc/nsswitch.conf
hosts: files dns

saved the file and rebooted, I'm posting from Solaris 10 now, many thanks.

jlliagre 08-02-2006 03:46 PM

Quote:

Originally Posted by hal8000b
I simply appended dns to the following line in

/etc/nsswitch.conf
hosts: files dns

saved the file and rebooted,

Just for the record, rebooting was unnecessary, as nsswitch.conf changes are taken into account immediatly.
Quote:

I'm posting from Solaris 10 now, many thanks.
Great !

imd 05-25-2009 08:17 AM

I have the same problem with open solaris I resolve it the same way given in jlliagre post
Thanks

davidsain 05-26-2009 03:56 PM

@imd

I don't have Solaris in front of me right now but do have OpenSolaris 2009.06 (111a) in front of me. After making the change from DHCP to Static IP, "cp /etc/nsswitch.dns /etc/nsswitch.conf" (of course after saving the original, right?).

BTW this thread hasn't seen activity in 3 years...

D

mohaas05 06-08-2009 09:19 PM

Also, just an added note. I had this same problem and my nsswitch.conf and nsswitch.dns were fine. It turned out that my resolv.conf was blank, so I added by ISP and DNS nameservers to it and everything worked like a charm.

bits45 07-23-2009 01:26 PM

I've also discovered this "anomaly" with Solaris 10 update 6 (i386).

I did check, and recheck , and recheck again, the nsswitch.conf and resolv.conf files with other servers I have.

I had discovered the service "dns/client" was "disabled" since I didn't setup DNS during installation. But even though I enabled "dns/client" I may have not done it in the correct order compared to my troubleshooting the two config files.

After getting completely frustrated I pulled a windoze trick and rebooted. I KNOW, completely unnecessary, but it did correct the problem.

So I suspect I should have tried to restart or refresh the dns/client service before doing the reboot. A "sysunconfig" is also WAY too drastic a measure.

That's all I did. I think it's some sort of small bug in Solaris 10 that's been over looked. These config files should be called on when needed, not when the service is started (historically speaking).

Good luck.

skohari 08-05-2009 01:19 AM

Hi I am a newbie and just installed OpenSolaris2009.06, with the same problem. Applied the same solution and got it kicking!
Thanks to all here...


All times are GMT -5. The time now is 11:33 PM.