Merci pour l'aide
J'avais noté ce «carrier lost ». Hier je suis arrivé à la conclusion que ça vient de
systemctl suspend
(du coup hier j'ai suspendu mon système à 23h26 et 31 secondes…). Voir le test dessous
Côté config matérielle: j'ai la box internet sur le bureau, reliée par un cable ethernet de ~1 mètre à ma tour. Je ne fais de manip particulière avec le cable qui reste toujours en place. Le laptop de ma compagne est connecté à la box par wifi, sans problème particulier
Code : Tout sélectionner
23:16 bobo@ drive_c% systemctl suspend
23:16 bobo@ drive_c% systemctl status dhcpcd.service
● dhcpcd.service - dhcpcd on all interfaces
Loaded: loaded (/usr/lib/systemd/system/dhcpcd.service; enabled; vendor preset: disabled)
Active: active (running) since Wed 2019-11-06 23:16:05 CET; 57s ago
Process: 14293 ExecStart=/usr/bin/dhcpcd -q -b (code=exited, status=0/SUCCESS)
Main PID: 14294 (dhcpcd)
Tasks: 1 (limit: 4915)
Memory: 6.6M
CGroup: /system.slice/dhcpcd.service
└─14294 dhcpcd: [master] [ip4]
nov. 06 23:16:52 sharu dhcpcd[14294]: enp6s0: carrier lost
nov. 06 23:16:52 sharu dhcpcd[14294]: enp6s0: deleting route to 192.168.0.0/24
nov. 06 23:16:52 sharu dhcpcd[14294]: enp6s0: deleting default route via 192.168.0.1
nov. 06 23:16:54 sharu dhcpcd[14294]: enp6s0: carrier acquired
nov. 06 23:16:54 sharu dhcpcd[14294]: enp6s0: IAID bf:69:92:99
nov. 06 23:16:55 sharu dhcpcd[14294]: enp6s0: rebinding lease of 192.168.0.77
nov. 06 23:16:55 sharu dhcpcd[14294]: enp6s0: probing address 192.168.0.77/24
nov. 06 23:17:00 sharu dhcpcd[14294]: enp6s0: leased 192.168.0.77 for 3600 seconds
nov. 06 23:17:00 sharu dhcpcd[14294]: enp6s0: adding route to 192.168.0.0/24
nov. 06 23:17:00 sharu dhcpcd[14294]: enp6s0: adding default route via 192.168.0.1
dhcpcd ne veut pas s’arrêter quand on lui demande gentiment
Quand le soucis ne se présente pas il peut s'arrêter gentiment (voir dessous). Mais oui, c'est étrange. Je me demande si je ne pourrais pas faire creuser un peu avec "ifconfig" ou "ip link" quand le problème resurviendra. Je n'ai aucune idée de quoi: je suspecte que dhcpcd en chie au kill parce que la carte réseau n'est plus reconnue. Peut-être tester
ip link show
et voir si enp6s0 apparaît et si les infos sont suspectes, pour tester l'hypothèse.
« stop normal » => ça s'arrête gentiment
Code : Tout sélectionner
23:19 bobo@ drive_c% sudo systemctl stop dhcpcd.service
23:19 bobo@ drive_c% systemctl status dhcpcd.service
● dhcpcd.service - dhcpcd on all interfaces
Loaded: loaded (/usr/lib/systemd/system/dhcpcd.service; enabled; vendor preset: disabled)
Active: inactive (dead) since Wed 2019-11-06 23:19:17 CET; 9s ago
Process: 14293 ExecStart=/usr/bin/dhcpcd -q -b (code=exited, status=0/SUCCESS)
Process: 14646 ExecStop=/usr/bin/dhcpcd -x (code=exited, status=0/SUCCESS)
Main PID: 14294 (code=exited, status=0/SUCCESS)
nov. 06 23:19:17 sharu systemd[1]: Stopping dhcpcd on all interfaces...
nov. 06 23:19:17 sharu dhcpcd[14646]: sending signal TERM to pid 14294
nov. 06 23:19:17 sharu dhcpcd[14646]: waiting for pid 14294 to exit
nov. 06 23:19:17 sharu dhcpcd[14646]: sending signal TERM to pid 14294
nov. 06 23:19:17 sharu dhcpcd[14646]: waiting for pid 14294 to exit
nov. 06 23:19:17 sharu dhcpcd[14294]: received SIGTERM, stopping
nov. 06 23:19:17 sharu dhcpcd[14294]: enp6s0: removing interface
nov. 06 23:19:17 sharu dhcpcd[14294]: dhcpcd exited
nov. 06 23:19:17 sharu systemd[1]: dhcpcd.service: Succeeded.
nov. 06 23:19:17 sharu systemd[1]: Stopped dhcpcd on all interfaces.
« débranchement cable réseau puis stop » => ça s'arrête gentiment
Code : Tout sélectionner
23:32 bobo@ drive_c% sudo systemctl start dhcpcd.service
23:32 bobo@ drive_c% systemctl status dhcpcd.service
● dhcpcd.service - dhcpcd on all interfaces
Loaded: loaded (/usr/lib/systemd/system/dhcpcd.service; enabled; vendor preset: disabled)
Active: active (running) since Wed 2019-11-06 23:32:59 CET; 4s ago
Process: 14946 ExecStart=/usr/bin/dhcpcd -q -b (code=exited, status=0/SUCCESS)
Main PID: 14947 (dhcpcd)
Tasks: 1 (limit: 4915)
Memory: 3.5M
CGroup: /system.slice/dhcpcd.service
└─14947 dhcpcd: [master] [ip4]
nov. 06 23:32:59 sharu systemd[1]: Starting dhcpcd on all interfaces...
nov. 06 23:32:59 sharu dhcpcd[14946]: dev: loaded udev
nov. 06 23:32:59 sharu dhcpcd[14946]: forked to background, child pid 14947
nov. 06 23:32:59 sharu systemd[1]: Started dhcpcd on all interfaces.
nov. 06 23:32:59 sharu dhcpcd[14947]: DUID 00:01:00:01:22:20:77:8b:d8:cb:8a:78:66:0f
nov. 06 23:32:59 sharu dhcpcd[14947]: enp6s0: IAID bf:69:92:99
nov. 06 23:33:00 sharu dhcpcd[14947]: enp6s0: rebinding lease of 192.168.0.77
nov. 06 23:33:00 sharu dhcpcd[14947]: enp6s0: leased 192.168.0.77 for 3600 seconds
nov. 06 23:33:00 sharu dhcpcd[14947]: enp6s0: adding route to 192.168.0.0/24
nov. 06 23:33:00 sharu dhcpcd[14947]: enp6s0: adding default route via 192.168.0.1
23:33 bobo@ drive_c% ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp6s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN mode DEFAULT group default qlen 1000
link/ether 18:31:bf:69:92:99 brd ff:ff:ff:ff:ff:ff
23:33 bobo@ drive_c% sudo systemctl stop dhcpcd.service
23:33 bobo@ drive_c% systemctl status dhcpcd.service
● dhcpcd.service - dhcpcd on all interfaces
Loaded: loaded (/usr/lib/systemd/system/dhcpcd.service; enabled; vendor preset: disabled)
Active: inactive (dead) since Wed 2019-11-06 23:33:20 CET; 5s ago
Process: 14946 ExecStart=/usr/bin/dhcpcd -q -b (code=exited, status=0/SUCCESS)
Process: 15021 ExecStop=/usr/bin/dhcpcd -x (code=exited, status=0/SUCCESS)
Main PID: 14947 (code=exited, status=0/SUCCESS)
nov. 06 23:33:20 sharu systemd[1]: Stopping dhcpcd on all interfaces...
nov. 06 23:33:20 sharu dhcpcd[15021]: sending signal TERM to pid 14947
nov. 06 23:33:20 sharu dhcpcd[15021]: waiting for pid 14947 to exit
nov. 06 23:33:20 sharu dhcpcd[15021]: sending signal TERM to pid 14947
nov. 06 23:33:20 sharu dhcpcd[15021]: waiting for pid 14947 to exit
nov. 06 23:33:20 sharu dhcpcd[14947]: received SIGTERM, stopping
nov. 06 23:33:20 sharu dhcpcd[14947]: enp6s0: removing interface
nov. 06 23:33:20 sharu dhcpcd[14947]: dhcpcd exited
nov. 06 23:33:20 sharu systemd[1]: dhcpcd.service: Succeeded.
nov. 06 23:33:20 sharu systemd[1]: Stopped dhcpcd on all interfaces.