v***@iptrans.net
2018-01-25 15:55:18 UTC
Good day
I have a DHCP-router based on dnsmasq with interface eth2 and networks
192.168.100.1/24 192.168.100.2.1/24 10.0.0.1/27 on this interface. There
are computers-dhcp-clients on this network which have to get IP based on
their MAC-addresses. And if file /etc/dnsmasq.conf doesn't contain line
with corresponding MAC (option dhcp-host) then this computer doesn't get
an IP via my DHCP-router.
But.
In /etc/dnsmasq.conf:
# Uncomment this to enable the integrated DHCP server, you need
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# to supply the range of addresses available for lease and optionally
# a lease time. If you have more than one network, you will need to
# repeat this for each network on which you want to supply DHCP
# service.
# dhcp-range=192.168.0.50,192.168.0.150,12h
And if I uncomment "# dhcp-range" then I'll have computer-dhcp-client
which will get a ip address without corresponding MAC in
/etc/dnsmasq.conf.
I have a DHCP-router based on dnsmasq with interface eth2 and networks
192.168.100.1/24 192.168.100.2.1/24 10.0.0.1/27 on this interface. There
are computers-dhcp-clients on this network which have to get IP based on
their MAC-addresses. And if file /etc/dnsmasq.conf doesn't contain line
with corresponding MAC (option dhcp-host) then this computer doesn't get
an IP via my DHCP-router.
But.
In /etc/dnsmasq.conf:
# Uncomment this to enable the integrated DHCP server, you need
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# to supply the range of addresses available for lease and optionally
# a lease time. If you have more than one network, you will need to
# repeat this for each network on which you want to supply DHCP
# service.
# dhcp-range=192.168.0.50,192.168.0.150,12h
And if I uncomment "# dhcp-range" then I'll have computer-dhcp-client
which will get a ip address without corresponding MAC in
/etc/dnsmasq.conf.