Created
June 14, 2018 17:45
-
-
Save tiancheng91/34e8c78121d4bc32c1924399b826bd7d to your computer and use it in GitHub Desktop.
ipv6 tunnel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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