LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 09-24-2005, 05:22 PM   #1
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
Solaris and Ultra 1, can't get outside my LAN!


Hi there!

I need some help with Solaris. I've recently got myself an old Ultra 1 Creator and installed Solaris 7 on it. I could try to install something newer, but I don't think that's the problem...

Well, I have an static IP address given by my ISP. I have a few machines connected to the Internet using a SMC router/firewall. The router generates internel IP address for every machine on the LAN.

I can connect to the Internet from any machine, except from my Ultra 1. I can, however, from my Ultra, ping any other machine on my LAN (including the router) but not outside. I can even open a browser from my Ultra/Solaris and change my router settings via Web-based interface. As soon as I try to open a page or ping somewhere else, I got an unknown host.

So far, I've spent a whole day trying to get this to work. This is what I did so far:


created /etc/hostname.hme0:

this file has my hostname

created /etc/dhcp.hme0:

this file has two lines: wait 300 and primary

created /etc/resolv.conf:

I've added my Primary and secondary DNS given by my ISP in two separated lines.

edited /etc/nsswitch.conf

I made sure that the line "hosts: file dns" was in there.

I also re-run sys-unconfig plenty of times and rebooted even more times trying to get this right. Upon the configuration, there was one question that I was not sure, so I set to "none", it was about NIS+ service. Another one was about if my machine was a part of subnet, I said yes and setup my correct (and default) subnet mask: 255.255.255.0

netstat -rn | grep default returns the following:

default 192.168.2.1 UG 0 0


192.168.2.1 is my routers/firewall IP. I also tried to create a file called /etc/defaultrouter and put that number in there, no help. ifconfig -a returns the following (note, not paste-copy job)

lo0: flags=849<UP, LOOPBACK, RUNNING, MULTICAST> MTU 8232
inet 127.0.0.1 netmask ff000000
hme0: flags=4863<UP, BROADCAST, NOTRAILERS, RUNNING, MULTICAST, DHCP> mtu 1500
inet 192.168.2.2 netmask ffffff00 broadcast 192.168.255
ether 8:0:20:88:ee:16

What my ISP gives me:
static IP: 32.132.132.112
DNS1: 54.836.863
DNS2: 54.836.664
Gateway: 32.132.132.1
Subnetmask: 255.255.255.0

Above numbers are examples. Connection on my LAN is done by DHCP through a router/Firewall. If I go into my router settings through Web Interface, my Sparc/Solaris machine has an IP number (192.168.2.2) and it matches the one given by netstat.

Now, what should I do to get this to work? I've spend hours on IRC and Internet without success. Whereelse should I look at?

Thanks in advance.
 
Old 09-24-2005, 05:34 PM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Can you connect to the internet from your U1 by using an outside IP address ?
 
Old 09-24-2005, 05:39 PM   #3
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Original Poster
Rep: Reputation: 65
jlliagre!

Before I start answering your questions, I'd like to thank you. I've read your posts here at Solaris and Java and found you a really valuable member, so I thank in the name of all other members that you've helped with solaris issues . Now, to the question:

From my U1 I can't access Internet at all. Trying to type an address at the web-browser hangs for a while, then returns host not found. Same goes with ping at the command line: hangs for a while, returns host not found error. However, from the U1, pinging any local machine, returns "is alive". From the webbrowser at my U1, I can hit my router (192.168.2.1) and change the settings.

Sorry if I misunderstood the question.
 
Old 09-24-2005, 05:58 PM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Sorry if I misunderstood the question.
you did

I'm asking if you can connect to an outside machine by using its numerical address (a.k.a IP address), and not its name (a.k.a FQDN).

Let say for example www.google.com resolves into 66.249.93.99, try opening http://66.249.93.99/ with your browser.
 
Old 09-24-2005, 06:01 PM   #5
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Original Poster
Rep: Reputation: 65
You're brilliant. Typing the IP address on the browser works . But how should I get around this?
 
Old 09-24-2005, 07:36 PM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
So the problem is not routing but naming, DNS are not properly configured.

Double check:
/etc/resolv.conf
/etc/nsswitch.conf

Possibly, kill and restart /usr/sbin/nscd

run "nslookup www.linuxquestions.org" and see what it says.
 
Old 09-25-2005, 02:07 AM   #7
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Original Poster
Rep: Reputation: 65
Thank you very much jlliagre!!! It finally works. Well, it was my fault actually. I've double checked the /etc/resolv.conf (as you suggested) and I had only my DNS on it, without "nameserver". It's now up and running... can't wait to install bash or else I will insane without it

Best Regards and thanks again!
 
  


Reply



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
Ultra 5 - solaris 9 - Wireless card? ginda Solaris / OpenSolaris 3 06-23-2005 03:33 PM
Linux or Solaris 9 on Sun Sparc Ultra 60 3d kt8993 Solaris / OpenSolaris 1 10-26-2004 01:32 AM
Color Depth in Solaris 9 + Ultra 10 Creator 3D pymehta Solaris / OpenSolaris 4 08-10-2004 11:18 AM
solaris 9 cant boot on Ultra 1... slack_baby Solaris / OpenSolaris 2 07-31-2004 08:58 AM
trying to install solaris 9 OS on Sun Ultra 80 redsleepy Solaris / OpenSolaris 3 09-12-2003 08:01 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 03:02 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration