The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Network Solaris mass1123 SUN Solaris 2 06-01-2006 01:47 AM
Getting solaris on my network xtremepancakez SUN Solaris 1 04-30-2006 11:53 PM
Getting a solaris x86 box on my network. possuman72 SUN Solaris 1 07-17-2005 04:28 PM
network on solaris csaunders SUN Solaris 6 07-29-2004 12:51 PM
About Sun Solaris Network q30 UNIX for Advanced & Expert Users 2 12-02-2002 08:57 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-15-2008
itik itik is offline
Registered User
  
 

Join Date: Oct 2007
Location: Toronto, Ontario
Posts: 354
solaris 8 network

hi all,

how do i change the routing info and make sure i will be able to connect remotely?

any ideas please?

thanks in advance.
  #2 (permalink)  
Old 07-15-2008
itik itik is offline
Registered User
  
 

Join Date: Oct 2007
Location: Toronto, Ontario
Posts: 354
solaris 8 network 2

hi all,

how do i make sure that the new routing should take effect on the os memory? what should i run after i add all the new "route add ....".

I have an example below:


bash-2.03# netstat -rn

Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
192.168.2.0 192.168.2.50 U 1 7 hme0
224.0.0.0 192.168.2.50 U 1 0 hme0
127.0.0.1 127.0.0.1 UH 1 12 lo0


I need to add a default route with 192.168.2.167 and it should take effect on the os right away w/o reboot. How do I do that?

Thanks in advance.
  #3 (permalink)  
Old 07-16-2008
veer veer is offline
Registered User
  
 

Join Date: Nov 2007
Posts: 23
use route add command for the default gateway.
Login as root and fire:
#route add default 192.168.2.167
The ouput will be:
#add net default: gateway 192.168.2.167

Then do netstat -rn as usual and also try to ping thru the gateway out to some host.

Make the changes permanent so that they are available after booting too.
#vi /etc/defaultrouter
AND append IP address: 192.168.2.167
  #4 (permalink)  
Old 07-16-2008
itik itik is offline
Registered User
  
 

Join Date: Oct 2007
Location: Toronto, Ontario
Posts: 354
sorry the server can't be rebooted.

how do you change the default route on solaris 8 effective immediately? what command should you issue.

thanks in advance.
  #5 (permalink)  
Old 07-16-2008
incredible incredible is online now Forum Advisor  
Registered User
  
 

Join Date: May 2008
Location: s'pore
Posts: 2,116
There is a rc2 script (something like S69route) that will help to keep it consistent across reboots
The only way is to use the routeadd command, edit defaultrouter and add an entry in the rc startup script. Stop/start the network daemon.. (it should not take long) You can do it off peak hours as there will be a lag in the network similarly when you change the speed/duplex settings only.
  #6 (permalink)  
Old 07-16-2008
veer veer is offline
Registered User
  
 

Join Date: Nov 2007
Posts: 23
As mentioned in the earlier post `route add` command will have an immediate effect i.e without rebooting.
Then I mentioned to edit the file to make it permanent so that it is available even after reboot.
Closed Thread

Bookmarks

Tags
solaris

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:07 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0