{"action":"closed","issue":{"url":"https://api.github.com/repos/tuna/ipv6.tsinghua.edu.cn/issues/17","repository_url":"https://api.github.com/repos/tuna/ipv6.tsinghua.edu.cn","labels_url":"https://api.github.com/repos/tuna/ipv6.tsinghua.edu.cn/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/tuna/ipv6.tsinghua.edu.cn/issues/17/comments","events_url":"https://api.github.com/repos/tuna/ipv6.tsinghua.edu.cn/issues/17/events","html_url":"https://github.com/tuna/ipv6.tsinghua.edu.cn/issues/17","id":195476236,"number":17,"title":"Problem in the script for linux.","user":{"login":"wangg12","id":9958446,"avatar_url":"https://avatars.githubusercontent.com/u/9958446?v=3","gravatar_id":"","url":"https://api.github.com/users/wangg12","html_url":"https://github.com/wangg12","followers_url":"https://api.github.com/users/wangg12/followers","following_url":"https://api.github.com/users/wangg12/following{/other_user}","gists_url":"https://api.github.com/users/wangg12/gists{/gist_id}","starred_url":"https://api.github.com/users/wangg12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wangg12/subscriptions","organizations_url":"https://api.github.com/users/wangg12/orgs","repos_url":"https://api.github.com/users/wangg12/repos","events_url":"https://api.github.com/users/wangg12/events{/privacy}","received_events_url":"https://api.github.com/users/wangg12/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-14T09:08:37Z","updated_at":"2016-12-16T03:04:18Z","closed_at":"2016-12-16T03:04:18Z","body":"On ubuntu 16.04, the original script does not work. I made some changes as follows (now it works well on my machine):\r\n```\r\n#!/bin/bash\r\nREMOTE_IP6=\"2402:f000:1:1501:200:5efe\"\r\nREMOTE_IP4=\"166.111.21.1\"\r\n\r\nIFACE4=`ip route show|grep default|sed -e 's/^default.*dev \\([^ ]\\+\\).*$/\\1/'`\r\nIP4_0=`ifconfig $IFACE4 | grep inet | grep -v inet6 | awk '{print $2}'`\r\nIP4=${IP4_0#$'addr:'}\r\n\r\nsudo ip tunnel del sit1\r\nsudo ip tunnel add sit1 mode sit remote $REMOTE_IP4 local $IP4\r\nsudo ip link set dev sit1 up\r\nsudo ip -6 addr add $REMOTE_IP6:$IP4/64 dev sit1\r\nsudo ip -6 route add default via $REMOTE_IP6:$REMOTE_IP4 dev sit1\r\n```"}}
{"actor":{"display_login":"wangg12"}}