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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
12-06-2004, 07:59 AM
|
#1
|
Member
Registered: Jan 2004
Location: USA
Distribution: SuSE
Posts: 54
Rep:
|
changing IP configuration
Hello everybody.
I just installed a copy of Solaris and I need to change IP configuration. More specifically, I have default router set as "autodetect" but I need to change it to a specific IP address. I realize that it's Solaris 8, but I believe that I need to use a terminal (there's no GUI for that) so it should be more or less universal accross all UNIX/Linux platforms. I appreciate any help.
r.
|
|
|
12-06-2004, 10:42 AM
|
#2
|
Senior Member
Registered: Feb 2003
Location: The Arctic
Distribution: Fedora, Debian, OpenSuSE and Android
Posts: 1,820
Rep:
|
Try the command
route add default gw <ip of the router>
replacing <> with the ip of your router.
I think it worked on our solaris box the last time I had the misfortune of working with it. Tough to learn Sun's OS is... but it is rock solid.
|
|
|
12-06-2004, 11:36 AM
|
#3
|
LQ Newbie
Registered: Dec 2004
Location: Boston
Distribution: all
Posts: 23
Rep:
|
Solaris Router config
The route add command will only temporarily solve the problem.
If you reboot you will lose the configuration info you entered with this command.
You will need to create an /etc/defaultrouter file and simply put in the IP address of your router there. This way your router info will remain intact after your next reboot.
Hope this helps.
BTG
|
|
|
12-06-2004, 12:36 PM
|
#4
|
Member
Registered: Jan 2004
Location: USA
Distribution: SuSE
Posts: 54
Original Poster
Rep:
|
Thanks. I tried the "route add default gw <ip of router>" command but I received "router: bad value" reply. So I tried pinging it and I received "ICMP Host Unreachable ... no answer from ..." What could be the problem? I know that I'm connected via Ethernet to the network?
|
|
|
12-06-2004, 12:57 PM
|
#5
|
LQ Newbie
Registered: Dec 2004
Location: Boston
Distribution: all
Posts: 23
Rep:
|
The command is "route add net default <IP address>".
If you are not getting a ping reply from your router, as you just mentioned, then you have other issues possibly related to your router config.
BTG
|
|
|
12-06-2004, 01:41 PM
|
#6
|
Member
Registered: Jan 2004
Location: USA
Distribution: SuSE
Posts: 54
Original Poster
Rep:
|
would you say that it's a configuration local to my host or a configuration of the router that I'm pinging?
r.
|
|
|
12-07-2004, 09:43 AM
|
#7
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,204
|
The command is:
Code:
route add default <IP address>
gw and net keywords are for linux.
|
|
|
12-07-2004, 11:14 AM
|
#8
|
Member
Registered: Jan 2004
Location: USA
Distribution: SuSE
Posts: 54
Original Poster
Rep:
|
Thank you all, very much. I have my system up and running. r.
|
|
|
All times are GMT -5. The time now is 12:41 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|