在 Linux 配置 GRE Tunnel

載入 Module

modprobe ip_gre

編輯 /etc/network/interfaces,新增以下內容

#tunnel1
auto tunnel1
iface tunnel1 inet manual
pre-up ip tunnel add tunnel1 mode gre remote 對方的IPv4 local 自己的IPv4 ttl 255
post-down ip link del tunnel1

iface tunnel1 inet6 static
address IPv6位址/64

重啟網路服務

sudo systemctl restart networking

上線 tunnel1 網卡

ip link set tunnel1 up

接著可以接續前面的文章 >< :

Bird6 廣播 IPv6 段