Using NetworkManager "Shared to Other Computers" - how to skip some static IP addresses?
by IsaacKuo from LinuxQuestions.org on (#6HMSD)
My situation:
I want to replace my complex hard to set up router at 192.168.1.1 with a simpler computer using NetworkManager "Shared to Other Computers".
For most dhcp client machines, it's okay for them to have dynamically assigned IP addresses from, say, 192.168.1.2 to 192.168.1.255
HOWEVER, I have a file server which must use the IP address 192.168.1.32.
My problem:
I do NOT want NetworkManager to assign 192.168.1.32 to some dhcp client. I'd like to accomplish this by, say, restricting the range of dynamically assigned IP addresses to, say, 192.168.1.128 ... 192.168.1.255. The precise range is not important to me. I just need it to skip 192.168.1.32
My questions:
1) Am I worrying for nothing? Is NetworkManager or dnsmasq smart enough to know there's already an active 192.168.1.32 out there and to skip it?
2) Could I maybe do a simple hack like putting an option file in /etc/NetworkManager/dnsmasq-shared.d defining an "option" of an NTP server with address 192.168.1.32? Is dnsmasq smart/dumb enough to avoid dynamic assignment to an IP address specified in a server option?
3) Is there some place with a list of DHCP clients, where I could add a fake entry for 192.168.1.32?
4) Is there some other solution I'm missing?
Thanks!
I want to replace my complex hard to set up router at 192.168.1.1 with a simpler computer using NetworkManager "Shared to Other Computers".
For most dhcp client machines, it's okay for them to have dynamically assigned IP addresses from, say, 192.168.1.2 to 192.168.1.255
HOWEVER, I have a file server which must use the IP address 192.168.1.32.
My problem:
I do NOT want NetworkManager to assign 192.168.1.32 to some dhcp client. I'd like to accomplish this by, say, restricting the range of dynamically assigned IP addresses to, say, 192.168.1.128 ... 192.168.1.255. The precise range is not important to me. I just need it to skip 192.168.1.32
My questions:
1) Am I worrying for nothing? Is NetworkManager or dnsmasq smart enough to know there's already an active 192.168.1.32 out there and to skip it?
2) Could I maybe do a simple hack like putting an option file in /etc/NetworkManager/dnsmasq-shared.d defining an "option" of an NTP server with address 192.168.1.32? Is dnsmasq smart/dumb enough to avoid dynamic assignment to an IP address specified in a server option?
3) Is there some place with a list of DHCP clients, where I could add a fake entry for 192.168.1.32?
4) Is there some other solution I'm missing?
Thanks!