Created
June 12, 2014 22:13
-
-
Save bl4ck5un/9b11aa898204a42b26a6 to your computer and use it in GitHub Desktop.
setup isatap tunnel on ubuntu
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
#!/bin/bash | |
ipv4_addr=`ifconfig eth0 | grep 'inet addr' | cut -d : -f 2 | cut -d ' ' -f 1` | |
ipv6_base='2402:f000:1:1501' | |
ip tunnel add sit1 mode sit remote 166.111.21.1 local ${ipv4_addr} | |
ifconfig sit1 up | |
ifconfig sit1 add ${ipv6_base}::${ipv4_addr}/64 | |
ip -6 route add ::/0 via ${ipv6_base}::1 metric 1 dev sit1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment