Persistent application on Debian and derrivatives (Ubuntu, Crunchbang, SteamOS...)
File to modify (with sudo privileges)
/etc/network/interfaces
Considering that your interface is eth0, the configuration to add should look something like this:
iface eth0 inet6 static
address 2001:41d0:401:3100::2
netmask 128
post-up /sbin/ip -6 route add 2001:41d0:401:3100::1 dev eth0
post-up /sbin/ip -6 route add default via 2001:41d0:401:3100::1 dev eth0
pre-down /sbin/ip -6 route del default via 2001:41d0:401:3100::1 dev eth0
pre-down /sbin/ip -6 route del 2001:41d0:401:3100::1 dev eth0作者: yandere 时间: 2017-3-28 08:14
發一下當前的/etc/network/interfaces文件和
執行ifconfig指令的內容?