Skip to content

Static IP configured through NextcloudPi and the OS reverted to DHCP after reboot #2150

Open

Description

@vagnretur

Bug description
Static IP configured through NextcloudPi and the OS reverted to DHCP after reboot.

Root cause
The Netplan rule in /etc/netplan/10-dhcp-all-interfaces.yaml matched end0 via name: "e*".
Using Armbian 26.8.3 with Netplan and systemd-networkd, and the wildcard DHCP rule name: "e*" was matching end0, overriding the intended static IP configuration.

Workaround
Changing the match pattern to name: "eth*" resolved the issue while leaving the end0 static configuration intact.

network:
  version: 2
  renderer: networkd
  ethernets:
    all-eth-interfaces:
      match:
        name: "eth*"
      dhcp4: yes
      dhcp6: yes
      ipv6-privacy: yes # Enabled by default on most current systems, but networkd currently doesn>
    all-lan-interfaces: # include interfaces that are renamed to 'lanX' by udev, e.g. nanopi-r2s
      match:
        name: "lan[0-9]*"
      dhcp4: yes
      dhcp6: yes
      ipv6-privacy: yes # Enabled by default on most current systems, but networkd currently doesn>
    all-wan-interfaces: # include interfaces that are renamed to 'wanX' by udev, e.g. nanopi-r1
      match:
        name: "wan[0-9]*"
      dhcp4: yes
      dhcp6: yes
      ipv6-privacy: yes 

System information

Raspberry Pi 4
NextcloudPi v1.58.0
Armbian 26.8.3 bookworm. 6.18.44-current-bcm2711 (aarch64)
Nextcloud v33.0.10.1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions