OpenWrt Forum Archive

Topic: DHCP packet received on eth1 which has no address

The content of this topic has been archived on 18 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi all, i have a strange problem with OpenWrt:
Installed on wrt160nl, wan(eth1) over pppoe, lan with dhcp. Everything working fine except this annoying message in syslog:

daemon.warn dnsmasq-dhcp[5945]: DHCP packet received on eth1 which has no address:

etc/config/dhcp:
config 'dnsmasq'
        option 'domainneeded' '1'
        option 'boguspriv' '1'
        option 'filterwin2k' '0'
        option 'localise_queries' '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 'notinterface' 'eth1'

config 'dhcp' 'wan'
        option 'interface' 'wan'
        option 'dynamicdhcp' '0'
        option 'ignore' '1'
Thank you for help

Problem might be the wan setup in /etc/config/network.

Thank you, the problem was in option 'notinterface' 'eth1', it's list 'notinterface' 'eth1', corrected and suppress messages.
Thanks

Running RC1 on TL WR-941 ND v3 still getting this message in system log:

Dec 1 18:25:43 OpenWrt daemon.warn dnsmasq-dhcp[1596]: DHCP packet received on wan which has no address

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'
    list notinterface 'wan'

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

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

config domain

NETWORK

config interface 'loopback'
    option ifname 'lo'
    option proto 'static'
    option ipaddr '127.0.0.1'
    option netmask '255.0.0.0'

config interface 'eth'
    option ifname 'eth0'
    option proto 'none'

config interface 'lan'
    option ifname 'lan1 lan2 lan3 lan4'
    option type 'bridge'
    option proto 'static'
    option ipaddr '192.168.1.1'
    option netmask '255.255.255.0'

config interface 'wan'
    option ifname 'wan'
    option _orig_ifname 'wan'
    option _orig_bridge 'false'
    option proto 'pppoe'
    option username 'xxx'
    option password 'xxx'

I can confirm adding '''except-interface=wan''' to '''/etc/dnsmasq.conf''' solved my problem.

antonimus wrote:

Thank you, the problem was in option 'notinterface' 'eth1', it's list 'notinterface' 'eth1', corrected and suppress messages.
Thanks

Thanks, I added the line "list notinterface    eth1" in etc/config/dhcp>>config dnsmasq  and this error - "OpenWrt daemon.warn dnsmasq-dhcp[8292]: DHCP packet received on eth1 which has no address" stopped.

Thanks, I added the line "list notinterface eth0" no warn daemon.warn dnsmasq-dhcp[1629]: DHCP packet received on eth0 which has no address

Adding
except-interface=wan

to /etc/dnsmasq.conf and restart dnsmasq helped here.

The discussion might have continued from here.