Loading

CentOS7网卡启动错误

问题描述

CentOS7启动后网卡没有地址

查看报错Failed to start LSB: Bring up/down networking.

解决方式

关闭NetworkManager

[root@ntp Desktop]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eno16777736: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 00:0c:29:60:74:06 brd ff:ff:ff:ff:ff:ff
[root@ntp Desktop]# systemctl restart network
Job for network.service failed. See 'systemctl status network.service' and 'journalctl -xn' for details.
[root@ntp Desktop]# systemctl status network
network.service - LSB: Bring up/down networking
   Loaded: loaded (/etc/rc.d/init.d/network)
   Active: failed (Result: exit-code) since Mon 2021-02-08 09:49:15 CST; 10s ago
  Process: 2497 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/FAILURE)

Feb 08 09:49:15 ntp network[2497]: RTNETLINK answers: File exists
Feb 08 09:49:15 ntp network[2497]: RTNETLINK answers: File exists
Feb 08 09:49:15 ntp network[2497]: RTNETLINK answers: File exists
Feb 08 09:49:15 ntp network[2497]: RTNETLINK answers: File exists
Feb 08 09:49:15 ntp network[2497]: RTNETLINK answers: File exists
Feb 08 09:49:15 ntp network[2497]: RTNETLINK answers: File exists
Feb 08 09:49:15 ntp network[2497]: RTNETLINK answers: File exists
Feb 08 09:49:15 ntp systemd[1]: network.service: control process exited, co...=1
Feb 08 09:49:15 ntp systemd[1]: Failed to start LSB: Bring up/down networking.
Feb 08 09:49:15 ntp systemd[1]: Unit network.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.
[root@ntp Desktop]# journalctl -xe
Feb 08 09:49:15 ntp NetworkManager[971]: <warn>  Failed to activate 'eno16777736
Feb 08 09:49:15 ntp network[2497]: Bringing up interface eno16777736:  Error: Co
Feb 08 09:49:15 ntp network[2497]: [FAILED]
Feb 08 09:49:15 ntp network[2497]: RTNETLINK answers: File exists
Feb 08 09:49:15 ntp network[2497]: RTNETLINK answers: File exists
Feb 08 09:49:15 ntp network[2497]: RTNETLINK answers: File exists
Feb 08 09:49:15 ntp network[2497]: RTNETLINK answers: File exists
Feb 08 09:49:15 ntp network[2497]: RTNETLINK answers: File exists
Feb 08 09:49:15 ntp network[2497]: RTNETLINK answers: File exists
Feb 08 09:49:15 ntp network[2497]: RTNETLINK answers: File exists
Feb 08 09:49:15 ntp network[2497]: RTNETLINK answers: File exists
Feb 08 09:49:15 ntp network[2497]: RTNETLINK answers: File exists
Feb 08 09:49:15 ntp systemd[1]: network.service: control process exited, code=ex
Feb 08 09:49:15 ntp systemd[1]: Failed to start LSB: Bring up/down networking.
-- Subject: Unit network.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit network.service has failed.
-- 
-- The result is failed.
Feb 08 09:49:15 ntp systemd[1]: Unit network.service entered failed state.
Feb 08 09:49:20 ntp fprintd[2420]: ** Message: No devices in use, exit
 
[root@ntp Desktop]# systemctl stop NetworkManager.service 
[root@ntp Desktop]# systemctl restart network
[root@ntp Desktop]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eno16777736: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:0c:29:60:74:06 brd ff:ff:ff:ff:ff:ff
    inet 10.1.1.201/24 brd 10.1.1.255 scope global eno16777736
       valid_lft forever preferred_lft forever
    inet6 fe80::20c:29ff:fe60:7406/64 scope link 
       valid_lft forever preferred_lft forever
[root@ntp Desktop]# 
[root@ntp Desktop]# 

posted @ 2021-02-08 10:09  北兢王  阅读(512)  评论(0)    收藏  举报