centos7如何设置ip

来自:互联网
时间:2021-05-17
阅读:

进入网卡目录

cd /etc/sysconfig/network-scripts/&&ls

centos7如何设置ip

查看ip地址和网卡名称

ip a

centos7如何设置ip

编辑网卡的配置文件

vi ifcfg-eth0

centos7如何设置ip

ifcfg-eth0 的配置内容如下,不要和内网其它ip地址冲突

centos7如何设置ip

保存退出并重启网卡

systemctl restart network

centos7如何设置ip

返回顶部
顶部