From 1d6a05905f2f7c0bd29a0953cd87c8cd3fa793fc Mon Sep 17 00:00:00 2001 From: spiritlhl <103393591+spiritLHLS@users.noreply.github.com> Date: Tue, 24 Oct 2023 10:45:53 +0000 Subject: [PATCH] update --- docs/en_US/guide/lxd_custom.md | 48 ++++++++++++++++++++++++++++++++++ docs/guide/lxd_custom.md | 43 ++++++++++++++++++++++++++++++ 2 files changed, 91 insertions(+) diff --git a/docs/en_US/guide/lxd_custom.md b/docs/en_US/guide/lxd_custom.md index 7ca8ee4a29..6c02e05eee 100644 --- a/docs/en_US/guide/lxd_custom.md +++ b/docs/en_US/guide/lxd_custom.md @@ -373,4 +373,52 @@ systemctl restart networking Make sure the environment is OK before you do anything else +## Transfer IPV6 subnets between different servers +Related repository: [https://github.com/oneclickvirt/6in4](https://github.com/oneclickvirt/6in4) + +### Environmental Preparation + +A dual-stack VPS (A) with at least /64 subnet size and a VPS (B) with only one IPV4 address, hereafter referred to as server and client, respectively. + +### Usage + +Download Script + +``` +curl -L https://raw.githubusercontent.com/oneclickvirt/6in4/main/6in4.sh -o 6in4.sh && chmod +x 6in4.sh +``` + +Execute it + +``` +./6in4.sh your_client_ipv4 +``` + +Remember to write the IPV4 address of the machine you need to attach IPV6, after the execution is complete, it will return the command you need to execute in the client, see the instructions after the execution of the can be + +### Check server status + +``` +systemctl status ndpresponder +``` + +``` +ip addr show +``` + +### Check client status + +``` +ip addr show +``` + +``` +curl ipv6.ip.sb +``` + +### Principle + +Use 6in4's tunnel technology, along with ndpresponder to handle the NDP side of the problem, to solve the problem of forwarding IPV6 networks (/80) across different servers. + +Combining https://virt.spiritlhl.net/ or https://www.spiritlhl.net/en_US/ automates the assignment of IPV6 addresses to containers. \ No newline at end of file diff --git a/docs/guide/lxd_custom.md b/docs/guide/lxd_custom.md index 3d4c6d8191..4a71521657 100644 --- a/docs/guide/lxd_custom.md +++ b/docs/guide/lxd_custom.md @@ -325,3 +325,46 @@ systemctl restart networking 保证环境无问题再进行别的操作了 +## 转移不同服务器之间的IPV6子网 + +相关仓库:[https://github.com/oneclickvirt/6in4](https://github.com/oneclickvirt/6in4) + +### 环境准备 + +一个带有至少/64子网大小的 双栈VPS (A) 和 一个只有一个IPV4地址的VPS (B),下面分别称为服务端和客户端。 + +### 使用方法 + +下载脚本 + +``` +curl -L https://raw.githubusercontent.com/oneclickvirt/6in4/main/6in4.sh -o 6in4.sh && chmod +x 6in4.sh +``` + +执行命令 + +``` +./6in4.sh your_client_ipv4 +``` + +记得写上你需要附加IPV6的机器的IPV4地址,执行完毕后会回传你需要在客户端执行的命令,详见执行后的说明即可 + +### 检测服务端 + +``` +systemctl status ndpresponder +``` + +``` +ip addr show +``` + +### 检测客户端 + +``` +ip addr show +``` + +``` +curl ipv6.ip.sb +```