The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
Google UNIX.COM


IP Networking Questions involving TCP/IP, Routers, Hubs, Network protocols, etc go here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Solaris 10 Networking Phobos SUN Solaris 5 07-23-2008 03:43 AM
Solaris zone routing table 23patrick SUN Solaris 4 06-30-2008 03:41 PM
solaris networking Farbegas SUN Solaris 3 10-04-2007 04:00 AM
Routing problem of Solaris milo SUN Solaris 2 08-07-2007 04:04 AM
routing problem in solaris kyhah IP Networking 3 04-09-2006 11:44 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-15-2008
Registered User
 

Join Date: Oct 2007
Posts: 269
Stumble this Post!
solaris 8 networking routing

hi all,

how do i make sure that the new routing should take effect on the os memory right away? 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? I can't remember well right now but i've done this before, it's something to do with rc.tcpip and rc.net or rcnet... i forget it already.

Thanks in advance.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 07-16-2008
Registered User
 

Join Date: Mar 2006
Location: Ahmedabad
Posts: 115
Stumble this Post!
Read out manual pages

route add default A.B.C.D should works. As soon as you fire this command, it immediately comes into effect. No need to bother any command for immediate effect as these commands talk directly to kernel over PF_ROUTE socket (rtnetlink in Linux). If you want to preserve this setting on reboot then simply add entry into "/etc/defaultrouter" (Solaris) or "/etc/sysconfig/network" (RedHat) file
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 08:15 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0