Pihole v6 and multiple VLANs via DHCP?

Does the migration cover additional config files? I can not figure out how to do this via TOML file. In Pihole5 I had:

99-interfaces.conf

interface=eth0
interface=eth0.42
no-dhcp-interface=lo

and 10-additional-dhcp.conf

log-dhcp

# Set V01 - Mainlan
dhcp-range=set:vlanmain,192.168.1.8,192.168.1.254,255.255.255.0,24h
dhcp-option=tag:vlanmain,option:router,192.168.1.1
dhcp-option=tag:vlanmain,option:dns-server,192.168.1.200

# Set V42 - iOT Lan
dhcp-range=set:vlaniot,192.168.42.3,192.168.42.254,255.255.255.0,24h
dhcp-option=tag:vlaniot,option:router,192.168.42.1
dhcp-option=tag:vlaniot,option:dns-server,192.168.42.200

The pihole.toml dhcp section after migration looks like this:

[dhcp]
  # Is the embedded DHCP server enabled?
  active = true ### CHANGED, default = false

  # Start address of the DHCP address pool
  #
  # Possible values are:
  #     <valid IPv4 address> or empty string (""), e.g., "192.168.0.10"
  start = "192.168.1.8" ### CHANGED, default = ""

  # End address of the DHCP address pool
  #
  # Possible values are:
  #     <valid IPv4 address> or empty string (""), e.g., "192.168.0.250"
  end = "192.168.1.254" ### CHANGED, default = ""

  # Address of the gateway to be used (typically the address of your router in a home
  # installation)
  #
  # Possible values are:
  #     <valid IPv4 address> or empty string (""), e.g., "192.168.0.1"
  router = "192.168.1.1" ### CHANGED, default = ""

NVM - I found that I can just use - see Etc/dnsmasq.d files - #2 by DL6ER

sudo pihole-FTL --config misc.etc_dnsmasq_d true
2 Likes

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.