我们以 centos7 为例
centos7的网络IP地址配置文件在 /etc/sysconfig/network-scripts 文件夹下,
查看当前网卡名称 ifconfig
ens33网卡对应的配置文件为ifcfg-ens33,使用vim编辑如下:
然后使用service network restart命令即可配置静态IP地址。
我们以 centos7 为例
centos7的网络IP地址配置文件在 /etc/sysconfig/network-scripts 文件夹下,
查看当前网卡名称 ifconfig
ens33网卡对应的配置文件为ifcfg-ens33,使用vim编辑如下:
然后使用service network restart命令即可配置静态IP地址。
暂无评论
2023-12-08
2023-12-04
2023-11-15
2023-11-13
2023-11-13
2023-11-13
2023-11-13
2023-11-13
2023-11-02
2023-11-02
2023-12-12
2023-12-12
2023-12-12
2023-12-12
2023-12-12
2023-12-12
2023-12-12
2023-12-12
2023-12-11
2023-12-11
2023-12-11
2023-12-11
2023-12-11
2023-12-11
2023-12-11
2023-12-11
2023-12-11
2023-12-11