Robots In The Cloud IaaS Production and Design

RECIPE: CloudStack Advanced Networking: Ubuntu[KVM] + ACS 4.2 + 6 NICs

cloudmonkeyHere is a quick cheat sheet for an advanced networking build using six network interfaces. These six network interfaces are grouped into three bonds.

You might notice that only the management bridge has an IP address. This is because it is the only interface that facilitates direct communication with the host. Adding addresses to the other bridges only serves to increase the attack surface and spend IP resources.


# The loopback network interface
auto lo
iface lo inet loopback

# Management Network

auto eth0
iface eth0 inet manual
        bond-master bondm

auto eth1
iface eth1 inet manual
        bond-master bondm
        bond-primary eth1

auto bondm
iface bondm inet manual
        bond-mode active-backup
        bond-miimon 100
        bond-slaves eth0 eth1

auto cloudbrman
iface cloudbrman inet static
        bridge_ports bondm
        bridge_fd 5
        bridge_stp on
        bridge_maxwait 1

# Guest Network

auto eth2
iface eth2 inet manual
        bond-master bondg
        bond-primary eth2

auto eth3
iface eth3 inet manual
        bond-master bondg

auto bondg
iface bondg inet manual
        bond-mode active-backup
        bond-miimon 100
        bond-slaves eth2 eth3

auto cloudbrguest
iface cloudbrguest inet manual
        bridge_ports bondg

# Public Network

auto eth4
iface eth4 inet manual
        bond-master bondp
        bond-primary eth4

auto eth5
iface eth5 inet manual
        bond-master bondp

auto bondp
iface bondp inet manual
        bond-mode active-backup
        bond-miimon 100
        bond-slaves eth4 eth5

auto cloudbrpub
iface cloudbrpub inet manual
        bridge_ports bondp