我以前在网上见过这个。
我有一个Ubuntu服务器与一个4端口千兆网卡。
我想将这些接口连接起来,这样,如果一个接口很忙,数据包就会通过一个没有使用的接口。
谢谢
发布于 2019-02-28 00:57:32
术语是NIC键合,或NIC合作。
(https://www.linuxnix.com/nic-bonding-in-linux/)
互联网上有很多关于如何做到这一点的教程。解释这一点可能需要几页来显示所有选项。
值得注意的是:
下面是从Ubuntu文档中设置的活动备份示例:
# eth0 is manually configured, and slave to the "bond0" bonded NIC
auto eth0
iface eth0 inet manual
bond-master bond0
bond-primary eth0
# eth1 ditto, thus creating a 2-link bond.
auto eth1
iface eth1 inet manual
bond-master bond0
# bond0 is the bonding NIC and can be used like any other normal NIC.
# bond0 is configured using static network information.
auto bond0
iface bond0 inet static
address 192.168.1.10
gateway 192.168.1.1
netmask 255.255.255.0
bond-mode active-backup
bond-miimon 100
bond-slaves none引用维基百科的话:
网桥是从多个通信网络或网络段创建单个聚合网络的计算机网络设备。这一功能称为网络桥接。桥接不同于路由。路由允许多个网络独立通信,但仍然保持独立,而桥接连接两个独立的网络,就好像它们是一个网络一样。在OSI模型中,在数据链路层(第2层)中进行桥接。如果桥接网络的一个或多个段是无线的,则该设备称为无线桥接器。
(https://en.wikipedia.org/wiki/Bridging_%28联网%29)
连接的一个例子是将计算机连接到WAN (internet)和LAN (work)网络,计算机能够连接到这两个网络。它还可以包括使局域网上的其他计算机能够通过连接到两者的PC机上网。
https://serverfault.com/questions/956065
复制相似问题