This subject drives me crazy. No matter what instructions I follow on the Internet. It only generates problems. I want to configure my eth0 interface for IPv4 and IPv6 for a static IP on Debian Buster.

nano /etc/network/interfaces

Whats inside:

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
        address xxx.xxx.xxx.xxx     # my Public-IP IPv4
        netmask       # my Netmask
        broadcast xxx.xxx.xx.xxx    # my Broadcast
        gateway xxx.xxx.xxx.xxx     # my Internet Gateway
        dns-nameservers  # Using local DNS Resolver, Quad9 as Backup

iface eth0 inet6 static
        address 2a03:xxxx           # my Public-IP IPv4
        netmask 64                  # my Netmask
        gateway fe80::1             # my Internet Gateway
        dns-nameservers ::1 2620:fe::fe   # Using local DNS Resolver, Quad9 as Backup

Performing systemctl restart networking.services results in:

$ systemd[1]: Starting Raise network interfaces...
$ ifup[12031]: Waiting for DAD... Done
$ ifup[12031]: RTNETLINK answers: File exists
$ ifup[12031]: ifup: failed to bring up eth0
$ networking.service: Main process exited, code=exited, status=1/FAILURE
$ systemd[1]: networking.service: Failed with result 'exit-code'.
$ systemd[1]: Failed to start Raise network interfaces.

Any help is appreachiated.

  • You might need to manually remove previous configuration from the interface before running restart. – Tero Kilkanen Jun 30 at 16:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.