en:bpi-r2:network:dnsmasq
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:bpi-r2:network:dnsmasq [2019/01/09 18:04] – external edit 127.0.0.1 | en:bpi-r2:network:dnsmasq [2023/06/08 17:06] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== DNSMASQ ====== | ||
+ | |||
+ | ===== activate config-folder ===== | ||
+ | |||
+ | before own config-files in / | ||
+ | |||
+ | conf-dir=/ | ||
+ | |||
+ | ===== Interfaces ===== | ||
+ | |||
+ | The Interface-config is separated in my setup to / | ||
+ | |||
+ | which Interfaces should respond to DHCP-Requests (binding)? | ||
+ | |||
+ | interface=lan0 | ||
+ | interface=wlan1 | ||
+ | # | ||
+ | interface=lxcbr0 | ||
+ | interface=ap0 | ||
+ | |||
+ | which interfaces send no DHCP-answer? | ||
+ | |||
+ | no-dhcp-interface=eth0 | ||
+ | no-dhcp-interface=eth1 | ||
+ | |||
+ | the settings for DHCP: | ||
+ | |||
+ | dhcp-range=lan0, | ||
+ | dhcp-option=lan0, | ||
+ | dhcp-range=ap0, | ||
+ | dhcp-option=ap0, | ||
+ | dhcp-range=wlan1, | ||
+ | dhcp-option=wlan1, | ||
+ | dhcp-range=lxcbr0, | ||
+ | dhcp-option=lxcbr0, | ||
+ | |||
+ | dhcp-range=interface, | ||
+ | dhcp-option=interface, | ||
+ | |||
+ | Per client dns setting: | ||
+ | |||
+ | Add set option to host between mac and ip (after name) | ||
+ | |||
+ | set: | ||
+ | |||
+ | And set dns-servers for that name | ||
+ | |||
+ | | ||
+ | |||
+ | https:// | ||
+ | ===== static IP for MAC ===== | ||
+ | |||
+ | DNSMASQ can answer a DHCP-Request from a specific MAC-address always with same IP-address. For that i have also created a separate config-file (/ | ||
+ | |||
+ | an Entry for that looks like this: | ||
+ | |||
+ | dhcp-host=b8: | ||
+ | |||
+ | MAC-Address of the Client, a name, the desired IP-Address and last param is the Lease-time (how long lasts the DHCP-answer => renew of IP needed) | ||
+ | |||
+ | on wifi i have the problem, that i have 2 WIFI-APs (with different IPv4-Subnet) running on R2 and on both the same MAC-addresses can send a query. here the entry can contain the interface: | ||
+ | |||
+ | dhcp-host=ap0, | ||
+ | dhcp-host=wlan1, | ||
+ | | ||
+ | | ||
+ | ===== dhcp-cache ===== | ||
+ | |||
+ | # service dnsmasq stop | ||
+ | Stopping DNS forwarder and DHCP server: dnsmasq. | ||
+ | # nano / | ||
+ | # service dnsmasq start | ||
+ | Starting DNS forwarder and DHCP server: dnsmasq. | ||
en/bpi-r2/network/dnsmasq.txt · Last modified: 2023/06/08 17:06 by 127.0.0.1