1.创建ifcfg-eth0

touch /etc/sysconfig/network-scripts/ifcfg-eth0

2.配置ifcfg-eth0

DEVICE=eth0
HWADDR=00:0c:29:87:cc:be
TYPE=Ethernet
UUID=2728d81e-cbcb-47f2-9f29-20c5a4c5b588
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=none
DNS1=180.76.76.76
IPV6INIT=no
USERCTL=no

IPADDR=172.16.21.222
NETMASK=255.255.255.0
GATEWAY=172.16.21.1

 

相关文章:

  • 2021-10-16
  • 2022-03-02
  • 2022-12-23
  • 2022-12-23
  • 2021-09-05
  • 2022-12-23
猜你喜欢
  • 2021-12-03
  • 2021-09-05
  • 2021-08-04
  • 2022-12-23
  • 2021-08-05
相关资源
相似解决方案