2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-21 11:12:04 +00:00

Update configeth

This commit is contained in:
abhishek-sa1 2024-07-26 16:05:22 +05:30
parent 5e7e00ffac
commit 4346aacfd2

View File

@ -859,6 +859,7 @@ elif [ "$1" = "-s" ];then
ip link set dev $str_inst_nic down
fi
if [ $networkmanager_active -eq 1 ]; then
nmcli con modify $con_name ipv4.dns "${NAMESERVERS}"
nmcli con reload
nmcli con up $con_name
else
@ -1279,6 +1280,7 @@ else
if_state=0
echo "bring up ip"
if [ $networkmanager_active -eq 1 ]; then
nmcli con modify $con_name ipv4.dns "${NAMESERVERS}"
nmcli con reload
nmcli con up $con_name
else