auto lo
iface lo inet loopback
auto eth8
iface eth8 inet manual
auto eth9
iface eth9 inet manual
auto bond0
iface bond0 inet manual
up ifconfig bond0 0.0.0.0 up
slaves eth4 eth0
bond-mode 4
bond-miimon 100
bond-downdelay 200
bond-updelay 200
bond-lacp-rate 0
bond-xmit-hash-policy layer2+3
post-up ifconfig bond0 mtu 9000
auto vmbr0
iface vmbr0 inet static
address x.y.z.k
netmask 255.255.255.240
gateway x.y.z.241
bridge_ports bond0
bridge_stp off
bridge_fd 0
# vOpenSwitch configuration below:
# Bond eth8 and eth9 together
allow-vmbr1 bond1
auto bond1
iface bond1 inet manual
ovs_bridge vmbr1
ovs_type OVSBond
ovs_bonds eth8 eth9
# Force the MTU of the physical interfaces to be jumbo-frame capable.
# This doesn't mean that any OVSIntPorts must be jumbo-capable.
# We cannot, however set up definitions for eth8 and eth9 directly due
# to what appear to be bugs in the initialization process.
pre-up ( ifconfig eth8 mtu 9000 && ifconfig eth9 mtu 9000 && test -x /root/bin/setup10Gifaces && /root/bin/setup10Gifaces )
ovs_options bond_mode=balance-tcp lacp=active
mtu 9000
# Bridge for our bond and vlan virtual interfaces (our VMs will
# also attach to this bridge)
auto vmbr1
allow-ovs vmbr1
iface vmbr1 inet manual
ovs_type OVSBridge
# NOTE: we MUST mention bond1, vlanX, and vlanY even though each
# of them lists ovs_bridge vmbr1! Not sure why it needs this
# kind of cross-referencing but it won't work without it!
ovs_ports bond1 vlan11 vlan12 vlan13 vlan20 vlan21
mtu 9000
allow-vmbr1 vlan11
iface vlan11 inet static
ovs_type OVSIntPort
ovs_bridge vmbr1
ovs_options tag=11
ovs_extra set interface ${IFACE} external-ids:iface-id=$(hostname -s)-${IFACE}-vif
address 10.45.64.17
netmask 255.255.255.0
mtu 9000
allow-vmbr1 vlan12
iface vlan12 inet static
ovs_type OVSIntPort
ovs_bridge vmbr1
ovs_options tag=12
ovs_extra set interface ${IFACE} external-ids:iface-id=$(hostname -s)-${IFACE}-vif
address 10.45.65.17
netmask 255.255.255.0
mtu 9000
allow-vmbr1 vlan13
iface vlan13 inet static
ovs_type OVSIntPort
ovs_bridge vmbr1
ovs_options tag=13
ovs_extra set interface ${IFACE} external-ids:iface-id=$(hostname -s)-${IFACE}-vif
address 10.45.71.7
netmask 255.255.255.0
mtu 9000
allow-vmbr1 vlan20
iface vlan20 inet static
ovs_type OVSIntPort
ovs_bridge vmbr1
ovs_options tag=20
ovs_extra set interface ${IFACE} external-ids:iface-id=$(hostname -s)-${IFACE}-vif
address 10.45.66.17
netmask 255.255.255.0
mtu 9000
allow-vmbr1 vlan21
iface vlan21 inet static
ovs_type OVSIntPort
ovs_bridge vmbr1
ovs_options tag=21
ovs_extra set interface ${IFACE} external-ids:iface-id=$(hostname -s)-${IFACE}-vif
address 10.45.67.17
netmask 255.255.255.0
mtu 9000