Skip to content

Instantly share code, notes, and snippets.

@prasmussen
Last active May 24, 2018 08:06
Show Gist options
  • Save prasmussen/507e3f1c57834647e359 to your computer and use it in GitHub Desktop.
Save prasmussen/507e3f1c57834647e359 to your computer and use it in GitHub Desktop.
WAN addr: 81.167.4.214
eth0 = LAN
$ ipv6calc --action 6rd_local_prefix --6rd_prefix 2a01:79c::/30 --6rd_relay_prefix 213.167.115.92/0 81.167.4.214
2a01:79d:469c:1358::/62
sudo ip tunnel add 6rdtun mode sit local 81.167.4.214 ttl 64
sudo ip tunnel 6rd dev 6rdtun 6rd-prefix 2a01:79c::/30
sudo ip link set 6rdtun up
sudo ip -6 addr add 2a01:79d:469c:1358:0::1/30 dev 6rdtun
sudo ip -6 addr add 2a01:79d:469c:1358:1::1/62 dev eth0
sudo ip -6 route add 2a01::/3 via ::213.167.115.92 dev 6rdtun
# radvd.conf (optional)
interface eth0
{
AdvSendAdvert on;
prefix 2a01:79d:469c:1358::/64
{
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment