linux系统怎么设置静态IP centos7配置静态IP

2024-10-13 19:17:03

1、安装配置固定IP安装centos7的时候,是图形界面。如下图,点击 安装配置里面的,网络和连接

linux系统怎么设置静态IP centos7配置静态IP

3、图形界面设置如果安装了centos7图形界面,可以进入图形界面的。系统设置菜单,如图

linux系统怎么设置静态IP centos7配置静态IP

5、命令配置一般最常见的都是通过命令配置IP,先通过IP ADDR查看网卡名称

linux系统怎么设置静态IP centos7配置静态IP

7、然后进入网卡配置文件目录/etc/sysconfig/network-scripts ,创建或者编辑网卡文件。如果没有通过vi创建一个

linux系统怎么设置静态IP centos7配置静态IP

9、重启网卡服务centos7系统重启网卡服务,systemctl restart network ,然后使用ip addr查看

linux系统怎么设置静态IP centos7配置静态IP
猜你喜欢