Sebastien Roy wrote:
On 11/ 3/10 06:51 AM, Brian Ruthven - Solaris Network Sustaining -
Oracle UK wrote:
If Solaris 10 or OpenSolaris with nwam disabled, then either of the two
methods below will add the router, but method #2 will only persist until
you reboot.
The route command has a -p option that makes static routes persist
across system reboots, rendering /etc/defaultrouter obsolete. See
route(1M).
That's true (depending on OS - S9 and S10fcs do not have it, later S10
and OpenSolaris do) and I always forget about it until somebody points
it out to me (again!).
For method #1, use "svcadm restart network/physical:default" in place of
your /etc/init.d/network command.
Restarting network/physical:default will have weird side-effects, as
it's not designed to be restarted (it has no stop method).
Fair enough. It's always worked for me, but then this is on lab systems
with relatively simple networking configs, and nothing later than
Solaris 10.
Brian
--
Brian Ruthven
Solaris Network RPE (Sustaining)
Oracle UK
_______________________________________________
networking-discuss mailing list
networking-discuss@opensolaris.org