Quick bit of advice regarding IPv6

logread -e odhcpd; netstat -l -n -p | grep -e odhcpd; pgrep -f -a odhcpd
1 Like
BusyBox v1.31.1 () built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r14256-a69949a13f
 -----------------------------------------------------
root@OpenWrt:~# logread -e odhcpd; netstat -l -n -p | grep -e odhcpd; pgrep -f -a odhcpd
1291 /usr/sbin/odhcpd
root@OpenWrt:~#
1 Like
uci show dhcp
1 Like
root@OpenWrt:~# uci show dhcp
dhcp.@dnsmasq[0]=dnsmasq
dhcp.@dnsmasq[0].domainneeded='1'
dhcp.@dnsmasq[0].boguspriv='1'
dhcp.@dnsmasq[0].filterwin2k='0'
dhcp.@dnsmasq[0].localise_queries='1'
dhcp.@dnsmasq[0].rebind_protection='1'
dhcp.@dnsmasq[0].rebind_localhost='1'
dhcp.@dnsmasq[0].local='/lan/'
dhcp.@dnsmasq[0].domain='lan'
dhcp.@dnsmasq[0].expandhosts='1'
dhcp.@dnsmasq[0].nonegcache='0'
dhcp.@dnsmasq[0].authoritative='1'
dhcp.@dnsmasq[0].readethers='1'
dhcp.@dnsmasq[0].leasefile='/tmp/dhcp.leases'
dhcp.@dnsmasq[0].resolvfile='/tmp/resolv.conf.d/resolv.conf.auto'
dhcp.@dnsmasq[0].nonwildcard='1'
dhcp.@dnsmasq[0].localservice='1'
dhcp.@dnsmasq[0].noresolv='1'
dhcp.@dnsmasq[0].doh_backup_noresolv='-1'
dhcp.@dnsmasq[0].server='127.0.0.1#5053' '127.0.0.1#5054'
dhcp.@dnsmasq[0].doh_backup_server='127.0.0.1#5053' '127.0.0.1#5054'
dhcp.lan=dhcp
dhcp.lan.interface='lan'
dhcp.lan.start='100'
dhcp.lan.limit='150'
dhcp.lan.leasetime='12h'
dhcp.lan.dhcpv6='server'
dhcp.lan.ra='server'
dhcp.lan.ra_slaac='1'
dhcp.lan.ra_flags='managed-config' 'other-config'
dhcp.lan.ra_management='1'
dhcp.lan.dhcp_option='6,192.168.1.3,192.168.1.3' '6, 192.168.1.3, 192.168.1.3'
dhcp.lan.dns='192.168.1.3' '6,192.168.1.3,192.168.1.3' '6, 192.168.1.3, 192.168.1.3'dhcp.wan=dhcp
dhcp.wan.interface='wan'
dhcp.wan.ignore='1'
dhcp.odhcpd=odhcpd
dhcp.odhcpd.maindhcp='0'
dhcp.odhcpd.leasefile='/tmp/hosts/odhcpd'
dhcp.odhcpd.leasetrigger='/usr/sbin/odhcpd-update'
dhcp.odhcpd.loglevel='4'
dhcp.@host[0]=host
dhcp.@host[0].name='Network-Switch'
dhcp.@host[0].dns='1'
dhcp.@host[0].mac='CC:32:E5:92:5A:CD'
dhcp.@host[0].ip='192.168.1.2'
dhcp.@host[1]=host
dhcp.@host[1].name='Pi-Hole'
dhcp.@host[1].dns='1'
dhcp.@host[1].mac='DC:A6:32:AF:77:F7'
dhcp.@host[1].ip='192.168.1.3'
dhcp.@host[2]=host
dhcp.@host[2].name='Wifi-Disc-1'
dhcp.@host[2].dns='1'
dhcp.@host[2].mac='48:8D:36:9F:38:E2'
dhcp.@host[2].ip='192.168.1.4'
dhcp.@host[3]=host
dhcp.@host[3].name='Wifi-Disc-2'
dhcp.@host[3].dns='1'
dhcp.@host[3].mac='48:8D:36:4A:9E:3D'
dhcp.@host[3].ip='192.168.1.5'
dhcp.@host[4]=host
dhcp.@host[4].name='Wifi-Disc-3'
dhcp.@host[4].dns='1'
dhcp.@host[4].mac='48:8D:36:4A:8E:0D'
dhcp.@host[4].ip='192.168.1.6'
dhcp.@host[5]=host
dhcp.@host[5].name='Wifi-Disc-4'
dhcp.@host[5].dns='1'
dhcp.@host[5].mac='48:8D:36:4A:80:A1'
dhcp.@host[5].ip='192.168.1.7'
dhcp.@host[6]=host
dhcp.@host[6].name='Wifi-Disc-5'
dhcp.@host[6].dns='1'
dhcp.@host[6].mac='94:6A:B0:63:F5:80'
dhcp.@host[6].ip='192.168.1.8'
dhcp.@host[7]=host
dhcp.@host[7].name='Wifi-Disc-6'
dhcp.@host[7].dns='1'
dhcp.@host[7].mac='94:6A:B0:64:05:78'
dhcp.@host[7].ip='192.168.1.9'
dhcp.@host[8]=host
dhcp.@host[8].name='Shield-TV'
dhcp.@host[8].dns='1'
dhcp.@host[8].mac='00:04:4B:F5:39:8D'
dhcp.@host[8].ip='192.168.1.10'
dhcp.@host[9]=host
dhcp.@host[9].name='Kids-Vero4k'
dhcp.@host[9].dns='1'
dhcp.@host[9].mac='C4:4E:AC:10:B3:8B'
dhcp.@host[9].ip='192.168.1.11'
dhcp.@host[10]=host
dhcp.@host[10].name='Alicias-Vero4K'
dhcp.@host[10].dns='1'
dhcp.@host[10].mac='C4:4E:AC:10:A7:9E'
dhcp.@host[10].ip='192.168.1.12'
dhcp.@host[11]=host
dhcp.@host[11].name='Sony-PS4-Pro'
dhcp.@host[11].dns='1'
dhcp.@host[11].mac='F8:46:1C:D4:A6:97'
dhcp.@host[11].ip='192.168.1.13'
dhcp.@host[11].duid='00030001f8461cd4a697'
dhcp.@host[12]=host
dhcp.@host[12].name='Toms-Phone'
dhcp.@host[12].dns='1'
dhcp.@host[12].mac='40:4E:36:20:F0:61'
dhcp.@host[12].ip='192.168.1.14'
dhcp.@host[13]=host
dhcp.@host[13].name='Laylas-Phone'
dhcp.@host[13].dns='1'
dhcp.@host[13].mac='C0:EE:FB:CD:C6:33'
dhcp.@host[13].ip='192.168.1.15'
dhcp.@host[14]=host
dhcp.@host[14].name='Alicias-Phone'
dhcp.@host[14].dns='1'
dhcp.@host[14].mac='90:2B:D2:B1:BD:1C'
dhcp.@host[14].ip='192.168.1.16'
dhcp.@host[15]=host
dhcp.@host[15].name='Lilys-Phone'
dhcp.@host[15].dns='1'
dhcp.@host[15].mac='90:2B:D2:B1:BF:D7'
dhcp.@host[15].ip='192.168.1.17'
dhcp.@host[16]=host
dhcp.@host[16].name='Evalyns-Phone'
dhcp.@host[16].dns='1'
dhcp.@host[16].mac='90:2B:D2:B1:BE:68'
dhcp.@host[16].ip='192.168.1.18'
dhcp.@host[17]=host
dhcp.@host[17].name='Livingroom-TV'
dhcp.@host[17].dns='1'
dhcp.@host[17].ip='192.168.1.19'
dhcp.@host[17].mac='50:56:BF:7E:97:4B'
dhcp.@host[18]=host
dhcp.@host[18].name='Kids-TV'
dhcp.@host[18].dns='1'
dhcp.@host[18].mac='78:BD:BC:F9:6D:F0'
dhcp.@host[18].ip='192.168.1.20'
dhcp.@host[19]=host
dhcp.@host[19].name='WD-My-Cloud'
dhcp.@host[19].dns='1'
dhcp.@host[19].mac='00:90:A9:EA:89:78'
dhcp.@host[19].ip='192.168.1.21'
dhcp.@host[20]=host
dhcp.@host[20].name='Livingroom-Sonos-Play1'
dhcp.@host[20].dns='1'
dhcp.@host[20].mac='B8:E9:37:B8:16:E6'
dhcp.@host[20].ip='192.168.1.22'
dhcp.@host[21]=host
dhcp.@host[21].name='Alicias-Sonos-Play1'
dhcp.@host[21].dns='1'
dhcp.@host[21].mac='5C:AA:FD:C4:7D:60'
dhcp.@host[21].ip='192.168.1.23'
dhcp.@host[22]=host
dhcp.@host[22].name='Kids-Xbox360e'
dhcp.@host[22].dns='1'
dhcp.@host[22].mac='30:59:B7:23:DD:B9'
dhcp.@host[22].ip='192.168.1.24'
dhcp.@host[23]=host
dhcp.@host[23].name='HP-Envy-5540'
dhcp.@host[23].dns='1'
dhcp.@host[23].mac='FC:3F:DB:67:B9:8F'
dhcp.@host[23].ip='192.168.1.25'
dhcp.@host[24]=host
dhcp.@host[24].name='Purple-HP-Laptop-Wifi'
dhcp.@host[24].dns='1'
dhcp.@host[24].mac='FC:F8:AE:4B:79:81'
dhcp.@host[24].ip='192.168.1.26'
dhcp.@host[25]=host
dhcp.@host[25].name='Purple-HP-Laptop-Eth'
dhcp.@host[25].dns='1'
dhcp.@host[25].ip='192.168.1.27'
dhcp.@host[26]=host
dhcp.@host[26].name='Google-Pixelbook-Go'
dhcp.@host[26].dns='1'
dhcp.@host[26].mac='84:C5:A6:30:33:60'
dhcp.@host[26].ip='192.168.1.28'
dhcp.@host[27]=host
dhcp.@host[27].name='Blue-HP-Laptop-Wifi'
dhcp.@host[27].dns='1'
dhcp.@host[27].mac='48:E2:44:CD:A1:CF'
dhcp.@host[27].ip='192.168.1.29'
dhcp.@host[28]=host
dhcp.@host[28].name='Blue-HP-Laptop-Eth'
dhcp.@host[28].dns='1'
dhcp.@host[28].mac='FC:3F:DB:D7:7A:61'
dhcp.@host[28].ip='192.168.1.30'
dhcp.@host[28].duid='00044e18db4d6644b762feba82ec474e5a80'
dhcp.@host[29]=host
dhcp.@host[29].name='Siemens-IQ700-Dishwasher'
dhcp.@host[29].dns='1'
dhcp.@host[29].mac='68:A4:0E:21:7A:54'
dhcp.@host[29].ip='192.168.1.31'
dhcp.@host[29].duid='0003000668a40e217a54'
dhcp.@host[30]=host
dhcp.@host[30].dns='1'
dhcp.@host[30].mac='00:F6:20:4F:CB:E0'
dhcp.@host[30].ip='192.168.1.32'
dhcp.@host[30].name='Google-Home-Mini'
dhcp.@host[31]=host
dhcp.@host[31].name='Alicias-Sony-PS4'
dhcp.@host[31].dns='1'
dhcp.@host[31].mac='E8:9E:B4:BA:63:39'
dhcp.@host[31].ip='192.168.1.33'
dhcp.@host[32]=host
dhcp.@host[32].name='Alicias-Google-Chromecast'
dhcp.@host[32].dns='1'
dhcp.@host[32].mac='30:FD:38:B4:64:83'
dhcp.@host[32].ip='192.168.1.34'
dhcp.@host[33]=host
dhcp.@host[33].name='Nintendo-2DS'
dhcp.@host[33].dns='1'
dhcp.@host[33].mac='98:B6:E9:FE:A6:6D'
dhcp.@host[33].ip='192.168.1.35'
dhcp.@host[34]=host
dhcp.@host[34].name='Kids-Sony-PS4'
dhcp.@host[34].dns='1'
dhcp.@host[34].mac='5C:96:56:06:C4:E5'
dhcp.@host[34].ip='192.168.1.36'
dhcp.@host[34].duid='000300015c965606c4e5'
dhcp.@domain[0]=domain
dhcp.@domain[0].name='OpenWrt-Pi4'
dhcp.@domain[0].ip='192.168.1.1'
dhcp.@domain[1]=domain
dhcp.@domain[1].name='Network-Switch'
dhcp.@domain[1].ip='192.168.1.2'
dhcp.@domain[2]=domain
dhcp.@domain[2].name='Pi-Hole'
dhcp.@domain[2].ip='192.168.1.3'
dhcp.@domain[3]=domain
dhcp.@domain[3].name='Wifi-Disc-1'
dhcp.@domain[3].ip='192.168.1.4'
dhcp.@domain[4]=domain
dhcp.@domain[4].name='Wifi-Disc-2'
dhcp.@domain[4].ip='192.168.1.5'
dhcp.@domain[5]=domain
dhcp.@domain[5].name='Wifi-Disc-3'
dhcp.@domain[5].ip='192.168.1.6'
dhcp.@domain[6]=domain
dhcp.@domain[6].name='Wifi-Disc-4'
dhcp.@domain[6].ip='192.168.1.7'
dhcp.@domain[7]=domain
dhcp.@domain[7].name='Wifi-Disc-5'
dhcp.@domain[7].ip='192.168.1.8'
dhcp.@domain[8]=domain
dhcp.@domain[8].name='Wifi-Disc-6'
dhcp.@domain[8].ip='192.168.1.9'
dhcp.@domain[9]=domain
dhcp.@domain[9].name='Shield-TV'
dhcp.@domain[9].ip='192.168.1.10'
dhcp.@domain[10]=domain
dhcp.@domain[10].name='Kids-Vero4k'
dhcp.@domain[10].ip='192.168.1.11'
dhcp.@domain[11]=domain
dhcp.@domain[11].name='Alicias-Vero4K'
dhcp.@domain[11].ip='192.168.1.12'
dhcp.@domain[12]=domain
dhcp.@domain[12].name='Sony-PS4-Pro'
dhcp.@domain[12].ip='192.168.1.13'
dhcp.@domain[13]=domain
dhcp.@domain[13].name='Toms-Phone'
dhcp.@domain[13].ip='192.168.1.14'
dhcp.@domain[14]=domain
dhcp.@domain[14].name='Laylas-Phone'
dhcp.@domain[14].ip='192.168.1.15'
dhcp.@domain[15]=domain
dhcp.@domain[15].name='Alicias-Phone'
dhcp.@domain[15].ip='192.168.1.16'
dhcp.@domain[16]=domain
dhcp.@domain[16].name='Lilys-Phone'
dhcp.@domain[16].ip='192.168.1.17'
dhcp.@domain[17]=domain
dhcp.@domain[17].name='Evalyns-Phone'
dhcp.@domain[17].ip='192.168.1.18'
dhcp.@domain[18]=domain
dhcp.@domain[18].name='Livingroom-TV'
dhcp.@domain[18].ip='192.168.1.19'
dhcp.@domain[19]=domain
dhcp.@domain[19].name='Kids-TV'
dhcp.@domain[19].ip='192.168.1.20'
dhcp.@domain[20]=domain
dhcp.@domain[20].name='WD-My-Cloud'
dhcp.@domain[20].ip='192.168.1.21'
dhcp.@domain[21]=domain
dhcp.@domain[21].name='Livingroom-Sonos-Play1'
dhcp.@domain[21].ip='192.168.1.22'
dhcp.@domain[22]=domain
dhcp.@domain[22].name='Alicias-Sonos-Play1'
dhcp.@domain[22].ip='192.168.1.23'
dhcp.@domain[23]=domain
dhcp.@domain[23].name='Kids-Xbox360e'
dhcp.@domain[23].ip='192.168.1.24'
dhcp.@domain[24]=domain
dhcp.@domain[24].name='HP-Envy-5540'
dhcp.@domain[24].ip='192.168.1.25'
dhcp.@domain[25]=domain
dhcp.@domain[25].name='Purple-HP-Laptop-Wifi'
dhcp.@domain[25].ip='192.168.1.26'
dhcp.@domain[26]=domain
dhcp.@domain[26].name='Purple-HP-Laptop-Eth'
dhcp.@domain[26].ip='192.168.1.27'
dhcp.@domain[27]=domain
dhcp.@domain[27].name='Google-Pixelbook-Go'
dhcp.@domain[27].ip='192.168.1.28'
dhcp.@domain[28]=domain
dhcp.@domain[28].name='Blue-HP-Laptop-Wifi'
dhcp.@domain[28].ip='192.168.1.29'
dhcp.@domain[29]=domain
dhcp.@domain[29].name='Blue-HP-Laptop-Eth'
dhcp.@domain[29].ip='192.168.1.30'
dhcp.@domain[30]=domain
dhcp.@domain[30].name='Siemens-IQ700-Dishwasher'
dhcp.@domain[30].ip='192.168.1.31'
dhcp.@domain[31]=domain
dhcp.@domain[31].name='Google-Home-Mini'
dhcp.@domain[31].ip='192.168.1.32'
dhcp.@domain[32]=domain
dhcp.@domain[32].name='Alicias-Sony-PS4'
dhcp.@domain[32].ip='192.168.1.33'
dhcp.@domain[33]=domain
dhcp.@domain[33].name='Alicias-Google-Chromecast'
dhcp.@domain[33].ip='192.168.1.34'
dhcp.@domain[34]=domain
dhcp.@domain[34].name='Nintendo-2DS'
dhcp.@domain[34].ip='192.168.1.35'
dhcp.@domain[35]=domain
dhcp.@domain[35].name='Kids-Sony-PS4'
dhcp.@domain[35].ip='192.168.1.36'
dhcp.@host[35]=host
dhcp.@host[35].name='Tv-Strip-LED'
dhcp.@host[35].dns='1'
dhcp.@host[35].mac='7C:A6:B0:09:92:BF'
dhcp.@host[35].ip='192.168.1.37'
dhcp.@domain[36]=domain
dhcp.@domain[36].name='Tv-Strip-LED'
dhcp.@domain[36].ip='192.168.1.37'
root@OpenWrt:~#
1 Like

This is weird.
The service is configured and running, but it is not listening on DHCPv6 ports.

Let's try to restart it:

/etc/init.d/log restart; /etc/init.d/odhcpd restart; sleep 10; \
logread -e odhcpd; netstat -l -n -p | grep -e odhcpd; pgrep -f -a odhcpd
1 Like
root@OpenWrt:~# /etc/init.d/log restart; /etc/init.d/odhcpd restart; sleep 10; \
> logread -e odhcpd; netstat -l -n -p | grep -e
grep: option requires an argument: e
BusyBox v1.31.1 () multi-call binary.

Usage: grep [-HhnlLoqvsriwFE] [-m N] [-A/B/C N] PATTERN/-e PATTERN.../-f FILE [FILE]...

Search for PATTERN in FILEs (or stdin)

        -H      Add 'filename:' prefix
        -h      Do not add 'filename:' prefix
        -n      Add 'line_no:' prefix
        -l      Show only names of files that match
        -L      Show only names of files that don't match
        -c      Show only count of matching lines
        -o      Show only the matching part of line
        -q      Quiet. Return 0 if PATTERN is found, 1 otherwise
        -v      Select non-matching lines
        -s      Suppress open and read errors
        -r      Recurse
        -i      Ignore case
        -w      Match whole words only
        -x      Match whole lines only
        -F      PATTERN is a literal (not regexp)
        -E      PATTERN is an extended regexp
        -m N    Match up to N times per file
        -A N    Print N lines of trailing context
        -B N    Print N lines of leading context
        -C N    Same as '-A N -B N'
        -e PTRN Pattern to match
        -f FILE Read pattern from file
root@OpenWrt:~#

This is wrong.

uci -q delete dhcp.lan.dns
uci add_list dhcp.lan.dns="192.168.1.3"
uci commit dhcp
/etc/init.d/odhcpd restart

Although it's probably better to push IPv6 addresses for DNSv6.

2 Likes

That's got it working again... That must be my fault following the guide for running the dns through the pihole... Thank you very very much indeed!

1 Like

What is DNS6? I ideally wanted all my DNS running through my pihole on 192.168.1.3, which is set to use my ISP dns after filtering.

DNSv6 is DNS over IPv6.
However, it's problematic to specify a custom IPv6 address for DNSv6 if you have a dynamic prefix.
Thus, the current approach should be good enough.


You can set up a static IPv6 lease and use the ULA address which is separate from the GUA address.

1 Like

Thank you very much once again.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.