J’ai fait un egrep -i "network|enp0s20" /var/log/syslog
, voici le résultat:
Jul 21 19:01:19 sd-100810 systemd[1]: Starting Network initialization...
Jul 21 19:01:19 sd-100810 networking[512]: networking: Configuring network interfaces
Jul 21 19:01:19 sd-100810 debug: {'use_daemon': 'no', 'template_enable': '1', 'template_engine': 'mako', 'template_lookuppath': '/etc/network/ifupdown2/templates', 'default_interfaces_configfile': '/etc/network/interfaces', 'disable_cli_interfacesfile': '0', 'addon_syntax_check': '0', 'addon_scripts_support': '1', 'addon_python_modules_support': '1', 'multiple_vlan_aware_bridge_support': '1', 'ifquery_check_success_str': 'pass', 'ifquery_check_error_str': 'fail', 'ifquery_check_unknown_str': '', 'ifquery_ifacename_expand_range': '0', 'link_master_slave': '1', 'delay_admin_state_change': '0', 'ifreload_down_changed': '0', 'addr_config_squash': '0', 'ifaceobj_squash': '0', 'adjust_logical_dev_mtu': '1', 'state_dir': '/run/network/'}
Jul 21 19:01:19 sd-100810 info: looking for user scripts under /etc/network
Jul 21 19:01:19 sd-100810 info: loading scripts under /etc/network/if-pre-up.d ...
Jul 21 19:01:19 sd-100810 info: loading scripts under /etc/network/if-up.d ...
Jul 21 19:01:19 sd-100810 info: loading scripts under /etc/network/if-post-up.d ...
Jul 21 19:01:19 sd-100810 info: loading scripts under /etc/network/if-pre-down.d ...
Jul 21 19:01:19 sd-100810 info: loading scripts under /etc/network/if-down.d ...
Jul 21 19:01:19 sd-100810 info: loading scripts under /etc/network/if-post-down.d ...
Jul 21 19:01:19 sd-100810 info: processing interfaces file /etc/network/interfaces
Jul 21 19:01:19 sd-100810 debug: processing sourced line ..'source /etc/network/interfaces.d/*'
Jul 21 19:01:19 sd-100810 debug: scheduling '['pre-up', 'up', 'post-up']' for ['lo', 'enp0s20']
Jul 21 19:01:19 sd-100810 debug: dependency graph {#012#011lo : []#012#011enp0s20 : []#012}
Jul 21 19:01:19 sd-100810 debug: graph roots (interfaces that dont have dependents): ['lo', 'enp0s20']
Jul 21 19:01:19 sd-100810 debug: lo: up : running script /etc/network/if-up.d/postfix
Jul 21 19:01:19 sd-100810 info: executing /etc/network/if-up.d/postfix
Jul 21 19:01:19 sd-100810 debug: lo: up : running script /etc/network/if-up.d/bind9
Jul 21 19:01:19 sd-100810 info: executing /etc/network/if-up.d/bind9
Jul 21 19:01:19 sd-100810 debug: lo: up : running script /etc/network/if-up.d/openntpd
Jul 21 19:01:19 sd-100810 info: executing /etc/network/if-up.d/openntpd
Jul 21 19:01:19 sd-100810 info: enp0s20: running ops ...
Jul 21 19:01:19 sd-100810 debug: enp0s20: pre-up : running module xfrm
Jul 21 19:01:19 sd-100810 debug: enp0s20: pre-up : running module link
Jul 21 19:01:19 sd-100810 debug: enp0s20: pre-up : running module bond
Jul 21 19:01:19 sd-100810 debug: enp0s20: pre-up : running module vlan
Jul 21 19:01:19 sd-100810 debug: enp0s20: pre-up : running module vxlan
Jul 21 19:01:19 sd-100810 debug: enp0s20: pre-up : running module usercmds
Jul 21 19:01:19 sd-100810 debug: enp0s20: pre-up : running module bridge
Jul 21 19:01:19 sd-100810 debug: enp0s20: pre-up : running module bridgevlan
Jul 21 19:01:19 sd-100810 debug: enp0s20: pre-up : running module tunnel
Jul 21 19:01:19 sd-100810 debug: enp0s20: pre-up : running module vrf
Jul 21 19:01:19 sd-100810 debug: enp0s20: pre-up : running module address
Jul 21 19:01:19 sd-100810 info: enp0s20: netlink: ip link set dev enp0s20 up
Jul 21 19:01:19 sd-100810 debug: enp0s20: up : running module dhcp
Jul 21 19:01:19 sd-100810 info: enp0s20: enabling syslog for dhcp configuration
Jul 21 19:01:19 sd-100810 info: executing ip -o addr show enp0s20
Jul 21 19:01:19 sd-100810 info: executing /sbin/dhclient -pf /run/dhclient.enp0s20.pid -lf /var/lib/dhcp/dhclient.enp0s20.leases enp0s20
Jul 21 19:01:19 sd-100810 dhclient[552]: DHCPREQUEST for IP_publique on enp0s20 to 255.255.255.255 port 67
Jul 21 19:01:19 sd-100810 kernel: [ 23.976797] drop_monitor: Initializing network drop monitor service
Jul 21 19:01:19 sd-100810 kernel: [ 28.211054] igb: Intel(R) Gigabit Ethernet Network Driver
Jul 21 19:01:19 sd-100810 kernel: [ 28.553188] igb 0000:00:14.0: Intel(R) Gigabit Ethernet Network Connection
Jul 21 19:01:19 sd-100810 kernel: [ 28.987888] igb 0000:00:14.0 enp0s20: renamed from eth0
Jul 21 19:01:19 sd-100810 kernel: [ 54.135439] igb 0000:00:14.0 enp0s20: igb: enp0s20 NIC Link is Up 2500 Mbps Full Duplex, Flow Control: RX/TX
Jul 21 19:01:19 sd-100810 kernel: [ 54.262472] IPv6: ADDRCONF(NETDEV_CHANGE): enp0s20: link becomes ready
Jul 21 19:01:19 sd-100810 info: executing ip -o addr show enp0s20
Jul 21 19:01:19 sd-100810 info: enp0s20: dhclient: new address detected: IP_publique/24
Jul 21 19:01:19 sd-100810 debug: enp0s20: up : running module address
Jul 21 19:01:19 sd-100810 debug: enp0s20: up : running module addressvirtual
Jul 21 19:01:19 sd-100810 debug: enp0s20: up : running module usercmds
Jul 21 19:01:19 sd-100810 debug: enp0s20: up : running script /etc/network/if-up.d/postfix
Jul 21 19:01:19 sd-100810 info: executing /etc/network/if-up.d/postfix
Jul 21 19:01:20 sd-100810 debug: enp0s20: up : running script /etc/network/if-up.d/bind9
Jul 21 19:01:20 sd-100810 info: executing /etc/network/if-up.d/bind9
Jul 21 19:01:20 sd-100810 debug: enp0s20: up : running script /etc/network/if-up.d/openntpd
Jul 21 19:01:20 sd-100810 info: executing /etc/network/if-up.d/openntpd
J’ai l’impression qu’il n’y a pas d’erreurs là dedans. Voici le fameux /usr/share/ifupdown2/sbin/start-networking
(je pense que c’est ce qui est exécuté sans se terminer, le seul message affiché étant la description de l’unit systemd qui exécute ce script):
#!/bin/bash
# This replaces the old init.d script, and is run from the networking.service
# Only has start, stop, reload, because that's all systemd has.
# restart is implemented in systemd by stop then start.
RUN_DIR="/run/network"
IFSTATE_LOCKFILE="${RUN_DIR}/ifstatelock"
STATE_DIR="/var/tmp/network"
IFSTATE_FILE="${STATE_DIR}/ifstatenew"
NAME=networking
[ -x /sbin/ifup ] || exit 0
[ -x /sbin/ifdown ] || exit 0
CONFIGURE_INTERFACES=yes
EXTRA_ARGS=
EXTRA_ARGS=
[ "$VERBOSE" = yes ] && EXTRA_ARGS=-v
[ "$DEBUG" = yes ] && EXTRA_ARGS="$EXTRA_ARGS -d"
[ "$SYSLOG" = yes ] && EXTRA_ARGS="$EXTRA_ARGS --syslog"
perf_options() {
# At bootup lets set perfmode
[ -f ${IFSTATE_LOCKFILE} ] && echo -n "" && return
echo -n "--perfmode"
}
process_exclusions() {
set -- $EXCLUDE_INTERFACES
exclusions=""
for d
do
exclusions="-X $d $exclusions"
done
echo $exclusions
}
check_network_file_systems() {
[ -e /proc/mounts ] || return 0
if [ -e /etc/iscsi/iscsi.initramfs ]; then
echo ${NAME}':' "not deconfiguring network interfaces: iSCSI root is mounted."
exit 0
fi
while read DEV MTPT FSTYPE REST; do
case $DEV in
/dev/nbd*|/dev/nd[a-z]*|/dev/etherd/e*)
echo ${NAME}':' "not deconfiguring network interfaces: network devices still mounted."
exit 0
;;
esac
case $FSTYPE in
nfs|nfs4|smbfs|ncp|ncpfs|cifs|coda|ocfs2|gfs|pvfs|pvfs2|fuse.httpfs|fuse.curlftpfs)
echo ${NAME}':' "not deconfiguring network interfaces: network file systems still mounted."
exit 0
;;
esac
done < /proc/mounts
}
check_network_swap() {
[ -e /proc/swaps ] || return 0
while read DEV MTPT FSTYPE REST; do
case $DEV in
/dev/nbd*|/dev/nd[a-z]*|/dev/etherd/e*)
echo ${NAME}':' "not deconfiguring network interfaces: network swap still mounted."
exit 0
;;
esac
done < /proc/swaps
}
ifup_hotplug () {
if [ -d /sys/class/net ]
then
ifaces=$(for iface in $(ifquery --list --allow=hotplug 2>/dev/null)
do
link=${iface##:*}
link=${link##.*}
if [ -e "/sys/class/net/$link" ]
then
echo "$iface"
fi
done)
if [ -n "$ifaces" ]
then
ifup $ifaces "$@" || true
fi
fi
}
ifup_mgmt () {
ifaces=$(ifquery --list --allow=mgmt 2>/dev/null)
if [ -n "$ifaces" ]; then
echo "bringing up mgmt class interfaces"
ifup --allow=mgmt
fi
}
ifupdown_init() {
# remove state file at boot
[ ! -e ${IFSTATE_LOCKFILE} ] && rm -f ${IFSTATE_FILE}
[ ! -e /run/network ] && mkdir -p /run/network &>/dev/null
[ ! -e /etc/network/run ] && \
ln -sf /run/network /etc/network/run &>/dev/null
}
case "$1" in
start)
ifupdown_init
if [ "$CONFIGURE_INTERFACES" = no ]
then
echo ${NAME}':' "Not configuring network interfaces, see /etc/default/networking"
exit 0
fi
set -f
exclusions=$(process_exclusions)
perfoptions=$(perf_options)
echo ${NAME}':' "Configuring network interfaces"
ifup_mgmt
ifup -a $EXTRA_ARGS $exclusions $perfoptions
ifup_hotplug $HOTPLUG_ARGS $EXTRA_ARGS $exclusions
;;
stop)
if [ "$SKIP_DOWN_AT_SYSRESET" = "yes" ]; then
SYSRESET=0
systemctl list-jobs | egrep -q '(shutdown|reboot|halt|poweroff)\.target'
[ $? -eq 0 ] && SYSRESET=1
if [ $SYSRESET -eq 1 ]; then
echo ${NAME}':' "Skipping deconfiguring network interfaces"
exit 0
fi
fi
ifupdown_init
check_network_file_systems
check_network_swap
exclusions=$(process_exclusions)
echo ${NAME}':' "Deconfiguring network interfaces"
ifdown -a $EXTRA_ARGS $exclusions
;;
reload)
ifupdown_init
exclusions=$(process_exclusions)
echo ${NAME}':' "Reloading network interfaces configuration"
ifreload -a $EXTRA_ARGS $exclusions
;;
*)
echo ${NAME}':' "Usage: $0 {start|stop|reload}"
exit 1
;;
esac
exit 0