From 2ff27e96c3b5eafc460f940c4f38f208f0e5744e Mon Sep 17 00:00:00 2001 From: CallMeR <9463297+callmer@user.noreply.gitee.com> Date: Wed, 17 Jan 2024 13:54:39 +0800 Subject: [PATCH] =?UTF-8?q?=E9=BB=98=E8=AE=A4=E4=B8=8D=E5=90=AF=E7=94=A8?= =?UTF-8?q?=20IPv6=20ULA=20=E7=BD=91=E7=BB=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 02.PVE初始化配置.md | 12 ++++++------ 04.PVE创建模板虚拟机.md | 11 ++++++----- 06.PVE制作DNS服务器.md | 16 ++++++++++------ 07.PVE制作TS服务器.md | 4 +--- README.md | 4 +--- src/debian/debian_dns_dnsmasq.conf | 1 - src/debian/debian_dns_dnsmasq_smartdns.conf | 1 - src/debian/debian_ts_dnsmasq.conf | 2 -- 8 files changed, 24 insertions(+), 27 deletions(-) diff --git a/02.PVE初始化配置.md b/02.PVE初始化配置.md index 402f5f4..d8c0a7a 100644 --- a/02.PVE初始化配置.md +++ b/02.PVE初始化配置.md @@ -199,9 +199,9 @@ $ update-pciids |IPv4|管理地址|`172.16.1.254`|PVE IPv4 地址| ||网关地址|`172.16.1.1`|PVE IPv4 网关| ||DNS 地址|`172.16.1.1`|PVE IPv4 DNS 服务器| -|IPv6|管理地址|`fdac::fe`|PVE IPv6 地址| -||网关地址|`-`|IPv6 网关将使用 `LLA` 自动配置| -||DNS 地址|`fdac::1`|PVE IPv6 DNS 服务器| +|IPv6|管理地址|`fdac::fe`|PVE IPv6 地址(可选)| +||网关地址|`-`|IPv6 网关将使用 `SLAAC` 自动配置| +||DNS 地址|`fdac::1`|PVE IPv6 DNS 服务器(可选)| ![PVE网络规划](img/p02/pve_net_schematization.png) @@ -253,7 +253,7 @@ $ update-pciids 1. 如非特殊需求,通常情况下 PVE 系统无需使用 IPv6 网络。 -2. 主路由未配置 ULA IPv6 网段时,例如本文演示地址 `fdac::/64` ,无需填写 `IPv6/CIDR` 参数。 +2. 主路由未配置 IPv6 ULA 网段时,例如本文演示地址 `fdac::/64` ,无需填写 `IPv6/CIDR` 参数。 3. 通常情况下 IPv6 无需填写 `网关` 参数,IPv6 网关将通过 LLA IPv6 地址自动配置。 @@ -293,9 +293,9 @@ $ update-pciids 在 PVE 系统的安装过程中,设置了 DNS 的 IPv4 地址 `172.16.1.1` ,但并未设置 DNS 的 IPv6 地址。 -在 PVE 的 DNS 设置页面,手动添加 DNS IPv6 地址,即主路由 LAN 口 ULA IPv6 地址。 +在 PVE 的 DNS 设置页面,手动添加 DNS IPv6 地址,即主路由 LAN 口 IPv6 ULA 地址。 -同样,若 PVE 不使用 IPv6 网络或主路由未配置 ULA IPv6 网段,本步骤可跳过。 +同样,若 PVE 不使用 IPv6 网络或主路由未配置 IPv6 ULA 网段,本步骤可跳过。 ![PVE添加IPv6DNS](img/p02/pve_add_ipv6_dns.jpeg) diff --git a/04.PVE创建模板虚拟机.md b/04.PVE创建模板虚拟机.md index 1c02a09..d078ea5 100644 --- a/04.PVE创建模板虚拟机.md +++ b/04.PVE创建模板虚拟机.md @@ -225,9 +225,9 @@ Successfully imported disk as 'unused0:local-lvm:vm-1001-disk-0' ### 4.2.手动配置 IPv6 -当主路由配置了 ULA IPv6 网段,且希望指定内网 DNS 服务器的 ULA IPv6 地址时,需要调整 `Cloud-Init` 参数。 +当主路由配置了 IPv6 ULA 网段,且希望指定内网 DNS 服务器的 IPv6 ULA 地址时,需要调整 `Cloud-Init` 参数。 -本文 ULA IPv6 演示地址为 `fdac::/64` ,`DNS服务器` 和 `IP配置` 参数调整如下。 +本文 IPv6 ULA 演示地址为 `fdac::/64` ,`DNS服务器` 和 `IP配置` 参数调整如下。 |参数|值|说明| |--|--|--| @@ -235,7 +235,7 @@ Successfully imported disk as 'unused0:local-lvm:vm-1001-disk-0' |DNS服务器|`172.16.1.1 fdac::1`|本机 DNS 服务器| |IP配置(net0)|`ip=172.16.1.250/24,gw=172.16.1.1,ip6=fdac::fa/64`|模板的 IP 设置| -`DNS服务器` 参数中需要加入主路由 LAN 口 ULA IPv6 地址。 +`DNS服务器` 参数中需要加入主路由 LAN 口 IPv6 ULA 地址。 ![CI网络配置](img/p04/vm_ci_dns_ula.jpeg) @@ -258,11 +258,12 @@ IPv6 使用静态地址后,并不影响虚拟机通过主路由获取公网 GU - 自启: 否 +- 用户: fox + - IPv4: 172.16.1.250/24 -- IPv6: fdac::fa/64 +- IPv6: SLAAC -- 用户: fox ``` ![虚拟机备注](img/p04/vm_notes.jpeg) diff --git a/06.PVE制作DNS服务器.md b/06.PVE制作DNS服务器.md index dd8c76e..2fbe663 100644 --- a/06.PVE制作DNS服务器.md +++ b/06.PVE制作DNS服务器.md @@ -27,11 +27,11 @@ 克隆出来的虚拟机的 `Cloud-Init` 参数默认与模板完全一致。 -根据 **内部网络地址** 规划,内网 DNS 服务器 IP 地址分别为: +根据 **内部网络地址** 规划,内网 DNS 服务器 IPv4 地址规划如下: -- `172.16.1.2/24 (fdac::2/64)` +- `172.16.1.2/24` -- `172.16.1.3/24 (fdac::3/64)` +- `172.16.1.3/24` 因此需要调整新虚拟机的 `Cloud-Init` 参数。 @@ -43,7 +43,13 @@ ![调整新虚拟机Cloud-Init](img/p06/vm_clone_ci_slaac.jpeg) -当主路由配置了 ULA IPv6 网段,且指定了内网 DNS 服务器的 ULA IPv6 地址时,参数如下。 +当主路由配置了 IPv6 ULA 网段,内网 DNS 服务器 IPv6 ULA 地址规划如下: + +- `fdac::2/64` + +- `fdac::3/64` + +此时需进一步调整新虚拟机的 `Cloud-Init` 参数,让该虚拟机使用指定的 IPv6 ULA 地址,参数如下。 ![调整新虚拟机Cloud-Init](img/p06/vm_clone_ci_static.jpeg) @@ -349,7 +355,6 @@ server-tcp 2400:3200::1 -group alidns -exclude-default-group nameserver /dns.alidns.com/alidns server 172.16.1.1 -group intranet -exclude-default-group -server fdac::1 -group intranet -exclude-default-group nameserver /fox.home.arpa/intranet domain-rules /fox.home.arpa/ -speed-check-mode none -no-cache @@ -463,7 +468,6 @@ server=/test/ # DNS Server server=/fox.home.arpa/172.16.1.1 -server=/fox.home.arpa/fdac::1 server=127.0.0.1#6053 server=::1#6053 diff --git a/07.PVE制作TS服务器.md b/07.PVE制作TS服务器.md index 7c6a120..3565ab6 100644 --- a/07.PVE制作TS服务器.md +++ b/07.PVE制作TS服务器.md @@ -12,7 +12,7 @@ |--|--|--| |虚拟机名称|`SVR01`| TS 服务器 `主机名` | |DNS 域|`fox.home.arpa`| TS 服务器 `Cloud-Init` | -|DNS 服务器|`172.16.1.1 fdac::1`| TS 服务器 `Cloud-Init` | +|DNS 服务器|`172.16.1.1`| TS 服务器 `Cloud-Init` | |IPv4|`172.16.1.4/24`| TS 服务器 `Cloud-Init` | |IPv4 网关|`172.16.1.1`| TS 服务器 `Cloud-Init` | |IPv6|`SLAAC`| TS 服务器 `Cloud-Init` | @@ -546,10 +546,8 @@ server=/test/ server=/ts.net/100.100.100.100 server=/fox.home.arpa/172.16.1.1 -server=/fox.home.arpa/fdac::1 server=172.16.1.1 -server=fdac::1 ``` diff --git a/README.md b/README.md index 4de501c..3ec32cb 100644 --- a/README.md +++ b/README.md @@ -18,9 +18,7 @@ PVE 虚拟化平台的安装以及折腾手记。 - 网关:`172.16.1.1` - DNS:`172.16.1.1` - IPv6 网络 - - 前缀:`fdac::/64` - - IP 地址:`fdac::fe` - - DNS:`fdac::1` + - `SLAAC` 自动配置 ### 系列章节 diff --git a/src/debian/debian_dns_dnsmasq.conf b/src/debian/debian_dns_dnsmasq.conf index 134f822..6d94171 100644 --- a/src/debian/debian_dns_dnsmasq.conf +++ b/src/debian/debian_dns_dnsmasq.conf @@ -43,7 +43,6 @@ server=/test/ # DNS Server server=/fox.home.arpa/172.16.1.1 -server=/fox.home.arpa/fdac::1 server=127.0.0.1#6053 server=::1#6053 diff --git a/src/debian/debian_dns_dnsmasq_smartdns.conf b/src/debian/debian_dns_dnsmasq_smartdns.conf index f91ac41..0100cd4 100644 --- a/src/debian/debian_dns_dnsmasq_smartdns.conf +++ b/src/debian/debian_dns_dnsmasq_smartdns.conf @@ -45,7 +45,6 @@ server-tcp 2400:3200::1 -group alidns -exclude-default-group nameserver /dns.alidns.com/alidns server 172.16.1.1 -group intranet -exclude-default-group -server fdac::1 -group intranet -exclude-default-group nameserver /fox.home.arpa/intranet domain-rules /fox.home.arpa/ -speed-check-mode none -no-cache diff --git a/src/debian/debian_ts_dnsmasq.conf b/src/debian/debian_ts_dnsmasq.conf index 28e531f..7fdfc30 100644 --- a/src/debian/debian_ts_dnsmasq.conf +++ b/src/debian/debian_ts_dnsmasq.conf @@ -44,8 +44,6 @@ server=/test/ server=/ts.net/100.100.100.100 server=/fox.home.arpa/172.16.1.1 -server=/fox.home.arpa/fdac::1 server=172.16.1.1 -server=fdac::1