This article describes how to configure the bond and bridge interfaces on Ubuntu 14.04 LTS for a Contrail Cloud installation.
For link redundancy in a production Contrail installation, bond interfaces are highly recommended. Additionally, bridge interfaces are required for underlay connectivity in Contrail Cloud in order for QEMU/KVM virtual machines to communicate with networks/hosts external to the SDN. The steps below demonstrate how to configure a bridge over two bonded NIC interfaces for use with Contrail Cloud and QEMU/KVM, and how to configure the associated aggregated-ethernet (ae) interfaces on Junos EX/QFX switches using 802.3ad (LACP).
# set chassis aggregated-devices ethernet device-count <number>
# set interfaces ae0 aggregated-ether-options link-speed 1g # set interfaces ae0 aggregated-ether-options lacp active # set interfaces ae0 aggregated-ether-options lacp periodic fast # set interfaces ae0 unit 0 family ethernet-switching vlan members <vlan id>
# set interfaces ge-0/0/1 ether-options 802.3ad ae0
# set interfaces ge-0/0/2 ether-options 802.3ad ae0
apt-get install ifenslave
modprobe bonding
'bonding'
lsmod | grep bonding
/etc/network/interfaces
auto bond0 iface bond0 inet manual bond-mode 802.3ad bond-miimon 100 bond-lacp-rate 1 bond-slaves em1 em2 auto em1 iface em1 inet manual bond-master bond0 auto em2 iface em2 inet manual bond-master bond0
auto br0 iface br0 inet static
address 10.85.23.3 netmask 255.255.255.0 network 10.85.23.0 broadcast 10.85.23.255 gateway 10.85.23.1 bridge_ports bond0 bridge_stp off bridge_fd 9 bridge_hello 2 bridge_maxage 12
'brctl show'
bridge name bridge id STP enabled interfaces br0 8000.9457a55bed15 no bond0