shell-things/etc/systemd/system/ipv6/ipv6-ula.service

16 lines
380 B
SYSTEMD
Raw Normal View History

2015-04-23 21:38:30 +02:00
[Unit]
Description=Enable IPv6 forwarding - ULA
After=network-online.target
2015-04-23 21:38:30 +02:00
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/sbin/sysctl net.ipv6.conf.all.forwarding=1
ExecStart=/sbin/ip addr add fdb8:9a38:1607::1/64 dev eth0
ExecStop=/sbin/sysctl net.ipv6.conf.all.forwarding=0
ExecStop=/sbin/ip addr del fdb8:9a38:1607::/64 dev eth0
[Install]
WantedBy=multi-user.target