首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >配置DHCP键合

配置DHCP键合
EN

Unix & Linux用户
提问于 2016-11-29 08:53:52
回答 1查看 7.2K关注 0票数 1

我正在尝试在主动式-被动式模式下使用键合,有两个以太网接口.我希望系统总是连接到网络,而至少有一个电缆连接。我必须能够在DHCP服务器上使用这个系统。

现在,我没有在网上找到任何有用的答案,所以现在我问你们:)

PinkPR

EN

回答 1

Unix & Linux用户

发布于 2016-11-29 11:13:15

内核文档中,这个配置在过去(/etc/网络/接口)为我工作过:

代码语言:javascript
复制
# 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 100
票数 3
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/326759

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档