Linux – Can multiple ip addreses be attached to a single network bonding device

bondinglinuxnetworking

I am setting up an Ubuntu server for several hosting tasks that has 2 network cards and I have 5 ip addresses reserved for this server.

From the bonding documentation I understand that it can easily be used both as a fault tolerance and load balancing tool, but all the examples I've seen deal with only one ip address per bonding device.

What would be the correct way to bond the two network cards together and assign all of the 5 ip addresses to the single device? Can I use virtual device names like bond0:0 for that, do I set up 4 additional bond devices using the same network cards? Or is it not possible at all?

I have the server in a co-location facility and I really would not like to lose connectivity by trying something that does not work.

Best Answer

Yes, it seems that bond0:0, bond0:1 device types are the correct way to go: http://www.christiantechsaz.com/viewtopic.php?id=139