ip addr 查看网卡名称 enp7s0

cd /etc/sysconfig/network-script/

vi ifcfg-enp7s0

 

修改

BOOTPROTO=static

ONBOOT=yes

IPV6INIT=no

IPADDR=192.168.1.252

NETMASK=255.255.255.0

GATEWAY=192.168.1.2

DNS1=114.114.114.114

 

:!wq

 

systemctl restart network

ip addr

相关文章:

  • 2022-02-07
  • 2021-07-14
  • 2022-01-07
  • 2021-10-07
猜你喜欢
  • 2021-11-19
  • 2022-01-08
  • 2021-10-14
  • 2021-12-05
  • 2021-11-19
  • 2021-11-19
  • 2021-11-19
相关资源
相似解决方案