Modify

Opened 3 years ago

Last modified 3 years ago

#17642 new defect

Hi-Link HLK-RM04 WIFI dhcp problem

Reported by: yinwz@… Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Barrier Breaker 14.07
Keywords: WIFI DHCP Cc:

Description

Make with default profile and default config, wifi client can not abtain ip.
Then stop dnsmasq, make odhcpd the 'maindhcp', it is OK!

Attachments (0)

Change History (4)

comment:1 Changed 3 years ago by yinwz@…

new discovery:when lan is up, dnsmasq can not servic as dhcp server for wlan.

comment:2 follow-up: Changed 3 years ago by anonymous

#/etc/config/dhcp
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'

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'

#logread | grep dnsmasq

Mon Aug 25 05:44:13 2014 user.notice dnsmasq: found already running DHCP-server on interface 'br-lan' refusing to start, use 'option force 1' to override
Mon Aug 25 05:44:13 2014 daemon.info dnsmasq[1220]: started, version 2.71 cachesize 150
Mon Aug 25 05:44:13 2014 daemon.info dnsmasq[1220]: 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
Mon Aug 25 05:44:13 2014 daemon.info dnsmasq[1220]: using local addresses only for domain lan
Mon Aug 25 05:44:13 2014 daemon.warn dnsmasq[1220]: no servers found in /tmp/resolv.conf.auto, will retry
Mon Aug 25 05:44:13 2014 daemon.info dnsmasq[1220]: read /etc/hosts - 1 addresses
Mon Aug 25 05:44:13 2014 daemon.info dnsmasq[1220]: read /tmp/hosts/dhcp - 0 addresses
Mon Aug 25 05:44:13 2014 daemon.info dnsmasq[1220]: read /tmp/hosts/odhcpd - 0 addresses

comment:3 in reply to: ↑ 2 Changed 3 years ago by bittorf@…

Replying to anonymous:

#logread | grep dnsmasq

Mon Aug 25 05:44:13 2014 user.notice dnsmasq: found already running DHCP-server on interface 'br-lan' refusing to start, use 'option force 1' to override

clear, isn't it?

comment:4 Changed 3 years ago by anonymous

add 'option force 1', everything is ok

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.