From 92265cc0c95276634def00dba85fc3e3d1494260 Mon Sep 17 00:00:00 2001 From: spiritlhl <103393591+spiritLHLS@users.noreply.github.com> Date: Sun, 4 Jun 2023 19:58:20 +0800 Subject: [PATCH] Update buildvm_extraip.sh --- scripts/buildvm_extraip.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/buildvm_extraip.sh b/scripts/buildvm_extraip.sh index f011fd7..615c078 100644 --- a/scripts/buildvm_extraip.sh +++ b/scripts/buildvm_extraip.sh @@ -116,7 +116,7 @@ for ((i=0; i<$range; i++)); do ip_list+=("$ip") done # 宿主机的IP列表 -_green "当前宿主机可用的外网IP列表" +_green "当前宿主机可用的外网IP列表:" for ip in "${ip_list[@]}"; do echo "$ip" done @@ -129,6 +129,7 @@ for ip in "${ip_list[@]}"; do done # 宿主机的网关 gateway=$(grep -E "iface $interface" -A 2 "/etc/network/interfaces" | grep "gateway" | awk '{print $2}') +_green "当前虚拟机将绑定的IP为:${user_ip}" # echo "ip=${user_ip}/${user_ip_range},gw=${gateway}" qm create $vm_num --agent 1 --scsihw virtio-scsi-single --serial0 socket --cores $core --sockets 1 --cpu host --net0 virtio,bridge=vmbr0,firewall=0