And creating a bonded interface with DHCP is even trickier. You could solve it this way, if you wanted to cop out. But copping out is for out coppers, and everyone knows that that ain't me.
So we're going to configure LACP port bonding (aka 802.3ad) on our brand new install of debian stretch (at the time of this writing, stretch is nearly identical to jessie, so this guide ought to work for jessie for a few years).
- aptitude install ifenslave
echo 'mii' >> /etc/modules
This gives us the ability to create bond interfaces.
- vi /etc/network/interfaces
And make sure the contents look something like this:
iface lo inet loopback
# Enslave these interfaces
# The bonded interface
iface bond0 inet dhcp
bond-slaves eth1 eth0 # order matters! the first listed interface is the one whose mac is used
- Reboot. Or muck around with /etc/init.d/networking restart, ifconfig INTERFACE DOWN|UP, etc.
- If the ifconfig output looks good, and the output from cat /proc/net/bonding/bond0 looks good, and you have network connectivity, then you've done it!
Go have a cold beer, you've earned it.