Bonjour,
J'ai un problème qui survient aléatoirement. Lorsque je démarre mon PC, 1 fois sur 3 je n'ai pas de réseau. La raison est que systemd tente parfois de monter mon interface virtuelle (br0) avant mon interface matérielle (em1) qui est pontée.
(log)systemctl status network.service
network.service - LSB: Bring up/down networking
Loaded: loaded (/etc/rc.d/init.d/network)
Active: failed (Result: exit-code) since mar. 2013-11-26 20:06:12 CET; 24s ago
Process: 3945 ExecStop=/etc/rc.d/init.d/network stop (code=exited, status=0/SUCCESS)
Process: 4167 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/FAILURE)
nov. 26 20:06:11 coppola systemd[1]: Starting LSB: Bring up/down networking...
nov. 26 20:06:11 coppola network[4167]: Activation de l'interface loopback : [ OK ]
nov. 26 20:06:12 coppola network[4167]: Activation de l'interface br0 : ERREUR : [/etc/sysconfig/network-scripts/ifup-eth] Le périphérique br0 n'étant pas présent, son initialisation sera retardée.
nov. 26 20:06:12 coppola network[4167]: [10B blob data]
nov. 26 20:06:12 coppola network[4167]: Activation de l'interface em1 : [ OK ]
nov. 26 20:06:12 coppola systemd[1]: network.service: control process exited, code=exited status=1
nov. 26 20:06:12 coppola systemd[1]: Failed to start LSB: Bring up/down networking.
nov. 26 20:06:12 coppola systemd[1]: Unit network.service entered failed state.
(log)service network restart
Restarting network (via systemctl): [ OK ]
Je pense que je n'ai pas utilisé d'interface pontée depuis Fedora 17 (sans systemd), donc là je découvre 🙂
La conf de mes network-scripts :
DEVICE=em1
BOOTPROTO=none
ONBOOT=yes
NM_CONTROLLED=no
TYPE=Ethernet
BRIDGE=br0
NAME="Système em1"
UUID=1dad842d-1912-ef5a-a43a-bc238fb267e7
DEVICE=br0
TYPE=Bridge
IPADDR=192.168.1.25
NETMASK=255.255.255.0
ONBOOT=yes
GATEWAY=192.168.1.254
BOOTPROTO=static
NM_CONTROLLED=no
DELAY=0
DNS2=8.8.8.8
TYPE=Ethernet
DNS1=192.168.1.254
IPV6INIT=no
USERCTL=no
J'aurai donc besoin d'être certain que em1 soit configurée avant br0, comment puis-je faire ça ?