LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-30-2005, 04:46 AM   #1
zillah
Member
 
Registered: Oct 2004
Posts: 536

Rep: Reputation: 30
Solaris 10 and Internet connection


I have got Desktop connected to our LAN, what should I do to access internet ?

I can see IP address has been assigned to elxl0 (Ifconfig -a), which is within the range of our LAN, and I can ping solaris box form windows, and I can ping windows PC from Solaris box.

Output of nslookup www.sun.com is:

Server: 193.225.170.150
Address: 193.225.170.150#53


Non-authoritative answer:

Name: www.sun.com
Address: 209.249.116.195



cat /etc/resolv.conf

domain forum.edu.au
nameserver 193.225.170.150
nameserver -------



I can see the same ip addresses for DNS Server if I use the ipconfig /all in the winodws box, and I can see the DNS Server name as well


The problem I guess with :

cat /etc/inet/hosts

127.0.0.1 localhost loghost
193.225.170.99 unknown # addess by DHCP


How can I modify "unknown" to some thing understandable,,,can I chosse any name for my machine?


Last edited by zillah; 04-30-2005 at 06:27 AM.
 
Old 04-30-2005, 06:23 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
in /etc/nsswitch.conf:
host file dns
in /etc/resolv.conf:
nameserver xxx.xxx.xxx.xxx
nameserver ...
check the default route goes to you router to Internet:
netstat -rn | grep default
If not, set your router in the /etc/defaultrouter file and run
route add default <your-router-ip>
 
Old 04-30-2005, 06:50 AM   #3
zillah
Member
 
Registered: Oct 2004
Posts: 536

Original Poster
Rep: Reputation: 30
Quote:
in /etc/nsswitch.conf:
host file dns
It is there



Quote:
check the default route goes to you router to Internet:
netstat -rn | grep default
If not, set your router in the /etc/defaultrouter file and run
It is there. The default ip address for my unix box same as for my winodws box (i.e.this is what suppose to be)


By the way I am trying to connect my unix box at work through our LAN

When I tried to reboot PC, through the process of strating, I can see this:

Hostname:unkonw
Configuaring devices
Creating new rsa public--------

Configuaring Network Interface Addresses:elxl0WARNING-------------

Do not you think the problem with unknow hostname?



Last edited by zillah; 04-30-2005 at 06:57 AM.
 
Old 04-30-2005, 07:48 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
Hostname "unknown" should be fixed in the /etc/nodename file, which must contain the right name.

You can also configure again the system settings with the sys-unconfig command.
 
Old 04-30-2005, 09:38 AM   #5
zillah
Member
 
Registered: Oct 2004
Posts: 536

Original Poster
Rep: Reputation: 30
Quote:
which must contain the right name.
What should the right name be? Is it the name that I had chosen randomly during the installation, or something elase ? because at work our windows PCs do not have any name!!!then how can I choose the right one ?


Quote:
You can also configure again the system settings with the sys-unconfig command.
I used this command, but it had not displayed for me options for changing hostname !!Is this what suppose to be ?

Last edited by zillah; 04-30-2005 at 09:39 AM.
 
Old 05-01-2005, 02:36 AM   #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
The right name is the name you choose to give to the system.

Man sys-unconfig explain what the command does.
After rebooting, you are prompted for the system configuration.
Perhaps are you using dhcp for network settings, and the dhcp server is not providing a hostname to your box.
 
Old 05-01-2005, 03:35 AM   #7
zillah
Member
 
Registered: Oct 2004
Posts: 536

Original Poster
Rep: Reputation: 30
Quote:
Perhaps are you using dhcp for network settings, and the dhcp server is not providing a hostname to your box.
Now what should I do with the name ? Do I choose that one the I put it during installation (I tried it, it did not work) ,or what ?
 
Old 05-01-2005, 07:15 AM   #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
Can you clarify again what is not working on your system, after all, unknown is a valid name for a host.
In your first posting, you are complaining not being able to access Internet, and at the same time, you show you are actually accessing successfully Internet, as you are querying with success an external DNS server ...
Also, can you please post the correct and full error message previously sent as
Quote:
Configuaring Network Interface Addresses:elxl0WARNING-------------
You are hiding the interesting part here ...
 
Old 05-01-2005, 09:45 AM   #9
zillah
Member
 
Registered: Oct 2004
Posts: 536

Original Poster
Rep: Reputation: 30
Quote:
You are hiding the interesting part here ...
I am not hiding any things, but this is what happened to me, I do not understand why!!!!!!!



Quote:
you are complaining not being able to access Internet, and at the same time, you show you are actually accessing successfully
yes still I am complaining ( I can browse nothing!!!), but as you see the ip address has been assinged to my PC via DHCP, but still I can not browse,,,,,therefore I thought the problem with name because it is "unknown".


Quote:
Also, can you please post the correct and full error message previously sent as
i could not write all the message because it is displayed on the screen for short period during the process of starting
 
Old 05-01-2005, 11:08 AM   #10
zillah
Member
 
Registered: Oct 2004
Posts: 536

Original Poster
Rep: Reputation: 30
The problem has been solved, what I have done is this:

# touch /etc/defaultrouter (Created this file, it was not exist before)

gedit /etc/defaultrouter (Editor to add two lines to the empty file)

193.225.170.99--------------(IP address of the unix box, I found it form ifconfig -a)
193.225.170.1----------------(IP address of our default LAN gateway, I found it form windows Box ipconfig/all)

save the change and issue reboot command, and works fine.

Last edited by zillah; 05-01-2005 at 11:09 AM.
 
Old 05-01-2005, 11:45 AM   #11
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
I already told you to do that in my first reply:
Quote:
check the default route goes to you router to Internet:
netstat -rn | grep default
If not, set your router in the /etc/defaultrouter file and run
route add default <your-router-ip>
and you answered it was OK
Quote:
It is there. The default ip address for my unix box same as for my winodws box (i.e.this is what suppose to be)
All this is confusing ...
I even told you how to set it without rebooting, Unix is not Windows !

Anyway, enjoy surfing with Solaris
 
Old 05-01-2005, 02:15 PM   #12
zillah
Member
 
Registered: Oct 2004
Posts: 536

Original Poster
Rep: Reputation: 30
Thanks jlliagre, may be I misunderstood you , or may be you misunderstood me. And I really appreciate your paitient and your quick replies and your answers were very helpful to me in all the threats that I raised here.

Your question was:

Quote:
check the default route goes to you router to Internet:
netstat -rn | grep default
I checked the default route and it was there, and still it is there,,,therefore my answer was :

{{It is there. The default ip address for my unix box same as for my winodws box (i.e.this is what suppose to be)}}.

The output was :

netstat -rm | grep default

default 193.225.170.99 UG 14 elxl0 1
default 193.225.170.1 UG 1

Quote:
If not, set your router in the /etc/defaultrouter file and run
route add default <your-router-ip>
I understood if it not there, then set the router ( I think you meant route), otherwise if it is there, then no need to set the default route (which was my case),,,,correct me if I understood what you wote wrongly.


Still I see the same erro message (Configuaring Network Interface Addresses:elxl0WARNING-------------), If I reboot the Unix .

Last edited by zillah; 05-01-2005 at 02:36 PM.
 
Old 05-01-2005, 02:43 PM   #13
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 understood what I wrote, but I'm still not understanding what was wrong ...
Have you more than one ethernet interface ?
Quote:
Configuaring Network Interface Addresses:elxl0WARNING-------------
The interesting part here is "-----------", but anyway a warning is not an error, so the message is probably harmless.
 
Old 05-01-2005, 03:11 PM   #14
zillah
Member
 
Registered: Oct 2004
Posts: 536

Original Poster
Rep: Reputation: 30
I will try to catch the message, but could you please tell me how can I pause the screen during the process of starting,,,,if it possible ?
 
Old 05-01-2005, 04:55 PM   #15
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
I think this is doable with '<CTRL>+S' which should suspend all screen output.
You can resume with '<CTRL>+Q'.
This is valid in any terminal windows too, and is in fact the good old XON/XOFF used for asynchronous serial control flow.
 
  


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
Internet and Solaris Ahmed Solaris / OpenSolaris 10 10-03-2005 03:56 PM
Solaris won't connect to the internet srekcus Solaris / OpenSolaris 1 05-22-2005 03:15 PM
Can't boot into solaris and can't connet to internet aeruzcar Solaris / OpenSolaris 11 01-25-2005 03:27 PM
Nic card -> cable internet modem no internet connection zeshan_b Mandriva 21 09-26-2004 11:48 AM
How to access the Internet on Solaris ? nuwanguy Solaris / OpenSolaris 3 09-07-2003 06:40 AM

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

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