Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #270855

Re: Debian 11 and IPv4 static IP address

From jeremy ardley <jeremy.ardley@gmail.com>
Newsgroups linux.debian.user
Subject Re: Debian 11 and IPv4 static IP address
Date 2024-07-05 07:20 +0200
Message-ID <IWJwt-7MER-1@gated-at.bofh.it> (permalink)
References <IWGyB-7KGl-1@gated-at.bofh.it> <IWH1D-7KWg-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw



On 5/7/24 10:30, Felix Miata wrote:
> I think there are more than one. One thing is to check what is enabled, then
> disable or uninstall whatever owns the unit(s):
> 
> 	systemctl list-unit-files | egrep 'net|dhcp'
> 
> Do the same with whatever "manages" /etc/resolv.conf, and create a regular file of
> your own design.
> 
> I don't use VMs, but I did several hours ago instruct several hours ago using
> systemd-network to setup static IP service for a *buntu user who couldn't get
> netplan sorted:

There seems to be some misunderstanding here.

dhcpd services for a vm are provided by the host running the vm. 
Depending on the vm software e.g. KVM/QEMU or VMWare Workstation there 
will be different mechanisms to configure or disable this service to the 
vm client.

However it is not necessary if you configure the vm client using the 
systemd networking client service - as the OP has done.

More relevant is explicitly disabling any competing network clients on 
the vm that may affect things like DNS.

I recommend :

sudo systemctl disable NetworkManager.service
sudo systemctl stop NetworkManager.service
sudo systemctl mask NetworkManager.service

sudo systemctl disable systemd-networkd
sudo systemctl stop systemd-networkd
sudo systemctl mask systemd-networkd

I reiterate that if DNS resolution is needed it needs to be set in 
/etc/hosts and/or in /etc/resolv.conf

(I also use systemd-networkd in preference to the other two types of 
client networking)

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Debian 11 and IPv4 static IP address David Christensen <dpchrist@holgerdanske.com> - 2024-07-05 04:10 +0200
  Re: Debian 11 and IPv4 static IP address Felix Miata <mrmazda@stanis.net> - 2024-07-05 04:40 +0200
    Re: Debian 11 and IPv4 static IP address David Christensen <dpchrist@holgerdanske.com> - 2024-07-05 05:40 +0200
      Re: Debian 11 and IPv4 static IP address Felix Miata <mrmazda@stanis.net> - 2024-07-05 06:10 +0200
        Re: Debian 11 and IPv4 static IP address David Christensen <dpchrist@holgerdanske.com> - 2024-07-06 03:20 +0200
          Re: Debian 11 and IPv4 static IP address Max Nikulin <manikulin@gmail.com> - 2024-07-06 04:10 +0200
            Re: Debian 11 and IPv4 static IP address David Christensen <dpchrist@holgerdanske.com> - 2024-07-06 07:00 +0200
              Re: Debian 11 and IPv4 static IP address jeremy ardley <jeremy.ardley@gmail.com> - 2024-07-06 09:30 +0200
              Re: Debian 11 and IPv4 static IP address Detlef Vollmann <dv@vollmann.ch> - 2024-07-06 12:50 +0200
                Re: Debian 11 and IPv4 static IP address Marc SCHAEFER <schaefer@alphanet.ch> - 2024-07-06 17:20 +0200
              Re: Debian 11 and IPv4 static IP address Greg Wooledge <greg@wooledge.org> - 2024-07-06 16:10 +0200
            Re: Debian 11 and IPv4 static IP address Detlef Vollmann <dv@vollmann.ch> - 2024-07-06 12:30 +0200
          Re: Debian 11 and IPv4 static IP address George at Clug <Clug@goproject.info> - 2024-07-06 06:20 +0200
          Re: Debian 11 and IPv4 static IP address jeremy ardley <jeremy.ardley@gmail.com> - 2024-07-06 06:40 +0200
            Re: Debian 11 and IPv4 static IP address Detlef Vollmann <dv@vollmann.ch> - 2024-07-06 12:40 +0200
    Re: Debian 11 and IPv4 static IP address jeremy ardley <jeremy.ardley@gmail.com> - 2024-07-05 07:20 +0200
      Re: Debian 11 and IPv4 static IP address jeremy ardley <jeremy.ardley@gmail.com> - 2024-07-05 07:30 +0200
  Re: Debian 11 and IPv4 static IP address jeremy ardley <jeremy.ardley@gmail.com> - 2024-07-05 06:20 +0200
  Re: Debian 11 and IPv4 static IP address Franco Martelli <martellif67@gmail.com> - 2024-07-05 20:50 +0200

csiph-web