关机,添加新网卡
登入系统
# cd/etc/sysconfig/network-scripts
# cp -f ifcfg-eno33554992 ifcfg-eno16777736
# catifcfg-eno1677773
重启网卡
# systemctl restart network (抛出LSB异常)
Job for network.service Failed because the control process exited with error code. See "systemctl status network.service" and "journalctl -xe" for details.
ifconfig查看,也出现了ip,可以连接(上述问题查了好久,还是没解决,而且systemctrestart/stop/start network 失效 )
尝试重启,结果上述问题全部修复
小结:
这次回顾网络的同时,有一个参数记不清了:
BOOTPROTO=dhcp
大写DHCP错误,哎,不常用就忘了。
原文链接:https://www.f2er.com/centos/378537.html