centos 7 网卡启动失败

  • Post author:
  • Post category:其他

网卡故障问题
[root@dw2 ~]# /etc/init.d/network restart
Restarting network (via systemctl): Job for network.service failed because the control process exited with error code. See “systemctl status network.service” and “journalctl -xe” for details.
[FAILED]

处理办法
[root@dw2 ~]# systemctl status network.service
● network.service – LSB: Bring up/down networking
Loaded: loaded (/etc/rc.d/init.d/network; bad; vendor preset: disabled)
Active: failed (Result: exit-code) since Sat 2021-10-23 19:18:37 CST; 39s ago
Docs: man:systemd-sysv-generator(8)
Process: 1961 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/FAILURE)
Tasks: 0

Oct 23 19:18:37 dw2 network[1961]: RTNETLINK answers: File exists
Oct 23 19:18:37 dw2 network[1961]: RTNETLINK answers: File exists
Oct 23 19:18:37 dw2 network[1961]: RTNETLINK answers: File exists
Oct 23 19:18:37 dw2 network[1961]: RTNETLINK answers: File exists
Oct 23 19:18:37 dw2 network[1961]: RTNETLINK answers: File exists
Oct 23 19:18:37 dw2 network[1961]: RTNETLINK answers: File exists
Oct 23 19:18:37 dw2 systemd[1]: network.service: control process exited, code=exited status=1
Oct 23 19:18:37 dw2 systemd[1]: Failed to start LSB: Bring up/down networking.
Oct 23 19:18:37 dw2 systemd[1]: Unit network.service entered failed state.
Oct 23 19:18:37 dw2 systemd[1]: network.service failed.
[root@dw2 ~]# service NetworkManager off
The service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other actions, please try to use systemctl.
[root@dw2 ~]#
[root@dw2 ~]#
[root@dw2 ~]# service NetworkManager stop
Redirecting to /bin/systemctl stop NetworkManager.service
[root@dw2 ~]#
[root@dw2 ~]#
[root@dw2 ~]# ifconfig
ens32: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.3.16 netmask 255.255.255.0 broadcast 192.168.3.255
inet6 fe80::20c:29ff:fef4:779a prefixlen 64 scopeid 0x20
ether 00:0c:29:f4:77:9a txqueuelen 1000 (Ethernet)
RX packets 318 bytes 32448 (31.6 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 340 bytes 37243 (36.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1000 (Local Loopback)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255
ether 52:54:00:99:a9:b7 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

[root@dw2 ~]# ifdown ens34
[root@dw2 ~]#
[root@dw2 ~]#
[root@dw2 ~]# systemctl restart network
[root@dw2 ~]# ifconfig
ens32: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.3.16 netmask 255.255.255.0 broadcast 192.168.3.255
inet6 fe80::20c:29ff:fef4:779a prefixlen 64 scopeid 0x20
ether 00:0c:29:f4:77:9a txqueuelen 1000 (Ethernet)
RX packets 369 bytes 36752 (35.8 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 378 bytes 42233 (41.2 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

ens34: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.228.10.16 netmask 255.255.255.0 broadcast 10.228.10.255
inet6 fe80::20c:29ff:fef4:77a4 prefixlen 64 scopeid 0x20
ether 00:0c:29:f4:77:a4 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 22 bytes 3163 (3.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1000 (Local Loopback)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255
ether 52:54:00:99:a9:b7 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

[root@dw2 ~]#


版权声明:本文为chenlinlong原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。