美文网首页
centos ip设置

centos ip设置

作者: 夜明一 | 来源:发表于2018-08-05 00:27 被阅读0次

vim /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0  
HWADDR=00:0c:29:05:45:a8
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=none
IPADDR=192.168.0.63
NETMASK=255.255.255.0
GATEWAY=192.168.0.1
DNS1=114.114.114.114

保存退出后重启网卡服务

# systemctl restart netword

相关文章

网友评论

      本文标题:centos ip设置

      本文链接:https://www.haomeiwen.com/subject/skpvvftx.html