Vous n'êtes pas identifié(e).
L'icône rouge permet de télécharger chaque page du wiki visitée au format PDF et la grise au format ODT →
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente Prochaine révision Les deux révisions suivantes | ||
doc:reseau:systemd:network:fichier-.network [29/01/2016 10:12] Severian [Configuration] |
doc:reseau:systemd:network:fichier-.network [17/07/2018 17:05] Severian [systemd-networkd : Le fichier .network] |
||
---|---|---|---|
Ligne 4: | Ligne 4: | ||
* Niveau requis : {{tag>avisé}} | * Niveau requis : {{tag>avisé}} | ||
* Commentaires : Écrire la configuration de connexion de votre réseau. | * Commentaires : Écrire la configuration de connexion de votre réseau. | ||
- | * Suivi : {{tag>en-chantier à-compléter}} - FIXME Pour choisir, voir les autres Tags possibles dans [[:atelier:#tags|l'Atelier]]. | + | * Suivi : {{tag>obsolète}} |
* Création par [[user>Severian]] 29/01/2016 | * Création par [[user>Severian]] 29/01/2016 | ||
* Testé par <...> le <...> | * Testé par <...> le <...> | ||
- | * Commentaires sur le forum : [[https://debian-facile.org/viewtopic.php?id=12584 | Lien vers le forum concernant ce tuto]] ((N'hésitez pas à y faire part de vos remarques, succès, améliorations ou échecs !)) FIXME | + | * Commentaires sur le forum : [[https://debian-facile.org/viewtopic.php?id=12584 | Lien vers le forum concernant ce tuto]] ((N'hésitez pas à y faire part de vos remarques, succès, améliorations ou échecs !)) |
**Nota :** | **Nota :** | ||
Ligne 15: | Ligne 14: | ||
===== Introduction ===== | ===== Introduction ===== | ||
+ | <note warning>les configurations fonctionnent pour Jessie, à évité d'utiliser pour l'instant avec Stretch</note> | ||
===== Configuration ===== | ===== Configuration ===== | ||
+ | <note important>À chaque modification des fichiers le service doit être relancé | ||
+ | <code root>systemctl restart systemd-networkd</code></note> | ||
+ | <note tip>pour le tuto j'utilise l'éditeur nano\\ | ||
+ | voir [[doc:editeurs:nano:nano-tp-par-l-exemple|TP : nano par l'exemple]]</note> | ||
/etc/systemd/network/50-eth0.network | /etc/systemd/network/50-eth0.network | ||
<code root>nano /etc/systemd/network/50-eth0.network</code> | <code root>nano /etc/systemd/network/50-eth0.network</code> | ||
Ligne 81: | Ligne 85: | ||
---- | ---- | ||
+ | ===== Les commandes du service systemd-networkd ===== | ||
+ | |||
+ | Activer le service : | ||
+ | <code root>systemctl enable systemd-networkd</code> | ||
+ | |||
+ | Démarrer le service : | ||
+ | <code root>systemctl start systemd-networkd</code> | ||
+ | |||
+ | Pour vérifier son statut (ça permet aussi de vérifier si les fichiers de configuration n'ont pas d'erreurs) | ||
+ | <code root>systemctl status systemd-networkd</code> | ||
+ | |||
+ | En cas de modification des fichiers de configuration : | ||
+ | <code root>systemctl restart systemd-networkd</code> | ||
+ | |||
+ | Pour arrêter le service : | ||
+ | <code root>systemctl stop systemd-networkd</code> | ||
+ | |||
+ | Pour désactiver le service : | ||
+ | <code root>systemctl disable systemd-networkd</code> | ||
+ | |||
===== Liens ===== | ===== Liens ===== | ||
+ | ===Internes=== | ||
+ | * [[doc:reseau:systemd:network|Accueil :Configurer un réseau filaire via systemd-networkd]] | ||
+ | * [[doc:reseau:systemd:network:fichier-.network|systemd-networkd : Le fichier .network]] | ||
+ | * [[doc:reseau:systemd:network:fichier-.link|systemd-networkd : Le fichier .link]] | ||
+ | * [[doc:reseau:systemd:network:fichier-.netdev|systemd-networkd : Le fichier .netdev]] | ||
+ | * [[doc:reseau:systemd:network:networkd-dns|systemd-networkd : DNS]] | ||
+ | * [[doc:reseau:systemd:network:networkd-iptable|systemd-networkd : iptable]] | ||
+ | |||
+ | ===Externes=== | ||
+ | * http://www.freedesktop.org/software/systemd/man/systemd-networkd.service.html | ||
+ | * https://wiki.archlinux.fr/Systemd-networkd | ||
+ | * https://wiki.archlinux.org/index.php/systemd-networkd | ||
+ | * https://www.debinux.de/2014/12/debian-basics-mit-systemd/ | ||
+ | * https://debian-facile.org/doc:reseau:interfaces | ||