Le 27/01/2019 à 16:29, Claudio M a écrit :
auto eth0 iface eth0 inet static address a.b.c.d netmask 255.255.255.224 gateway c.d.e.f up route add -net a.b.c.x netmask 255.255.255.224 gw c.d.e.x dev eth0
AFAIK, the gateway must be directly reachable on eth0. But c.d.e.x does not seem to belong to a.b.c.d/255.255.255.224.
up ip addr add f.g.h.i/32 dev eth0 down ip addr del f.g.h.i /32 dev eth0
Hackish. You can create a second inet stanza instead.
post-up /etc/network/iptables.sh
Is there a chance that this script returns a non zero value ?
iface eth0 inet6 static address 2a01:xxxx:xxxx:xxxx::2 netmask 64 gateway fe80::1
What is the output of service networking status Did you try to swap the inet and inet6 stanzas ?