# How to set up IPv6 for Pihole correctly?

**URL:** <https://discourse.pi-hole.net/t/how-to-set-up-ipv6-for-pihole-correctly/42901>\
**Category:** Help\
**Created:** [January 13, 2021, 9:17am UTC](https://discourse.pi-hole.net/t/how-to-set-up-ipv6-for-pihole-correctly/42901 "2021-01-13T09:17:14Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Daxtorim](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/d/6de8d8/32.png) [@Daxtorim](https://discourse.pi-hole.net/u/Daxtorim)\
**Post date:** [January 13, 2021, 1:46pm UTC](https://discourse.pi-hole.net/t/how-to-set-up-ipv6-for-pihole-correctly/42901/2 "2021-01-13T13:46:44Z")

</div>

How are IPv6 addresses assigned in the first place? Is the router providing stateful DHCPv6? SLAAC addresses are generally static unless the originally generated address was taken by another device (the chances of this are practically zero).  
You can assign a static IPv6 address on the host machine of pihole with _dhcpcd5_ by adding `static ip6_address=<address_of_choice>` to _/etc/dhcpcd.conf_.

---

_[View the full topic](https://discourse.pi-hole.net/t/how-to-set-up-ipv6-for-pihole-correctly/42901)._
