Linux配置网络

具体配置网络操作如下

 

 

 

cd /etc /

cd sysconfig/

ll

CentOS Linux怎样配置网络

 

cd network-scripts/

ll

 

CentOS Linux怎样配置网络

绿色的都是些可执行的命令

第一个就是自己的网卡

 

改配置命令:

vi ifcfg-enp0s3

CentOS Linux怎样配置网络

 


把光标移动到最后一行 ONBOOT
下面点个“ i ” 就进去了!

CentOS Linux怎样配置网络

 

ESC

:wq 回车

 

 

就保存了

 

 

service network restart

 

CentOS Linux怎样配置网络

 

ping www.baidu.com

 

CentOS Linux怎样配置网络

停不下来

ctrl+c 快捷键停止

 

网络配好了

相关文章:

  • 2021-04-24
  • 2021-07-23
  • 2021-10-09
  • 2021-11-25
  • 2021-07-06
猜你喜欢
  • 2022-01-01
  • 2021-05-29
  • 2021-07-23
  • 2021-06-03
  • 2021-12-26
  • 2021-08-02
  • 2021-05-03
相关资源
相似解决方案