question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

IPv6 Unable to set up router in relay mode for IPv6 addresses over DHCPv6

See original GitHub issue

This is a feature request.

Here is the config I want to archive. I have marked how the defaults (on Designated Driver) needs to be changed for my setup to work with my ISP (having my clients behind my router receiving global IPv6 addresses from my ISPs DHCPv6):

/etc/config/dhcp

config dhcp 'lan'
        option interface 'lan'
        option start '100'
        option limit '150'
        option leasetime '12h'
        option ra 'relay'       # Changed to relay
        option dhcpv6 'relay'   # Changed to relay
        option ndp 'relay'      # Added

# Section commented
#config dhcp 'wan'
#       option interface 'wan'
#       option ignore '1'

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

Interfaces - LAN - [Edit] - DHCP Server - IPv6 Settings takes care of the first section by setting Router Advertisement-Service, DHCPv6-Service and NDP-Proxy to relay mode.

But (as far as I know) there is no way to:

  1. Get rid of the dhcp ‘wan’ section and (not sure if this is needed)
  2. Add the dhcp ‘wan6’ section including the relay options (this is needed for this setup to work)

Edit: Fund I mistakenly called the file network where it should have been dhcp

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
jow-commented, Oct 26, 2021

Fixed with 3fbd4338846e8229935b54256a3a541a3e15d8bd

0reactions
JKAbramscommented, Jan 22, 2017

@cshoredaniel sorry, for late reply, I’ve not tried it but I could if you think it would help solving the problem, to me it looks like a rather complicated setup to solve a simple (?) problem. I’m not sure I understand what problem decomposing into different VLANs is supposed to solve or how it relates to the fact that I’m unable to use Luci to configure my router into a working configuration, this bug report is meant toward finding a solution to that problem.

To recap: I try to set my network up in the most common sense way I can think of that actually works with my ISP, please let me know if I’m somehow mistaken here as my knowledge of networking is limited. Since IPv6 addresses are globally unique to me it makes sense to have each client have their own so they are addressable therefore the router should let these assignments from my ISP’s DHCP through, but since most of the world is still IPv4 the router still needs to be configured for IPv4 NAT. With a default config, this does not work for me, I’ve failed to find a way to use the Luci interface to archive this configuration, I did however find a way to configure the router manually as documented above that worked (until it broke by the update, but I think this is most likely due to an unrelated bug as the config above is rather straight forward and based entirely on the information I could find on the IPv6 guide on openwrt.org).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Example for Configuring a DHCPv6 Relay to Assign IPv6 ...
Verify the configuration. # Run the display dhcpv6 relay command on RouterA to check configurations of DHCPv6 relay agent. [Router A] display dhcpv6...
Read more >
Stateful DHCPv6 Relay Configuration Example
Introduction This document discuss with an example how to configure Stateful DHCPv6 in Relay mode. Mostly, while configuring the DHCP, the DHCP server...
Read more >
How to Use the IPv6 DHCP Relay
This command essentially translates to "enable DHCP with the IPv6 address destination of the DHCP server.
Read more >
Dell EMC Configuration Guide for the S3100 Series 9.14.2.5
dell-emc-os-9 | Dell EMC Configuration Guide for the S3100 Series 9.14.2.5 | global-dhcp-relay-source-ipv4-or-ipv6-configuration.
Read more >
DHCP for IPv6 (DHCPv6)
as a DHCPv6 Server, to pass configuration information to IPv6 clients. ▫ as a DHCPv6 Client, ... then be appended to form an...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found