Mater1984
Semiprofi
Thread Starter
- Mitglied seit
- 28.06.2024
- Beiträge
- 172
Hallo zusammen
ich habe bei mir im Netz mehrere Router / WLAN APs installiert.
Auf dem primären Router läuft auf Openwrt 23.05 der DHCP Server.
Da ich immer wieder das Problem von Timeouts mit dem DHCP Server hatte, oder er sich mal aufgehängt hatte, würde ich gern auf einem weiteren Accesspoint einen DHCP als Backup einrichten.
Wenn ich das tue werden aber 95% der Anfragen von diesem beantwortet obwohl der Hauptrouter die Option Authoritative gesetzt hat
Hier die Config des Hauptrouters:
Und des zweiten Routers wo es aktuell jetzt deaktiviert ist:
Ich sehe zwar die Option option maindhcp '0' aber ist das auch die richtige?
Die zweite Frage ist wie stelle ich ein, dass der zweite DHCP Server als Standardgateway und DNS den Hauptrouter angibt. Hier gibt er trotz Einstellung immer seine eigene IP mit.
ich habe bei mir im Netz mehrere Router / WLAN APs installiert.
Auf dem primären Router läuft auf Openwrt 23.05 der DHCP Server.
Da ich immer wieder das Problem von Timeouts mit dem DHCP Server hatte, oder er sich mal aufgehängt hatte, würde ich gern auf einem weiteren Accesspoint einen DHCP als Backup einrichten.
Wenn ich das tue werden aber 95% der Anfragen von diesem beantwortet obwohl der Hauptrouter die Option Authoritative gesetzt hat
Hier die Config des Hauptrouters:
Code:
root@WR1300v3:/etc/config# cat dhcp
config dnsmasq
option domainneeded '1'
option localise_queries '1'
option rebind_protection '0'
option local '/lan/'
option domain 'lan'
option expandhosts '1'
option authoritative '1'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.d/resolv.conf.auto'
option localservice '1'
option ednspacket_max '1232'
option quietdhcp '1'
config dhcp 'wan'
option interface 'wan'
option ignore '1'
option start '100'
option limit '150'
option leasetime '12h'
config odhcpd 'odhcpd'
option maindhcp '0'
option leasefile '/tmp/hosts/odhcpd'
option leasetrigger '/usr/sbin/odhcpd-update'
option loglevel '4'
config dhcp 'test'
option interface 'test'
option start '100'
option limit '100'
option leasetime '12h'
config dhcp 'Smarthome'
option interface 'Smarthome'
option start '100'
option limit '75'
option leasetime '7d'
option force '1'
config dhcp 'kinder'
option interface 'kinder'
option start '100'
option limit '50'
option leasetime '1d'
option force '1'
config dhcp 'Eltern'
option interface 'Eltern'
option start '100'
option limit '50'
option leasetime '1d'
option force '1'
config dhcp 'Mgmt'
option interface 'Mgmt'
option start '20'
option limit '50'
option leasetime '1d'
option force '1'
Und des zweiten Routers wo es aktuell jetzt deaktiviert ist:
Code:
root@WR1300ap:~# cat /etc/config/dhcp
config dnsmasq
option domainneeded '1'
option localise_queries '1'
option rebind_protection '1'
option rebind_localhost '1'
option local '/lan/'
option domain 'lan'
option expandhosts '1'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.d/resolv.conf.auto'
option localservice '1'
option ednspacket_max '1232'
config dhcp 'lan'
option interface 'lan'
option start '100'
option limit '150'
option leasetime '12h'
option dhcpv4 'server'
option ignore '1'
config odhcpd 'odhcpd'
option maindhcp '0'
option leasefile '/tmp/hosts/odhcpd'
option leasetrigger '/usr/sbin/odhcpd-update'
option loglevel '4'
config dhcp 'ALBkinder'
option interface 'ALBkinder'
option start '151'
option limit '50'
option leasetime '1d'
option ignore '1'
config dhcp 'ALBsmart'
option interface 'ALBsmart'
option start '176'
option limit '50'
option leasetime '7d'
option ignore '1'
config dhcp 'Eltern'
option interface 'Eltern'
option start '151'
option limit '50'
option leasetime '1d'
option ignore '1'
config dhcp 'mgmt'
option interface 'mgmt'
option start '151'
option limit '50'
option leasetime '1d'
option ignore '1'
config host
option ip '192.168.140.165'
option mac '48:31:77:AC:80:F4'
config domain
option name 'webserver'
option ip '192.168.130.13'
Ich sehe zwar die Option option maindhcp '0' aber ist das auch die richtige?
Die zweite Frage ist wie stelle ich ein, dass der zweite DHCP Server als Standardgateway und DNS den Hauptrouter angibt. Hier gibt er trotz Einstellung immer seine eigene IP mit.