Saluts,
J’ai jugé opportun d’ouvrir un autre fil pour donner suite à " Remplacé network-manager par quoi … ? " ici .
J’ai installé ifplugd, network-manager n’est pas encore dé-installer.
Lors de la re-configuration de celui-ci, interface à surveiller eth0, Paramètres à passer à ifplugd : -q -f -u0 -d10 -w -I
L’utilisation de ifdown eth0 et ifup eth0 ne fonctionne pas.
Par contre les commandes « ifdown -a » et « ifup -a » Désactive et réactive bien le réseau.
ifplugd eth0 me dit : Trop peu de paramètres pour la ligne iface ?
# ifdown eth0
/etc/network/interfaces:10: too few parameters for iface line
ifdown: couldn't read interfaces file "/etc/network/interfaces"
[code]# cat /etc/network/interfaces
The loopback network interface
auto lo
iface lo inet loopback
hostname Debian-pc-1
Liste des commandes de base de configuration du réseau avec ifupdown
#iface eth0
The primary network interface
#allow-hotplug eth0
#NetworkManager
#iface eth0 inet dhcp
root@Debian-pc-1:/home/pc-1-loreleil#
[/code]
# ifconfig
eth0 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx
inet adr:192.168.1.12 Bcast:192.168.1.255 Masque:255.255.255.0
adr inet6: fe80::216:17ff:feba:3738/64 Scope:Lien
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:37683 errors:0 dropped:0 overruns:0 frame:0
TX packets:35425 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:30297515 (28.8 MiB) TX bytes:5135606 (4.8 MiB)
Interruption:23 Adresse de base:0xc000
lo Link encap:Boucle locale
inet adr:127.0.0.1 Masque:255.0.0.0
adr inet6: ::1/128 Scope:Hôte
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:49228 errors:0 dropped:0 overruns:0 frame:0
TX packets:49228 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:34814102 (33.2 MiB) TX bytes:34814102 (33.2 MiB)
#
[code]nano /etc/network/run/ifstate
eth0=eth0
lo=lo
[/code]
/var/log/syslog
Jun 29 08:17:34 Debian-pc-1 NetworkManager[3919]: <info> (wlan0): device state change: 3 -> 2 (reason 0)
NetworkManager[3919]: <info> (wlan0): deactivating device (reason: 0).
NetworkManager[3919]: <info> Policy set 'Auto eth0' (eth0) as default for IPv4 routing and DNS.
NetworkManager[3919]: <info> Policy set 'Auto eth0' (eth0) as default for IPv4 routing and DNS.
kernel: [72856.214367] [drm] nouveau 0000:05:00.0: Setting dpms mode 1 on vga encoder (output 0)
kernel: [73375.217012] [drm] nouveau 0000:05:00.0: Setting dpms mode 0 on vga encoder (output 0)
ifplugd(eth0)[5712]: ifplugd 0.28 initializing.
ifplugd(eth0)[5712]: Using interface eth0/00:xx:xx:xx:xx:xx with driver <forcedeth> (version: 0.64)
ifplugd(eth0)[5712]: Using detection mode: SIOCETHTOOL
ifplugd(eth0)[5712]: Initialization complete, link beat detected.
ifplugd(eth0)[5712]: Executing '/etc/ifplugd/ifplugd.action eth0 up'.
ifplugd(eth0)[5712]: client: Ignoring unknown interface eth0=eth0.
ifplugd(eth0)[5712]: Program executed successfully.
squid[2236]: Squid Parent: child process 2241 exited with status
squid[5773]: Squid Parent: child process 5775 started
squid[5773]: Squid Parent: child process 5775 exited with status 0
squid[5852]: Squid Parent: child process 5855 started
ddclient[2191]: WARNING: updating loreleil.dyndns-free.com: nochg: No update required; unnecessary attempts to change to the current address are considered abusive
ddclient[2191]: SUCCESS: updating loreleil.dyndns-server.com: good: IP address set to xx.xx.xx.xx
squid[5852]: Squid Parent: child process 5855 exited with status 0
squid[5959]: Squid Parent: child process 5962 started
NetworkManager[3919]: <info> caught signal 15, shutting down normally.
NetworkManager[3919]: <info> exiting (success)
NetworkManager[5978]: <info> NetworkManager (version 0.8.1) is starting...
NetworkManager[5978]: <info> Read config file /etc/NetworkManager/NetworkManager.c
NetworkManager[5978]: <info> modem-manager is now available
NetworkManager[5978]: SCPlugin-Ifupdown: init!
NetworkManager[5978]: SCPlugin-Ifupdown: update_system_hostname
NetworkManager[5978]: SCPluginIfupdown: management mode: unmanaged
NetworkManager[5978]: SCPlugin-Ifupdown: devices added (path: /sys/devices/pci0000:00/0000:00:09.0/0000:01:07.0/ssb0:0/net/wlan0, iface: wlan0)
NetworkManager[5978]: SCPlugin-Ifupdown: device added (path: /sys/devices/pci0000:00/0000:00:09.0/0000:01:07.0/ssb0:0/net/wlan0, iface: wlan0): no ifupdown configuration found
NetworkManager[5978]: SCPlugin-Ifupdown: devices added (path: /sys/devices/pci0000:00/0000:00:0a.0/net/eth0, iface: eth0)
NetworkManager[5978]: SCPlugin-Ifupdown: device added (path: /sys/devices/pci0000:00/0000:00:0a.0/net/eth0, iface: eth0): no ifupdown configuration found.
NetworkManager[5978]: SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/lo, iface: lo)
NetworkManager[5978]: SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/lo, iface: lo): no ifupdown configuration found.
NetworkManager[5978]: SCPlugin-Ifupdown: end _init.
NetworkManager[5978]: <info> Loaded plugin ifupdown: (C) 2008 Canonical Ltd. To report bugs please use the NetworkManager mailing NetworkManager[5978]: <info> Loaded plugin keyfile: (c) 2007 - 2008 Red Hat, Inc. To report bugs please use the NetworkManager mailing list.
NetworkManager[5978]: Ifupdown: get unmanaged devices count: 0
NetworkManager[5978]: SCPlugin-Ifupdown: (37262784) ... get_connections.
NetworkManager[5978]: SCPlugin-Ifupdown: (37262784) ... get_connections (managed=false): return empty list.
NetworkManager[5978]: Ifupdown: get unmanaged devices count: 0
NetworkManager[5978]: <info> found WiFi radio killswitch rfkill0 (at /sys/devices/pci0000:00/0000:00:09.0/0000:01:07.0/ssb0:0/ieee80211/phy0/rfkill0) (driver <unknown>)
NetworkManager[5978]: <info> WiFi enabled by radio killswitch; disabled by state file
NetworkManager[5978]: <info> WWAN enabled by radio killswitch; enabled by state fil
NetworkManager[5978]: <info> WiMAX enabled by radio killswitch; enabled by state file
NetworkManager[5978]: <info> Networking is enabled by state file
NetworkManager[5978]: <info> (wlan0): driver supports SSID scans (scan_capa 0x01).
(...............)
dhclient: Internet Systems Consortium DHCP Client 4.1.1-P1
dhclient: Copyright 2004-2010 Internet Systems Consortium.
dhclient: All rights reserved.
dhclient: For info, please visit https://www.isc.org/software/dhcp/
dhclient:
dhclient: Listening on LPF/eth0/00:xx:xx:xx:xx:xx
dhclient: Sending on LPF/eth0/00:xx:xx:xx:xx:xx
dhclient: Sending on Socket/fallback
dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
dhclient: DHCPOFFER from 192.168.1.1
dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 67
dhclient: DHCPACK from 192.168.1.1
dhclient: bound to 192.168.1.12 -- renewal in 32783 seconds.
if-up.d/mountnfs[eth0]: if-up.d/mountnfs[eth0]: lock /var/run/network/mountnfs exist, not mounting
ntpdate[6209]: no server suitable for synchronization found
wpa_supplicant[1618]: Failed to initiate AP scan.
(.............)
Jun 29 11:12:28 Debian-pc-1wpa_supplicant[1618]: Failed to initiate AP scan.
ifplugd(eth0)[5712]: Exiting.
ifplugd(eth0)[6347]: ifplugd 0.28 initializing.
ifplugd(eth0)[6347]: Using interface eth0/00:xx:xx:xx:xx:xx with driver <forcedeth> (version: 0.64)
ifplugd(eth0)[6347]: Using detection mode: SIOCETHTOOL
ifplugd(eth0)[6347]: Initialization complete, link beat detected.
ifplugd(eth0)[6347]: Executing '/etc/ifplugd/ifplugd.action eth0 up'.
ifplugd(eth0)[6347]: client: /etc/network/interfaces:10: too few parameters for iface line
ifplugd(eth0)[6347]: client: /sbin/ifup: couldn't read interfaces file "/etc/network/interfaces"
ifplugd(eth0)[6347]: client: run-parts: /etc/ifplugd/action.d//ifupdown exited with return code 1
ifplugd(eth0)[6347]: Program execution failed, return value is 1.
wpa_supplicant[1618]: Failed to initiate AP scan.
/var/log/daemon.log
Jun 29 08:17:34 Debian-pc-1 wpa_supplicant[1618]: Failed to initiate AP scan.
NetworkManager[3919]: <info> (wlan0): device state change: 3 -> 2 (reason 0)
NetworkManager[3919]: <info> (wlan0): deactivating device (reason: 0).
NetworkManager[3919]: <info> Policy set 'Auto eth0' (eth0) as default for IPv4 routing and DNS.
NetworkManager[3919]: <info> Policy set 'Auto eth0' (eth0) as default for IPv4 routing and DNS.
ifplugd(eth0)[5712]: ifplugd 0.28 initializing.
ifplugd(eth0)[5712]: Using interface eth0/00:xx:xx:xx:xx:xx with driver <forcedeth> (version: 0.64)
ifplugd(eth0)[5712]: Using detection mode: SIOCETHTOOL
ifplugd(eth0)[5712]: Initialization complete, link beat detected.
ifplugd(eth0)[5712]: Executing '/etc/ifplugd/ifplugd.action eth0 up'.
ifplugd(eth0)[5712]: client: Ignoring unknown interface eth0=eth0.
ifplugd(eth0)[5712]: Program executed successfully.
ddclient[2191]: WARNING: updating loreleil.dyndns-free.com: nochg: No update required; unnecessary attempts to change to the current address are considered abusive
ddclient[2191]: SUCCESS: updating loreleil.dyndns-server.com: good: IP address set to xx.xx.xx.xx
NetworkManager[3919]: <info> caught signal 15, shutting down normally.
NetworkManager[3919]: <info> exiting (success)
NetworkManager[5978]: <info> NetworkManager (version 0.8.1) is starting...
NetworkManager[5978]: <info> Read config file /etc/NetworkManager/NetworkManager.conf
NetworkManager[5978]: <info> modem-manager is now available
NetworkManager[5978]: SCPlugin-Ifupdown: init!
NetworkManager[5978]: SCPlugin-Ifupdown: update_system_hostname
NetworkManager[5978]: SCPluginIfupdown: management mode: unmanaged
NetworkManager[5978]: SCPlugin-Ifupdown: devices added (path: /sys/devices/pci0000:00/0000:00:09.0/0000:01:07.0/ssb0:0/net/wlan0, iface: wlan0)
NetworkManager[5978]: SCPlugin-Ifupdown: device added (path: /sys/devices/pci0000:00/0000:00:09.0/0000:01:07.0/ssb0:0/net/wlan0, iface: wlan0): no ifupdown configuration found.
NetworkManager[5978]: SCPlugin-Ifupdown: devices added (path: /sys/devices/pci0000:00/0000:00:0a.0/net/eth0, iface: eth0)
NetworkManager[5978]: SCPlugin-Ifupdown: device added (path: /sys/devices/pci0000:00/0000:00:0a.0/net/eth0, iface: eth0): no ifupdown configuration found.
NetworkManager[5978]: SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/lo, iface: lo)
NetworkManager[5978]: SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/lo, iface: lo): no ifupdown configuration found.
NetworkManager[5978]: SCPlugin-Ifupdown: end _init.
NetworkManager[5978]: <info> Loaded plugin ifupdown: (C) 2008 Canonical Ltd. To report bugs please use the NetworkManager mailing list.
NetworkManager[5978]: <info> Loaded plugin keyfile: (c) 2007 - 2008 Red Hat, Inc. To report bugs please use the NetworkManager mailing list.
NetworkManager[5978]: Ifupdown: get unmanaged devices count: 0
NetworkManager[5978]: SCPlugin-Ifupdown: (37262784) ... get_connections.
NetworkManager[5978]: SCPlugin-Ifupdown: (37262784) ... get_connections (managed=false): return empty list.
NetworkManager[5978]: Ifupdown: get unmanaged devices count: 0
NetworkManager[5978]: <info> found WiFi radio killswitch rfkill0 (at /sys/devices/pci0000:00/0000:00:09.0/0000:01:07.0/ssb0:0/ieee80211/phy0/rfkill0) (driver <unknown>)
NetworkManager[5978]: <info> WiFi enabled by radio killswitch; disabled by state file
NetworkManager[5978]: <info> WWAN enabled by radio killswitch; enabled by state file
NetworkManager[5978]: <info> WiMAX enabled by radio killswitch; enabled by state file
NetworkManager[5978]: <info> Networking is enabled by state file
(................)
Jun 29 11:12:58 Debian-pc-1 ifplugd(eth0)[5712]: Exiting.
ifplugd(eth0)[6347]: ifplugd 0.28 initializing.
ifplugd(eth0)[6347]: Using interface eth0/00:xx:xx:xx:xx:xx with driver <forcedeth> (version: 0.64)
ifplugd(eth0)[6347]: Using detection mode: SIOCETHTOOL
ifplugd(eth0)[6347]: Initialization complete, link beat detected.
ifplugd(eth0)[6347]: Executing '/etc/ifplugd/ifplugd.action eth0 up'.
ifplugd(eth0)[6347]: client: /etc/network/interfaces:10: too few parameters for iface line
ifplugd(eth0)[6347]: client: /sbin/ifup: couldn't read interfaces file "/etc/network/interfaces"
ifplugd(eth0)[6347]: client: run-parts: /etc/ifplugd/action.d//ifupdown exited with return code 1
ifplugd(eth0)[6347]: Program execution failed, return value is 1.
wpa_supplicant[1618]: Failed to initiate AP scan.
(.................)
Jun 29 12:17:23 Debian-pc-1 NetworkManager[5978]: <info> caught signal 15, shutting down normally.
NetworkManager[5978]: <info> exiting (success)
NetworkManager[6435]: <info> NetworkManager (version 0.8.1) is starting...
NetworkManager[6435]: <info> Read config file /etc/NetworkManager/NetworkManager.conf
NetworkManager[6435]: <info> modem-manager is now available
NetworkManager[6435]: SCPlugin-Ifupdown: init!
NetworkManager[6435]: SCPlugin-Ifupdown: update_system_hostname
NetworkManager[6435]: <WARN> ifparser_init(): Error: Can't parse iface line 'eth0'#012
NetworkManager[6435]: SCPluginIfupdown: guessed connection type (eth0) = 802-3-ethernet
NetworkManager[6435]: SCPlugin-Ifupdown: update_connection_setting_from_if_block: name:eth0, type:802-3-ethernet, id:Ifupdown (eth0), uuid:xxxxxxxxxxxxxxxxx.xxxxxx.xxxxx
Jun 29 12:17:24 Debian-pc-1 NetworkManager[6435]: SCPlugin-Ifupdown: adding eth0 to iface_connections
# cat /etc/NetworkManager/NetworkManager.conf
[main]
plugins=ifupdown,keyfile
[ifupdown]
managed=false
#
je viens de modifier : managed=true
j’ai relancé …
# /etc/init.d/ifplugd restart
Network Interface Plugging Daemon...stop eth0...done.
Network Interface Plugging Daemon...start eth0...done.
root@Debian-pc-1:/home/pc-1-loreleil#
Ainsi que squid3, ddclient et network-manager.
# tail -f /var/log/syslog
Jun 29 13:18:50 Debian-pc-1 NetworkManager[7175]: <info> (eth0): device state change: 7 -> 8 (reason 0)
NetworkManager[7175]: <info> Policy set 'Auto eth0' (eth0) as default for IPv4 routing and DNS.
NetworkManager[7175]: <info> Activation (eth0) successful, device activated.
NetworkManager[7175]: <info> Activation (eth0) Stage 5 of 5 (IP Configure Commit) complete.
if-up.d/mountnfs[eth0]: if-up.d/mountnfs[eth0]: lock /var/run/network/mountnfs exist, not mounting
wpa_supplicant[1618]: Failed to initiate AP scan.
ntpdate[7260]: no server suitable for synchronization found
wpa_supplicant[1618]: Failed to initiate AP scan.
squid[6822]: Squid Parent: child process 6826 exited with status 0
squid[7287]: Squid Parent: child process 7291 started
wpa_supplicant[1618]: Failed to initiate AP scan.
# ifdown eth0
Ignoring unknown interface eth0=eth0.
#
Qu’est ce que j’ai raté … ?
Merci.
Je vous en serre cinq …