On Wed, May 09, 2007, Bram Schoenmakers wrote:

> But as I said, I ran the script from a screen session, so that makes me 
> wonder 
> why the execution was aborted.
> 
> But is running '/etc/rc.d/netif restart'' known to cause problems? I think I 
> shouldn't have to use scripts like these just to change a setting on the 
> network interface.

First, you should limit the operation to the interface in question.
You can do this by adding the interface name as optional parameter.
Nevertheless, any routing information regarding this interface gets
dropped, in your case it most probably the interface of the default
gateway. So, your interface will come back, but will be reachable only
in its subnet.

Something like

| # /etc/rc.d/netif restart bge0 && /etc/rc.d/routing restart

in a screen session should do the trick.

-cs
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to