LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
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


Reply
  Search this Thread
Old 12-06-2004, 07:59 AM   #1
rob_xx17
Member
 
Registered: Jan 2004
Location: USA
Distribution: SuSE
Posts: 54

Rep: Reputation: 15
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.
 
Old 12-06-2004, 10:42 AM   #2
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Arctic
Distribution: Fedora, Debian, OpenSuSE and Android
Posts: 1,820

Rep: Reputation: 46
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.
 
Old 12-06-2004, 11:36 AM   #3
bostontech
LQ Newbie
 
Registered: Dec 2004
Location: Boston
Distribution: all
Posts: 23

Rep: Reputation: 15
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
 
Old 12-06-2004, 12:36 PM   #4
rob_xx17
Member
 
Registered: Jan 2004
Location: USA
Distribution: SuSE
Posts: 54

Original Poster
Rep: Reputation: 15
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?
 
Old 12-06-2004, 12:57 PM   #5
bostontech
LQ Newbie
 
Registered: Dec 2004
Location: Boston
Distribution: all
Posts: 23

Rep: Reputation: 15
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
 
Old 12-06-2004, 01:41 PM   #6
rob_xx17
Member
 
Registered: Jan 2004
Location: USA
Distribution: SuSE
Posts: 54

Original Poster
Rep: Reputation: 15
would you say that it's a configuration local to my host or a configuration of the router that I'm pinging?

r.
 
Old 12-07-2004, 09:43 AM   #7
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,204
Blog Entries: 1

Rep: Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059Reputation: 2059
The command is:
Code:
route add default <IP address>
gw and net keywords are for linux.
 
Old 12-07-2004, 11:14 AM   #8
rob_xx17
Member
 
Registered: Jan 2004
Location: USA
Distribution: SuSE
Posts: 54

Original Poster
Rep: Reputation: 15
Thank you all, very much. I have my system up and running. r.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing the up2date configuration ftvjr Fedora 2 03-28-2005 07:25 AM
changing IP configuration rob_xx17 Linux - Networking 2 12-06-2004 01:08 PM
changing suse 9.1 internet configuration mai1man Linux - Networking 1 08-12-2004 10:12 PM
changing samba configuration dynamically ramu_ak Linux - Networking 1 12-28-2003 02:24 PM
Changing configuration for 'gfloppy' on RH9.0 the_rydster Linux - Laptop and Netbook 1 11-12-2003 09:40 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration