LinuxBridge with DHCP and defined address range

Feb 24, 2022
87
5
13
40
Hello,

I have configured a kind of network backbone for my 4 node cluster to enable a faster networking between all VMs.

I was able to set this up via static ip addresses but this needs to be carefully configured to prevent ip conflicts.

Here is what I have as an example for one node:
1712298255916.png
The other nodes have the same config with 10.175.175.1 - ...

What I want to have now is a DHCP server that automatically gives addresses for example from
10.175.176.x

I guess this needs to be configured on one node only and the VMs from the oder nodes will receive their IP from the first node.

I found this for /etc/network/interfaces:
Code:
iface vmbr1 inet dhcp
        bridge-ports eno5
        bridge-stp off
        bridge-fd 0

But I still want to define the IPs of the physical NICs and the DHCP VM IPs shall be in a defined range.

Hope you can help.

Thanks.
 
Last edited:
I found this for /etc/network/interfaces:
This configuration will make it so that the server will request an IP address from a DHCP server.

You still need a DHCP server in that network!

Ideally, use a VM for it, then you can define it as HA, so if the node it is on dies, it will be recovered quickly to another node. Keep all the important infrastructure to keep the DHCP server running, on a static IP configuration. Otherwise you end up with circular dependencies :)