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.

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