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


Groups > linux.debian.user > #270873

Re: Debian 11 and IPv4 static IP address

From Franco Martelli <martellif67@gmail.com>
Newsgroups linux.debian.user
Subject Re: Debian 11 and IPv4 static IP address
Date 2024-07-05 20:50 +0200
Message-ID <IWWal-3u7-1@gated-at.bofh.it> (permalink)
References <IWGyB-7KGl-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 05/07/24 at 04:06, David Christensen wrote:
> The VM currently has a DHCP address.  I would like to set a static IPv4 
> address.  The Debian wiki tells me to edit /etc/network/interfaces and 
> provides some example settings that I believe I can adapt to my use-case:
> 
...
> What is the correct method to "disable all DHCP services"?

You can also keep your virtual machine configured to request an IP 
address from your DHCP server and configure the server to send the IP 
address that you wish.

All you need to know it's the NIC's MAC address of your virtual machine, 
then edit "/etc/dhcp/dhcpd.conf" and add a stanza like the following:

host unifi {
   hardware ethernet 11:22:33:44:55:66;
   fixed-address 192.0.2.7;
}

Cheers
-- 
Franco Martelli

Back to linux.debian.user | Previous | Next — Previous 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