手抄报 安全手抄报 手抄报内容 手抄报图片 英语手抄报 清明节手抄报 节约用水手抄报

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

时间:2024-10-13 19:17:03

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

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

2、接着点击,网络配置里面的。静态IP,然后添加一个IP设置。

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

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

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

4、接着找到网卡配置界面,选择静态IP static 添加IP等网络参数设置。

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

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

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

6、临时设置IP通过命令ifconfig 网卡名 接IP ,可以设置临时的固定IP

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

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

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

8、配置网卡参数文件如ifcfg-网卡名 (ifcfg-enp0s3注意以下关键词为必填项目BO蚪嬷吃败OTPROTO 静态IP ONBOOT 自动启IPADDR ip地址绿覆冗猩NETMASK 子网掩码GATEWAY 网关

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

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

linux系统怎么设置静态IP centos7配置静态IP
© 手抄报圈