[3rd party ISSUE] IPv6 radvd error.

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Goto page 1, 2  Next
Author Message
WCBonner
DD-WRT Novice


Joined: 15 Mar 2009
Posts: 17

PostPosted: Fri Aug 05, 2022 16:31    Post subject: [3rd party ISSUE] IPv6 radvd error. Reply with quote
I've been having problems with my IPv6 installation. Among other things, I figured out that if I have Static DNS 1 and Static DNS 2 entered on the Setup-IPv6 page, radvd wasn't able to run correctly. I think it was getting initial DNS entries from the upstream router advertisement, but I'm not sure. Once I removed the static DNS entries from the interface radvd runs again and clients on my local network receive router advertisements.

Code:
DD-WRT v3.0-r49626 std (c) 2022 NewMedia-NET GmbH
Release: 08/03/22
Board: Netgear R7000

root@Netgear-R7000:~# cat /tmp/radvd.conf
interface br0
{
 IgnoreIfMissing on;
 AdvSendAdvert on;
 MinRtrAdvInterval 3;
 MaxRtrAdvInterval 10;
 AdvHomeAgentFlag off;
 AdvManagedFlag off;
 AdvOtherConfigFlag on;
 AdvLinkMTU 1452;
 prefix 2604:4080:1304:8010::/64
 {
  AdvOnLink on;
  AdvAutonomous on;
  AdvValidLifetime 30;
  AdvPreferredLifetime 20;
 };
 RDNSS 2001:4860:4860::8888 2001:4860:4860::8844 2607:f060:2::1 2607:f060:2:1::1{};
};

root@Netgear-R7000:~# radvd --debug=5 -C /tmp/radvd.conf
[Aug 05 08:00:06] radvd (19543): too many addresses in RDNSS section
[Aug 05 08:00:06] radvd (19543): exiting, failed to read config file


This seems like a bug in radvd to me. Here's the announcement I'm seeing from my ISP router.

Code:
root@Netgear-R7000:~# radvdump
#
# radvd configuration generated by radvdump 2.19
# based on Router Advertisement from fe80::22c:c8ff:fe42:24bf
# received by interface vlan2
#

interface vlan2
{
        AdvSendAdvert on;
        # Note: {Min,Max}RtrAdvInterval cannot be obtained with radvdump
        AdvManagedFlag off;
        AdvOtherConfigFlag on;
        AdvReachableTime 0;
        AdvRetransTimer 0;
        AdvCurHopLimit 64;
        AdvDefaultLifetime 1800;
        AdvHomeAgentFlag off;
        AdvDefaultPreference high;
        AdvSourceLLAddress on;
        AdvLinkMTU 1500;

        prefix 2604:4080:1304::/64
        {
                AdvValidLifetime 2592000;
                AdvPreferredLifetime 604800;
                AdvOnLink on;
                AdvAutonomous on;
                AdvRouterAddr off;
        }; # End of prefix definition

}; # End of interface definition
Sponsor
Wildlion
DD-WRT Guru


Joined: 24 May 2016
Posts: 1416

PostPosted: Fri Aug 05, 2022 21:45    Post subject: Reply with quote
my first thought at quick look is I think radvd.conf only takes 3 dns and if I am couting correctly you have:

Code:

RDNSS 2001:4860:4860::8888 2001:4860:4860::8844 2607:f060:2::1 2607:f060:2:1::1{};

which is 4

edit:
just loooked at a reference man page:
https://linux.die.net/man/5/radvd.conf

Quote:
RDNSS (Recursive DNS server) definitions are of the form:

RDNSS ip [ip] [ip] { list of rdnss specific options
};
WCBonner
DD-WRT Novice


Joined: 15 Mar 2009
Posts: 17

PostPosted: Fri Aug 05, 2022 22:01    Post subject: Reply with quote
Wildlion wrote:
my first thought at quick look is I think radvd.conf only takes 3 dns and if I am couting correctly you have:

Code:

RDNSS 2001:4860:4860::8888 2001:4860:4860::8844 2607:f060:2::1 2607:f060:2:1::1{};

which is 4

edit:
just loooked at a reference man page:
https://linux.die.net/man/5/radvd.conf

Quote:
RDNSS (Recursive DNS server) definitions are of the form:

RDNSS ip [ip] [ip] { list of rdnss specific options
};


That's a reasonable attitude to take, but I'd say that DDWRT should somehow figure out if there are going to be too many RDNSS entries when it creates the /tmp/radvd.conf file and not create a file that's going to crash radvd.

It would be different if I was creating a custom configuration for the Router Advertisement Daemon, but I was only enabling it, not creating a custom configuration.
the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 2146
Location: All over YOUR webs

PostPosted: Sat Aug 06, 2022 8:38    Post subject: Reply with quote
@WCBonner

radvd (like many DD-WRT components) is not maintained/developed by DD-WRT so your request while fair and indeed radvd should not crash but instead error out gracefully does not belong in these boards.

Rather this belongs at https://github.com/radvd-project/radvd more specifically you should open a request at https://github.com/radvd-project/radvd/issues/new and follow the projects requirements if any to file the report. Ensure first no existing issue upstream already covers the report, if one exists you should file a proper report and not a me too report which will likely be disregarded.

Once that is solved upstream, next time a radvd has a release which contains the fix, will be pulled into DD-WRT and the issue solved that way, otherwise, the issue will remain DD-WRT side forever.

Thanks for understanding.

_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)
Per Yngve Berg
DD-WRT Guru


Joined: 13 Aug 2013
Posts: 6870
Location: Romerike, Norway

PostPosted: Sat Aug 06, 2022 12:03    Post subject: Reply with quote
Use DNSMasq instead of Radvd.
the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 2146
Location: All over YOUR webs

PostPosted: Sat Aug 06, 2022 12:20    Post subject: Reply with quote
Per Yngve Berg wrote:
Use DNSMasq instead of Radvd.

The radvd bug should still be reported upstream in order to be fixed.

_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)
dale_gribble39
DD-WRT Guru


Joined: 11 Jun 2022
Posts: 1952

PostPosted: Sat Aug 06, 2022 13:53    Post subject: Reply with quote
Or, you compare the tree in DD-WRT and the upstream tree and see that some upstream patches aren't applied that could be culprit.
_________________
"The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep." - Robert Frost

"I am one of the noticeable ones - notice me" - Dale Frances McKenzie Bozzio

<fact>code knows no gender</fact>

This is me, knowing I've ruffled your feathers, and not giving a ****
Some people are still hard-headed.

--------------------------------------
Mac Pro (Mid 2012) - Two 2.4GHz 6-Core Intel Xeon E5645 processors 64GB 1333MHz DDR3 ECC SDRAM OpenSUSE Leap 15.5
the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 2146
Location: All over YOUR webs

PostPosted: Sat Aug 06, 2022 14:04    Post subject: Reply with quote
dale_gribble39 wrote:
Or, you compare the tree in DD-WRT and the upstream tree and see that some upstream patches aren't applied that could be culprit.

Or not, DD-WRT is running stable radvd 2.19 anything on upstream master after the fact no longer applies post 2.19 and DD-WRT and therefore moot. And this isn't like dnsqmasq which is running master alpha code and not a specific public release.

But thanks for suggestion, Im going to kindly decline, you however feel free to follow your own advice.

_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)
dale_gribble39
DD-WRT Guru


Joined: 11 Jun 2022
Posts: 1952

PostPosted: Sat Aug 06, 2022 15:01    Post subject: Reply with quote
Also to note, it seems that DD-WRT is the only custom firmware still using radvd to begin with. So, maybe there's also a possibility to remove a problematic package and change how router advertisements are handled for IPv6 - instead using dnsmasq or dhcp6c/dhcp6s, and decrease firmware image sizes (or not).
_________________
"The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep." - Robert Frost

"I am one of the noticeable ones - notice me" - Dale Frances McKenzie Bozzio

<fact>code knows no gender</fact>

This is me, knowing I've ruffled your feathers, and not giving a ****
Some people are still hard-headed.

--------------------------------------
Mac Pro (Mid 2012) - Two 2.4GHz 6-Core Intel Xeon E5645 processors 64GB 1333MHz DDR3 ECC SDRAM OpenSUSE Leap 15.5
WCBonner
DD-WRT Novice


Joined: 15 Mar 2009
Posts: 17

PostPosted: Sat Aug 06, 2022 15:54    Post subject: Reply with quote
Per Yngve Berg wrote:
Use DNSMasq instead of Radvd.


Is the method of using dnsmasq instead of radvd to go to Setup->IPv6 and disable the Router Advertisement Daemon (radvd), then go to Services->Services, find the Dnsmasq Infrastructure section, and add enable-ra to a line in the Additional Options section?

After doing that, should I be able to see router advertisements on my client machine via the radvdump command that look very similar to the current advertisements I'm seeing?
the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 2146
Location: All over YOUR webs

PostPosted: Sat Aug 06, 2022 17:00    Post subject: Reply with quote
dale_gribble39 wrote:
Also to note, it seems that DD-WRT is the only custom firmware still using radvd to begin with. So, maybe there's also a possibility to remove a problematic package and change how router advertisements are handled for IPv6 - instead using dnsmasq or dhcp6c/dhcp6s, and decrease firmware image sizes (or not).

Sausage factory, it will reduce very very little to nothing, we and this is after I started doing my work and in relation to it, removed outdated and no longer used components in the past and reduction was zero on final FW image and even amount of blocks used. and besides its not me you need to convince.

In any case I dont see this bug report upstream and I wont do it as I dont have a way to duplicate, so another bug for the ages and this is the only important question here the rest of the sausage factory is meaningless.

As usual thanks for your sausage factory comments.

_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)
WCBonner
DD-WRT Novice


Joined: 15 Mar 2009
Posts: 17

PostPosted: Sat Aug 06, 2022 17:48    Post subject: Reply with quote
WCBonner wrote:
Per Yngve Berg wrote:
Use DNSMasq instead of Radvd.


Is the method of using dnsmasq instead of radvd to go to Setup->IPv6 and disable the Router Advertisement Daemon (radvd), then go to Services->Services, find the Dnsmasq Infrastructure section, and add enable-ra to a line in the Additional Options section?


It required more than just the simple enable-ra to get advertisements showing up on my clients and global IPv6 addresses to be configured. I got things working by adding these three lines. I copied them from elsewhere, so don't fully understand what I've done, but am happy with the results. I was able to do it without the ra-param line. The ra-param line seemed to increase the frequency of announcements, making my network faster to configure IPv6.

Code:
dhcp-range=::1000,::FFFF,constructor:br0,ra-stateless,5m
ra-param=br0,10,300
enable-ra
the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 2146
Location: All over YOUR webs

PostPosted: Sat Aug 06, 2022 17:53    Post subject: Reply with quote
WCBonner wrote:
It required more than just the simple enable-ra to get advertisements showing up on my clients and global IPv6 addresses to be configured. I got things working by adding these three lines. I copied them from elsewhere, so don't fully understand what I've done, but am happy with the results. I was able to do it without the ra-param line. The ra-param line seemed to increase the frequency of announcements, making my network faster to configure IPv6.

Code:
dhcp-range=::1000,::FFFF,constructor:br0,ra-stateless,5m
ra-param=br0,10,300
enable-ra

Im glad you managed to solve it sort of, however, are you prepared to do a radvd bug report upstream or are you happy with unsolved bugs as a result of no action?

You are the only one who can reproduce the issue, I cant or have the ability to reproduce since I have no IPv6 or your setup. So you are the only one who can make a significant report upstream to get the original issue resolved.

_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)
WCBonner
DD-WRT Novice


Joined: 15 Mar 2009
Posts: 17

PostPosted: Sat Aug 06, 2022 18:08    Post subject: Reply with quote
the-joker wrote:
WCBonner wrote:
It required more than just the simple enable-ra to get advertisements showing up on my clients and global IPv6 addresses to be configured. I got things working by adding these three lines. I copied them from elsewhere, so don't fully understand what I've done, but am happy with the results. I was able to do it without the ra-param line. The ra-param line seemed to increase the frequency of announcements, making my network faster to configure IPv6.

Code:
dhcp-range=::1000,::FFFF,constructor:br0,ra-stateless,5m
ra-param=br0,10,300
enable-ra

Im glad you managed to solve it sort of, however, are you prepared to do a radvd bug report upstream or are you happy with unsolved bugs as a result of no action?


I opened an issue on GitHub before I spent the time figuring out dnsmasq router advertisements. I didn't find something similar in any previous issues, open or closed. I'm hoping that I'll receive a response of some sort. If I have time in the next week, I may browse the code and see if I can provide a solution. https://github.com/radvd-project/radvd/issues/182
the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 2146
Location: All over YOUR webs

PostPosted: Sat Aug 06, 2022 18:10    Post subject: Reply with quote
Thanks.
_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)
Goto page 1, 2  Next Display posts from previous:    Page 1 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum