Open try496 opened 6 days ago
/After testing, it has been confirmed that by requesting a specified length of an IPv6 prefix and filling in the corresponding address, one can obtain the desired IP address or prefix
Perhaps the text could be updated to better illustrate this point.
That setting has only recently been changed in odhcp6c.
Previously.
Usage: odhcp6c [options] <interface>
Feature options:
...
-P <length> Request IPv6-Prefix (0 = auto)
After this commit: https://github.com/openwrt/odhcp6c/commit/b6ae9ffaeb0e18e9fa3d5be62faa8d3c9f340a58
Usage: odhcp6c [options] <interface>
Feature options:
...
-P <[pfx/]len> Request IPv6-Prefix (0 = auto)
https://github.com/openwrt/openwrt/commit/b0312c10818f36bc6e61a518bb528d2809562796 The latest commit has been merged into the snapshot.
Perhaps we can wait until the 24.10 branch is merged to update the description.
to what?
That's in main, not in snapshot.
openwrt/openwrt@b0312c1 The latest commit has been merged into the snapshot.
Go ahead and cherry-pick it to snapshot (24) also.
If it's in main, we can at least modify this string in main here.
to what?
diff --git a/protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/dhcpv6.js b/protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/dhcpv6.js
index ff242bb12c96..e00c8c762940 100644
--- a/protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/dhcpv6.js
+++ b/protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/dhcpv6.js
@@ -20,9 +20,10 @@ return network.registerProtocol('dhcpv6', {
o.value('none', _('disabled', 'DHCPv6 address request mode'));
o.default = 'try';
- o = s.taboption('general', form.Value, 'reqprefix', _('Request IPv6-prefix of length'));
+ o = s.taboption('general', form.Value, 'reqprefix', _('Request IPv6-prefix'),
+ _('Number for hinted prefix length (0-64) or specific prefix/length (e.g. 2001:db8::/56)'));
o.value('auto', _('Automatic'));
- o.value('no', _('disabled'));
+ o.value('no', _('Only an address (no subnet/routing)'));
o.value('48');
o.value('52');
o.value('56');
Agreed that we should use a descriptor, and not title.
diff --git a/protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/dhcpv6.js b/protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/dhcpv6.js
index ff242bb12c96..e00c8c762940 100644
--- a/protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/dhcpv6.js
+++ b/protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/dhcpv6.js
@@ -20,9 +20,10 @@ return network.registerProtocol('dhcpv6', {
o.value('none', _('disabled', 'DHCPv6 address request mode'));
o.default = 'try';
- o = s.taboption('general', form.Value, 'reqprefix', _('Request IPv6-prefix of length'));
+ o = s.taboption('general', form.Value, 'reqprefix', _('Request IPv6-prefix'),
+ _('Either a prefix length hint (e.g. 56) only, whereby the operator selects the prefix, or specify a prefix also (e.g. <code>2001:db8::/56</code>)'));
o.value('auto', _('Automatic'));
o.value('no', _('disabled'));
o.value('48');
o.value('52');
o.value('56');
I made a submission but I'm not sure if it was accurate. Thanks everyone. https://github.com/openwrt/openwrt/pull/17017
What would you like to see in luci?
odhcp6c has merged the commit that supports this feature. If the ISP supports this feature, it would allow obtaining a specific IPv6 prefix. I hope that luci will addd aan option for it.