How to disable DHCP address in Debian
I have been pulling off my hairs for more than one day.

I managed to set-up a static IP address in /etc/networks/interface.d/eth0 but Debian insists on setting also a dynamic address.

How can I tell the system that I am a big boy, i know what I am doing and I would really really prefer it does not try to hold my hand, because all it does is having me trip over.

I need to set-up a static IP and only that static IP, because that is the only IP that I can use to access internet. But with the dynamic IP, all connections are initiated using that dynamic IP and the firewall will not let the connection pass through.

As I am using the latest Debian image, it has no GUI, so all I have is command line, and I can't figure out what to do.

Thanks in advance,


I followed this guide which setup netplan.
(11-01-2018, 01:49 PM)frewind Wrote: Hi,

I followed this guide which setup netplan.
Thank you, I had a look, but the minimal Debian kernel does not have netplan installed.

I am in a chicken and egg situation, as I cannot install anything until I have figured out how to configure the network.

In fact, after I flashed Debian anew, I see that I have 2 dynamic IPs associated to eth0.

I tried to remove anything from /etc/network/interface and /etc/netplan and reboot, but I still have two dynamic IPs.

Do you have a


if so

interface eth0
static ip_address=
static routers=
static domain_name_servers=

Possibly Related Threads...
Thread Author Replies Views Last Post
Big Grin Feature Complete Debian Desktop Release Mrfixit2001 153 18,655 02-19-2020, 08:16 AM
Last Post: blackride
  Upgrade Debian kernel on a SD/SATA drive boot combo. linuxha 6 164 12-12-2019, 04:43 AM
Last Post: dukla2000
  Debian, Kodi and the Spotify plugin. Pineapple 1 227 10-14-2019, 10:02 PM
Last Post: SBCraok
Information Update 22.02.2019 Feature-complete Debian build - SDIO WiFi/BT / PCIe / 3D / 2D Luke 100 15,329 10-04-2019, 08:57 PM
Last Post: tuxd3v
  Building a custom kernel on @mrfixit's Debian distro? Tim Jones 1 227 06-14-2019, 11:21 PM
Last Post: tllim
  rockpro64-debian-mrfixit-190531 - reboot? domih 0 166 06-07-2019, 06:58 PM
Last Post: domih
Brick bionic debian on virtualbox Szwarceneger16 0 231 02-17-2019, 07:59 AM
Last Post: Szwarceneger16
  debian image rocksa 2 430 02-08-2019, 09:53 AM
Last Post: rocksa
Question rockpro64: Enable sdio0, disable pcie, on ayufan 4.4.132 ? fosf0r 3 684 12-12-2018, 04:33 PM
Last Post: Luke
  Debian Stretch with GUI snir 1 504 12-02-2018, 04:46 AM
Last Post: evilbunny

Forum Jump:

Users browsing this thread: 2 Guest(s)