Hi Guys,
on syslog i have a lot of this line
Thu Jul 10 10:35:07 2023 daemon.warn dnsmasq-dhcp[1]: DHCP packet received on eth1 which has no address
adding the line except-interface=wan
on /etc/dnsmasq.conf has not helped .
Wan interface=PPPOE
Any suggestion? Thank you so much!
Please copy the output of the following commands and post it here using the "Preformatted text </>
" button:
Remember to redact passwords, MAC addresses and any public IP addresses you may have:
cat /etc/config/network
cat /etc/config/dhcp
1 Like
/etc/dnsmasq.conf
does not work with logical interface names.
Use /etc/config/dhcp
instead
uci add_list dhcp.@dnsmasq[0].notinterface='wan'
uci commit dhcp
service dnsmasq restart
2 Likes
root@wrtvtech:~# uci add_list dhcp.@dnsmasq[0].notinterface='wan'
root@wrtvtech:~# uci commit dhcp
root@wrtvtech:~# service dnsmasq restart
udhcpc: started, v1.35.0
udhcpc: broadcasting discover
udhcpc: no lease, failing
and the warnings persist . thank you
config device
option name 'br-lan'
option type 'bridge'
list ports 'eth0'
option ipv6 '0'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr 'xxx.xx.1.1'
option netmask '255.255.255.0'
option ip6assign '60'
option delegate '0'
config interface 'wan'
option proto 'pppoe'
option username 'xxxxxxxxxx'
option password 'xxxxxxxxxx'
option device 'eth1'
option ipv6 '0'
option peerdns '0'
list dns 'xxx.xxx.xxx.xxx'
list dns 'xxx.xx.xx.xx'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '1 2 3 4 0'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '5 0'
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 authoritative '1'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option localservice '1'
option ednspacket_max '1232'
option confdir '/tmp/dnsmasq.d'
option doh_backup_noresolv '-1'
option noresolv '1'
list doh_backup_server '/mask.icloud.com/'
list doh_backup_server '/mask-h2.icloud.com/'
list doh_backup_server '/use-application-dns.net/'
list doh_backup_server '127.0.0.1#5054'
list doh_backup_server '127.0.0.1#5053'
list server '127.0.0.1#5054'
list server '127.0.0.1#5053'
config dhcp 'lan'
option interface 'lan'
option start '10'
option limit '50'
option leasetime '72h'
option dhcpv4 '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'
config host
option name 'MacPro'
option dns '1'
option mac 'xx:xx:xx:xx:xx:x'
option ip '192.168.1.117'
option leasetime '24h'
config host
option name 'Zang4'
option dns '1'
option mac '10:F0:05:C3:AF:C3'
option ip '192.168.1.115'
option leasetime '24h'
There is no list notinterface 'wan'
in the dnsmasq section.
Try excluding the interface using LuCI->Network->DHCP and DNS->General Settings->Exclude interfaces.
If you run cat /tmp/etc/dnsmasq.conf* | grep except-interface
,
you should see except-interface=pppoe-wan
.
Hello,
already excluded! see below,not modified nothing and :
Confirmed by running command cat /tmp/etc/dnsmasq.conf* | grep except-interface
i receive except-interface=pppoe-wan
If this is not critical, there is no problem to ignore it but i want to be sure is this.
In my experience, this workaround always works.
I have no explanation why it doesn't work for you.
Not critical at all, just annoying...
EDIT:
Final suggestion:
Try specifying eth1
explicitly to see if it makes a difference.
echo "except-interface=eth1" >> /etc/dnsmasq.conf
service dnsmasq restart
trendy
July 15, 2023, 6:25am
9
Since you are using pppoe, you could disable the firewall rule which allows the dhcp replies in the wan zone. Maybe this is the cause for these logs.
1 Like
Hello, seem has worked now!