FW: integration with /etc/network/interfaces



> -----Original Message-----
> From: Paulus Esterhazy [mailto:pesterhazy gmx net]
> Sent: 07 November 2007 18:29
> Cc: Henry Andrew
> Subject: Re: integration with /etc/network/interfaces
> 
> > If there is an equivalent tool supplied with network-manager, does
it do
> > exactly the same thing that /etc/init.d/networking restart does,
> > including restarting the nm-applet stuff?
> 
> To restart NetworkManager on Ubuntu, run:
> 
> /etc/dbus-1/event.d/25NetworkManager restart
> /etc/dbus-1/event.d/26NetworkManagerDispatcher restart
> 
> These scripts are not located in /etc/init.d, I suppose, because they
> are executed only in the event that a network card is detected, or
> plugged in (like a USB WLAN stick).
> 
> To restart nm-applet, you can use (in bash):
> 
> killall nm-applet
> nm-applet --sm-disable &
> 
> HTH,
> Paulus

Thankyou for the info Paulus, but now I need some more help...

I looked at the help for /usr/sbin/NetworkManager and there are very few
options to specify when restarting the daemon, and the script in
/etc/dbus-1/event.d/ doesn't do much other than call
/usr/sbin/NetworkManager.

It does not seem that there is any integration with
/etc/network/interfaces at all, and that there is no equivalent way of
scripting in custom pre-up/post-down commands etc. like you can with
standard networking.

Seems like NetworkManager sits on top of standard Linux networking and
is not a functionally equivalent tool.  Are they mutually incompatible?
I suppose it will probably work to script killall nm-applet and restart
NetworkManager in a post-up/pre-down script, but will this allow me to
still hard code a specific interface in /etc/network/interfaces without
NetworkManager complaining about it when it starts up?  Eg. To hard code
the Ethernet interface, but still use nm-applet for wireless without it
complaining that my eth0 is hard coded?

I must admit that I do not really know what happens when I do
/etc/init.d/networking restart, but my assumption is that this restarts
the entire network stack (unloads all net modules and then loads them
again), whereas restarting Network-Manager simply restarts that one
daemon.  I assume that I cannot stop networking entirely with
"/etc/init.d/networking stop" and still expect nm-applet to work?

--andrew


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]