Solaris v5.6
how do you stop and start the network services?
IMO - The best way is to reboot - Solaris (at that version) does not have some of the more interesting features of say AIX where 'sub systems' can be restarted - so if you try to kill all/each process associated with the network services (and restart them) then you may end up having more problems and have to reboot.
Of course it matters exactly WHICH services you are trying to restart - NIS can be restarted with no problems (usually) on clients and slaves, DNS can be restarted (and possibly just reloaded ), nfs can be restarted but may give problems for clients of any nfs mounts from the server you restarted it on.
ok thanks, i thought there would be a way to stop and start subsystems similar to Aix, with Solaris.
I want to change the default route and then implement it. I've found the file /etc/defaultrouter. Let me ask you another question. What files start up the tcp/ip services in Solaris?
In Aix for example, inittab, rc.net, rc.tcpip, gateways, networks, inetd, inetd.conf, services, named.boot. These fire off in order.
I've found /etc/init.d/inetinit. It mentions /etc/rcS.d/S30rootusr.sh
on the Solaris box? I'm trying to determine what files or scripts fire off in what order when starting up Solaris.
You don't need to restart the service to do what you want.
Just add the correct route to your /etc/defaultrouter like you say so that it comes up right after booting.
Until the next boot, use the route command to add that route on the fly
route add default <IP ADDRESS> 1
You may need to delete the current default route too in order to get it to work.
Check man route if you need more details or want to verify what I wrote above.
ok, thanks for the clarification on the setup of the default route.
i'll give it go.