1 进入目录
cd /etc/sysconfig/network-scripts/

# 编辑网卡的配置文件# 多网卡会对应多个配置文件,均以ifcfg-enp开头# 新环境配置可任意选择,建议按一定顺序选择

centos7最小安装后无法联网解决方法

 

vi ifcfg-enp0s3

centos7最小安装后无法联网解决方法

把onboot=no改为yes

保存

:wq

重启网络服务service network restart #重启网络ip addr #查看IP地址

 

使用ifconfig

 

安装网络工具即可
yum install net-tools  微信QQ8443937

相关文章:

  • 2022-02-07
  • 2021-06-25
  • 2021-04-06
  • 2021-07-12
  • 2022-02-07
  • 2021-06-15
  • 2021-08-19
  • 2021-07-13
猜你喜欢
  • 2021-06-18
  • 2022-01-01
  • 2022-02-07
  • 2022-02-26
相关资源
相似解决方案