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 06-10-2005, 12:40 PM   #1
norus
LQ Newbie
 
Registered: Feb 2005
Location: Internet
Posts: 25

Rep: Reputation: 15
Solaris 10. Got LAN working but not WAN.


Hello, people.
I'm currently a newbie in Solaris. So I have couple of questions.

I have a computer with Realtec AN8139 NIC. The card was detected from the beginning, so I did not have to download any extra drivers.

I also have a router (D-Link DI-514) which is connected to my adsl-modem.
I've set up a mac-filter on the router, so this Solaris-machine gets 192.168.0.100 automatically. I've managed to get this machine working in my LAN. But when I try a simple "ping google.com", I get "Host Unknown". Anyone knows how to solve this problem?

Some data:

Router info:

Netmask: 255.255.255.0
Gateway: 192.168.0.1
DHCP: 192.168.0.1
DNS: 192.168.0.1

Some network info on the machine:

# ifconfig rtls0

rtls0: flags=1000843<UP, BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 192.168.0.100 netmask ffffff00 broadcast 192.168.0.255
ether <mac-address>

# netstat -rn

http://www.deformica.com/netstat.gif
 
Old 06-10-2005, 04:18 PM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,500

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
Your router probably haven't returned the name resolution.

populate /etc/resolv.conf and add dns to the hosts line in nsswitch.conf.
 
Old 06-10-2005, 05:10 PM   #3
norus
LQ Newbie
 
Registered: Feb 2005
Location: Internet
Posts: 25

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by jlliagre
Your router probably haven't returned the name resolution.

populate /etc/resolv.conf and add dns to the hosts line in nsswitch.conf.
I've crossposted at forum.sun.com and got some advice. Thank you, people. The problem is now solved :-) /me wrote this from Solaris 10 x86
 
Old 06-11-2005, 02:43 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,500

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
And what was the problem's origin ?
 
Old 06-11-2005, 05:19 AM   #5
norus
LQ Newbie
 
Registered: Feb 2005
Location: Internet
Posts: 25

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by jlliagre
And what was the problem's origin ?
My host did not have a dns set up.

I've edited two files:

/etc/resolv.conf

nameserver LOCAL_DNS_IP
nameserver ISP_DNS_IP


/etc/nsswitch.conf

hosts: files dns
 
Old 06-11-2005, 10:43 AM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,500

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
Thanks for the feedback.

You should try to understand why your router isn't setting the dns automatically through dhcp.
 
  


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
2 routers WAN, LAN could you please tell me... microsmart Linux - Networking 5 08-06-2005 01:17 PM
Static IP's with LAN/WAN nistur Linux - Networking 3 05-25-2005 05:01 PM
Routing LAN -> WAN -> LAN with unhelpful router synx13 Linux - Networking 2 06-14-2004 02:35 PM
LAN works, WAN doesn't ? BrianK Linux - Networking 2 06-16-2003 07:11 PM
LAN/WAN problems CyberNet Linux - Networking 1 11-11-2002 10:30 PM


All times are GMT -5. The time now is 03:46 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