PINE64
How to disable DHCP address in Debian - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: ROCKPRO64 (https://forum.pine64.org/forumdisplay.php?fid=98)
+--- Forum: Linux on RockPro64 (https://forum.pine64.org/forumdisplay.php?fid=101)
+--- Thread: How to disable DHCP address in Debian (/showthread.php?tid=6730)



How to disable DHCP address in Debian - olivier - 10-31-2018

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


RE: How to disable DHCP address in Debian - frewind - 11-01-2018

Hi,

I followed this guide which setup netplan.

https://websiteforstudents.com/configure-static-ip-addresses-on-ubuntu-18-04-beta/


RE: How to disable DHCP address in Debian - olivier - 11-02-2018

(11-01-2018, 01:49 PM)frewind Wrote: Hi,

I followed this guide which setup netplan.

https://websiteforstudents.com/configure-static-ip-addresses-on-ubuntu-18-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


RE: How to disable DHCP address in Debian - frewind - 11-03-2018

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