1、修改/etc/sysconfig/network-scripts/ifcfg-ens4f0文件,将其中的BOOTPROTO=dhcp改为none即可。
2、重启网络服务systemctl restart network
3、ifconfig查看网卡
参考:
1、修改/etc/sysconfig/network-scripts/ifcfg-ens4f0文件,将其中的BOOTPROTO=dhcp改为none即可。
2、重启网络服务systemctl restart network
3、ifconfig查看网卡
参考: