# Pihole v6 and multiple VLANs via DHCP?

**URL:** <https://discourse.pi-hole.net/t/pihole-v6-and-multiple-vlans-via-dhcp/76211>\
**Category:** Community Help\
**Created:** [February 20, 2025, 7:37pm UTC](https://discourse.pi-hole.net/t/pihole-v6-and-multiple-vlans-via-dhcp/76211 "2025-02-20T19:37:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![magicdude4eva](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/magicdude4eva/32/26173_2.png) [@magicdude4eva](https://discourse.pi-hole.net/u/magicdude4eva)\
**Post date:** [February 20, 2025, 7:37pm UTC](https://discourse.pi-hole.net/t/pihole-v6-and-multiple-vlans-via-dhcp/76211/1 "2025-02-20T19:37:37Z")

</div>

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

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

```

and 10-additional-dhcp.conf

```auto
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:

```auto
[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 = ""

```

---

<div class="post-metadata">

**Author:** ![magicdude4eva](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/magicdude4eva/32/26173_2.png) [@magicdude4eva](https://discourse.pi-hole.net/u/magicdude4eva)\
**Post date:** [February 20, 2025, 7:42pm UTC](https://discourse.pi-hole.net/t/pihole-v6-and-multiple-vlans-via-dhcp/76211/2 "2025-02-20T19:42:44Z")

</div>

NVM - I found that I can just use - see [Etc/dnsmasq.d files - #2 by DL6ER](https://discourse.pi-hole.net/t/etc-dnsmasq-d-files/74393/2)

```auto
sudo pihole-FTL --config misc.etc_dnsmasq_d true

```

---

<div class="post-metadata">

**Author:** ![system](https://discourse.pi-hole.net/uploads/default/original/3X/7/c/7c8792f649eeb921c5d2b4c41564ffa873d9a2b8.png) [@system](https://discourse.pi-hole.net/u/system)\
**Post date:** [March 13, 2025, 7:43pm UTC](https://discourse.pi-hole.net/t/pihole-v6-and-multiple-vlans-via-dhcp/76211/3 "2025-03-13T19:43:01Z")

</div>

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