Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dnsmasq-full does not work in IPv6 relay mode #24682

Open
rikka0w0 opened this issue Jul 26, 2024 · 1 comment
Open

dnsmasq-full does not work in IPv6 relay mode #24682

rikka0w0 opened this issue Jul 26, 2024 · 1 comment

Comments

@rikka0w0
Copy link

We definitely need DHCPv6 relay as some ISP only provides a /64 prefix, where relay is the only way to grant IPv6 accesses to LAN devices.

By default, OpenWrt uses dnsmasq for IPv4 DHCP and odhcpd-ipv6only for IPv6 DHCP. The DHCPv6 relay (powered by odhcpd-ipv6only) works as expected and we only need to change /etc/config/dhcp to be like this to make it work:

config dhcp 'lan'
        option interface 'lan'
...IPv4 stuff omitted...
        option ra 'relay'
        option dhcpv6 'relay'
        option ndp 'relay'

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

config dhcp 'wan6'
        option interface 'wan6'
        option dhcpv6 'relay'
        option ra 'relay'
        option ndp 'relay'
        option master '1

If one uses dnsmasq-full to handle DHCP for both IPv4 and IPv6(opkg remove dnsmasq odhcpd-ipv6only and opkg install dnsmasq-full), the DHCPv6 relay stops working. The /etc/init.d/dnsmasq script does not seem to generate dnsmasq configurations for these IPv6 options:
image

Confirmed on OpenWrt 23.05.3 x86-64.

@brada4
Copy link

brada4 commented Jul 27, 2024

Relay mode uses upstream configuration server without modification.
You can grant /96 delegation to each subnet, sized old internet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants