Debian /etc/network/interfaces not loading on boot (How to fix race condition) The Next CEO of Stack OverflowNetwork routing issues on LinuxSetting up Windows network on XenPort foreword + openVPN + iptables?Centos 6.2 Fresh 'Basic Server' install networking issuesKVM/Libvirt bridged/routed networking not working on newer guest kernelstunneling layer 2 sshtcpdump on bridge interface (virbr) does not receive any packets destined for one of its addressesHow to correctly set up routing on machine with 4 interfaces so that three of interfaces are on the same subnet?Shorewall reporting martiansLinux: Bridging two ethernet connections together to allow second host onto first network

Calculator final project in Python

Why does standard notation not preserve intervals (visually)

Is it possible to use a NPN BJT as switch, from single power source?

Proper way to express "He disappeared them"

Prepend last line of stdin to entire stdin

If the heap is zero-initialized for security, then why is the stack merely uninitialized?

Method for adding error messages to a dictionary given a key

How did people program for Consoles with multiple CPUs?

What does "Its cash flow is deeply negative" mean?

WOW air has ceased operation, can I get my tickets refunded?

What steps are necessary to read a Modern SSD in Medieval Europe?

Would a completely good Muggle be able to use a wand?

Running a General Election and the European Elections together

Is micro rebar a better way to reinforce concrete than rebar?

Should I tutor a student who I know has cheated on their homework?

Why is the US ranked as #45 in Press Freedom ratings, despite its extremely permissive free speech laws?

Why, when going from special to general relativity, do we just replace partial derivatives with covariant derivatives?

If Nick Fury and Coulson already knew about aliens (Kree and Skrull) why did they wait until Thor's appearance to start making weapons?

Would this house-rule that treats advantage as a +1 to the roll instead (and disadvantage as -1) and allows them to stack be balanced?

Why don't programming languages automatically manage the synchronous/asynchronous problem?

Defamation due to breach of confidentiality

Would a grinding machine be a simple and workable propulsion system for an interplanetary spacecraft?

Where do students learn to solve polynomial equations these days?

Is there a difference between "Fahrstuhl" and "Aufzug"



Debian /etc/network/interfaces not loading on boot (How to fix race condition)



The Next CEO of Stack OverflowNetwork routing issues on LinuxSetting up Windows network on XenPort foreword + openVPN + iptables?Centos 6.2 Fresh 'Basic Server' install networking issuesKVM/Libvirt bridged/routed networking not working on newer guest kernelstunneling layer 2 sshtcpdump on bridge interface (virbr) does not receive any packets destined for one of its addressesHow to correctly set up routing on machine with 4 interfaces so that three of interfaces are on the same subnet?Shorewall reporting martiansLinux: Bridging two ethernet connections together to allow second host onto first network










0















I had a server configuration that was working before, but recently I did an update and it seems to have broken things. I believe there were originally two issues, the first of which I've solved. I noticed when I was looking through systemctl status networking that a command I had never seen before was failing. I looked it up and it was from a package I've never seen before, ifupdown2. I installed it and that error resolved. I assume this was an unmarked dependency that was added because I never needed that package before.



Now when my server boots, the networking service runs successfully, but none of the networking configurations are set:



# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp2s5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
link/ether 00:1e:2a:c2:08:13 brd ff:ff:ff:ff:ff:ff
#
# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp2s5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:1e:2a:c2:08:13 brd ff:ff:ff:ff:ff:ff
inet6 fe80::21e:2aff:fec2:813/64 scope link
valid_lft forever preferred_lft forever
#
# ip route # This is not a copy-paste error, it actually just prints nothing
#
# journalctl -u networking
-- Logs begin at Thu 2019-03-28 15:17:47 CDT, end at Thu 2019-03-28 15:19:18 CDT. --
Mar 28 15:17:51 linux-01 systemd[1]: Starting ifupdown2 networking initialization...
Mar 28 15:17:51 linux-01 networking[572]: networking: Configuring network interfaces
Mar 28 15:17:54 linux-01 systemd[1]: Started ifupdown2 networking initialization.


This is my /etc/network/interfaces file:



# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug enp2s5
iface enp2s5 inet static
address 10.0.6.164/24
gateway 10.0.6.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 8.8.8.8


The weird part is even though networking started successfully if I reload it everything works.



# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp2s5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
link/ether 00:1e:2a:c2:08:13 brd ff:ff:ff:ff:ff:ff
#
# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp2s5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:1e:2a:c2:08:13 brd ff:ff:ff:ff:ff:ff
inet 10.0.6.164/24 scope global enp2s5
valid_lft forever preferred_lft forever
inet6 fe80::21e:2aff:fec2:813/64 scope link
valid_lft forever preferred_lft forever
#
# ip route
default via 10.0.6.1 dev enp2s5
10.0.6.0/24 dev enp2s5 proto kernel scope link src 10.0.6.164


I think it may be a race condition based on this. I've capture 3 failures from journalctl and all of them contain something like this:



Mar 28 15:11:51 linux-01 kernel: r8169 0000:02:05.0 enp2s5: link down
Mar 28 15:11:51 linux-01 kernel: r8169 0000:02:05.0 enp2s5: link down
Mar 28 15:11:51 linux-01 kernel: IPv6: ADDRCONF(NETDEV_UP): enp2s5: link is not ready
Mar 28 15:11:51 linux-01 systemd[1]: Started ifupdown2 networking initialization.
Mar 28 15:11:51 linux-01 systemd[1]: Reached target Network.
Mar 28 15:11:51 linux-01 systemd[1]: Starting Permit User Sessions...
Mar 28 15:11:51 linux-01 systemd[1]: Starting Fail2Ban Service...
...
Mar 28 15:11:54 linux-01 kernel: r8169 0000:02:05.0 enp2s5: link up
Mar 28 15:11:54 linux-01 kernel: IPv6: ADDRCONF(NETDEV_CHANGE): enp2s5: link becomes ready


It seems like the system is trying to load the network configuration before the device is ready, but I don't know how to make it wait until it is. Also, shouldn't allow-hotplug enp2s5 make the timing irrelevant?



Can anyone confirm my assessment of the problem and can anyone tell me how to make systemd wait until the device is ready?



Note: I don't have physical access to the server anymore and getting it is a massive pain. I'd prefer not to do any reboots until I'm 100% sure it will work.










share|improve this question






















  • I'm guessing adding auto enp2s5 to /etc/network/interfaces will fix this.

    – Mark Wagner
    yesterday
















0















I had a server configuration that was working before, but recently I did an update and it seems to have broken things. I believe there were originally two issues, the first of which I've solved. I noticed when I was looking through systemctl status networking that a command I had never seen before was failing. I looked it up and it was from a package I've never seen before, ifupdown2. I installed it and that error resolved. I assume this was an unmarked dependency that was added because I never needed that package before.



Now when my server boots, the networking service runs successfully, but none of the networking configurations are set:



# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp2s5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
link/ether 00:1e:2a:c2:08:13 brd ff:ff:ff:ff:ff:ff
#
# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp2s5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:1e:2a:c2:08:13 brd ff:ff:ff:ff:ff:ff
inet6 fe80::21e:2aff:fec2:813/64 scope link
valid_lft forever preferred_lft forever
#
# ip route # This is not a copy-paste error, it actually just prints nothing
#
# journalctl -u networking
-- Logs begin at Thu 2019-03-28 15:17:47 CDT, end at Thu 2019-03-28 15:19:18 CDT. --
Mar 28 15:17:51 linux-01 systemd[1]: Starting ifupdown2 networking initialization...
Mar 28 15:17:51 linux-01 networking[572]: networking: Configuring network interfaces
Mar 28 15:17:54 linux-01 systemd[1]: Started ifupdown2 networking initialization.


This is my /etc/network/interfaces file:



# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug enp2s5
iface enp2s5 inet static
address 10.0.6.164/24
gateway 10.0.6.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 8.8.8.8


The weird part is even though networking started successfully if I reload it everything works.



# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp2s5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
link/ether 00:1e:2a:c2:08:13 brd ff:ff:ff:ff:ff:ff
#
# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp2s5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:1e:2a:c2:08:13 brd ff:ff:ff:ff:ff:ff
inet 10.0.6.164/24 scope global enp2s5
valid_lft forever preferred_lft forever
inet6 fe80::21e:2aff:fec2:813/64 scope link
valid_lft forever preferred_lft forever
#
# ip route
default via 10.0.6.1 dev enp2s5
10.0.6.0/24 dev enp2s5 proto kernel scope link src 10.0.6.164


I think it may be a race condition based on this. I've capture 3 failures from journalctl and all of them contain something like this:



Mar 28 15:11:51 linux-01 kernel: r8169 0000:02:05.0 enp2s5: link down
Mar 28 15:11:51 linux-01 kernel: r8169 0000:02:05.0 enp2s5: link down
Mar 28 15:11:51 linux-01 kernel: IPv6: ADDRCONF(NETDEV_UP): enp2s5: link is not ready
Mar 28 15:11:51 linux-01 systemd[1]: Started ifupdown2 networking initialization.
Mar 28 15:11:51 linux-01 systemd[1]: Reached target Network.
Mar 28 15:11:51 linux-01 systemd[1]: Starting Permit User Sessions...
Mar 28 15:11:51 linux-01 systemd[1]: Starting Fail2Ban Service...
...
Mar 28 15:11:54 linux-01 kernel: r8169 0000:02:05.0 enp2s5: link up
Mar 28 15:11:54 linux-01 kernel: IPv6: ADDRCONF(NETDEV_CHANGE): enp2s5: link becomes ready


It seems like the system is trying to load the network configuration before the device is ready, but I don't know how to make it wait until it is. Also, shouldn't allow-hotplug enp2s5 make the timing irrelevant?



Can anyone confirm my assessment of the problem and can anyone tell me how to make systemd wait until the device is ready?



Note: I don't have physical access to the server anymore and getting it is a massive pain. I'd prefer not to do any reboots until I'm 100% sure it will work.










share|improve this question






















  • I'm guessing adding auto enp2s5 to /etc/network/interfaces will fix this.

    – Mark Wagner
    yesterday














0












0








0








I had a server configuration that was working before, but recently I did an update and it seems to have broken things. I believe there were originally two issues, the first of which I've solved. I noticed when I was looking through systemctl status networking that a command I had never seen before was failing. I looked it up and it was from a package I've never seen before, ifupdown2. I installed it and that error resolved. I assume this was an unmarked dependency that was added because I never needed that package before.



Now when my server boots, the networking service runs successfully, but none of the networking configurations are set:



# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp2s5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
link/ether 00:1e:2a:c2:08:13 brd ff:ff:ff:ff:ff:ff
#
# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp2s5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:1e:2a:c2:08:13 brd ff:ff:ff:ff:ff:ff
inet6 fe80::21e:2aff:fec2:813/64 scope link
valid_lft forever preferred_lft forever
#
# ip route # This is not a copy-paste error, it actually just prints nothing
#
# journalctl -u networking
-- Logs begin at Thu 2019-03-28 15:17:47 CDT, end at Thu 2019-03-28 15:19:18 CDT. --
Mar 28 15:17:51 linux-01 systemd[1]: Starting ifupdown2 networking initialization...
Mar 28 15:17:51 linux-01 networking[572]: networking: Configuring network interfaces
Mar 28 15:17:54 linux-01 systemd[1]: Started ifupdown2 networking initialization.


This is my /etc/network/interfaces file:



# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug enp2s5
iface enp2s5 inet static
address 10.0.6.164/24
gateway 10.0.6.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 8.8.8.8


The weird part is even though networking started successfully if I reload it everything works.



# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp2s5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
link/ether 00:1e:2a:c2:08:13 brd ff:ff:ff:ff:ff:ff
#
# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp2s5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:1e:2a:c2:08:13 brd ff:ff:ff:ff:ff:ff
inet 10.0.6.164/24 scope global enp2s5
valid_lft forever preferred_lft forever
inet6 fe80::21e:2aff:fec2:813/64 scope link
valid_lft forever preferred_lft forever
#
# ip route
default via 10.0.6.1 dev enp2s5
10.0.6.0/24 dev enp2s5 proto kernel scope link src 10.0.6.164


I think it may be a race condition based on this. I've capture 3 failures from journalctl and all of them contain something like this:



Mar 28 15:11:51 linux-01 kernel: r8169 0000:02:05.0 enp2s5: link down
Mar 28 15:11:51 linux-01 kernel: r8169 0000:02:05.0 enp2s5: link down
Mar 28 15:11:51 linux-01 kernel: IPv6: ADDRCONF(NETDEV_UP): enp2s5: link is not ready
Mar 28 15:11:51 linux-01 systemd[1]: Started ifupdown2 networking initialization.
Mar 28 15:11:51 linux-01 systemd[1]: Reached target Network.
Mar 28 15:11:51 linux-01 systemd[1]: Starting Permit User Sessions...
Mar 28 15:11:51 linux-01 systemd[1]: Starting Fail2Ban Service...
...
Mar 28 15:11:54 linux-01 kernel: r8169 0000:02:05.0 enp2s5: link up
Mar 28 15:11:54 linux-01 kernel: IPv6: ADDRCONF(NETDEV_CHANGE): enp2s5: link becomes ready


It seems like the system is trying to load the network configuration before the device is ready, but I don't know how to make it wait until it is. Also, shouldn't allow-hotplug enp2s5 make the timing irrelevant?



Can anyone confirm my assessment of the problem and can anyone tell me how to make systemd wait until the device is ready?



Note: I don't have physical access to the server anymore and getting it is a massive pain. I'd prefer not to do any reboots until I'm 100% sure it will work.










share|improve this question














I had a server configuration that was working before, but recently I did an update and it seems to have broken things. I believe there were originally two issues, the first of which I've solved. I noticed when I was looking through systemctl status networking that a command I had never seen before was failing. I looked it up and it was from a package I've never seen before, ifupdown2. I installed it and that error resolved. I assume this was an unmarked dependency that was added because I never needed that package before.



Now when my server boots, the networking service runs successfully, but none of the networking configurations are set:



# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp2s5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
link/ether 00:1e:2a:c2:08:13 brd ff:ff:ff:ff:ff:ff
#
# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp2s5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:1e:2a:c2:08:13 brd ff:ff:ff:ff:ff:ff
inet6 fe80::21e:2aff:fec2:813/64 scope link
valid_lft forever preferred_lft forever
#
# ip route # This is not a copy-paste error, it actually just prints nothing
#
# journalctl -u networking
-- Logs begin at Thu 2019-03-28 15:17:47 CDT, end at Thu 2019-03-28 15:19:18 CDT. --
Mar 28 15:17:51 linux-01 systemd[1]: Starting ifupdown2 networking initialization...
Mar 28 15:17:51 linux-01 networking[572]: networking: Configuring network interfaces
Mar 28 15:17:54 linux-01 systemd[1]: Started ifupdown2 networking initialization.


This is my /etc/network/interfaces file:



# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug enp2s5
iface enp2s5 inet static
address 10.0.6.164/24
gateway 10.0.6.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 8.8.8.8


The weird part is even though networking started successfully if I reload it everything works.



# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp2s5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
link/ether 00:1e:2a:c2:08:13 brd ff:ff:ff:ff:ff:ff
#
# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp2s5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:1e:2a:c2:08:13 brd ff:ff:ff:ff:ff:ff
inet 10.0.6.164/24 scope global enp2s5
valid_lft forever preferred_lft forever
inet6 fe80::21e:2aff:fec2:813/64 scope link
valid_lft forever preferred_lft forever
#
# ip route
default via 10.0.6.1 dev enp2s5
10.0.6.0/24 dev enp2s5 proto kernel scope link src 10.0.6.164


I think it may be a race condition based on this. I've capture 3 failures from journalctl and all of them contain something like this:



Mar 28 15:11:51 linux-01 kernel: r8169 0000:02:05.0 enp2s5: link down
Mar 28 15:11:51 linux-01 kernel: r8169 0000:02:05.0 enp2s5: link down
Mar 28 15:11:51 linux-01 kernel: IPv6: ADDRCONF(NETDEV_UP): enp2s5: link is not ready
Mar 28 15:11:51 linux-01 systemd[1]: Started ifupdown2 networking initialization.
Mar 28 15:11:51 linux-01 systemd[1]: Reached target Network.
Mar 28 15:11:51 linux-01 systemd[1]: Starting Permit User Sessions...
Mar 28 15:11:51 linux-01 systemd[1]: Starting Fail2Ban Service...
...
Mar 28 15:11:54 linux-01 kernel: r8169 0000:02:05.0 enp2s5: link up
Mar 28 15:11:54 linux-01 kernel: IPv6: ADDRCONF(NETDEV_CHANGE): enp2s5: link becomes ready


It seems like the system is trying to load the network configuration before the device is ready, but I don't know how to make it wait until it is. Also, shouldn't allow-hotplug enp2s5 make the timing irrelevant?



Can anyone confirm my assessment of the problem and can anyone tell me how to make systemd wait until the device is ready?



Note: I don't have physical access to the server anymore and getting it is a massive pain. I'd prefer not to do any reboots until I'm 100% sure it will work.







networking debian boot systemd






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked yesterday









user2752635user2752635

1203




1203












  • I'm guessing adding auto enp2s5 to /etc/network/interfaces will fix this.

    – Mark Wagner
    yesterday


















  • I'm guessing adding auto enp2s5 to /etc/network/interfaces will fix this.

    – Mark Wagner
    yesterday

















I'm guessing adding auto enp2s5 to /etc/network/interfaces will fix this.

– Mark Wagner
yesterday






I'm guessing adding auto enp2s5 to /etc/network/interfaces will fix this.

– Mark Wagner
yesterday











0






active

oldest

votes












Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "2"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f960653%2fdebian-etc-network-interfaces-not-loading-on-boot-how-to-fix-race-condition%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Server Fault!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f960653%2fdebian-etc-network-interfaces-not-loading-on-boot-how-to-fix-race-condition%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Wikipedia:Vital articles Мазмуну Biography - Өмүр баян Philosophy and psychology - Философия жана психология Religion - Дин Social sciences - Коомдук илимдер Language and literature - Тил жана адабият Science - Илим Technology - Технология Arts and recreation - Искусство жана эс алуу History and geography - Тарых жана география Навигация менюсу

Bruxelas-Capital Índice Historia | Composición | Situación lingüística | Clima | Cidades irmandadas | Notas | Véxase tamén | Menú de navegacióneO uso das linguas en Bruxelas e a situación do neerlandés"Rexión de Bruxelas Capital"o orixinalSitio da rexiónPáxina de Bruselas no sitio da Oficina de Promoción Turística de Valonia e BruxelasMapa Interactivo da Rexión de Bruxelas-CapitaleeWorldCat332144929079854441105155190212ID28008674080552-90000 0001 0666 3698n94104302ID540940339365017018237

What should I write in an apology letter, since I have decided not to join a company after accepting an offer letterShould I keep looking after accepting a job offer?What should I do when I've been verbally told I would get an offer letter, but still haven't gotten one after 4 weeks?Do I accept an offer from a company that I am not likely to join?New job hasn't confirmed starting date and I want to give current employer as much notice as possibleHow should I address my manager in my resignation letter?HR delayed background verification, now jobless as resignedNo email communication after accepting a formal written offer. How should I phrase the call?What should I do if after receiving a verbal offer letter I am informed that my written job offer is put on hold due to some internal issues?Should I inform the current employer that I am about to resign within 1-2 weeks since I have signed the offer letter and waiting for visa?What company will do, if I send their offer letter to another company