Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #270847
| From | Felix Miata <mrmazda@stanis.net> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: Debian 11 and IPv4 static IP address |
| Date | 2024-07-05 04:40 +0200 |
| Message-ID | <IWH1D-7KWg-1@gated-at.bofh.it> (permalink) |
| References | <IWGyB-7KGl-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
David Christensen composed on 2024-07-04 19:06 (UTC-0700): > debian-user: > I have built a VirtualBox virtual machine and installed Debian 11 with > SSH server and standard system utilities only. I plan to use the VM to > run the UniFi Network Controller to manage the UniFi equipment on my > SOHO LAN: > root@unifi:~# cat /etc/debian_version ; uname -a > 11.10 > Linux unifi 5.10.0-30-amd64 #1 SMP Debian 5.10.218-1 (2024-06-01) x86_64 > GNU/Linux > 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: > https://wiki.debian.org/NetworkConfiguration#Configuring_the_interface_manually > auto eth0 > iface eth0 inet static > address 192.0.2.7/24 > gateway 192.0.2.254 > The Debian wiki also says: > "Make sure to disable all DHCP services, e.g. dhcpcd." > What is the correct method to "disable all DHCP services"? 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: <https://www.linuxquestions.org/questions/ubuntu-63/netplan-apply-no-longer-setting-static-ip-address-4175738702/#post6512274> I've been using systemd-network static IPs on everything for several years, including Bullseye. -- Evolution as taught in public schools is, like religion, based on faith, not based on science. Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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