pyratelog

personal blog
git clone git://git.pyratebeard.net/pyratelog.git
Log | Files | Refs | README

commit 2e14a7e807b1d2b4488bd1fee09507821f35aa3c
parent 2044f5e29f64ad7aa1f94cd4fb8ba58af3eb4254
Author: pyratebeard <root@pyratebeard.net>
Date:   Sat,  4 Feb 2023 13:57:52 +0000

masq_of_the_dhcphantasm

Diffstat:
Mentry/masq_of_the_dhcphantasm.md | 12+++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/entry/masq_of_the_dhcphantasm.md b/entry/masq_of_the_dhcphantasm.md @@ -4,7 +4,7 @@ To setup the DHCP server I made sure the `dnsmasq` package was installed on one The configuration file is usually /etc/dnsmasq.conf, or you can drop your own config files into /etc/dnsmasq.d/ (ensure you uncomment the include line in /etc/dnsmasq.conf). -My setup was very simple so I added my setup to the normal config file +My setup was very simple ``` # specify ethernet device to operate on interface=enp5s0 @@ -13,7 +13,7 @@ interface=enp5s0 port=0 # configure dhcp range and lease time -dhcp-range=192.168.0.10,192.168.0.12,255.255.255.0,8h +dhcp-range=192.168.1.10,192.168.1.12,8h ``` To validate any configuration incant @@ -21,4 +21,10 @@ To validate any configuration incant dnsmasq --test ``` -After restarting the `dnsmasq` service I could check any leases under /var/lib/misc/dnsmasq.leases. +* before starting dnsmasq configured static ip for laptop in the same range (192.168.1.1) + +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