我有一个Debian 8 Jessie机器,有两个接口(eth0和eth1)以balance-rr模式(又名0)绑定。 它工作顺利,但是当我试图build立一个桥梁,它不起作用。
我的/ etc / network / interfaces
auto lo iface lo inet loopback # The primary network interface auto bond0 iface bond0 inet static slaves eth0 eth1 bond-mode 0 bond-miimon 100 bond_downdelay 200 bond_updelay 200 auto br0 iface br0 inet static address 192.168.20.20 netmask 255.255.255.0 gateway 192.168.20.1 dns-nameservers 8.8.8.8 bridge_ports bond0 bridge_maxwait 0 bridge_fd 0 bridge_stp off
任何线索? 谢谢。
这是从我的服务器工作configuration:
/ etc / network / interfaces :
auto lo iface lo inet loopback auto bond0 iface bond0 inet manual up ifconfig bond0 0.0.0.0 up slaves eth1 eth0 bond-mode 0 bond-miimon 100 bond-lacp-rate 0 auto br0 iface br0 inet static address 192.168.162.235 netmask 255.255.192.0 gateway 192.168.150.254 bridge_ports bond0 vnet0 bridge_stp off # switch on with more system like this bridge_maxage 0 bridge_ageing 0 bridge_ageing 0
除此之外,你需要安装:
apt-get install bridge-utils ifenslave
从/etc/modprobe.d/中删除任何绑定模块configuration
对于我也使用bond-mode 5
(lacp)以及其中一个评论中提到的ip
命令来说,它工作正常。
auto bond0 iface bond0 inet manual up ip link set up dev bond0 slaves eth1 eth0 bond-mode 4 bond-miimon 100 bond-lacp-rate 0 auto br0 iface br0 inet static address 192.168.162.235 netmask 255.255.192.0 gateway 192.168.150.254 bridge_ports bond0 bridge_stp off # switch on with more system like this bridge_maxage 0 bridge_ageing 0
无论如何,所有功劳都归功于Michal Sokolowski 。