On 2018-09-13, Kapetanakis Giannis <[email protected]> wrote: > On 13/09/18 16:25, Allan Streib wrote: >> I need to set up DHCP for several VLANs. The server has 1 physical >> interface (bnx1) available for this. >> >> My naive thought is I create the vlans with bnx1 as the "parent", e.g. >> >> /etc/hostname.vlan101: >> inet 172.16.101.253 255.255.255.0 NONE parent bnx1 vnetid 101 >> >> /etc/hostname.vlan102: >> inet 172.16.102.253 255.255.255.0 NONE parent bnx1 vnetid 102 >> >> /etc/hostname.vlan103: >> inet 172.16.102.253 255.255.255.0 NONE parent bnx1 vnetid 103 >> >> bnx1 is connected to switch port with all three VLANs tagged. >> >> Then, rcctl set dhcpd flags vlan101 vlan102 vlan103 >> >> Is there a better approach?
That's the standard approach. > This, or use dhcrelay (dhcp helper address on VLAN gateways) That's usually done when you want to locate a DHCP server/cluster on a separate machine than the router, and don't need/want it to be directly attached to all vlans.

