18
0
Fork 0

cat /etc/systemd/network/50-default.network

This commit is contained in:
Benoît S. 2018-05-28 10:59:59 +02:00
parent 021f57ef21
commit 770c40673c
1 changed files with 2 additions and 2 deletions

View File

@ -208,7 +208,7 @@ De façon définitive :
À partir de Stretch, certaines machines sont installés d'office avec networkd (qui fait partie de systemd), on peut vouloir migrer à ifup (`/etc/network/interfaces`) pour plusieurs raisons (compatibilité, …).
Voici les opérations à faire :
- On récupère les informations avec `networkctl status nomInterface` ;
- On récupère les informations avec `networkctl status nomInterface` et/ou `cat /etc/systemd/network/50-default.network` ;
- On construit le fichier `/etc/network/interfaces` avec les informations récupérés (se baser sur un existant par exemple) ;
- On désactive `systemd-networkd` et on redémarre le service `networking` :
@ -238,7 +238,7 @@ Un exemple de conversion :
192.0.2.254
NTP: ntp.ovh.net
cat /etc/systemd/network/50-default.network
# cat /etc/systemd/network/50-default.network
# This file sets the IP configuration of the primary (public) network device.
# You can also see this as "OSI Layer 3" config.
# It was created by the OVH installer, please be careful with modifications.