1.root登录
2.vi /etc/sysconfig/network-scripts/ifcfg-eth0设置网卡
3.设置网卡IP:
IPADDR=192.168.0.33
BOOTPROTO=none
NETMASK=255.255.255.0
GATEWAY=192.168.0.1
DNS1=192.168.0.1
DNS2=192.168.0.2
NM_CONTROLLED=no
4.重启网卡service network restart
时间: 2024-10-13 14:29:29