linux – RTNETLINK答案:执行“服务网络重启”时存在文件

前端之家收集整理的这篇文章主要介绍了linux – RTNETLINK答案:执行“服务网络重启”时存在文件前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
执行任一命令:
sudo service network restart
sudo ifup bond0

导致以下错误(这是唯一的错误):

Bringing up interface eth0:  RTNETLINK answers: File exists

这是涉及的接口的配置:

DEVICE="bond0"
IPADDR="10.100.48.6"
NETMASK="255.255.254.0"
ONBOOT="yes"

DEVICE="eth0"
MASTER="bond0"
SALVE="yes"
HWADDR="78:2B:CB:57:B5:B3"
NM_CONTROLLED="no"
ONBOOT="yes"

DEVICE="eth4"
MASTER="bond0"
SLAVE="yes"
HWADDR="00:1B:21:C9:F4:54"
NM_CONTROLLED="no"
ONBOOT="yes"

dmesg输出表明,当绑定驱动程序试图奴役它时,eth0还没有准备好:

dmesg | egrep '(eth0)|(bond0)'
bnx2 0000:01:00.0: eth0: Broadcom NetXtreme II BCM5709 1000Base-T (C0) PCI Express found
at mem d4000000,IRQ 36,node addr 78:2b:cb:57:b5:b3
ADDRCONF(NETDEV_UP): bond0: link is not ready
bnx2 0000:01:00.0: eth0: using MSIX
ADDRCONF(NETDEV_UP): eth0: link is not ready
bonding: bond0: Adding slave eth4.
bonding: bond0: enslaving eth4 as a backup interface with a down link.
bnx2 0000:01:00.0: eth0: NIC Copper Link is Up,100 Mbps full duplex
ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
bond0: link status definitely up for interface eth4,100 Mbps full duplex.
bonding: bond0: making interface eth4 the new active one.
bonding: bond0: first active interface up!
ADDRCONF(NETDEV_CHANGE): bond0: link becomes ready

如果网络服务停止,则路由表为空(命​​令路由不显示路由).在bond0启动后可以手动设置eth0接口,它将被选为主设备,我可以在网络中ping设备.

解决方法

它可能只是一个错字吗?你能尝试将SALVE变为SLAVE for eth0吗?
原文链接:https://www.f2er.com/linux/401669.html

猜你在找的Linux相关文章