mirror of
https://github.com/oneclickvirt/pve.git
synced 2024-11-10 09:12:44 +08:00
update
This commit is contained in:
parent
88da38d8a0
commit
9ae843f8de
1 changed files with 2 additions and 2 deletions
|
@ -456,7 +456,7 @@ if [ "$independent_ipv6" == "y" ]; then
|
|||
_green "Use ${user_ip}/32 to set ipconfig0"
|
||||
if [ "$same_subnet_status" = true ]; then
|
||||
# 同子网则虚拟机的网关同宿主机
|
||||
qm set $vm_num --ipconfig0 ip=${user_ip}/32,gw=${gateway}
|
||||
qm set $vm_num --ipconfig0 ip=${user_ip}/${user_ip_range},gw=${gateway}
|
||||
else
|
||||
# 不同子网则虚拟机的网关为宿主机IP地址
|
||||
qm set $vm_num --ipconfig0 ip=${user_ip}/32,gw=${user_main_ip}
|
||||
|
@ -481,7 +481,7 @@ if [ "$independent_ipv6_status" == "N" ]; then
|
|||
_green "Use ${user_ip}/32 to set ipconfig0"
|
||||
if [ "$same_subnet_status" = true ]; then
|
||||
# 同子网则虚拟机的网关同宿主机
|
||||
qm set $vm_num --ipconfig0 ip=${user_ip}/32,gw=${gateway}
|
||||
qm set $vm_num --ipconfig0 ip=${user_ip}/${user_ip_range},gw=${gateway}
|
||||
else
|
||||
# 不同子网则虚拟机的网关为宿主机IP地址
|
||||
qm set $vm_num --ipconfig0 ip=${user_ip}/32,gw=${user_main_ip}
|
||||
|
|
Loading…
Reference in a new issue