LinuxQuestions.org
Help answer threads with 0 replies.
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 10-05-2006, 03:47 PM   #1
RuralTurtle
Member
 
Registered: Jan 2006
Posts: 42

Rep: Reputation: 15
Connecting to the web & Solaris Management Console woes ...


Hi again. I was trying to connect this Sun box to the web via a router that is attached to a cable model. All of the Wintel and Apple boxes on the network work fine w/ this router.

I couldn't get the Sun box to recognize and did some searches. One article said it would be easier to do a sys-unconfig. As this is a new machine to me, I did that & went through the standard steps.

Well, I still can't connect and even worse, the Solaris Management Console now doesn't populate. I think it's because it's trying to load the old machine name rather the new one I gave it. I see the old name flash at the bottom of the Window for a second & then nothing populates.

Did I royally screw something up? How should I connect to the web? Thanks again.
 
Old 10-06-2006, 12:37 AM   #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
Please give some clue about your system and what is not working.
What H/W ? What O/S ? Fixed IP or DHCP ?
 
Old 10-06-2006, 08:50 AM   #3
RuralTurtle
Member
 
Registered: Jan 2006
Posts: 42

Original Poster
Rep: Reputation: 15
OS=Solaris 10
H/W=Sun Ultra 5, standard ethernet plugged into a LinkSys router.

I believe it's via DHCP. The problems are that I can't connect to the web & now I the management console doesn't come up properly.

Thanks.
 
Old 10-06-2006, 09:23 AM   #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:
Originally Posted by RuralTurtle
OS=Solaris 10
H/W=Sun Ultra 5, standard ethernet plugged into a LinkSys router.

I believe it's via DHCP.
You mean your are not sure ?
What says
Code:
ifconfig -a
netstat -rn
grep hosts /etc/nsswitch.conf
cat /etc/resolv.conf
?
 
Old 10-06-2006, 12:23 PM   #5
RuralTurtle
Member
 
Registered: Jan 2006
Posts: 42

Original Poster
Rep: Reputation: 15
Here's the info.

Thanks for the reply. I assumed it DHCP, but not positive. What's the best way to check?

# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
# netstat -rn

Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
224.0.0.0 127.0.0.1 U 1 0 lo0
127.0.0.1 127.0.0.1 UH 33 155219 lo0
# grep hosts /etc/nsswitch.conf
# "hosts:" and "services:" in this file are used only if the
hosts: files
# cat /etc/resolv.conf
cat: cannot open /etc/resolv.conf
 
Old 10-06-2006, 03: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
Well, you nic isn't enabled (plumbed in the Solaris terminology).

Try:
Code:
ifconfig -a plumb
ifconfig -a
ifconfig hme0 dhcp
Replace "hme0" by the name of the interface that should show up.
 
Old 10-06-2006, 03:54 PM   #7
RuralTurtle
Member
 
Registered: Jan 2006
Posts: 42

Original Poster
Rep: Reputation: 15
It appears the name is hme0. I did that w/o any errors. What next?
 
Old 10-06-2006, 04:05 PM   #8
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
You may already be connected to the internet now. Run again the commands from posting #4.
 
Old 10-06-2006, 04:25 PM   #9
RuralTurtle
Member
 
Registered: Jan 2006
Posts: 42

Original Poster
Rep: Reputation: 15
Thanks again. I appreciate all your help. It doesn't appear that I am connected. The commands listed in # 4 all work well, but there isn't a file called resolv.conf.

Thanks.

Last edited by RuralTurtle; 10-06-2006 at 04:35 PM.
 
Old 10-07-2006, 02:10 AM   #10
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:
Originally Posted by RuralTurtle
Thanks again. I appreciate all your help. It doesn't appear that I am connected. The commands listed in # 4 all work well
Sure, but what was their output ?
Quote:
but there isn't a file called resolv.conf.
You have to create it and put your dns server here like this:
Code:
nameserver 1.2.3.4
With 1.2.3.4 replaced by your DNS server IP address.
 
Old 10-11-2006, 04:49 PM   #11
RuralTurtle
Member
 
Registered: Jan 2006
Posts: 42

Original Poster
Rep: Reputation: 15
Thanks for the reply. The output is:

# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index
1
inet 127.0.0.1 netmask ff000000
hme0: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index 2
inet 192.168.1.101 netmask ffffff00 broadcast 192.168.1.255
ether 8:0:20:b0:87:67
# netstat -rn

Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
192.168.1.0 192.168.1.101 U 1 11 hme0
224.0.0.0 127.0.0.1 U 1 0 lo0
default 192.168.1.1 UG 1 0 hme0
127.0.0.1 127.0.0.1 UH 281046022 lo0
# grep hosts /etc/nsswitch.conf
# "hosts:" and "services:" in this file are used only if the
hosts: files
# cat /etc/resolv.conf
nameserver 192.168.1.100#
#
 
Old 10-11-2006, 05:25 PM   #12
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
Okay, your box is almost set.
You just need to tell it to use the DNS to resolve names.

The simpler way is:
Code:
cp /etc/nsswitch.dns /etc/nsswitch.conf
One more thing: I don't like this tailing "#" at the end of the resolv.conf line, make sure the line has a proper termination.

Last edited by jlliagre; 10-11-2006 at 05:27 PM.
 
Old 10-11-2006, 05:39 PM   #13
RuralTurtle
Member
 
Registered: Jan 2006
Posts: 42

Original Poster
Rep: Reputation: 15
Thanks again for the reply. Yeah, I put a CR/LF @ the end of the file.

I did the copy command, but I still can't logon to the web. I logged out & back in. Do I have to bring the system down?

Thanks again for all your help.
 
Old 10-11-2006, 06:07 PM   #14
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
Is 192.168.1.100 a working DNS server ?

What says:
Code:
nslookup www.linuxquestions.org
?
 
Old 10-11-2006, 06:19 PM   #15
RuralTurtle
Member
 
Registered: Jan 2006
Posts: 42

Original Poster
Rep: Reputation: 15
That should be the DNS entry. At least that's what the routers setup page said.

The command you gave replies w/ ";; connection timed out: no servers could be reached"

Before I was able to reach the router w/ the sun box by pointing to it w/ Netscape. I now, however, get an error when I go to that IP. It reads "The connection was refused when attempting to contact 192.168.1.1"

I checked the router, it's up and running. I even rebooted it. Two WindowsXP and one MacOS machines are communicating through it w/o any trouble. Strange.

I appreciate all your help.
 
  


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
zsnes && logitech dual action gamepad && dpad woes John5788 Linux - Games 5 10-29-2008 09:56 PM
package management (new to solaris) xushi Solaris / OpenSolaris 16 10-04-2006 02:42 PM
solaris management console sheetu Solaris / OpenSolaris 0 08-18-2006 05:02 AM
Package Management woes russh SUSE / openSUSE 4 07-07-2006 10:07 AM
Slax & connecting to the web parhezgoli Slackware 3 08-17-2005 09:17 PM

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

All times are GMT -5. The time now is 09:40 PM.

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