网站建议:179001057@qq.com

linux修改ip

技术2022-05-12  0

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.1DNS设置vi /etc/resolv.confsearch localdomainnameserver 202.106.195.68nameserver 202.106.0.20sudo /etc/init.d/network restart   重新启动网卡


最新回复(0)