Effectivement MicP avec nano j’arrive à accéder à /etc/network/interfaces
!
Dans le fichier j’ai:
auto eth0
et
iface eth0 inet dhcp
en entrant ip address
j’ai:
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 foreve
Si je tape :
service networking start eth0
(ou simplement la commande sans eth0
) j’ai comme retour:
job for networking.service failed because the control exited with error code. See "systemctl status.networking" and "journalctl -xe" for details
et donc en entrant le fameux systemctl status.networking
ci dessus :
networking.service - Raise network interfaces
Loaded: loaded (/lib/systemd/system/networking.services; en[/code]abled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2021-06-20 23:14:26 CEST; 15min ago
Docs: man:interfaces (5)
Process: 818 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=1/FAILURE)
Main PID: 818 (code=exited, status=1/FAILURE)
Juin 20 23:14:26 tartuffepc dhclient [845] : than a configuration issue please read the section on submitting bugs on either our web page at www.isc.org or in the README file before submitting a bug. These pages explain the proper process and the information we find helpful for debugging . exiting.
Juin 20 23:14:26 tartuffepc ifup [818] : ifup: failed to bring up eth0
Juin 20 23:14:26 tartuffepc system [1]: networking.service: Main process exited, code=exited, status=1/FAILURE
Juin 20 23:14:26 tartuffepc system [1]: networking.service: Failed with result 'exit-code'.
et avec journalctl -xe
:
Juin 20 23:14:26 tartuffepc dhclient [845]: Internet Systems Consortium DHCP Client 4.4.1
Juin 20 23:14:26 tartuffepc ifup [818]: Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All right reserved.
Juin 20 23:14:26 tartuffepc dhclient [845]: Copyright 2004-2018 Internet Systems Consortium.
All right reserved.
For info, please visit https://www.isc.org/software/dhcp/
Juin 20 23:14:26 tartuffepc ifup [818]: cannot find device "eth0"
Juin 20 23:14:26 tartuffepc dhclient [845]: Failed to get interface index: No such device
Juin 20 23:14:26 tartuffepc ifup [818]: ifup: failed to bring up eth0
Juin 20 23:14:26 tartuffepc systemd [1]: networking.service: Main process exited, code=exited, status=1/FAILURE
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https//www.debian.org/support
-- An ExecStart= process belonging to unit networking.service has exited.
-- The process' exit code is 'exited' and its exit status is 1.
Juin 20 23:14:26 tartuffepc systemd [1]: networking.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://ww.debian.org/support
-- The unit networking.service has entered the 'failed' state with result 'exit-code'.
Juin 20 23:14:26 tartuffepc systemd [1]: networking.service: Failed to start Raise Network interfaces.
-- Subject: L'unité 'unit) networking.service a échoué, avec le résultat failed
-- Defined-By: systemd
-- Support: https://ww.debian.org/support
En substance, j’en ai compris que systemd
est pas capable de se débrouiller (ok je sors ->).