network.service - 执行“telinit”后网络接口未启动

network.service - 执行“telinit”后网络接口未启动

当我启动 RHEL 7 时,一切都很好,我的网络功能正常,我可以 ping 通其他 PC 等:

[root@localhost]# service network status
Configured devices:
lo eno1 enp2s0f0Team enp2s0f1Team team0 team0.300 team0.398 team0.399
Currently active devices:
lo eno1 enp2s0f0 enp2s0f1 team0 team0.300@team0 team0.398@team0 team0.399@team0

但是如果我执行telinit 3切换到命令行界面,网络就会消失:

[root@localhost]# service network status
Configured devices:
lo eno1 enp2s0f0Team enp2s0f1Team team0 team0.300 team0.398 team0.399
Currently active devices:
lo eno1

我丢失了 LACP+VLAN 卡,只剩下一张卡 - eno1。ifconfig也缺少这些接口,因为它们根本不存在。我猜这是网络服务问题(更有可能)或者可能是团队问题。

解决方法:在 telinit 3 之后,我必须执行service network stop并使service network start网络正常工作。

当我禁用 NetworkManager 以支持 network.service 时,我遇到了这个问题。

我该如何解决我的问题?network.service是不是配置好?

相关内容