# IPv6 not working without "prefer IPv4" option

**URL:** https://dietpi.com/forum/t/ipv6-not-working-without-prefer-ipv4-option/4070
**Category:** Troubleshooting
**Created:** [7 May 2020 23:09 UTC](https://dietpi.com/forum/t/ipv6-not-working-without-prefer-ipv4-option/4070 "2020-05-07T23:09:10Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![markfree](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/dfb087/32.png) [@markfree](https://dietpi.com/forum/u/markfree)
#### Post date: [7 May 2020 23:09 UTC](https://dietpi.com/forum/t/ipv6-not-working-without-prefer-ipv4-option/4070/1 "2020-05-07T23:09:10Z")

</div>

With a minimal installment, after first boot, while checking configs, I noticed an odd behavior with network options under Dietpi-Config.

If I leave “Prefer IPv4” **ON, I get IPv6 address**.

```nohighlight
●─ Additional Options ───────────●
IPv6 : [On]
Prefer IPv4 : [On]

```

If I turn “Prefer IPv4” **OFF, IPv6 is not available**.

```nohighlight
●─ Additional Options ───────────●
IPv6 : [On]
Prefer IPv4 : [OFF]

```

I have a fully enabled IPv6 network with a DHCPv6 and all my devices get IPv6 without a problem.  
So, I prefer to leave option “Prefer IPv4” set to OFF.

Is there a way to correct that behavior?

Thanks

---

<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: [9 May 2020 16:09 UTC](https://dietpi.com/forum/t/ipv6-not-working-without-prefer-ipv4-option/4070/2 "2020-05-09T16:09:30Z")

</div>

On all 4 of my devices running dietpi I have IPv6 On and preferred.  
The only issue is that DHCPv6 doesn’t work yet, so you’ll have to depend on SLAAC only, or [do a small workaround](https://dietpi.com/forum/t/dhcpv6/3885/6) until it is fixed in the [next version](https://dietpi.com/forum/t/dhcpv6/3885/8).
