Sunday, June 2, 2019

Debian IPv6 routes not readded after boot

So I just set up a new VPS and I got IPv6 connectivity to work.
I configured the /etc/networking/interfaces file like this (masked some identifying parts): iface ens3 inet6 static address 2604:db8:16:c9::1234/64 gateway 2604:db8:16::1 Afterwards I ran the following commands to get IPv6 connectivity to work: /sbin/ip -f inet6 route add 2604:db8:16::1 dev ens3 /sbin/ip -f inet6 route add default via 2604:db8:16::1

The problem however, is that these route commands don't survive a reboot. I tried to add the following lines to my /etc/networking/interfaces file: post-up /sbin/ip -f inet6 route add 2604:db8:16::1 dev ens3 post-up /sbin/ip -f inet6 route add default via 2604:db8:16::1 pre-down /sbin/ip -f inet6 route del 2604:db8:16::1 dev ens3 pre-down /sbin/ip -f inet6 route del default via 2604:db8:16::1 This doesn't seem to work sadly. Is there anyone who might be able to help me out with this? The VPS is running Debian 9. The uname -a output is: Linux hostname 4.9.0-9-amd64 #1 SMP Debian 4.9.168-1+deb9u2 (2019-05-13) x86_64 GNU/Linux

Any help would be greatly appreciated!



No comments:

Post a Comment