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.
Distribution: fedora (7,9), solaris (sxde 9/07 & 1/08), opensolaris 2008.05
Posts: 49
Rep:
add route permanently
I am using solaris express developer edition 9/07.
I need to execute this command "route add default 192.168.1.1" each time after a reboot. I think editing a file like /etc/rc2.d may solve this problem.
If you were running Fedora or RHEL, I would tell you that you need to add a GATEWAY entry to your /etc/sysconfig/network-scripts/ifcfg-eth0 file, but I'm not sure where this would go in Solaris.
Distribution: fedora (7,9), solaris (sxde 9/07 & 1/08), opensolaris 2008.05
Posts: 49
Original Poster
Rep:
I already edited /etc/defaultrouter.
now ,
#cat /etc/defaultrouter is giving me..
192.168.1.1
but after a reboot , my browser is not being able to display webpages though wireless indicator in my laptop is showing that a connection has already established. even router configuration page is also opening in browser.
when i am executing "route add default 192.168.1.1" , and after that
"svcadm restart nwam" a popup message is showing something like "brought interface wpi0 up, got address 192.168.1.103" and after that browser is being able do display all webpages.
I go through "man defaultrouter" but can't get what should be written in /etc/defaultrouter except 192.168.1.1
I think I am adding a new default gateway using "route add default 192.168.1.1" . Now please tell me how to make it permanent.
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
As you are using nwam and dhcp, all the configuration including IP, DNS and route is automatic. There should be no need to set the default route. Perhaps is there a misconfiguration on the dhcp server side.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.