# IPV6 setting gone on reboot?

**URL:** <https://forum.virtualmin.com/t/ipv6-setting-gone-on-reboot/132631>\
**Category:** Webmin\
**Created:** [March 18, 2025, 7:28pm UTC](https://forum.virtualmin.com/t/ipv6-setting-gone-on-reboot/132631 "2025-03-18T19:28:15Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mikky23](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/mikky23/32/9431_2.png) [@Mikky23](https://forum.virtualmin.com/u/Mikky23)\
**Post date:** [March 18, 2025, 7:28pm UTC](https://forum.virtualmin.com/t/ipv6-setting-gone-on-reboot/132631/1 "2025-03-18T19:28:15Z")

</div>

| SYSTEM INFORMATION | |
| --- | --- |
| OS type and version | Debian Linux 11 |
| Usermin version | 2.202 |
| Virtualmin version | 7.30.7 |
| Theme version | 23.02 |
| Apache version | 2.4.62 |

Hi,

I setup ipv6 on Webmin/virtualmin and it worked flawless. However, the IPV6 address is gone on reboot.

I got:  
Webmin → Network Configuration → Network Interfaces → Activated at Boot → ens6 →   
Activate at boot: yes  
IPv6 addresses: Static configuration: the-ipv6-address / netmask 64

But after a reboot the setting IPv6 addresses is back to radio box: IPv6 disabled.

I got another server with same setup, here it works on reboot. What am I missing here?

---

<div class="post-metadata">

**Author:** ![Ilia](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/ilia/32/10185_2.png) [@Ilia](https://forum.virtualmin.com/u/Ilia)\
**Post date:** [March 19, 2025, 12:55am UTC](https://forum.virtualmin.com/t/ipv6-setting-gone-on-reboot/132631/2 "2025-03-19T00:55:06Z")

</div>

Hello,

Thanks for the heads-up!

Could you provide more details about the `ip a` command output, and the contents of the `/etc/network/interfaces` file before and after the change?

---

<div class="post-metadata">

**Author:** ![Mikky23](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/mikky23/32/9431_2.png) [@Mikky23](https://forum.virtualmin.com/u/Mikky23)\
**Post date:** [March 19, 2025, 8:28am UTC](https://forum.virtualmin.com/t/ipv6-setting-gone-on-reboot/132631/3 "2025-03-19T08:28:49Z")

</div>

Hi,

Thanks for looking into this.

_ip a_ gives normal info on both servers, I believe it is indeed in _/etc/network/interfaces_ that you point out.

In interfaces I see:

```auto
auto
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

# Cloud images dynamically generate config fragments for newly
# attached interfaces. See /etc/udev/rules.d/75-cloud-ifupdown.rules
# and /etc/network/cloud-ifupdown-helper. Dynamically generated
# configuration fragments are stored in /run:
source-directory /run/network/interfaces.d

```

And looking in _/etc/network/interfaces.d_ I see the file _50-cloud-init_ which contains on the server where it works fine:

```auto
auto lo
iface lo inet loopback

auto ens6
iface ens6 inet dhcp

iface ens6 inet6 static
        pre-up /sbin/modprobe -q ipv6 ; /bin/true
        address aaaa:2222:222:6666:1::1
        netmask 64

```

but on the ‘problem’ server just:

```auto
auto lo
iface lo inet loopback

auto all
iface all inet dhcp

# control-alias all
iface all inet6 dhcp

```

And at the working server _/run/network/interfaces.d_ is empty and the ‘problem’ server it has the file _ens6_ in it with content:

```auto
auto ens6
allow-hotplug ens6

iface ens6 inet dhcp

iface ens6 inet6 static
        pre-up /sbin/modprobe -q ipv6 ; /bin/true
        address bbbb:3333:111:5555:1::1
        netmask 64

```

Could it be a bug? Did I misconfigure anything? I thought I setup the ipv6 on all servers the same and it has been working (even with reboots) fore quite a while as far as I was aware of.

---

<div class="post-metadata">

**Author:** ![Ilia](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/ilia/32/10185_2.png) [@Ilia](https://forum.virtualmin.com/u/Ilia)\
**Post date:** [March 19, 2025, 3:32pm UTC](https://forum.virtualmin.com/t/ipv6-setting-gone-on-reboot/132631/4 "2025-03-19T15:32:13Z")

</div>

> [@Mikky23](#):
>
> Could it be a bug? Did I misconfigure anything? I thought I setup the ipv6 on all servers the same and it has been working (even with reboots) fore quite a while as far as I was aware of.

@Jamie, I think this is the scenario we discussed. It’s not uncommon to mix _auto_ with _static_ configurations.

@Mikky23 You should switch all interfaces to _static_ configuration—then Webmin will be able to handle it properly, but only with Webmin 2.303 and up.

---

<div class="post-metadata">

**Author:** ![Mikky23](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/mikky23/32/9431_2.png) [@Mikky23](https://forum.virtualmin.com/u/Mikky23)\
**Post date:** [March 19, 2025, 3:47pm UTC](https://forum.virtualmin.com/t/ipv6-setting-gone-on-reboot/132631/5 "2025-03-19T15:47:34Z")

</div>

Hi,

I see. I’ve spotted one difference between the working server and the other one. That is the _all_ record in the _Activated at Boot_ tab. This is only on the server that keeps _forgetting_ the settings.

(I set both ipv4 and ipv6 to static addresses in _ens6_, but on reboot it was back to _From DHCP_ again)

Can I throw the _all_ record out and then set both ipv4 and ipv6 to static addresses on the _ens6_ record?

 ![all](https://cdn.forum.virtualmin.com/uploads/default/original/3X/f/3/f3e158c58aa9d92a67475a479ae23794365dff2d.jpeg)

---

<div class="post-metadata">

**Author:** ![Mikky23](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/mikky23/32/9431_2.png) [@Mikky23](https://forum.virtualmin.com/u/Mikky23)\
**Post date:** [March 20, 2025, 11:44am UTC](https://forum.virtualmin.com/t/ipv6-setting-gone-on-reboot/132631/6 "2025-03-20T11:44:53Z")

</div>

Followup: I did remove the _all_ record. Set both ipv4 and ipv6 to static addresses. Saved and rebooted, but all is gone and back to dynamic DCHP again.

---

<div class="post-metadata">

**Author:** ![Ilia](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/ilia/32/10185_2.png) [@Ilia](https://forum.virtualmin.com/u/Ilia)\
**Post date:** [March 20, 2025, 7:26pm UTC](https://forum.virtualmin.com/t/ipv6-setting-gone-on-reboot/132631/7 "2025-03-20T19:26:21Z")

</div>

> [@Mikky23](#):
>
> Followup: I did remove the _all_ record. Set both ipv4 and ipv6 to static addresses. Saved and rebooted, but all is gone and back to dynamic DCHP again.

If your static IP configuration resets to DHCP after a reboot, the issue is likely due to **cloud-init** overwriting the changes—I recommend asking your cloud provider about this issue.

---

<div class="post-metadata">

**Author:** ![Mikky23](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/mikky23/32/9431_2.png) [@Mikky23](https://forum.virtualmin.com/u/Mikky23)\
**Post date:** [March 21, 2025, 8:55am UTC](https://forum.virtualmin.com/t/ipv6-setting-gone-on-reboot/132631/8 "2025-03-21T08:55:32Z")

</div>

I will see if I can remove/change the cloud-init. It’s a VPS and installed with an Debian 11 image. Maybe they changed the settings in it over time and that’s why the first server is doing fine and the others have this problem. Although… it was working fine before.

---

<div class="post-metadata">

**Author:** ![system](https://cdn.forum.virtualmin.com/uploads/default/original/2X/c/cd96d761e326db4b2bef94886a639109bd7a8e76.svg) [@system](https://forum.virtualmin.com/u/system)\
**Post date:** [May 20, 2025, 8:56am UTC](https://forum.virtualmin.com/t/ipv6-setting-gone-on-reboot/132631/9 "2025-05-20T08:56:02Z")

</div>

Closed on May 20, 2025, 8:56am UTC

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