Debian/Ethernet : Différence entre versions
De WikiOpenTruc
< Debian
Ligne 5 : | Ligne 5 : | ||
* paramétrage incomplet (inexistant) pour ce type de connexion | * paramétrage incomplet (inexistant) pour ce type de connexion | ||
* absence de pilote pour gérer la carte réseau derrière la prise RJ45 | * absence de pilote pour gérer la carte réseau derrière la prise RJ45 | ||
+ | |||
+ | <br> | ||
+ | |||
+ | ==Cas pratique== | ||
+ | Comme pour la plupart des soucis matériels, un coup d'oeil à /var/log est utile. | ||
+ | |||
+ | <code>ls -alt</code> pour voir les fichiers classés temporellement | ||
+ | |||
+ | <pre> | ||
+ | messages | ||
+ | ... | ||
+ | Nov 23 16:24:43 DO790B NetworkManager[500]: <info> [1542986683.7663] policy: auto-activating connection 'Wired connection 1' | ||
+ | Nov 23 16:24:43 DO790B NetworkManager[500]: <info> [1542986683.7721] device (eno1): Activation: starting connection 'Wired connection 1' (292c29aa-90e2-4c2a-9b1d-74d76e270210) | ||
+ | Nov 23 16:24:43 DO790B NetworkManager[500]: <info> [1542986683.7725] device (eno1): state change: disconnected -> prepare (reason 'none') [30 40 0] | ||
+ | Nov 23 16:24:43 DO790B NetworkManager[500]: <info> [1542986683.7733] device (eno1): state change: prepare -> config (reason 'none') [40 50 0] | ||
+ | Nov 23 16:24:43 DO790B NetworkManager[500]: <info> [1542986683.7758] device (eno1): state change: config -> ip-config (reason 'none') [50 70 0] | ||
+ | Nov 23 16:24:43 DO790B NetworkManager[500]: <info> [1542986683.7764] dhcp4 (eno1): activation: beginning transaction (timeout in 45 seconds) | ||
+ | Nov 23 16:24:43 DO790B NetworkManager[500]: <info> [1542986683.7786] dhcp4 (eno1): dhclient started with pid 32716 | ||
+ | Nov 23 16:25:28 DO790B NetworkManager[500]: <warn> [1542986728.7352] dhcp4 (eno1): request timed out | ||
+ | Nov 23 16:25:28 DO790B NetworkManager[500]: <info> [1542986728.7352] dhcp4 (eno1): state changed unknown -> timeout | ||
+ | Nov 23 16:25:28 DO790B NetworkManager[500]: <info> [1542986728.7674] dhcp4 (eno1): canceled DHCP transaction, DHCP client pid 32716 | ||
+ | Nov 23 16:25:28 DO790B NetworkManager[500]: <info> [1542986728.7675] dhcp4 (eno1): state changed timeout -> done | ||
+ | Nov 23 16:25:28 DO790B NetworkManager[500]: <info> [1542986728.7678] device (eno1): state change: ip-config -> failed (reason 'ip-config-unavailable') [70 120 5] | ||
+ | Nov 23 16:25:28 DO790B NetworkManager[500]: <info> [1542986728.7681] policy: disabling autoconnect for connection 'Wired connection 1'. | ||
+ | Nov 23 16:25:28 DO790B NetworkManager[500]: <warn> [1542986728.7683] device (eno1): Activation: failed for connection 'Wired connection 1' | ||
+ | Nov 23 16:25:28 DO790B NetworkManager[500]: <info> [1542986728.7689] device (eno1): state change: failed -> disconnected (reason 'none') [120 30 0] | ||
+ | </pre> | ||
+ | |||
==Commandes utiles== | ==Commandes utiles== |
Version du 23 novembre 2018 à 16:31
Comment faire fonctionner une connexion ethernet pour un ordinateur sous Debian ?
Il peut y avoir plusieurs soucis :
- paramétrage incomplet (inexistant) pour ce type de connexion
- absence de pilote pour gérer la carte réseau derrière la prise RJ45
Cas pratique
Comme pour la plupart des soucis matériels, un coup d'oeil à /var/log est utile.
ls -alt
pour voir les fichiers classés temporellement
messages ... Nov 23 16:24:43 DO790B NetworkManager[500]: <info> [1542986683.7663] policy: auto-activating connection 'Wired connection 1' Nov 23 16:24:43 DO790B NetworkManager[500]: <info> [1542986683.7721] device (eno1): Activation: starting connection 'Wired connection 1' (292c29aa-90e2-4c2a-9b1d-74d76e270210) Nov 23 16:24:43 DO790B NetworkManager[500]: <info> [1542986683.7725] device (eno1): state change: disconnected -> prepare (reason 'none') [30 40 0] Nov 23 16:24:43 DO790B NetworkManager[500]: <info> [1542986683.7733] device (eno1): state change: prepare -> config (reason 'none') [40 50 0] Nov 23 16:24:43 DO790B NetworkManager[500]: <info> [1542986683.7758] device (eno1): state change: config -> ip-config (reason 'none') [50 70 0] Nov 23 16:24:43 DO790B NetworkManager[500]: <info> [1542986683.7764] dhcp4 (eno1): activation: beginning transaction (timeout in 45 seconds) Nov 23 16:24:43 DO790B NetworkManager[500]: <info> [1542986683.7786] dhcp4 (eno1): dhclient started with pid 32716 Nov 23 16:25:28 DO790B NetworkManager[500]: <warn> [1542986728.7352] dhcp4 (eno1): request timed out Nov 23 16:25:28 DO790B NetworkManager[500]: <info> [1542986728.7352] dhcp4 (eno1): state changed unknown -> timeout Nov 23 16:25:28 DO790B NetworkManager[500]: <info> [1542986728.7674] dhcp4 (eno1): canceled DHCP transaction, DHCP client pid 32716 Nov 23 16:25:28 DO790B NetworkManager[500]: <info> [1542986728.7675] dhcp4 (eno1): state changed timeout -> done Nov 23 16:25:28 DO790B NetworkManager[500]: <info> [1542986728.7678] device (eno1): state change: ip-config -> failed (reason 'ip-config-unavailable') [70 120 5] Nov 23 16:25:28 DO790B NetworkManager[500]: <info> [1542986728.7681] policy: disabling autoconnect for connection 'Wired connection 1'. Nov 23 16:25:28 DO790B NetworkManager[500]: <warn> [1542986728.7683] device (eno1): Activation: failed for connection 'Wired connection 1' Nov 23 16:25:28 DO790B NetworkManager[500]: <info> [1542986728.7689] device (eno1): state change: failed -> disconnected (reason 'none') [120 30 0]
Commandes utiles
Pour aider à diagnostiquer les soucis.
- nmcli
$ nmcli device PÉRIPHÉRIQUE TYPE ÉTAT CONNEXION wlx503eaa471fde wifi connecté Orange Airbox-xxxx eno1 ethernet connexion (obtention de la configuration IP) Wired connection 1 lo loopback non-géré