重庆思庄Oracle、Redhat认证学习论坛
标题:
网卡启动失败Failed to start LSB: Bring up/down解决方法
[打印本页]
作者:
jiawang
时间:
2018-12-5 15:38
标题:
网卡启动失败Failed to start LSB: Bring up/down解决方法
本帖最后由 jiawang 于 2018-12-6 17:11 编辑
操作系统:Redhat7.5
DB:18.3.0.0.0
环境:rac
报错现象:
[root@rac02 network-scripts]# cat ifcfg-ens33
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=static
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=ens33
UUID=7ab9ee0c-a374-4938-b83a-a5b196597ad4
DEVICE=ens33
ONBOOT=yes
IPADDR=192.168.0.161
PREFIX=24
GATEWAY=192.168.0.1
IPV6_PRIVACY=no
[root@rac02 network-scripts]# systemctl start network.service
Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "journalctl -xe" for details.
[root@rac02 network-scripts]# 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 三 2018-12-05 15:06:28 CST; 8s ago
Docs: man:systemd-sysv-generator(8)
Process: 5378 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/FAILURE)
12月 05 15:06:28 rac02 network[5378]: RTNETLINK answers: File exists
12月 05 15:06:28 rac02 network[5378]: RTNETLINK answers: File exists
12月 05 15:06:28 rac02 network[5378]: RTNETLINK answers: File exists
12月 05 15:06:28 rac02 network[5378]: RTNETLINK answers: File exists
12月 05 15:06:28 rac02 network[5378]: RTNETLINK answers: File exists
12月 05 15:06:28 rac02 network[5378]: RTNETLINK answers: File exists
12月 05 15:06:28 rac02 systemd[1]: network.service: control process exited...=1
12月 05 15:06:28 rac02 systemd[1]: Failed to start LSB: Bring up/down netw...g.
12月 05 15:06:28 rac02 systemd[1]: Unit network.service entered failed state.
12月 05 15:06:28 rac02 systemd[1]: network.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
[root@rac02 network-scripts]#
先看log里说哪个网卡没有UP起来:
[root@rac02 network-scripts]# cat /var/log/messages | grep network
Dec 4 16:33:46 rac02 systemd: Stopping LSB: Bring up/down networking...
Dec 4 16:33:46 rac02 network: 正在关闭接口 ens33: 成功断开设备 'ens33'。
Dec 4 16:33:46 rac02 network: [ 确定 ]
Dec 4 16:33:46 rac02 network: 正在关闭环回接口: 用法:ifdown <设备名>
Dec 4 16:33:46 rac02 network: [失败]
Dec 4 16:33:46 rac02 systemd: Starting LSB: Bring up/down networking...
Dec 4 16:33:47 rac02 network: 正在打开环回接口: ./ifup: 未发现 ifcfg-lo 配置。
Dec 4 16:33:47 rac02 network: 用法:ifup <设备名>
Dec 4 16:33:47 rac02 network: [失败]
Dec 4 16:33:47 rac02 network: 正在打开接口 ens33: 连接已成功激活(D-Bus 活动路径:/org/freedesktop/NetworkManager/ActiveConnection/5)
Dec 4 16:33:47 rac02 network: [ 确定 ]
Dec 4 16:33:47 rac02 network: 正在打开接口 有线连接_1: [ 确定 ]
Dec 4 16:33:47 rac02 network: RTNETLINK answers: File exists
Dec 4 16:33:47 rac02 network: RTNETLINK answers: File exists
Dec 4 16:33:47 rac02 network: RTNETLINK answers: File exists
Dec 4 16:33:47 rac02 network: RTNETLINK answers: File exists
Dec 4 16:33:47 rac02 network: RTNETLINK answers: File exists
Dec 4 16:33:47 rac02 network: RTNETLINK answers: File exists
Dec 4 16:33:47 rac02 network: RTNETLINK answers: File exists
Dec 4 16:33:47 rac02 network: RTNETLINK answers: File exists
Dec 4 16:33:47 rac02 network: RTNETLINK answers: File exists
Dec 4 16:33:47 rac02 systemd: Started LSB: Bring up/down networking.
Dec 4 16:58:03 rac02 systemd: Started Read and set NIS domainname from /etc/sysconfig/network.
Dec 4 16:58:35 rac02 systemd: Starting Import network configuration from initramfs...
Dec 4 16:58:35 rac02 systemd: Started Import network configuration from initramfs.
Dec 4 17:01:24 rac02 NetworkManager[868]: <info> [1543914084.0622] ifcfg-rh: new connection /etc/sysconfig/network-scripts/ifcfg-有线连接_1 (dcaf0a77-64fa-46cf-8772-00d5ed8c99bb,"有线连接 1")
Dec 4 17:01:24 rac02 NetworkManager[868]: <info> [1543914084.0642] ifcfg-rh: new connection /etc/sysconfig/network-scripts/ifcfg-ens33 (7ab9ee0c-a374-4938-b83a-a5b196597ad4,"ens33")
Dec 4 17:01:26 rac02 systemd: Starting LSB: Bring up/down networking...
Dec 4 17:01:27 rac02 network: 正在打开环回接口: ./ifup: 未发现 ifcfg-lo 配置。
Dec 4 17:01:27 rac02 network: 用法:ifup <设备名>
Dec 4 17:01:27 rac02 network: [失败]
Dec 4 17:01:27 rac02 network: 正在打开接口 ens33: [ 确定 ]
Dec 4 17:01:27 rac02 network: 正在打开接口 有线连接_1: [ 确定 ]
Dec 4 17:01:27 rac02 systemd: Started LSB: Bring up/down networking.
Dec 4 17:21:09 rac02 NetworkManager[868]: <info> [1543915269.0845] audit: op="networking-control" arg="off" pid=22803 uid=0 result="success"
Dec 4 17:47:30 rac02 NetworkManager[868]: <info> [1543916850.8706] audit: op="networking-control" arg="on" pid=22829 uid=0 result="success"
Dec 5 14:04:32 rac02 kernel: drop_monitor: Initializing network drop monitor service
Dec 5 14:04:58 rac02 systemd: Started Read and set NIS domainname from /etc/sysconfig/network.
Dec 5 14:05:37 rac02 systemd: Starting Import network configuration from initramfs...
Dec 5 14:05:37 rac02 systemd: Started Import network configuration from initramfs.
Dec 5 14:08:22 rac02 NetworkManager[875]: <info> [1543990102.6506] ifcfg-rh: new connection /etc/sysconfig/network-scripts/ifcfg-有线连接_1 (dcaf0a77-64fa-46cf-8772-00d5ed8c99bb,"有线连接 1")
Dec 5 14:08:22 rac02 NetworkManager[875]: <info> [1543990102.6527] ifcfg-rh: new connection /etc/sysconfig/network-scripts/ifcfg-ens33 (7ab9ee0c-a374-4938-b83a-a5b196597ad4,"ens33")
Dec 5 14:08:25 rac02 systemd: Starting LSB: Bring up/down networking...
Dec 5 14:08:26 rac02 network: 正在打开环回接口: ./ifup: 未发现 ifcfg-lo 配置。
Dec 5 14:08:26 rac02 network: 用法:ifup <设备名>
Dec 5 14:08:26 rac02 network: [失败]
Dec 5 14:08:26 rac02 network: 正在打开接口 ens33: 错误:激活连接失败:No suitable device found for this connection.
Dec 5 14:08:26 rac02 network: [失败]
Dec 5 14:08:26 rac02 network: 正在打开接口 有线连接_1: 错误:激活连接失败:No suitable device found for this connection.
Dec 5 14:08:26 rac02 network: [失败]
Dec 5 14:08:26 rac02 systemd: network.service: control process exited, code=exited status=1
Dec 5 14:08:26 rac02 systemd: Failed to start LSB: Bring up/down networking.
Dec 5 14:08:26 rac02 systemd: Unit network.service entered failed state.
Dec 5 14:08:26 rac02 systemd: network.service failed.
Dec 5 14:28:57 rac02 pulseaudio: GetManagedObjects() failed: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Dec 5 14:49:39 rac02 systemd: Starting LSB: Bring up/down networking...
Dec 5 14:49:39 rac02 network: 正在打开环回接口: ./ifup: 未发现 ifcfg-lo 配置。
Dec 5 14:49:39 rac02 network: 用法:ifup <设备名>
Dec 5 14:49:39 rac02 network: [失败]
Dec 5 14:49:39 rac02 network: 正在打开接口 ens33: 错误:激活连接失败:No suitable device found for this connection.
Dec 5 14:49:39 rac02 network: [失败]
Dec 5 14:49:39 rac02 network: 正在打开接口 有线连接_1: 错误:激活连接失败:No suitable device found for this connection.
Dec 5 14:49:40 rac02 network: [失败]
Dec 5 14:49:40 rac02 network: RTNETLINK answers: File exists
Dec 5 14:49:40 rac02 network: RTNETLINK answers: File exists
Dec 5 14:49:40 rac02 network: RTNETLINK answers: File exists
Dec 5 14:49:40 rac02 network: RTNETLINK answers: File exists
Dec 5 14:49:40 rac02 network: RTNETLINK answers: File exists
Dec 5 14:49:40 rac02 network: RTNETLINK answers: File exists
Dec 5 14:49:40 rac02 network: RTNETLINK answers: File exists
Dec 5 14:49:40 rac02 network: RTNETLINK answers: File exists
Dec 5 14:49:40 rac02 network: RTNETLINK answers: File exists
Dec 5 14:49:40 rac02 systemd: network.service: control process exited, code=exited status=1
Dec 5 14:49:40 rac02 systemd: Failed to start LSB: Bring up/down networking.
Dec 5 14:49:40 rac02 systemd: Unit network.service entered failed state.
Dec 5 14:49:40 rac02 systemd: network.service failed.
Dec 5 14:57:52 rac02 kernel: drop_monitor: Initializing network drop monitor service
Dec 5 14:58:02 rac02 systemd: Started Read and set NIS domainname from /etc/sysconfig/network.
Dec 5 14:58:10 rac02 systemd: Starting Import network configuration from initramfs...
Dec 5 14:58:10 rac02 systemd: Started Import network configuration from initramfs.
Dec 5 15:00:48 rac02 NetworkManager[843]: <info> [1543993248.0164] ifcfg-rh: new connection /etc/sysconfig/network-scripts/ifcfg-ens33 (7ab9ee0c-a374-4938-b83a-a5b196597ad4,"ens33")
Dec 5 15:00:48 rac02 NetworkManager[843]: <info> [1543993248.0186] ifcfg-rh: new connection /etc/sysconfig/network-scripts/ifcfg-有线连接_1 (dcaf0a77-64fa-46cf-8772-00d5ed8c99bb,"有线连接 1")
Dec 5 15:00:48 rac02 systemd: Starting LSB: Bring up/down networking...
Dec 5 15:00:50 rac02 network: 正在打开环回接口: ./ifup: 未发现 ifcfg-lo 配置。
Dec 5 15:00:50 rac02 network: 用法:ifup <设备名>
Dec 5 15:00:50 rac02 network: [失败]
Dec 5 15:00:50 rac02 network: 正在打开接口 ens33: 错误:激活连接失败:No suitable device found for this connection.
Dec 5 15:00:50 rac02 network: [失败]
Dec 5 15:00:50 rac02 network: 正在打开接口 有线连接_1: 错误:激活连接失败:No suitable device found for this connection.
Dec 5 15:00:50 rac02 network: [失败]
Dec 5 15:00:51 rac02 systemd: network.service: control process exited, code=exited status=1
Dec 5 15:00:51 rac02 systemd: Failed to start LSB: Bring up/down networking.
Dec 5 15:00:51 rac02 systemd: Unit network.service entered failed state.
Dec 5 15:00:51 rac02 systemd: network.service failed.
Dec 5 15:04:53 rac02 pulseaudio: GetManagedObjects() failed: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Dec 5 15:06:28 rac02 systemd: Starting LSB: Bring up/down networking...
Dec 5 15:06:28 rac02 network: 正在打开环回接口: ./ifup: 未发现 ifcfg-lo 配置。
Dec 5 15:06:28 rac02 network: 用法:ifup <设备名>
Dec 5 15:06:28 rac02 network: [失败]
Dec 5 15:06:28 rac02 network: 正在打开接口 ens33: 错误:激活连接失败:No suitable device found for this connection.
Dec 5 15:06:28 rac02 network: [失败]
Dec 5 15:06:28 rac02 network: 正在打开接口 有线连接_1: 错误:激活连接失败:No suitable device found for this connection.
Dec 5 15:06:28 rac02 network: [失败]
Dec 5 15:06:28 rac02 network: RTNETLINK answers: File exists
Dec 5 15:06:28 rac02 network: RTNETLINK answers: File exists
Dec 5 15:06:28 rac02 network: RTNETLINK answers: File exists
Dec 5 15:06:28 rac02 network: RTNETLINK answers: File exists
Dec 5 15:06:28 rac02 network: RTNETLINK answers: File exists
Dec 5 15:06:28 rac02 network: RTNETLINK answers: File exists
Dec 5 15:06:28 rac02 network: RTNETLINK answers: File exists
Dec 5 15:06:28 rac02 network: RTNETLINK answers: File exists
Dec 5 15:06:28 rac02 network: RTNETLINK answers: File exists
Dec 5 15:06:28 rac02 systemd: network.service: control process exited, code=exited status=1
Dec 5 15:06:28 rac02 systemd: Failed to start LSB: Bring up/down networking.
Dec 5 15:06:29 rac02 systemd: Unit network.service entered failed state.
Dec 5 15:06:29 rac02 systemd: network.service failed.
[root@rac02 network-scripts]#
解决办法:
系统自带的NetworkManager这个管理套件有关系,关掉就可以解决。
[root@rac02 network-scripts]# systemctl stop NetworkManager
[root@rac02 network-scripts]# systemctl disable NetworkManager
Removed symlink /etc/systemd/system/multi-user.target.wants/NetworkManager.service.
Removed symlink /etc/systemd/system/dbus-org.freedesktop.NetworkManager.service.
Removed symlink /etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service.
[root@rac02 network-scripts]# systemctl start network.service
[root@rac02 network-scripts]# ifconfig
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.161 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::20c:29ff:fedb:803b prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:db:80:3b txqueuelen 1000 (Ethernet)
RX packets 6 bytes 360 (360.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 14 bytes 1008 (1008.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
ens38: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.10.0.161 netmask 255.255.255.0 broadcast 10.10.0.255
inet6 fe80::20c:29ff:fedb:8045 prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:db:80:45 txqueuelen 1000 (Ethernet)
RX packets 11 bytes 2460 (2.4 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 17 bytes 1190 (1.1 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<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 12 bytes 1068 (1.0 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 12 bytes 1068 (1.0 KiB)
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:1d:e3:e2 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@rac02 network-scripts]#
欢迎光临 重庆思庄Oracle、Redhat认证学习论坛 (http://bbs.cqsztech.com/)
Powered by Discuz! X3.2