OVH Cloud OVH Cloud

Mystère : le réseau ne démarre plus tout seul ;-)

3 réponses
Avatar
Sylvain
Bonjour à tous,

Je viens d'installer un petit onduleur pour protéger mon serveur en cas
de coupure / surtension. Seulement voilà, pour l'installer, j'ai du
éteindre mon serveur (snif ...). Celui-ci n'avait pas rebooté depuis
quelques mois.

Et quelle ne fut pas ma surprise au reboot de constater que celui-ci
était injoignable ! Après investigation, il semblerait que je sois
obligé de me logger (en local) dessus pour taper :

ifup eth0

chose que je n'ai jamais eu à faire auparavant. Alors certes, il ne
reboote pour ainsi dire jamais, mais j'aimerais bien comprendre ! Parce
que déplacer l'écran d'une pièce à l'autre juste pour taper ça, je dois
avouer qu'il y a plus pratique !

Une idée ? Quelque chose a changé "récemment" ?
Merci de vos avis ...

Juste au cas où :

-------

14:12 Sylvain ~% cat /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

-------

14:13 Sylvain ~% cat /etc/resolv.conf
nameserver 192.168.1.1
nameserver 212.27.53.252
nameserver 212.27.54.252

-------

14:15 Sylvain /# ifconfig
eth0 Lien encap:Ethernet HWaddr 00:0C:76:CE:D7:6F
inet adr:192.168.1.2 Bcast:192.168.1.255
Masque:255.255.255.0
adr inet6: fe80::20c:76ff:fece:d76f/64 Scope:Lien
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1184 errors:0 dropped:0 overruns:0 frame:0
TX packets:1101 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:648912 (633.7 KiB) TX bytes:484192 (472.8 KiB)
Interruption:185 Adresse de base:0xe600

lo Lien 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:124 errors:0 dropped:0 overruns:0 frame:0
TX packets:124 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:29009 (28.3 KiB) TX bytes:29009 (28.3 KiB)

-------

14:16 Sylvain /# ll /etc/rc2.d
total 4,0K
-rw-r--r-- 1 root root 556 2006-11-28 19:58 README
lrwxrwxrwx 1 root root 18 2006-10-14 08:29 S10sysklogd ->
../init.d/sysklogd*
lrwxrwxrwx 1 root root 15 2006-10-14 08:29 S11klogd -> ../init.d/klogd*
lrwxrwxrwx 1 root root 16 2007-01-20 09:20 S19amavis -> ../init.d/amavis*
lrwxrwxrwx 1 root root 22 2007-01-20 16:40 S19spamassassin ->
../init.d/spamassassin*
lrwxrwxrwx 1 root root 15 2006-10-14 08:29 S20acpid -> ../init.d/acpid*
lrwxrwxrwx 1 root root 23 2007-01-20 09:20 S20clamav-daemon ->
../init.d/clamav-daemon*
lrwxrwxrwx 1 root root 26 2007-01-20 09:20 S20clamav-freshclam ->
../init.d/clamav-freshclam*
lrwxrwxrwx 1 root root 17 2006-10-24 14:45 S20hddtemp -> ../init.d/hddtemp*
lrwxrwxrwx 1 root root 15 2006-10-14 08:29 S20inetd -> ../init.d/inetd
lrwxrwxrwx 1 root root 13 2006-10-14 08:29 S20lpd -> ../init.d/lpd*
lrwxrwxrwx 1 root root 17 2006-10-14 08:29 S20makedev -> ../init.d/makedev*
lrwxrwxrwx 1 root root 13 2007-02-01 18:27 S20nut -> ../init.d/nut*
lrwxrwxrwx 1 root root 23 2006-10-14 08:29 S20openbsd-inetd ->
../init.d/openbsd-inetd*
lrwxrwxrwx 1 root root 17 2007-01-16 14:02 S20postfix -> ../init.d/postfix*
lrwxrwxrwx 1 root root 15 2006-10-14 18:38 S20samba -> ../init.d/samba*
lrwxrwxrwx 1 root root 17 2006-10-14 19:22 S20sensord -> ../init.d/sensord*
lrwxrwxrwx 1 root root 23 2006-10-14 18:52 S20smartmontools ->
../init.d/smartmontools*
lrwxrwxrwx 1 root root 13 2006-10-14 12:22 S20ssh -> ../init.d/ssh*
lrwxrwxrwx 1 root root 17 2007-01-17 12:40 S21dovecot -> ../init.d/dovecot*
lrwxrwxrwx 1 root root 20 2006-10-14 08:29 S21nfs-common ->
../init.d/nfs-common*
lrwxrwxrwx 1 root root 15 2006-10-14 08:29 S25mdadm -> ../init.d/mdadm*
lrwxrwxrwx 1 root root 17 2006-10-15 08:58 S50proftpd -> ../init.d/proftpd*
lrwxrwxrwx 1 root root 13 2006-10-14 08:29 S89atd -> ../init.d/atd*
lrwxrwxrwx 1 root root 14 2006-10-14 08:29 S89cron -> ../init.d/cron*
lrwxrwxrwx 1 root root 17 2006-10-15 09:41 S91apache2 -> ../init.d/apache2*
lrwxrwxrwx 1 root root 18 2006-10-14 08:29 S99rc.local ->
../init.d/rc.local*
lrwxrwxrwx 1 root root 19 2006-10-14 08:29 S99rmnologin ->
../init.d/rmnologin*
lrwxrwxrwx 1 root root 23 2006-10-14 08:29 S99stop-bootlogd ->
../init.d/stop-bootlogd*


--
Sylvain


--
Lisez la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench
Vous pouvez aussi ajouter le mot ``spam'' dans vos champs "From" et
"Reply-To:"

To UNSUBSCRIBE, email to debian-user-french-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

3 réponses

Avatar
Jean-Michel OLTRA
Bonjour,


Le vendredi 02 février 2007, Sylvain a écrit...


# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp



Pourquoi allow-hotplug ?
Pourquoi pas, tout simplement :

auto eth0
iface eth0 inet dhcp

--
jm

A.E.L. Sarl (R.C.S CASTRES 490843240)
http://www.affaires-en-ligne.com



--
Lisez la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench
Vous pouvez aussi ajouter le mot ``spam'' dans vos champs "From" et
"Reply-To:"

To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Avatar
Sylvain
> Pourquoi allow-hotplug ?
Pourquoi pas, tout simplement :

auto eth0
iface eth0 inet dhcp



Oui, effectivement ...
Serait-ce la cause de mon problème ? En attendant, je n'ai jamais touché
moi même à ce fichier, et il me semble bien que ça a toujours été comme
ça ...

--
Sylvain



--
Lisez la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench
Vous pouvez aussi ajouter le mot ``spam'' dans vos champs "From" et
"Reply-To:"

To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Avatar
Raphaël RIGNIER
Sylvain a écrit :
Pourquoi allow-hotplug ?
Pourquoi pas, tout simplement :

auto eth0
iface eth0 inet dhcp



Oui, effectivement ...
Serait-ce la cause de mon problème ? En attendant, je n'ai jamais
touché moi même à ce fichier, et il me semble bien que ça a toujours
été comme ça ...



Tu as sans doutes eu de la chance lors de ton boot d'il y a quelques mois.
Les clients DHCP avec allow-hotplug m'ont causé beaucoup de soucis.
Des fois la carte s'active à temps, des fois non... Avec le paramètre auto
le comportement est beaucoup plus sûr...

Un petit copier/coller du man interfaces.
---
Lines beginning with "allow-" are used to identify interfaces that
should be brought up automatically by various subsytems. This may be
done using a command such as "ifup --allow=hotplug eth0 eth1", which
will only bring up eth0 or eth1 if it is listed in an "allow-hotplug"
line. Note that "allow-auto" and "auto" are synonyms.
--

Le various-subsystem est justement très variable :-) je ne peux en dire
plus...

Raphaël


--
Lisez la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench
Vous pouvez aussi ajouter le mot ``spam'' dans vos champs "From" et
"Reply-To:"

To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact