How to disable DHCP address in Debian
#1
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,

Olivier
#2
Hi,

I followed this guide which setup netplan.

https://websiteforstudents.com/configure...8-04-beta/
#3
(11-01-2018, 01:49 PM)frewind Wrote: Hi,

I followed this guide which setup netplan.

https://websiteforstudents.com/configure...8-04-beta/
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.

Olivier
#4
Do you have a

Code:
/etc/dhcpcd.conf

if so

Code:
interface eth0
static ip_address=192.168.1.99/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.1


Possibly Related Threads…
Thread Author Replies Views Last Post
  Vanilla mainline Debian 11 (Bullseye) on the RockPro64 Pete Tandy 22 16,820 08-16-2023, 01:34 AM
Last Post: varac
  How do I enable Pine touchdisplay as display on Debian? Thisone 0 515 04-23-2023, 11:02 PM
Last Post: Thisone
  Is some u-boot required on the SPI for installing debian with the official installer? callegar 1 1,284 10-25-2022, 10:07 AM
Last Post: ratzzupaltuff
  Install Mali 400 Drivers for Debian 11 on RockPro64 MaverickPi 2 2,317 02-19-2022, 06:44 AM
Last Post: sigmaris
  Debian image configured for USB-C OTG? djonathan 2 2,484 01-06-2022, 03:09 AM
Last Post: susy1075
Bug Unreliable display in Armbian and Debian ksattic 3 3,068 11-17-2021, 05:42 AM
Last Post: PakoSt
  Debian Bullseye & RockPro64: No tty consoles? Pete Tandy 9 7,311 11-08-2021, 02:33 PM
Last Post: TRS-80
  HBA Card working on Aufan's builds but not in debian, armbian or dietpi charsi 1 1,820 10-29-2021, 11:15 AM
Last Post: TRS-80
  Two Questions About Debian on RockPro64 publiclewdness 0 1,272 09-30-2021, 11:54 AM
Last Post: publiclewdness
Question Booting official Debian on RP64 arteeh 6 6,199 07-06-2021, 10:16 AM
Last Post: TRS-80

Forum Jump:


Users browsing this thread: 1 Guest(s)