Using IPv6 from internet service provider

Open
#1,144 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
lua
Domain
networking

Research direction

Start with packages/lime-proto-wan/files/usr/lib/lua/lime/proto/wan.lua at the linked lines and trace how the WAN interface is configured. Check how OpenWrt handles DHCPv6 and whether adding a wan6 section affects routers without IPv6 service. Done means the issue's questions about automatic IPv6 use, compatibility, and user documentation are resolved.

Written by the indexing model from the issue text.

Description

user story

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:

https://github.com/libremesh/lime-packages/blob/8aa007e456d3cc98fd45997689624dbbeade3c7b/packages/lime-proto-wan/files/usr/lib/lua/lime/proto/wan.lua#L21-L29

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?

Dominant language
Lua
Stars
338
Forks
113
Avg merge
8d 3h
Merged PRs (30d)
3

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from libremesh/lime-packages

All issues in libremesh/lime-packages

Similar issues

More Lua issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.