Update build_nat_network.sh

This commit is contained in:
spiritlhl 2023-06-23 21:37:30 +08:00 committed by GitHub
parent 2f138da35a
commit 7b7f4c8b4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -174,6 +174,10 @@ ${sysctl_path} -p
# 重启配置
service networking restart
systemctl restart networking.service
# 已加载网络,删除对应缓存文件
if [ -f "/etc/network/interfaces.new" ];then
rm -rf /etc/network/interfaces.new
fi
_green "Although the gateway has been set automatically, I am not sure if it has been applied successfully, please check in Datacenter-->pve-->System-->Network in PVE"
_green "If vmbr0 and vmbr1 are displayed properly and the Apply Configuration button is grayed out, there is no need to reboot"
_green "If the above scenario is different, click on the Apply Configuration button, wait a few minutes and reboot the system to ensure that the gateway has been successfully applied"
@ -181,4 +185,4 @@ _green "after reboot may still show no change, but it does not matter, you test
_green "虽然已自动设置网关但不确定是否已成功应用请查看PVE中的 Datacenter-->pve-->System-->Network"
_green "如果 vmbr0 和 vmbr1 已正常显示且 Apply Configuration 这个按钮是灰色的,则不用执行 reboot 重启系统"
_green "上述情形如果有不同的,请点击 Apply Configuration 这个按钮,等待几分钟后重启系统,确保网关已成功应用"
_green "重启后可能显示依然没有改变,但没关系,你测试开一个虚拟机或者容器看看就知道是不是实际网络已应用成功了"
_green "重启后可能显示依然没有改变,但没关系,你测试开一个虚拟机或者容器看看就知道是不是实际网络已应用成功了"