Skip to content

Instantly share code, notes, and snippets.

@tiancheng91
Created June 14, 2018 17:45
Show Gist options
  • Save tiancheng91/34e8c78121d4bc32c1924399b826bd7d to your computer and use it in GitHub Desktop.
Save tiancheng91/34e8c78121d4bc32c1924399b826bd7d to your computer and use it in GitHub Desktop.
ipv6 tunnel
modprobe ipv6
ip tunnel add he-ipv6 mode sit remote 216.66.84.42 local 178.172.151.170 ttl 255
ip link set he-ipv6 up
ip addr add 2001:470:b841::1/48 dev he-ipv6
ip route add ::/0 dev he-ipv6
ip -f inet6 addr
for i in {100..200}; do
ip addr add "2001:470:b841:$i::1/48" dev he-ipv6
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment