Es handelt sich zwar um 2 versch. VMs (Debian 9 & 10) aber trotzdem...
Maschine 1, Debian 9:
/etc/network/interfaces:
Code: Alles auswählen
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# J.M., 2021-05-19 {
# Cablecom
allow-hotplug eth0
iface eth0 inet static
address 193.xxx.xxx.13
netmask 255.255.255.0
gateway 193.xxx.xxx.1
# Salt
allow-hotplug eth1
iface eth1 inet static
address 192.168.71.20
netmask 255.255.255.0
post-up ip route add 192.168.71.0/24 dev eth1 src 192.168.71.20 table rt2
post-up ip route add default via 192.168.71.1 dev eth1 table rt2
post-up ip rule add from 192.168.71.20/32 table rt2
post-up ip rule add to 192.168.71.20/32 table rt2
# } J.M., 2021-05-19
Ausgabe "route":
Code: Alles auswählen
Kernel-IP-Routentabelle
Ziel Router Genmask Flags Metric Ref Use Iface
default gateway 0.0.0.0 UG 0 0 0 eth0
192.168.71.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
193.xxx.xxx.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
Maschine 2, Debian 10:
(habe gerade keinen SSH-Zugriff, Port 22 ist beim 192.168.71.0/24er-Netz leider nicht geforwarded, deshalb die Bilder, tut mir leid)
/etc/network/interfaces:
Ausgabe "route":
Wie ihr sieht, ist die Konfiguration analog (abgesehen von der fixen IP natürlich); trotzdem ist der "default Gateway" (oberster Eintrag vom route-Befehl) irrsinnigerweise gerade umgekehrt - "eth0" vs. "eth1"
Besten Dank für eure Feedbacks!