This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
您无法绑定两个 TUN 设备,因为它们没有 MAC 地址。绑定需要 MAC 地址才能运行。请注意,绑定设备继承其中一个从站的 MAC 地址。
尝试使用 TAP 设备(而不是 TUN),有些人声称它有效(我自己没有尝试过)。
You can't bond two TUN devices as they don't have MAC addresses. Bonding requires MAC address to operate. Note that bonded device inherits mac address of one of the slaves.
Try using TAP devices (instead of TUN), some people claims that it works (I didn't try it myself).
您需要在
bond0
设备上设置硬件地址:ifconfig bond0 hw ether 00:11:22:33:44:55
You need to set a hardware address on the
bond0
device:ifconfig bond0 hw ether 00:11:22:33:44:55
尝试查看 https://forums.openvpn.net/topic14153.html#p37300
简而言之,他们建议:
将 Bonding“mode”设置为“balance-xor”而不是“balance-rr”:
具有多个连接的更高吞吐量(无数据包重新排序)
将“xmit_hash_policy”设置为“layer3+4”:
TUN接口没有MAC地址,因此平衡在上层完成
(源/目标 IP + 源/目标端口)
Try to look at https://forums.openvpn.net/topic14153.html#p37300
in short they recommended to:
set Bonding "mode" to "balance-xor" instead of "balance-rr":
higher throughput with multiple connexions (no packet reordering)
set "xmit_hash_policy" to "layer3+4":
TUN interface has no MAC address so balancing is done on upper level
(source/dest IP + source/dest port)