LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   Solaris 10 and Internet connection (https://www.linuxquestions.org/questions/solaris-opensolaris-20/solaris-10-and-internet-connection-318668/)

zillah 04-30-2005 04:46 AM

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?


jlliagre 04-30-2005 06:23 AM

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>

zillah 04-30-2005 06:50 AM

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?



jlliagre 04-30-2005 07:48 AM

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.

zillah 04-30-2005 09:38 AM

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 ?

jlliagre 05-01-2005 02:36 AM

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.

zillah 05-01-2005 03:35 AM

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 ?

jlliagre 05-01-2005 07:15 AM

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 ...

zillah 05-01-2005 09:45 AM

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

zillah 05-01-2005 11:08 AM

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.

jlliagre 05-01-2005 11:45 AM

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 ;)

zillah 05-01-2005 02:15 PM

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 .

jlliagre 05-01-2005 02:43 PM

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.

zillah 05-01-2005 03:11 PM

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 ?

jlliagre 05-01-2005 04:55 PM

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.


All times are GMT -5. The time now is 12:24 AM.