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
  Reply
#2
Hi,

I followed this guide which setup netplan.

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


Possibly Related Threads...
Thread Author Replies Views Last Post
  Upgrade Debian kernel on a SD/SATA drive boot combo. linuxha 2 52 12-03-2019, 10:11 PM
Last Post: linuxha
  Debian, Kodi and the Spotify plugin. Pineapple 1 174 10-14-2019, 10:02 PM
Last Post: SBCraok
Big Grin Feature Complete Debian Desktop Release Mrfixit2001 152 17,298 10-09-2019, 05:42 PM
Last Post: bcnaz
Information Update 22.02.2019 Feature-complete Debian build - SDIO WiFi/BT / PCIe / 3D / 2D Luke 100 14,391 10-04-2019, 08:57 PM
Last Post: tuxd3v
  Building a custom kernel on @mrfixit's Debian distro? Tim Jones 1 201 06-14-2019, 11:21 PM
Last Post: tllim
  rockpro64-debian-mrfixit-190531 - reboot? domih 0 142 06-07-2019, 06:58 PM
Last Post: domih
Brick bionic debian on virtualbox Szwarceneger16 0 195 02-17-2019, 07:59 AM
Last Post: Szwarceneger16
  debian image rocksa 2 394 02-08-2019, 09:53 AM
Last Post: rocksa
Question rockpro64: Enable sdio0, disable pcie, on ayufan 4.4.132 ? fosf0r 3 632 12-12-2018, 04:33 PM
Last Post: Luke
  Debian Stretch with GUI snir 1 474 12-02-2018, 04:46 AM
Last Post: evilbunny

Forum Jump:


Users browsing this thread: 1 Guest(s)