update ipv6tunnel conf
This commit is contained in:
parent
62f216066f
commit
d31a964648
@ -9,11 +9,12 @@ iface eth0 inet static
|
|||||||
auto he-ipv6
|
auto he-ipv6
|
||||||
iface he-ipv6 inet6 v4tunnel
|
iface he-ipv6 inet6 v4tunnel
|
||||||
address 2001:470:1f1a:1a4::2
|
address 2001:470:1f1a:1a4::2
|
||||||
netmask 64
|
netmask 127
|
||||||
endpoint 216.66.87.14
|
endpoint 216.66.87.14
|
||||||
local 192.168.1.208
|
local 192.168.1.208
|
||||||
ttl 255
|
ttl 255
|
||||||
gateway 2001:470:1f1a:1a4::1
|
gateway 2001:470:1f1a:1a4::1
|
||||||
|
|
||||||
iface eth0 inet6 dhcp
|
iface eth0 inet6 static
|
||||||
|
address 2001:470:1f1a:1a4::5/96
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ Description=Auto start ipv6 tunnel
|
|||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/sbin/ifup he-ipv6
|
ExecStart=/usr/bin/bash /root/scripts/netstart.sh
|
||||||
# Remove restarts if the command is just a one-off
|
# Remove restarts if the command is just a one-off
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartSec=5s
|
RestartSec=5s
|
||||||
|
4
hosts/krov/ipv6tunnel12/root/scripts/netstart.sh
Executable file
4
hosts/krov/ipv6tunnel12/root/scripts/netstart.sh
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
ifup he-ipv6
|
||||||
|
ip -6 route add default via 2001:470:1f1a:1a4::1 dev he-ipv6
|
Loading…
Reference in New Issue
Block a user