dhcp section Configuration for DHCPv4, DHCPv6, RA and NDP services. Powered by Discourse, best viewed with JavaScript enabled. From the home page (thekelleys.org.uk/dnsmasq/doc.html): ubus API Replace dnsmasq with odhcpd to access IPv4 leases. Now my question is do i need odhcp ? Odhcpd is good thing for most uses but there're scenarios where its not enough flexible and radvd have to be used. In addition to dhcpv6 it provides all RA functionality -accepts RAs (instead of default kernel built-in mechanism which is not used in openwrt),can act as RA server and can do RA/NDP relaying (which is itself very specific function).Its well integrated with openwrt's network management engine - netifd - and communicates with it directly via ubus interface. dnsmasq is the DNS server and also the ipv4 dhcp server. I have a question about odhcp and dnsmasq. Without ipv6 odhcpd can be safely disabled.If you disable dnsmasq you will lose dns and dhcpv4.Of course its possible to throw away standard openwrt management and use some daemons - bind, isc-dhcp server, radvd. TIA. Initially devs wrote shell scripts for all the stuff and used well known commands and daemons but later they started to write native daemons because of increased stability and reliability.Better question - why still dnsmasq used as dhcpv4 server. (It can be compiled to support also ipv6, but it does not do that by default. In embended devices is not much space to install everything in full configuration. openwrt .org. dnsmasq is the DNS server and also the ipv4 dhcp server. odhcpd section Configuration for the odhcp daemon. For historic reasons as far as I can tell, dnsmasq-full provides all my IPv6 needs and odhcpd is disabled all together. The current OpenWrt forum resides at https://forum.openwrt.org/. I don't have your particular use case but don't see what is missing yet. You lose ability to control it properly via uci/luci/ubus/netifd and may encounter some conflicts between built-in management leftovers and external daemons which know nothing about openwrt. I'm confused about the overlap between dnsmasq and odhcpd.What does one offer that the other doesn't? Thanks, but is there a reason WHY dnsmasq is not used for IPv6 by default?From the home page (thekelleys.org.uk/dnsmasq/doc.html): I think..almost each features in openwrt are mini(slim) and full. But this way openwrt becomes something else - may be more simular to standard linux distros. I am curious, does your DNSMasq configuration support DHCPv6-PD client and server? May be because dnsmasq is more configurable and for older versions compatibility. Odhcpd contain dhcpv4 code. (Last edited by bolvan on 20 Oct 2016, 18:40). Click on a list name to get more information about the list, or to subscribe, unsubscribe, and change the preferences on. The functionality is somewhat limited.) The content of this topic has been archived Thanks, but is there a reason WHY dnsmasq is not used for IPv6 by default? Odhcp6c is the OpenWrt IPv6 client daemon for the wan side, which interacts with the ISP's DHCPv6/slaac. odhcpd is a decidated dhcpv6/ra daemon and the default for handling ipv6 stuff. Also standard daemons take more resources and 32 mb of RAM can be too small for them all. host section The host section is where static leases are defined. I am using unbound as DNS resolver and I wanted to get rid of dnsmasq so I am using odhcpd, but if you are not I think you are fine. dnsmasq also provides ntp settings, default gateway settings and bootp/pxe boot environment using the DHCP configuration lines. Content may be missing or not representing the latest edited version. There may be a necessary break in Unbound vs dnsmasq. Thanks, but is there a reason WHY dnsmasq is not used for IPv6 by default? They also may not fit to builtin flash. What I mean is that in my use case (and many share this) OpenWRT must act as a DHCPv6-PD client to the ISP (using odhcp6c by default), getting a prefix, and then act as a server to the LAN with the delegated prefix (using odhcpd by default). Is there any reason why would I need both? # example config of how to use odchp instead of . (I have seen /etc/config/dhcp config files with both sections). Can someone help and explain to me if it add's value to dnsmasq ? (It can be compiled to support also ipv6, but it does not do that by default.) The dnsmasq DHCPv6 server provides the same set of features as the DHCPv4 server, and in addition, it includes router advertisements and a neat feature which allows nameing for clients which use DHCPv4 and stateless autoconfiguration only for IPv6 configuration. openwrt-odchp-ipv4.uci. (It could handle also DHCPv4 for ipv4, but normally does not. (I'm particularly interested in anything IPv6-related)Is there any reason why would I need both? Below is a listing of all the public mailing lists on lists. )odhcpd is a decidated dhcpv6/ra daemon and the default for handling ipv6 stuff. This is a read-only archive of the old OpenWrt forum. . Currently i have it disabled at startup but i cannot get it clear to me what is does and if i need it. I have downstream routers which automagically get IPv6 prefixes from my gateway router (via odhcpd). odhcpd is usually only used for the IPv6 side of things (yes, there is a full -non-default- version that could also replace dnsmasq completely), in particular DHCPv6 and prefix delegation; dnsmasq however covers IPv4 DHCP and DNS for IPv4 and IPv6. Odhpcd is the OpenWrt-specific IPv6 addressing server for the Lan side. # /etc/config/dhcp. on 27 Apr 2018. ubus -v list dhcp ubus call dhcp ipv4leases ubus call dhcp ipv6leases Compiling odhcpd uses cmake. To my knowledge, it handles both DHCPv6 and slaac. 1 Like Doppel-D December 2, 2018, 9:43am #3 So, odhcpd is openwrt specific daemon written in C to meet all its specific needs. This archive is an effort to restore and make available as much content as possible. There is support for doing address allocation (both DHCPv6 and RA) from subnets which are dynamically delegated via DHCPv6 prefix delegation. odhcpd does much more than just ipv6 dhcp. In May 2018, the OpenWrt forum suffered a total data loss. odhcpd is usually only used for the IPv6 side of things (yes, there is a full -non-default- version that could also replace dnsmasq completely), in particular DHCPv6 and prefix delegation; dnsmasq however covers IPv4 DHCP and DNS for IPv4 and IPv6. Your comment about server/client confuses me, odhcp6c is still needed as there is no busybox replacement (udhcp6c) yet. The discussion might have continued from here. There are no obvious gaps in this topic, but there may still be some posts missing at the end. On my router i have configured my own internal DNS server using entirely using dnsmasq.