我正在尝试在主动式-被动式模式下使用键合,有两个以太网接口.我希望系统总是连接到网络,而至少有一个电缆连接。我必须能够在DHCP服务器上使用这个系统。
现在,我没有在网上找到任何有用的答案,所以现在我问你们:)
PinkPR
发布于 2016-11-29 11:13:15
在内核文档中,这个配置在过去(/etc/网络/接口)为我工作过:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# Define primary network interface
auto eth0
iface eth0 inet manual
bond-master bond0
bond-primary eth0 eth1
# Define secondary network interface
auto eth1
iface eth1 inet manual
# delay ifup to allow eth0 to come up first in the bond
pre-up sleep 2
bond-master bond0
bond-primary eth0 eth1
# Define master bond interface with link local address.
auto bond0
iface bond0 inet dhcp
bond-slaves none
bond-mode active-backup
bond-miimon 100https://unix.stackexchange.com/questions/326759
复制相似问题