Aggregate two interface to the green network

I aggregated two interfaces, eth0 and eth1, into a bonded interface called bond0 using the following commands:

ip link add name bond0 type bond mode 4
ip link set dev eth0 master bond0
ip link set dev eth1 master bond0
ip link set dev bond0 up
ip addr add 10.30.40.10/16 dev bond0

Now, I want to assign the bond0 interface to the green network. Is this possible?

Yes, you can launch “setup” and assign bond0 as your GREEN interface. Make sure you give it the same MAC address when you are creating it again.

3 Likes

Are you sure that will work? I tested it once last month and got an error saying “no such device: bond0” after setting the MAC address of bond0 to the green interface.

I am not knowledgeable at all regarding bonded interfaces.

What I see is that you already assigned an IP to the bonded interface pu the link into up mode.

It could be that therefore the IPFire code can’t find an available bond0 interface as it has already been assigned.

I would suggest to only carry out the first three of your instructions and then go into the setup mode, assign the bond0 interface to the green zone and then assign the IP in the following set up stage.

1 Like

Yes 100% sure this will work.

1 Like

that’s worked, thanks.