1、cd  /etc/sysconfig/network-scripts

2、修改ifcfg-ens33文件

Centos7 最小化安装后网络链接配置

  将ONBOOT=no 修改为 ONBOOT=yes

Centos7 最小化安装后网络链接配置

 

3、重启网卡:service network restart

4、使用 ip addr 查看ip

5、安装网络工具后可使用ifconfig查看ip: yum install net-tools

相关文章:

  • 2022-01-22
  • 2021-10-23
  • 2021-08-20
  • 2022-12-23
  • 2022-12-23
  • 2021-04-19
猜你喜欢
  • 2022-12-23
  • 2021-06-11
  • 2022-12-23
  • 2021-10-16
  • 2021-11-10
  • 2021-12-19
  • 2021-11-25
相关资源
相似解决方案