Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
spiritLHLS committed May 19, 2024
1 parent cc76237 commit 6fa080d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
12 changes: 9 additions & 3 deletions docs/en/guide/pve/pve_kvm.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,11 @@ Two versions are available, choose as needed.
Before use, ensure that the current host machine has at least 2 available IP addresses within its IP range, and there are unallocated IP addresses. These unallocated IP addresses should not be bound to the host machine.
:::

:::tip
At this point, the IPV4 address appended is the address following the host's current IPV4 address in sequence.
For example, if the current host address is ```1.1.1.32``` and then ```1.1.1.33``` there is already a virtual machine, then this script appends an IP address of ```1.1.1.34```.
:::

- Automatically detect available IP ranges. Use ping to identify unallocated IP addresses and select one to bind to the virtual machine.
- If the host machine has an accompanying IPv6 subnet, there will be an option to attach an IPv6 address.
- Relevant system information will be stored in the corresponding virtual machine's NOTE section, accessible for viewing on the web interface.
Expand Down Expand Up @@ -268,12 +273,13 @@ The above command is used to create a virtual machine with a dedicated IPv4 addr
- If the vendor has provided an IPV4 address and subnet length, please carefully compare and write the parameters in the command format shown below.
- Relevant system information will be stored in the NOTE of the corresponding virtual machine and can be viewed on the WEB end.
- Optionally enable or disable standalone IPV6, requires the host to have at least one /64 subnet.
- The manually appended IPV4 address is in a **different subnet** from the host's IPV4 address (different IP address prefixes)
- Manually appended IPV4 addresses that are in **different subnets** from the host's IPV4 address (different IP address prefixes) will use the host's IP address as the gateway
- Manually appended IPV4 addresses that are within the **same subnet** as the host's IPV4 address (same IP address prefix) will use the host's gateway as the gateway
- Optionally specify the MAC address of the virtual machine

:::tip
If the router does not recognize the source MAC address, the traffic will be flagged as "abuse" and "may" cause the server to be blocked.
(If using Hetzner's stand-alone servers be sure to provide the MAC address that corresponds to the additional IPV4 address to prevent abuse from being reported.)
If IP addresses within **different subnets** are appended without a MAC address, the router will not recognize the source MAC address, and the traffic will be flagged as “misuse” and may cause the server to be blocked.
(If you are using a Hetzner standalone server, it is recommended that you provide the MAC address of the attached IPV4 address to prevent abuse from being reported.)
:::

#### Usage Instructions
Expand Down
14 changes: 10 additions & 4 deletions docs/guide/pve/pve_kvm.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,12 @@ PVE修改VM配置前都得停机先,再修改配置,修改完再启动,免
### 自动选择IPV4地址无需手动指定的版本

:::warning
使用前需要保证当前宿主机的IP段带了至少2个IP,且有空余的IP未配置,该空余的IP未绑定宿主机
使用前需要保证当前宿主机的IP段带了至少2个IP,且有空余的IP未配置,该空余的IP未绑定宿主机。
:::

:::tip
此时附加的IPV4地址是宿主机目前的IPV4地址顺位后面的地址,
比如目前宿主机地址是```1.1.1.32```然后```1.1.1.33```已经有虚拟机了,那么本脚本附加IP地址为```1.1.1.34```
:::

- 自动检测可用的IP区间,通过ping检测空余可使用的IP,选取其中之一绑定到虚拟机上
Expand Down Expand Up @@ -306,12 +311,13 @@ curl -L https://cdn.spiritlhl.net/https://raw.githubusercontent.com/oneclickvirt
- 如果商家有给IPV4地址和子网长度,请仔细比对,按照下面示例的命令写参数
- 系统的相关信息将会存储到对应的虚拟机的NOTE中,可在WEB端查看
- 可选择是否开启独立IPV6,需要宿主机至少有一个/104的子网,最好是一个/64子网
- 手动附加的IPV4地址与宿主机的IPV4地址是在**不同子网**内的(IP地址前缀不同)
- 手动附加的IPV4地址与宿主机的IPV4地址是在**不同子网**内的(IP地址前缀不同),将使用宿主机IP地址做网关
- 手动附加的IPV4地址与宿主机的IPV4地址是在**同一个子网**内的(IP地址前缀相同),将使用宿主机的网关做网关
- 可选择是否指定虚拟机的MAC地址

:::tip
如果路由器无法识别源 MAC 地址,流量将被标记为“滥用”,并“可能”导致服务器被阻止。
(如果使用Hetzner的独立服务器务必提供附加IPV4地址对应的MAC地址防止被报告滥用)
**不同子网**内的IP地址,如果附加时不指定MAC地址,那么路由器无法识别源 MAC 地址,流量将被标记为“滥用”,并“可能”导致服务器被阻止。
(如果使用Hetzner的独立服务器务建议提供附加IPV4地址对应的MAC地址防止被报告滥用)
:::

#### 使用方法
Expand Down

0 comments on commit 6fa080d

Please sign in to comment.