# Trouble setting static IPv6 Address and Gateway

**URL:** https://dietpi.com/forum/t/trouble-setting-static-ipv6-address-and-gateway/4674
**Category:** Troubleshooting
**Created:** [29 November 2020 05:09 UTC](https://dietpi.com/forum/t/trouble-setting-static-ipv6-address-and-gateway/4674 "2020-11-29T05:09:32Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Cryovenom](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/c/e19adc/32.png) [@Cryovenom](https://dietpi.com/forum/u/Cryovenom)
#### Post date: [29 November 2020 05:09 UTC](https://dietpi.com/forum/t/trouble-setting-static-ipv6-address-and-gateway/4674/1 "2020-11-29T05:09:32Z")

</div>

Hi All,

I’ve got IPv6 up and running in my network, with a /48 sliced up into a half dozen /64s and everything is just great… Except the DietPi.

dietpi-configure doesn’t seem to have a way to set a static IPv6 address and gateway.

Normally this wouldn’t be a big deal - most of the machines on my network just use SLAAC to come up with their own IPv6 IPs, use router discovery to find the way out to the internet and bob’s your uncle, it all works.

However in this case I’m using the DietPi as a PiHole, so I would like to have it listening on both a static IPv4 and IPv6 address for DNS queries. I know which address I want to give it, and which gateway I want it to use, but when I change /etc/network/interfaces the thing loses networking entirely.

Help!

---

<div class="post-metadata">

### Author: ![trendy](https://dietpi.com/forum/user_avatar/dietpi.com/trendy/32/61_2.png) [@trendy](https://dietpi.com/forum/u/trendy)
#### Post date: [29 November 2020 12:46 UTC](https://dietpi.com/forum/t/trouble-setting-static-ipv6-address-and-gateway/4674/2 "2020-11-29T12:46:46Z")

</div>

I understand you want to give static, but I sort of solved my similar issue with slaac+dhcpv6.  
[https://dietpi.com/forum/t/dhcpv6/3885/1](https://dietpi.com/forum/t/dhcpv6/3885/1)

---

<div class="post-metadata">

### Author: ![loisjohnson](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/l/d07c76/32.png) [@loisjohnson](https://dietpi.com/forum/u/loisjohnson)
#### Post date: [26 December 2020 02:50 UTC](https://dietpi.com/forum/t/trouble-setting-static-ipv6-address-and-gateway/4674/3 "2020-12-26T02:50:12Z")

</div>

Nice. That’s what I was thinking too. but I’m not very experienced…
