我正在设置一个带有多个以太网接口的Ubuntu Server 11.10机箱,这些接口是为了冗余而绑定的.我打算将它用作KVM主机,所以我需要一个网桥.
为此,我安装了ifenslave和bridge-utils,然后编写了我的/ etc / network / interfaces文件.相关部分如下:
auto br0 iface br0 inet static address 10.1.254.101 netmask 255.255.255.0 network 10.1.254.0 broadcast 10.1.254.255 gateway 10.1.254.50 dns-nameservers 10.1.254.252 bridge_ports bond0 bridge_stp off iface bond0 inet manual bond-slaves eth0 eth3 bond_mode balance-rr bond_miimon 100
不幸的是,这不是给我连接. ifup br0给我“无法将bond0添加到桥接br0:无效参数”,而ifdown br0给我“设备bond0不是br0的从属”.如果我修改我的interfaces文件以摆脱桥接,我有完全的连接 – 但我将需要桥.
这就是我如何配置Ubuntu 10.04 LTS系统以在绑定接口之上进行桥接:
原文链接:https://www.f2er.com/ubuntu/348461.htmliface eth0 inet manual iface eth5 inet manual # eth0 & eth5 form bond0 for the x.y.z.0/25 subnet auto bond0 iface bond0 inet static bond_miimon 100 bond_mode active-backup bond_downdelay 200 bond_updelay 200 address x.y.z.35 netmask 255.255.255.128 network x.y.z.0 post-up ifenslave bond0 eth0 eth5 pre-down ifenslave -d bond0 eth0 eth5 auto br0 iface br0 inet static bridge_ports bond0 address x.y.z.35 netmask 255.255.255.128 network x.y.z.0 gateway x.y.z.126