Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4902

Networking and servers • Re: Where/how to set dhcp range in NetworkManager?

$
0
0
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.


{Disclaimer: Not an NM guru. Or NM 'fanboi'. Just another user intrigued by your query...}


Ref: https://networkmanager.dev/docs/api/lat ... nmcli.html
ipv4.method

Sets the IPv4 connection method. You can set one of the following values:

"auto" - Enables automatic IPv4 address assignment from DHCP, PPP, or similar services.

"manual" - Enables the configuration of static IPv4 addresses on the interface. Note that you must set at least one IP address and subnet mask in the "ipv4.addresses" property.

"disabled" - Disables the IPv4 protocol in this connection profile.

"shared" - Provides network access to other computers. If you do not specify an IP address and subnet mask in "ipv4.addresses", NetworkManager assigns 10.42.x.1/24 to the interface. Additionally, NetworkManager starts a DHCP server and DNS forwarder. Hosts that connect to this interface will then receive an IP address from the configured range, and NetworkManager configures NAT to map client addresses to the one of the current default network connection.

"link-local" - Enables link-local addresses according to RFC 3927. NetworkManager assigns a random link-local address from the 169.254.0.0/16 subnet to the interface.

I think that means that in the .nmconnection file for your hotspot connection ( in /etc/NetworkManager/system-connections by default ) you need an appropriate address= setting.


For MAC address mapping there seem to be some associated comments under stable-id and client-id in the same document, but I don't know how to apply them.


Perhaps using Network Manager is a generic issue for that utility, so resources at https://www.networkmanager.dev/community/ might help?

Statistics: Posted by B.Goode — Thu Jun 27, 2024 8:33 am



Viewing all articles
Browse latest Browse all 4902

Trending Articles