美文网首页Linux
Centos 配置静态ip地址

Centos 配置静态ip地址

作者: 中_中_ | 来源:发表于2018-09-29 15:27 被阅读1次

配置centos6.7和主机ip同一网段的静态ip地址。
1,查看网卡配置:ifconfig -a


image.png

2,vi编辑网卡对应的ip地址信息:


image.png
3,vi /etc/sysconfig/network
image.png
4,vi /etc/hosts
image.png

5,重启network服务
service network restart

相关文章

网友评论

    本文标题:Centos 配置静态ip地址

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