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

Using IPv6 from internet service provider #1144

Open
ilario opened this issue Nov 23, 2024 · 0 comments
Open

Using IPv6 from internet service provider #1144

ilario opened this issue Nov 23, 2024 · 0 comments

Comments

@ilario
Copy link
Member

ilario commented Nov 23, 2024

Ross Schulman from https://dcmesh.net/ wrote this on the Matrix chat:

I think everything is working as it should, except for IPv6. The router plugged into the ethernet isn't getting a v6 assignment as it should, and I notice that /etc/config/network has a wan section, but not a wan6 section. Is it supposed to?

Until now, seems that the IPv6 from the internet service provider is not used, at least not automatically.
Is anywhere some documentation on how users should use it?

Expanding the code adding the corresponding lines for wan6 and dhcpv6 could be a solution, but I fear it could break something??
I mean, replacing this code:

uci:set("network", "wan", "interface")
uci:set("network", "wan", "proto", "dhcp")
uci:save("network")
end
function wan.setup_interface(ifname, args)
local uci = libuci:cursor()
uci:set("network", "wan", "device", ifname)
uci:save("network")

with this:

	uci:set("network", "wan", "interface")
	uci:set("network", "wan", "proto", "dhcp")
	uci:set("network", "wan6", "interface")
	uci:set("network", "wan6", "proto", "dhcpv6")
	uci:save("network")
end

function wan.setup_interface(ifname, args)
	local uci = libuci:cursor()
	uci:set("network", "wan", "device", ifname)
	uci:set("network", "wan6", "device", ifname)
	uci:save("network")

would work for people with an ISP that provides IPv6? Would break things for the others?

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

No branches or pull requests

1 participant