可以綁定2個綁定介面嗎?

可以綁定2個綁定介面嗎?

這實際上是第一次在ubuntu上建立聯繫。我對 /etc/network/interfaces 做了一些配置,但它不起作用;

===============================================================
# 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

# The primary network interface
auto eth0
iface eth0 inet manual
bond-master bond0

# The secondary network interfaces
auto eth1
iface eth1 inet manual
bond-master bond0

auto eth2
iface eth2 inet manual
bond-master bond1

auto eth3
iface eth3 inet manual
bond-master bond1

auto bond0
iface bond0 inet manual
    bond-mode 802.3ad
    bond-miimon 100 
    bond-slaves eth0 eth1
    bond-master bond2

auto bond1
iface bond1 inet static
    bond-mode 802.3ad
    bond-miimon 100 
    bond-slaves eth2 eth3
    bond-master bond2

auto bond2
    address 192.168.10.136
    netmask 255.255.255.0
    gateway 192.168.10.2
    bond-mode active-backup
    bond-miimon 100 
    bond-slaves bond0 bond1
dns-nameservers 168.126.63.1 168.126.63.2
===============================================================

您能告訴我錯誤配置的部分嗎?

答案1

抱歉,我認為這是不可能的。原因是您試圖在第一個網路層之上分層相同的網路層。通常,您可以透過L2TP 或GRE 等隧道協定建立L2(乙太網路)隧道。 。此時,您應該能夠綁定兩個連結。

您最好將所有 4 個介面綁定為一個綁定。這應該為您提供冗餘和高頻寬,而不增加複雜性。

相關內容