LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
Search this Thread
Old 08-02-2006, 04:09 AM   #1
hal8000b
Member
 
Registered: Mar 2001
Location: UK
Distribution: Mint, Arch, Debian7
Posts: 170

Rep: Reputation: 21
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)
 
Old 08-02-2006, 05:26 AM   #2
angel115
Member
 
Registered: Jul 2005
Location: France / Ireland
Distribution: Debian mainly, and Ubuntu
Posts: 493

Rep: Reputation: 75
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

Last edited by angel115; 08-02-2006 at 05:30 AM.
 
Old 08-02-2006, 07:19 AM   #3
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,499

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
what says "grep hosts /etc/nsswitch.conf" ?
 
Old 08-02-2006, 09:53 AM   #4
kebabbert
Member
 
Registered: Jul 2005
Posts: 462

Rep: Reputation: 41
I had a similar problem, then I just execute "sys-unconfig" which resets the settings of the computer, and it works.
 
Old 08-02-2006, 10:00 AM   #5
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,499

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
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.
 
Old 08-02-2006, 03:35 PM   #6
hal8000b
Member
 
Registered: Mar 2001
Location: UK
Distribution: Mint, Arch, Debian7
Posts: 170

Original Poster
Rep: Reputation: 21
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.
 
Old 08-02-2006, 03:46 PM   #7
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,499

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
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 !
 
Old 05-25-2009, 08:17 AM   #8
imd
LQ Newbie
 
Registered: May 2009
Posts: 1

Rep: Reputation: 0
I have the same problem with open solaris I resolve it the same way given in jlliagre post
Thanks
 
Old 05-26-2009, 03:56 PM   #9
davidsain
LQ Newbie
 
Registered: Jan 2009
Distribution: openSUSE 11.1
Posts: 3

Rep: Reputation: 0
@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
 
Old 06-08-2009, 09:19 PM   #10
mohaas05
Member
 
Registered: Oct 2008
Posts: 41

Rep: Reputation: 16
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.
 
Old 07-23-2009, 01:26 PM   #11
bits45
Member
 
Registered: Jul 2009
Posts: 30
Blog Entries: 2

Rep: Reputation: 5
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.
 
Old 08-05-2009, 01:19 AM   #12
skohari
LQ Newbie
 
Registered: Aug 2009
Posts: 1

Rep: Reputation: 0
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...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hot cpu, how to connect to solaris? smagee12 Mandriva 1 10-24-2005 12:21 AM
Solaris won't connect to the internet srekcus Solaris / OpenSolaris 1 05-22-2005 03:15 PM
Trying to connect to Solaris 8 printer server minghia Fedora 0 06-25-2004 03:46 AM
can't connect to the internet:linux dont read my internet address droplsh Linux - General 1 02-29-2004 07:32 PM
Solaris won't connect via telnet to linux 8.0 sainty Linux - Networking 1 11-25-2003 03:34 AM


All times are GMT -5. The time now is 07:23 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration