[scode type="share" size="simple"]记录几条命令试试吧[/scode]sudo ip link set ens33 upsystemctl stop NetworkManagerservice network restartDEVICE=ens33 BOOTPROTO=static ONBOOT=yes UUID=5fxxx313 IPADDR=192.168.70.40 NETMASK=255.255.255.0 PREFIX=24 GATEWAY=192.168.70.1 DNS1=8.8.8.8