I have 2 bridges (vmbr1 vmbr2) on proxmox server.
vmbr1 IP: 192.168.106.1 for NAT clients
vmbr2 IP: 192.168.107.1 for Local only
I have set up DHCP server (isc-dhcp-server) and it works perfectly with one network segment (on vmbr1).
When I attempt to set the second segment (vmbr2), DHCP server fails with the message:
No subnet declaration for vmbr2 (no IPv4 addresses). ** Ignoring requests on vmbr2. If this is not what you want, please write a subnet declaration in your dhcpd.conf file for the network segment to which interface vmbr2 is attached. ** for this error this statement apparently should fix the issue:
subnet-mask 255.255.255.0; However then the error becomes this:
isc-dhcp-server.service: Control process exited, code=exited, status=1/FAILURE If you think you have received this message due to a bug rather isc-dhcp-server.service: Failed with result 'exit-code'. than a configuration issue please read the section on submitting Failed to start LSB: DHCP server. bugs on either our web page at www.isc.org or in the README file before submitting a bug. These pages explain the proper process and the information we find helpful for debugging. exiting. Here is the working /etc/default/isc-dhcp-server:
INTERFACESv4="vmbr1" #INTERFACESv4="vmbr1 vmbr2" #INTERFACESv6="" Here is the working /etc/dhcp/dhcpd.conf:
option domain-name "mydomain.ca"; option domain-name-servers 8.8.8.8,8.8.4.4; subnet 192.168.106.0 netmask 255.255.255.0 { range 192.168.106.20 192.168.106.150; #subnet-mask 255.255.255.0; option routers 192.168.106.1; } #subnet 192.168.107.0 netmask 255.255.255.0 { #range 192.168.107.20 192.168.107.150; #subnet-mask 255.255.255.0; #option routers 192.168.107.1; #} The options causing issue are commented out.
Any ideas?