Temat: Nie działa dhcp w TP-Link 3600

Witam, po wgraniu najnowszego Luci openwrt 19.07 nie działa dhcp. Zrobiłem restart do ustawień domyślnych i dalej nic.
Oczywiście kiedy ustawiam stałe ip na końcówkach wszystko działa.

Mogę poprosić o jakieś wskazówki ?

2

Odp: Nie działa dhcp w TP-Link 3600

Pokaż
cat /etc/system/dhcp
Pokaż
ps

3

Odp: Nie działa dhcp w TP-Link 3600

I przeczytaj logi. Bo zaraz się okaże że masz drugi serwer dhcp w sieci i po prostu się nie uruchamia z tego powodu.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

4

Odp: Nie działa dhcp w TP-Link 3600

config dnsmasq
    option domainneeded '1'
    option boguspriv '1'
    option filterwin2k '0'
    option localise_queries '1'
    option rebind_protection '1'
    option rebind_localhost '1'
    option local '/lan/'
    option domain 'lan'
    option expandhosts '1'
    option nonegcache '0'
    option authoritative '1'
    option readethers '1'
    option leasefile '/tmp/dhcp.leases'
    option resolvfile '/tmp/resolv.conf.auto'
    option nonwildcard '1'
    option localservice '1'
    list rebind_domain 'free.aero2.net.pl'
    option logqueries '1'

config dhcp 'lan'
    option interface 'lan'
    option start '100'
    option limit '150'
    option leasetime '12h'
    option dhcpv6 'server'
    option ra 'server'

config dhcp 'wan'
    option interface 'wan'
    option ignore '1'

config odhcpd 'odhcpd'
    option maindhcp '0'
    option leasefile '/tmp/hosts/odhcpd'
    option leasetrigger '/usr/sbin/odhcpd-update'
    option loglevel '4'

w logach nic nie zauważyłem

5

Odp: Nie działa dhcp w TP-Link 3600

Uruchomiony masz w ogóle dnsmasq?

zrób  zaraz po starcie routera

logread | grep -i dnsmasq
logread | grep -i dhcp

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

6

Odp: Nie działa dhcp w TP-Link 3600

/etc/config$ logread | grep -i dnsmasq
Fri Jul 17 12:23:15 2020 user.notice dnsmasq: DNS rebinding protection is active, will discard upstream RFC1918 responses!
Fri Jul 17 12:23:15 2020 user.notice dnsmasq: Allowing 127.0.0.0/8 responses
Fri Jul 17 12:23:15 2020 user.notice dnsmasq: Allowing RFC1918 responses for domain free.aero2.net.pl
Fri Jul 17 12:23:16 2020 daemon.info dnsmasq[1498]: started, version 2.80 cachesize 150
Fri Jul 17 12:23:16 2020 daemon.info dnsmasq[1498]: DNS service limited to local subnets
Fri Jul 17 12:23:16 2020 daemon.info dnsmasq[1498]: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-DNSSEC no-ID loop-detect inotify dumpfile
Fri Jul 17 12:23:16 2020 daemon.info dnsmasq[1498]: using local addresses only for domain test
Fri Jul 17 12:23:16 2020 daemon.info dnsmasq[1498]: using local addresses only for domain onion
Fri Jul 17 12:23:16 2020 daemon.info dnsmasq[1498]: using local addresses only for domain localhost
Fri Jul 17 12:23:16 2020 daemon.info dnsmasq[1498]: using local addresses only for domain local
Fri Jul 17 12:23:16 2020 daemon.info dnsmasq[1498]: using local addresses only for domain invalid
Fri Jul 17 12:23:17 2020 daemon.info dnsmasq[1498]: using local addresses only for domain bind
Fri Jul 17 12:23:17 2020 daemon.info dnsmasq[1498]: using local addresses only for domain lan
Fri Jul 17 12:23:17 2020 daemon.warn dnsmasq[1498]: no servers found in /tmp/resolv.conf.auto, will retry
Fri Jul 17 12:23:17 2020 daemon.info dnsmasq[1498]: read /etc/hosts - 4 addresses
Fri Jul 17 12:23:17 2020 daemon.info dnsmasq[1498]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses
Fri Jul 17 12:23:56 2020 daemon.info dnsmasq[1498]: exiting on receipt of SIGTERM
Fri Jul 17 12:23:57 2020 user.notice dnsmasq: DNS rebinding protection is active, will discard upstream RFC1918 responses!
Fri Jul 17 12:23:57 2020 user.notice dnsmasq: Allowing 127.0.0.0/8 responses
Fri Jul 17 12:23:57 2020 user.notice dnsmasq: Allowing RFC1918 responses for domain free.aero2.net.pl
Fri Jul 17 12:24:04 2020 daemon.info dnsmasq[2025]: started, version 2.80 cachesize 150
Fri Jul 17 12:24:04 2020 daemon.info dnsmasq[2025]: DNS service limited to local subnets
Fri Jul 17 12:24:04 2020 daemon.info dnsmasq[2025]: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-DNSSEC no-ID loop-detect inotify dumpfile
Fri Jul 17 12:24:04 2020 daemon.info dnsmasq[2025]: using local addresses only for domain test
Fri Jul 17 12:24:04 2020 daemon.info dnsmasq[2025]: using local addresses only for domain onion
Fri Jul 17 12:24:04 2020 daemon.info dnsmasq[2025]: using local addresses only for domain localhost
Fri Jul 17 12:24:04 2020 daemon.info dnsmasq[2025]: using local addresses only for domain local
Fri Jul 17 12:24:04 2020 daemon.info dnsmasq[2025]: using local addresses only for domain invalid
Fri Jul 17 12:24:04 2020 daemon.info dnsmasq[2025]: using local addresses only for domain bind
Fri Jul 17 12:24:04 2020 daemon.info dnsmasq[2025]: using local addresses only for domain lan
Fri Jul 17 12:24:04 2020 daemon.warn dnsmasq[2025]: no servers found in /tmp/resolv.conf.auto, will retry
Fri Jul 17 12:24:04 2020 daemon.info dnsmasq[2025]: read /etc/hosts - 4 addresses
Fri Jul 17 12:24:04 2020 daemon.info dnsmasq[2025]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses
Fri Jul 17 12:24:04 2020 daemon.info dnsmasq[2025]: read /tmp/hosts/odhcpd - 0 addresses
Fri Jul 17 12:24:04 2020 daemon.info dnsmasq[2025]: read /etc/hosts - 4 addresses
Fri Jul 17 12:24:04 2020 daemon.info dnsmasq[2025]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses
Fri Jul 17 12:24:04 2020 daemon.info dnsmasq[2025]: read /tmp/hosts/odhcpd - 0 addresses
Fri Jul 17 12:24:14 2020 daemon.info dnsmasq[2025]: read /etc/hosts - 4 addresses
Fri Jul 17 12:24:14 2020 daemon.info dnsmasq[2025]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses
Fri Jul 17 12:24:14 2020 daemon.info dnsmasq[2025]: read /tmp/hosts/odhcpd - 1 addresses
/etc/config$ logread | grep -i dhcp
Fri Jul 17 12:23:16 2020 daemon.info dnsmasq[1498]: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-DNSSEC no-ID loop-detect inotify dumpfile
Fri Jul 17 12:23:17 2020 daemon.info dnsmasq[1498]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses
Fri Jul 17 12:24:02 2020 daemon.err odhcpd[1693]: Failed to send to ff02::1%lan@br-lan (Address not available)
Fri Jul 17 12:24:03 2020 daemon.notice netifd: wan (2004): udhcpc: started, v1.30.1
Fri Jul 17 12:24:03 2020 daemon.err odhcpd[1693]: Failed to send to fe80::2db6:912a:1b96:a522%lan@br-lan (Address not available)
Fri Jul 17 12:24:04 2020 daemon.err odhcpd[1693]: Failed to send to ff02::1%lan@br-lan (Address not available)
Fri Jul 17 12:24:04 2020 daemon.err odhcp6c[2007]: Failed to send RS (Address not available)
Fri Jul 17 12:24:04 2020 daemon.info dnsmasq[2025]: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-DNSSEC no-ID loop-detect inotify dumpfile
Fri Jul 17 12:24:04 2020 daemon.info dnsmasq[2025]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses
Fri Jul 17 12:24:04 2020 daemon.info dnsmasq[2025]: read /tmp/hosts/odhcpd - 0 addresses
Fri Jul 17 12:24:04 2020 daemon.info dnsmasq[2025]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses
Fri Jul 17 12:24:04 2020 daemon.info dnsmasq[2025]: read /tmp/hosts/odhcpd - 0 addresses
Fri Jul 17 12:24:04 2020 daemon.notice netifd: wan (2004): udhcpc: sending discover
Fri Jul 17 12:24:04 2020 daemon.err odhcp6c[2007]: Failed to send DHCPV6 message to ff02::1:2 (Address not available)
Fri Jul 17 12:24:07 2020 daemon.notice netifd: wan (2004): udhcpc: sending discover
Fri Jul 17 12:24:10 2020 daemon.notice netifd: wan (2004): udhcpc: sending discover
Fri Jul 17 12:24:11 2020 user.notice ucitrack: Setting up /etc/config/network reload dependency on /etc/config/dhcp
Fri Jul 17 12:24:11 2020 user.notice ucitrack: Setting up /etc/config/dhcp reload dependency on /etc/config/odhcpd
Fri Jul 17 12:24:12 2020 user.notice ucitrack: Setting up /etc/config/system reload dependency on /etc/config/dhcp
Fri Jul 17 12:24:14 2020 daemon.info dnsmasq[2025]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses
Fri Jul 17 12:24:14 2020 daemon.info dnsmasq[2025]: read /tmp/hosts/odhcpd - 1 addresses

7

Odp: Nie działa dhcp w TP-Link 3600

Zrób /etc/init.d/dnsmasq restart i zobacz czy działa.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

8

Odp: Nie działa dhcp w TP-Link 3600

/etc/config$  /etc/init.d/dnsmasq restart
udhcpc: started, v1.30.1
udhcpc: sending discover
udhcpc: no lease, failing

działa ale trzeba ponownie restartować po wyłączeniu routera.
Gdzie mam wpisać żeby uruchamiało się po każdym restarcie routera

9

Odp: Nie działa dhcp w TP-Link 3600

W /etc/rc.local

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

10

Odp: Nie działa dhcp w TP-Link 3600

dzięki za pomoc, wszystko działa