修复修改eth0网卡后无法上网的问题
This commit is contained in:
parent
da845b9dc2
commit
551dc5b36e
|
@ -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=$?
|
||||
|
|
Loading…
Reference in New Issue
Block a user