Applet del Network Manager "interfície de xarxa no gestionat"
Network Manager és un conjunt d'eines per a la creació de xarxes simple i senzilla. Ja sigui WiFi, cable, 3G o Bluetooth, i que ens permet moure'ns ràpidament d'una xarxa a una altra. Té dos components: 1. Un servei de nivell de sistema que administra les connexions i els informes de canvis en la xarxa; 2. Un applet d'escriptori gràfic que permet a l'usuari manipular les connexions.
Molts si no tots els usuaris de Debian 7 Wheezy amb un entorn gràfic KDE, ens hem trobat amb aquest error en l'applet del network manager: "interfície de xarxa no gestionat" o alguna cosa així. Aquest error no és mes que una notificació d'estat i és degut a que la gestió de la xarxa s'està fent des de l'arxiu interfaces.
La solució al problema la trobem en la documentació cores-ponent a /usr/share/doc/network-manager/README.Debian
$ nano /usr/share/doc/network-manager/README.Debian
Aquesta és la part que ens interessa...
unmanaged devices and /etc/network/interfaces
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Network devices which are configured in /etc/network/interfaces will typically
be managed by ifupdown. Such devices will by default be marked as "unmanaged"
in NetworkManager.
You can tell NetworkManager to read and use the network configuration from
/etc/network/interfaces by editing /etc/NetworkManager/NetworkManager.conf
and changing the configuration as follows:
[ifupdown]
managed=true
After modifying /etc/NetworkManager/NetworkManager.conf or
/etc/network/interfaces you need to restart the NetworkManager service via
"service network-manager restart".
It needs to be considered though that the network interface will also still be
managed by ifupdown. This can lead to unexpected behaviour if two network
configuration systems manage the same device.
If you want to have a network interface managed by NetworkManager it is thus
recommended to manually remove any configuration for that interface from
/etc/network/interfaces.
Diu que ...
Els dispositius de xarxa que es configuren a /etc/network/interfaces solen ser gestionats per ifupdown. Aquests dispositius per defecte seran marcats com a "no administrat" a NetworkManager.
Perquè NetworkManager pugui llegir i utilitzar la configuració de la xarxa de /etc/network/interfaces cal editar el /etc/NetworkManager/NetworkManager.conf i canviar la configuració...
Així que ...
# nano /etc/NetworkManager/NetworkManager.conf
[main]
plugins=ifupdown,keyfile
[ifupdown]
managed=false
Canviem false per true quedant així...
[main]
plugins=ifupdown,keyfile
[ifupdown]
managed=true
Després de modificar el /etc/NetworkManager/Network/Manager.conf o el /etc/network/interfaces cal reiniciar el servei NetworkManager amb...
# service network-manager restart
S'ha de tindre en compte, que la interfície de xarxa encara estarà gestionada per ifupdown. Això pot portar a un comportament inesperat si tots dos intenten configurar el mateix dispositiu. Si vostè desitja tindre una interfície de xarxa gestionada per NetworkManager és recomanable eliminar manualment qualsevol configuració de la interfície de /etc/network/interfaces.
# nano /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp
i comentem el següent...
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
# allow-hotplug eth0 (comentat per evitar conflictes al gestionar la xarxa amb NetworkManager)
# iface eth0 inet dhcp (comentat per evitar conflictes al gestionar la xarxa amb NetworkManager)
Reiniciem els serveis de xarxa amb...
# service network-manager restart
o bé reiniciem el sistema.
Font ... http://www.debian.org/
Salut i gaudeixin de GNU/Linux Debian
el roig a InforoigPV


Torna a la portada