commit 4a71079223ad000be31cb95e80096d1a928b5d49 parent 274032a0138e029e643abfbff034cd1769691c32 Author: pyratebeard <firstname.lastname@example.org> Date: Sun, 5 Feb 2023 23:35:35 +0000 masq_of_the_dhcphantasm Diffstat:
1 file changed, 3 insertions(+), 7 deletions(-)
diff --git a/entry/masq_of_the_dhcphantasm.md b/entry/masq_of_the_dhcphantasm.md @@ -42,15 +42,11 @@ port=0 dhcp-range=192.168.1.10,192.168.1.12,8h ``` -Before starting `dnsmasq` it is a good idea to validate the configuration +I didn't need to set a netmask as I am putting the DHCP server (my laptop) in the same range. Before starting `dnsmasq` it is a good idea to validate the configuration ``` dnsmasq --test ``` -* before starting dnsmasq configured static ip for laptop in the same range (192.168.1.1) +After starting the `dnsmasq` service I could plug my network device into the router and monitor for any assigned IPs in the file /var/lib/misc/dnsmasq.leases. -After restarting the `dnsmasq` service I could check any leases in the file /var/lib/misc/dnsmasq.leases. - -* plugged into switch (wan port?) -* plugged network device into switch -* monitor dnsmasq.leases for ip +There is much more you can do with `dnsmasq` if you want to use it for DHCP properly, but this shows how quick it can be to run it on a LAN or lab environment.