Netplan : Problem encountered while validating default route

Actualités, astuces et discussions sur les routeurs, modems, configurations Wi-Fi, serveurs DNS, protocoles réseau...

Modérateur : alloja

Avatar du membre
Unix-Linux
VIP
VIP
Messages : 13424
Enregistré le : 10 nov. 2017, 21:50
Dernière activité : Hier, 20:23
Pays : BE

Netplan : Problem encountered while validating default route

Message par Unix-Linux »

Un lundi matin qui commence bien : un serveur ici (sous linux) avec 3 cartes réseau (donc 3 range d'ip différents), le tout sous Netplan.

Lors d'un

Code : Tout sélectionner

netplan apply
il m'envoie :
** (generate 5601): Warning ** : Problem encountered while validating default route consistency. Please set up multiple routing tables and use 'routing policy' instead
Pourquoi me parle t'il de "routing tables" alors que ce sont des range d'ip différents ? :doute: :hein:
Parabole Triax Multifeed 4 LNB + DAB+ RTL2832U R820T2 + CI Module
Base (Voo HFC - EDPnet VDSL XL - Brutele - RealRoot - Tvcablenet)
Raspberry Pi 4 : FreeBSD-arm64-aarch64
Raspberry Pi 4 : Gentoo arm64
Orange Pi 5 Ultra : DietPi + NAS
Server : Ubuntu LTS
Avatar du membre
Unix-Linux
VIP
VIP
Messages : 13424
Enregistré le : 10 nov. 2017, 21:50
Dernière activité : Hier, 20:23
Pays : BE

Netplan : Problem encountered while validating default route

Message par Unix-Linux »

Je m'auto-répond :
Faut supprimer le gateway4 et mettre une "routes" à la place ainsi qu'un "routing-policy"

Cela me donne :
network:
version: 2
ethernets:
enp0s5:
addresses:
- 178.89.90.12/24
gateway4: 178.89.90.1
match:
macaddress: 54:43:32:21:10:06
mtu: 1500
nameservers:
addresses:
- 8.8.8.8
- 1.1.1.1
- 8.8.4.4
search: []
set-name: enp0s5
routes:
- to: 0.0.0.0/0
via: 178.89.90.1
table: 800
routing-policy:
- from: 178.89.90.12
table: 800
priority: 300
Maintenant, ça marche :mrgreen:
Parabole Triax Multifeed 4 LNB + DAB+ RTL2832U R820T2 + CI Module
Base (Voo HFC - EDPnet VDSL XL - Brutele - RealRoot - Tvcablenet)
Raspberry Pi 4 : FreeBSD-arm64-aarch64
Raspberry Pi 4 : Gentoo arm64
Orange Pi 5 Ultra : DietPi + NAS
Server : Ubuntu LTS
Avatar du membre
Mackguil
Modo
Modo
Messages : 22890
Enregistré le : 31 oct. 2017, 18:35
Dernière activité : Aujourd’hui, 07:11
Localisation : Tx
Pays : SE

Netplan : Problem encountered while validating default route

Message par Mackguil »

Unix-Linux a écrit : 08 nov. 2021, 12:35 Je m'auto-répond :
Faut supprimer le gateway4 et mettre une "routes" à la place ainsi qu'un "routing-policy"

Cela me donne :
network:
version: 2
ethernets:
enp0s5:
addresses:
- 178.89.90.12/24
gateway4: 178.89.90.1
match:
macaddress: 54:43:32:21:10:06
mtu: 1500
nameservers:
addresses:
- 8.8.8.8
- 1.1.1.1
- 8.8.4.4
search: []
set-name: enp0s5
routes:
- to: 0.0.0.0/0
via: 178.89.90.1
table: 800
routing-policy:
- from: 178.89.90.12
table: 800
priority: 300
Maintenant, ça marche :mrgreen:
Qu'est ce qui gère le "routing policy" ?
Avatar du membre
Unix-Linux
VIP
VIP
Messages : 13424
Enregistré le : 10 nov. 2017, 21:50
Dernière activité : Hier, 20:23
Pays : BE

Netplan : Problem encountered while validating default route

Message par Unix-Linux »

Je crains ne pas avoir compris ta question mackguil :oops:

Qu'est-ce qui gère ? les tables de routage de iproute
Parabole Triax Multifeed 4 LNB + DAB+ RTL2832U R820T2 + CI Module
Base (Voo HFC - EDPnet VDSL XL - Brutele - RealRoot - Tvcablenet)
Raspberry Pi 4 : FreeBSD-arm64-aarch64
Raspberry Pi 4 : Gentoo arm64
Orange Pi 5 Ultra : DietPi + NAS
Server : Ubuntu LTS
Avatar du membre
Mackguil
Modo
Modo
Messages : 22890
Enregistré le : 31 oct. 2017, 18:35
Dernière activité : Aujourd’hui, 07:11
Localisation : Tx
Pays : SE

Netplan : Problem encountered while validating default route

Message par Mackguil »

Un route -a afin de les lister ?
Avatar du membre
Unix-Linux
VIP
VIP
Messages : 13424
Enregistré le : 10 nov. 2017, 21:50
Dernière activité : Hier, 20:23
Pays : BE

Netplan : Problem encountered while validating default route

Message par Unix-Linux »

Mackguil a écrit : 08 nov. 2021, 22:17 Un route -a afin de les lister ?
route -a ou route -n ?
Parabole Triax Multifeed 4 LNB + DAB+ RTL2832U R820T2 + CI Module
Base (Voo HFC - EDPnet VDSL XL - Brutele - RealRoot - Tvcablenet)
Raspberry Pi 4 : FreeBSD-arm64-aarch64
Raspberry Pi 4 : Gentoo arm64
Orange Pi 5 Ultra : DietPi + NAS
Server : Ubuntu LTS
Avatar du membre
Mackguil
Modo
Modo
Messages : 22890
Enregistré le : 31 oct. 2017, 18:35
Dernière activité : Aujourd’hui, 07:11
Localisation : Tx
Pays : SE

Netplan : Problem encountered while validating default route

Message par Mackguil »

Effectivement, c'est bien -n, suis à coté des mes pompes pour l'instant, désolé. :oops:
Avatar du membre
Unix-Linux
VIP
VIP
Messages : 13424
Enregistré le : 10 nov. 2017, 21:50
Dernière activité : Hier, 20:23
Pays : BE

Netplan : Problem encountered while validating default route

Message par Unix-Linux »

Mackguil a écrit : 09 nov. 2021, 09:49 Effectivement, c'est bien -n, suis à coté des mes pompes pour l'instant, désolé. :oops:
On l'est tous, avec le changement de temps etc :wink:
Parabole Triax Multifeed 4 LNB + DAB+ RTL2832U R820T2 + CI Module
Base (Voo HFC - EDPnet VDSL XL - Brutele - RealRoot - Tvcablenet)
Raspberry Pi 4 : FreeBSD-arm64-aarch64
Raspberry Pi 4 : Gentoo arm64
Orange Pi 5 Ultra : DietPi + NAS
Server : Ubuntu LTS

Retourner vers « Réseaux »