临时修改

ifconfig ens33 ip or ifconfig ens33:0 ip or ifconfig ens33:1 ip

Linux(centos7)修改ip

永久修改

方法1.命令  nmtui

Linux(centos7)修改ip

Linux(centos7)修改ip

Linux(centos7)修改ip

方法2. ifconfig

Linux(centos7)修改ip

vim /etc/sysconfig/network-scripts/ifcfg-ens33

按i进入insert模式,修改后按esc,再按 :wq。

Linux(centos7)修改ip

重启网络服务

service network restart

Linux(centos7)修改ip

ping www.baidu.com 成功

 

相关文章:

  • 2022-02-07
  • 2021-05-28
  • 2022-12-23
  • 2021-11-19
  • 2022-01-07
  • 2021-10-23
  • 2021-08-10
  • 2021-11-17
猜你喜欢
  • 2021-08-31
  • 2022-12-23
  • 2022-12-23
  • 2022-01-07
  • 2021-09-03
  • 2021-07-20
相关资源
相似解决方案