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? |
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> |
Quote:
Quote:
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? |
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. |
Quote:
Quote:
|
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. |
Quote:
|
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:
|
Quote:
Quote:
Quote:
|
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. |
I already told you to do that in my first reply:
Quote:
Quote:
I even told you how to set it without rebooting, Unix is not Windows ! Anyway, enjoy surfing with Solaris ;) |
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:
{{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:
Still I see the same erro message (Configuaring Network Interface Addresses:elxl0WARNING-------------), If I reboot the Unix . |
You understood what I wrote, but I'm still not understanding what was wrong ...
Have you more than one ethernet interface ? Quote:
|
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 ?
|
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. |