Comments (7)
For what it's worth, this bug appearst to have been included in the 15.05.1 point release of OpenWrt Chaos Calmer.
from odhcpd.
Is it likely that this bug will surface if I merely reset a downstream router, which then solicits and IA_PD. odhcpd then will not respond and logs:
Sun Aug 7 09:46:26 2016 daemon.warn odhcpd[971]: DHCPV6 SOLICIT IA_NA from 0003000108002742210c on br-lan: no addresses available
Sun Aug 7 09:46:26 2016 daemon.warn odhcpd[971]: DHCPV6 SOLICIT IA_PD from 0003000108002742210c on br-lan: no prefix available
Sun Aug 7 09:46:27 2016 daemon.warn odhcpd[971]: A default route is present but there is no public prefix on br-lan thus we don't announce a default route!
Sun Aug 7 09:46:27 2016 daemon.warn odhcpd[971]: DHCPV6 SOLICIT IA_PD from 0003000108002742210c on br-lan: no prefix available
meanwhile on the same, upstream, router:
root@OpenWrt:~# ip -6 address show scope global dev br-lan
6: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500
inet6 2a02:c7d:1d31:a600::1/56 scope global noprefixroute dynamic
valid_lft 5494sec preferred_lft 1894sec
from odhcpd.
Your ip -6 address show
output indicates that the address has been configured with a 56-bit prefix length. That's invalid and indicates there's another bug involved. I've never seen this one before. Did you manually configure your br-lan
interface? Is it set up with option proto 'hnet'
or something else?
from odhcpd.
I thought that I'd taken and used the stock image (http://bit.ly/2aEyKqd), so that the ipv4 address was fixed. I did move that address. I also had to faff a bit to get the router to get the subnet delegation from Sky. It looks like I also added hnet control to the lan interface: and this could be the wrong thing to do. The relevant uci stanzas look like this:
config interface 'inhnet'
option 'ifname' 'eth1'
option 'proto' 'hnet'
config interface 'lan'
option ifname 'eth1'
option force_link '1'
option type 'bridge'
option proto 'static'
option netmask '255.255.255.0'
option ipaddr '192.168.1.254'
option ip6assign '56'
I do want a downstream router to get a subnet from this router. Should I have configured that differently?
from odhcpd.
I think your problem is option ip6assign '56'
. I think that tells OpenWrt to assign a /56 directly onto eth1
, which probably is the entire prefix you got delegated from your ISP. Thus it makes sense perfect sense for odhcpd to say that there's no prefix available, because you've assigned all of your 256 available /64s to eth1
.
So I think you'll want to change that to say option ip6assign '64'
instead.
Another thing that seems a little bit strange to me is to have both option proto 'static'
and option proto 'hnet'
on the same interface. hnetd
will take care of assigning IPv4 addresses to links, there's no need to do it statically. It might be that doing both works without issue, but if I were you I'd try collapsing the two interface definitions into one, something à la:
config interface 'hnet-lan'
option ifname 'eth1'
option force_link '1'
option type 'bridge'
option proto 'hnet'
option mode 'auto'
option ip6assign '64'
option ip4assign '24'
This would be more similar to what I have on my routers. I'm not using any bridges though, so no guarantees it works without modifications.
from odhcpd.
This appears to be the same bug as #388. I can reproduce it easily now.
https://bugs.lede-project.org/index.php?do=details&task_id=388
In my case, I am allocating out of 61. 3 dhcp pd attempts, and boom
from odhcpd.
In my experience this problem happens if there's a lan interface which has dhcpv6 enabled but no ipv6 blocks assigned. Unfortunately this causes other lan interfaces to have their routes revoked.
I suppose one could say that having dhcpv6 enabled on an interface without a public address available is an incorrect configuration, but it can happen without users intentionally configuring.
from odhcpd.
Related Issues (20)
- PREF64 support for NAT64 HOT 4
- Bug: odhcp doesn't handle static lease (dhcp.@host[#]) entries with multiple MAC addresses HOT 1
- Leases for IPv6 SLAAC devices? HOT 1
- odhcpd segfault when processing INFORM packet HOT 3
- Not responding to DHCPv4 DHCPREQUEST HOT 2
- IPv6 relay cannot discover LAN device, Bad file descriptor sending to wan@pppoe-wan HOT 1
- odhcpd lacks hotplug script support HOT 2
- device on lan cann't get ipv6 address on latest commit HOT 80
- ip=ignore is ignored HOT 1
- bug: DHCPv6 does not respect prefix assigned to interface (<=/64) HOT 3
- DHCPv4 static leases per interface
- odhcpd IPv6 NDP + macOS don't play together
- odhcpd: (interface) DNS search domains are ignored HOT 3
- Allow limiting prefixes more
- ra_useleasetime parameter running results are inconsistent HOT 2
- When odhcpd receives a DHCPv6 client request it calls external /usr/bin/basename binary
- New Feature Request - implement RFC 6939
- New Feature Request - Optionally run DHCPv6 server on WAN interface when no IPv6 address Prefix is delegated from ISP
- odhcp does not handle existing leases from odhcpd.leases file correctly
- RA relay shouldn't relay link-local DNS HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from odhcpd.