Linux centos redhat7怎么开机自动连接网络

在Linux centos7 redhat7中如何 怎么设置网络开机自动连接

  进入网络配置文件

  cd /etc/sysconfig/network-scripts

  找到ifcfg-ens开头的文件,主机网络不一样,后面数字有可能不一样

Linux centos redhat7怎么开机自动连接网络_第1张图片


   用vim编辑红色箭头这个文件,将最后一行的no改 yes 即可,保存后退出,重启将会自动连接网络

Linux centos redhat7怎么开机自动连接网络_第2张图片


 

 

你可能感兴趣的:(linux)