webmin
webmin copied to clipboard
No network interfaces shown on Pi OS 11 (Debian Bullseye)?
No network interfaces shown on Pi OS 11 (Debian Bullseye)? Does WebMin rely on /etc/network/interfaces file? If so, than any Debian 11 based distribution that has moved to using the dhcpcd service for dhcp IP Address and ethernet interface configuration specifics will not how network configuration in webmin correctly. Default configuration for most Debian 11 based distributions is now defaulting to dhcpcd service use. Webmin is blind to this apparently?
Webmin will use /etc/network/interfaces if it exists, or files in /etc/netplan otherwise.
Do you have either of those on Debian 11?
No, not by default. So webmin shows active interfaces, but no interfaces as configured for startup, which is not true, if dhcpcd is active and that is the default for debian 11 (Pi OS 11 for example). Debian has been moving to using dhcpcd service as core since 9, and standard in 10, now 11.
So on Debian 11, in which file would you configure a static IP address in? I assume that there's some config in which you specify that you want to use DHCP for an interface?
Look at the DHCPCD service manual information. You can configure either DHCP or static under DHCPCD, as well as a failback to static if DHCP fails. I could post examples, but figure you will want to review the detailed information yourself. I would suggest you check for DHCPCD (/etc/dhcpcd.conf) file as well as for interfaces or even files in interfaces.d, and netplan file, and resolve what is defined where. For example, I have one WiFi adapter under DHCPCD, and two ethernet NICs under a BOND, the BOND is in a configuration file under /etc/network/interfaces.d, i.e. bond0. So the use of DHCPCD can be exclusive or inclusive to other networking configurations.
DHCPCD controls the assignment of addresses to other machines - what I was wondering is how on Debian 11 you select to use DHCP on an interface. But it sounds like this is set in files under /etc/network/interfaces.d ?
"DHCP is NOT DHCPCD... note the difference. DHCPCD is a local service that provides reference to DEFINED INTERFACES, which maybe use DHCP based, STATIC or BOTH when a failback configuration is used. Please DO NOT confuse DHCP with DHCPCD. This is why I suggested reviewing the documentation of DHCPCD. When you use DHCPCD... you DO NOT need to leverage interfaces or even inferfaces.d at all. DHCP of course is a service that provides dynamic/pool if IP addresses to a given subnet.
Webmin does not show any interfaces configured for startup when 'interfaces' or 'interfaces.d' or 'netplan' is not used for configuration of interfaces at startup. There another (new) source for network configuration information, i.e. /etc/dhcpcd.conf, for the DHCPCD service, It is misleading to not show defined (at start) networking information in the webmin UI, because it currently ignores how the DHCPCD service configuration, which in fact can quality the start up configuration of interfaces/adapters, no?
Ok, I'm going to have to do some more testing on Debian 11 and get back to you ..