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

<censure> de systemd !...



	Bonjour à tous,

	Considérons la partie réseau d'un serveur.

eth0 = LAN
eth1 = WAN1 (avec eth1:1->eth1:6) avec sept adresses IPv4 différentes
eth2 = WAN2 (avec une adresse IPv4 et un /64 Ipv6)
tap0 = openvpn TCP
tap1 = openvpn UDP

Cette configuration fonctionnait parfaitement avec init. Avec systemd, ça merdoie (mais qui s'en étonnerait encore). Je subodore un problème de dépendance entre les tap0/1 et le reste du réseau.

	Les erreurs sont sur les modules :
- networking.service
- ifupdown-wait-online.service

Il n'y a pas de networkmanager, tout est fait à l'ancienne avec un fichier interfaces en pièce jointe.

Root rayleigh:[~] > systemctl statuts networking.service
Unknown operation statuts.
Root rayleigh:[~] > systemctl status networking.service
● networking.service - Raise network interfaces
Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Tue 2018-07-24 12:43:44 CEST; 5min ago
     Docs: man:interfaces(5)
Process: 1339 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=1/FAILURE) Process: 1334 ExecStartPre=/bin/sh -c if [ "$CONFIGURE_INTERFACES" != "no" ] && [ -n "$(ifquery --read-environment --list --exclude=lo)" ]; then udevadm settle; fi (code=exited, s
 Main PID: 1339 (code=exited, status=1/FAILURE)

juil. 24 12:43:23 rayleigh ifup[1339]: RTNETLINK answers: File exists
juil. 24 12:43:23 rayleigh ifup[1339]: ifup: failed to bring up eth1:4
juil. 24 12:43:23 rayleigh ifup[1339]: RTNETLINK answers: File exists
juil. 24 12:43:23 rayleigh ifup[1339]: ifup: failed to bring up eth1:5
juil. 24 12:43:23 rayleigh ifup[1339]: RTNETLINK answers: File exists
juil. 24 12:43:23 rayleigh ifup[1339]: ifup: failed to bring up eth1:6
juil. 24 12:43:34 rayleigh ifup[1339]: Waiting for DAD... Done
juil. 24 12:43:44 rayleigh systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE juil. 24 12:43:44 rayleigh systemd[1]: networking.service: Failed with result 'exit-code'. juil. 24 12:43:44 rayleigh systemd[1]: Failed to start Raise network interfaces.
Root rayleigh:[~] > systemctl status ifupdown-wait-online.service
● ifupdown-wait-online.service - Wait for network to be configured by ifupdown Loaded: loaded (/lib/systemd/system/ifupdown-wait-online.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Tue 2018-07-24 12:47:30 CEST; 4min 26s ago Process: 430 ExecStart=/lib/ifupdown/wait-online.sh (code=exited, status=1/FAILURE)
 Main PID: 430 (code=exited, status=1/FAILURE)

juil. 24 12:47:30 rayleigh systemd[1]: ifupdown-wait-online.service: Main process exited, code=exited, status=1/FAILURE juil. 24 12:47:30 rayleigh systemd[1]: ifupdown-wait-online.service: Failed with result 'exit-code'. juil. 24 12:47:30 rayleigh systemd[1]: Failed to start Wait for network to be configured by ifupdown. Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
Root rayleigh:[~] >

Je suppose que la seconde erreur est une conséquence de la première. Donc je teste /sbin/ifup -a -n --read-environment... qui ne renvoie aucune erreur ! De toute façon, ce fichier ne prend ni en compte tap0 ni tap1.

	La question est donc de savoir comment corriger la chose.

	Bien cordialement,

	JKB
# 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
auto eth0
iface eth0 inet static
	address 192.168.0.128
	netmask 255.255.255.0
	network 192.168.0.0
	broadcast 192.168.0.255

iface eth0 inet6 static
	address 2001:7a8:a8ed:0::128
	netmask 64

auto eth1
iface eth1 inet static
	address 192.168.254.1
	netmask 255.255.255.0
	network 192.168.254.0
	broadcast 192.168.254.255
	gateway 192.168.254.254
	mtu 1492

auto eth1:1
iface eth1:1 inet static
	address 192.168.254.81
	netmask 255.255.255.0
	network 192.168.254.0
	broadcast 192.168.254.255
	gateway 192.168.254.254

auto eth1:2
iface eth1:2 inet static
	address 192.168.254.82
	netmask 255.255.255.0
	network 192.168.254.0
	broadcast 192.168.254.255
	gateway 192.168.254.254

auto eth1:3
iface eth1:3 inet static
	address 192.168.254.83
	netmask 255.255.255.0
	network 192.168.254.0
	broadcast 192.168.254.255
	gateway 192.168.254.254

auto eth1:4
iface eth1:4 inet static
	address 192.168.254.84
	netmask 255.255.255.0
	network 192.168.254.0
	broadcast 192.168.254.255
	gateway 192.168.254.254

auto eth1:5
iface eth1:5 inet static
	address 192.168.254.85
	netmask 255.255.255.0
	network 192.168.254.0
	broadcast 192.168.254.255
	gateway 192.168.254.254

auto eth1:6
iface eth1:6 inet static
	address 192.168.254.86
	netmask 255.255.255.0
	network 192.168.254.0
	broadcast 192.168.254.255
	gateway 192.168.254.254

auto eth2
iface eth2 inet static
	address 192.168.253.1
	netmask 255.255.255.0
	network 192.168.253.0
	broadcast 192.168.253.255

iface eth2 inet6 static
	address 2001:7a8:a8ed:253::1
	netmask 64
#	gateway 2001:7a8:a8ed:253::254
#	gateway 2001:7a8:a8ed:253:2a28:5dff:fe11:bf23
	gateway 2001:7a8:a8ed:253::254
	mtu 1492
	post-up /sbin/ip -6 route add unreachable 2001:7a8:a8ed::/48
	pre-down /sbin/ip -6 route del unreachable 2001:7a8:a8ed::/48

#auto bond0
#iface bond0 inet static
#	address 192.168.100.1
#	netmask 255.255.255.0
#	slaves tap3 tap4
#	bond_mode 0
#	bond_mode 4
#	bond_miimon 100
#        bond_downdelay 200
#        bond_updelay 200

Reply to: