Solaris / OpenSolarisThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
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>
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 ?
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
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.
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
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
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
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.
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
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 !
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 .
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.