ip地址设置vi /etc/sysconfig/network-scripts/ifcfg-eth0DEVICE=eth0BOOTPROTO=staticHWADDR=00:0c:29:cc:fe:bdIPV6INIT=yesONBOOT=yesIPADDR=192.168.16.151NETMASK=255.255.255.0GATEWAY=192.168.16.1 DNS设置vi /etc/resolv.confsearch localdomainnameserver 202.106.195.68nameserver 202.106.0.20 sudo /etc/init.d/network restart 重新启动网卡
时间: 2024-10-15 19:29:09