Latest Pi bookworm with all updates. Using NetworkManager nmcli to do simple stuff I can put in scripts. Now I am stuck at setting the DHCP IP range. How? Where?
There are about 45,000 web pages telling me how to set a static address for a hotspot. Nothing about how to set NetworkManager internal DHCP for the machines connecting to the hotspot.
Some of the machines need static IP addresses for reasons outside of this issue. The rest can have addresses from the DHCP range. But I cannot find how to tell NetworkManager to set the range, either by nmcli or by creating a configuration file, or to translate MAC addresses to IP addresses.
The quickest way appears to be reverting to Bullseye. There are pages on pointing NetworkManager to some other DHCP package but none of the pages are for Raspberry Pi OS Bookworm. If NetworkManager internal DHCP can be replaced by a configurable package maintained by Pi OS, what should I use?
I am happy to set up my scripts to append to config files or to issue nmcli commands.
A major problem with nmcli is the lack of tests to go with the command. I tested an ipv4.band setting in a script but cannot use it because some devices support n while others only bg but network manager does not provide a way to say if n then use n else bg.
There are about 45,000 web pages telling me how to set a static address for a hotspot. Nothing about how to set NetworkManager internal DHCP for the machines connecting to the hotspot.
Some of the machines need static IP addresses for reasons outside of this issue. The rest can have addresses from the DHCP range. But I cannot find how to tell NetworkManager to set the range, either by nmcli or by creating a configuration file, or to translate MAC addresses to IP addresses.
The quickest way appears to be reverting to Bullseye. There are pages on pointing NetworkManager to some other DHCP package but none of the pages are for Raspberry Pi OS Bookworm. If NetworkManager internal DHCP can be replaced by a configurable package maintained by Pi OS, what should I use?
I am happy to set up my scripts to append to config files or to issue nmcli commands.
A major problem with nmcli is the lack of tests to go with the command. I tested an ipv4.band setting in a script but cannot use it because some devices support n while others only bg but network manager does not provide a way to say if n then use n else bg.
Statistics: Posted by peterlite — Thu Jun 27, 2024 7:23 am