修复修改eth0网卡后无法上网的问题

This commit is contained in:
hehaoyang 2024-01-25 14:19:42 +00:00
parent da845b9dc2
commit 551dc5b36e

View File

@ -50,6 +50,9 @@ do_set_jumbo_frame () {
route add default gw $SUBNET_NETMASK > /dev/null
touch /etc/resolv.conf
echo "nameserver $SUBNET_NETMASK" > /etc/resolv.conf
echo "ip addr show eth$n...."
ip addr show eth$n > /dev/null
rc=$?