I'm working on a server with a number of various interfaces (eth0-3) and I currently just use one for both host traffic and another for my LXC bridges traffic. Since I have a few spare ports just laying around and I have a lot of traffic running over my bridge I thought I'd use the other ports for some good old fashioned link aggregation.
This isn't something I've really messed with before, thisn't really a question more a 'is this how i'd implement this in /etc/network/interfaces'... so here we go.
By my understanding I can just using the bonding thingy to bond
eth2 say (or even
eth3!) to a device
bond0, and then just change the
bridge_port of my bridge
bond0. Now this all makes sense to me, what I'm very confused about is how'd do this if I didn't want to give bond0 an ip... I currently have my br0 set to have no IP meaning the host isn't contact-able but all the lxc containers on the host which have routable IPs so they can be contacted.
How would I implement this? Can I just not give
bond0 an ip and assume it will act in the same way?
Here is my notes /etc/network/interface file on how I'd how do it (mind I haven't implemented this yet cuz I don't want to down my entire hosts networks):
# host communications times auto eth0 inet static iface eth0 inet static blahblahblah # first slave device auto eth1 iface eth1 inet manual bond-master bond0 # second slave device auto eth2 iface eth2 inet manual bond-master bond0 # our bond master or aggregation device auto bond0 iface bond0 inet manual # no IP? gateway 192.168.1.1 netmask 255.255.255.0 bond-mode 0 # our bridge device auto br0 iface br0 inet manual # also no IP bridge_ports bond0 bridge_fd 0 bridge_maxwait 0