Debian KVMnetworking设置

我有一个有4个以太网端口的服务器。 我想使用两个端口进行链接聚合,以用于KVM(虚拟客户端)。 我怎样才能正确地设置这个?

首先创build链接agg,然后桥?

的/ etc /networking/接口

auto bond0 iface bond0 inet dhcp auto br0 iface br0 inet dhcp 

是的,这是做这件事的正确方法,不要忘记用bond-slaves选项来定义哪些nics是债券的奴隶

作为一个例子,这是我在几个kvm服务器上使用的configuration: auto bond0 iface bond0 inet manual bond-miimon 100 bond-mode 802.3ad bond-lacp-rate 4 bond-slaves eth0 eth2

auto bond0.32 iface bond0.32 inet manual vlan-raw-device bond0

auto vmbr32 iface vmbr32 inet static bridge_ports bond0.32 bridge_stp off bridge_fd 0 bridge_maxwait 60 bridge_waitport 30地址configuration…

这是一个静态ipconfiguration与vlan支持,但它非常接近你想要做的

将两个NIC连接在一起,并在债券上build立一座桥梁。 然后将您的虚拟机连接到网桥,很简单。

NIC + NIC> BOND> BRIDGE < – VM