The officially official Devuan Forum!

You are not logged in.

#1 2022-06-29 11:47:44

deepforest
Member
Registered: 2020-03-24
Posts: 307  

sometimes network is down after boot

sometimes network is down after boot

/etc/network/interfaces                                                                                                                                             
# 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
auto eth0
iface eth0 inet dhcp
freeartist@devuan:~$ sudo su
[sudo] password for freeartist: 
root@devuan:/home/freeartist# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    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: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
    link/ether 00:1d:7d:c7:be:43 brd ff:ff:ff:ff:ff:ff
root@devuan:/home/freeartist# ifdown eth0
Killed old client process
Internet Systems Consortium DHCP Client 4.4.3
Copyright 2004-2022 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:1d:7d:c7:be:43
Sending on   LPF/eth0/00:1d:7d:c7:be:43
Sending on   Socket/fallback
DHCPRELEASE of 192.168.0.20 on eth0 to 192.168.0.1 port 67
send_packet: Network is unreachable
send_packet: please consult README file regarding broadcast address.
dhclient.c:3124: Failed to send 300 byte long packet over fallback interface.
root@devuan:/home/freeartist# ifup eth0
Internet Systems Consortium DHCP Client 4.4.3
Copyright 2004-2022 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:1d:7d:c7:be:43
Sending on   LPF/eth0/00:1d:7d:c7:be:43
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13
DHCPOFFER of 192.168.0.20 from 192.168.0.1
DHCPREQUEST for 192.168.0.20 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.0.20 from 192.168.0.1
bound to 192.168.0.20 -- renewal in 238 seconds.
root@devuan:/home/freeartist# 
root@devuan:/etc/network# sudo /etc/init.d/networking restart
Running /etc/init.d/networking restart is deprecated because it may not re-enable some interfaces ... (warning).
Reconfiguring network interfaces...Killed old client process
Internet Systems Consortium DHCP Client 4.4.3
Copyright 2004-2022 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:1d:7d:c7:be:43
Sending on   LPF/eth0/00:1d:7d:c7:be:43
Sending on   Socket/fallback
DHCPRELEASE of 192.168.0.20 on eth0 to 192.168.0.1 port 67
Internet Systems Consortium DHCP Client 4.4.3
Copyright 2004-2022 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:1d:7d:c7:be:43
Sending on   LPF/eth0/00:1d:7d:c7:be:43
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 17
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
done.
root@devuan:/etc/network# 

Last edited by deepforest (2022-06-29 11:54:32)

Offline

#2 2022-07-01 22:20:44

guuml.dev1
Member
Registered: 2018-12-09
Posts: 21  

Re: sometimes network is down after boot

The same thing happens to my new installed chimaera. Over weeks every thing works fine, but one day there was no network after login to xfce. For the 1st time this happens I just ignore it. The 2nd time I look to /var/log/syslog:

Jun 24 09:51:58 ... NetworkManager ... dhcp4 (eth0): request timed out
...
Jun 24 09:52:04 ... NetworkManager ... dhcp6 (eth0): request timed out

BTW: I liked it very much not using NetworkManager since devuan/jessie 32bit, but I understand the case against wicd:

Wicd is no longer available in Devuan 4 Chimaera having been removed
from Debian Bullseye because of it's dependency on python2 which is now
obsolete. (from chimeara release notes)

Just before jumping into some rabbit holes there may be a thread [DNG] resolv.conf to read. But for short the following command was helpful to meroot:

echo resolvconf=NO > /etc/resolvconf.conf

Hm, does not not a solution noted during the thread. Being verbose I want to cite
Alessandro Vesely

Some of that arcane is unveiled in Debian wiki:

These packages include various configuration files for other
packages (such as isc-dhcp-client). For example, resolvconf
includes a file which modifies the make_resolv_conf shell
function used by dhclient-script(8).
https://wiki.debian.org/resolv.conf#Con … resolvconf

Thanks a lot to Ale! Here is the note to openresolv:

If openresolv is installed, you can tell it to do nothing
whenever some daemon tries to modify resolv.conf, by putting
resolvconf=NO in the /etc/resolvconf.conf file. (Note: this
is not the /etc/resolv.conf file!)

This is not the end of the story: I have found a bad hack with a good side effect to thunar: initial startup is fasten by twenty times:

time thunar .

real    0m20,348s
user   0m0,005s
sys     0m0,011s

Now I'm looking for a place to discuss this.

--gü


guuml is an abbrevation for g&uuml; in ASCII (1967),
focused on devuan and skipping epic poems like beowulf.
Has Gü spent his last raw DVD to a chimäre? No.

Offline

#3 2022-07-04 23:10:00

deepforest
Member
Registered: 2020-03-24
Posts: 307  

Re: sometimes network is down after boot

Thanks for reply and exploring. I am will try your suggestion and report here.

ps same randomly happend thing was also on Debian for me

Last edited by deepforest (2022-07-04 23:29:38)

Offline

Board footer