TLDR: The setup guide and config file examples I've referenced look to be out-of-date and perhaps not applicable/correct for more recent versions of OpenWRT, leaving new users - particularly newbies like me - in for a great deal of trouble.
The more I look at things, the more questions and concerns I have about the state of the current ISP configuration guide notes, which look to be out-of-date. If I can get some answers/advice, I'd be happy to try to update the guide.
I will try to list the issues I have so far -
- The advice from @mk24 to simply type in
dsl0.101
in the wan general settings 'Device' drop-down list adds option device 'dsl0.101'
to the network config file, under 'wan'. This is different from the example UK ISP config listings, which all show option ifname 'dsl0.101
. I think this is significant. I think most/all of the example network config settings come from older OpenWRT versions, which raises the question of what terminology/compatibility differences are there between the older config file settings and those for the lastest version?
I would assume the file settings generated through making LuCI config changes would be the most up-to-date and correct settings to use... But then, since those appear to be different from what we see in the (older?) example UK ISP config settings, how appropriate is the advice from @frollic to simply copy example settings directly to my /etc/config/network
file?
- As I already mentioned earlier, the setup guide for this router says, to set the DSL annex setting to "Annex A + L + M(all)" and there isn't an exact match in the options for this doing so. The closest matching option ("ADSL (all variants) Annex A/L/M + VDSL2 Annex A/B/C") through the LuCI U.I. creates the setting
option annex 'a'
. However, this is different from absolutely every instance of the option annex ...
field in the ISP settings file examples, all which are in the form, option annex 'b'
. So again, is the UI's wording of the ...A/L/M... option the definitive true setting or is the config file's option 'b' the definitive setting, regardless of what it maps to (correctly or incorrectly?) in the UI?
I.e. Is it the case that somewhere prior to OpenWRT 24.10.X, the Annex A/L/M used to correspond with the network setting file value option annex 'b'
but in more recent versions this option now corresponds with option annex 'a'
in the config file? ... OR is the the network config file value of annex 'b'
truly the setting that needs to be used, regardless of what OpenWRT version I'm using (and what the UI drop-down shows) and therefore the guide/wiki is now wrong in saying I should select the Annex A + L + M option and now, instead, should choose ADSL (all variants) Annex B + VDSL2 Annex A/B/C... which now maps to option annex 'b'
?
- Elsewhere in the UK ISP example network file settings listings, it has a section that says For 22.03.X/23.X builds and then shows -
...
config device
option name 'dsl0.101'
option type '8021q'
option ifname 'dsl0'
option vid '101'
config interface 'wan'
option device 'dsl0.101'
option proto 'pppoe'
...
...
The use of device 'dsl0.101'
here, which is what I get when following @mk24 's instruction above, instead of ifname 'dsl0.101'
that's commonly used throughout the rest of the examples, makes me think -
- These settings should probably also apply to me and that the guide/wiki should instead say, "For 22.03.X/23.X and newer builds".
- It looks like I may have been right to question whether that instruction to simply type
dsl0.101
would have been sufficient; it looks like option device 'dsl0.101'
is a reference to a config device
setting block that should be elsewhere in the network file... which isn't there from following the guide's steps.
- My suspicion is that before typing
dsl0.101
in the wan device drop-down, I first need to have created this dsl0.101
named device, along with finding a way to correctly give it a VLAN ID of 101... But again, given how network file syntax changes may occur between OpenWRT versions (like we've already seen, going from use of option ifname 'dsl0.101'
to now using option device 'dsl0.101'
+ config device ... option name dsl0.101'...
[and also possibly annex 'b'
becoming annex 'a'
?]), would it be better to instruct users to create these settings through the UI or though entering values into their network config file?
It looks to me like we can (and should) create this new dsl0.101
-named device, under Network > Devices > 'Add device configuration'.
This then gives me a load of options, for which I have no guidance so could use some help in figuring out the most correct, up-to-date settings. The 'General device options' are -
- Device type: I suspect
VLAN (8021.q)
is the one to go with here.
- Base device: Don't know; I'd guess
wan
.
- VLAN ID: I'm pretty sure
101
is what to go with here, since that's one of the few things my future ISP explicitly specified.
- Device name:
dsl0.101
at a guess.
- And there are a bunch of other fields (MTU, TX queue length, enable IPv6, IPv6 MTU, DAD transmits) that have defaults in, which I'd be tempted to leave at their defaults ... unless someone here advises otherwise.
- There's also a load of settings in the 'Advanced device options' tab (Ingress QoS mapping, Egress QoS mapping, Enable promiscuous mode, Reverse path filter, Accept local, Sent ICMP redirects, Honor gratuitous ARP, Drop gratuitous ARP, Neighbour cache ... etc), which I'd leave empty/automatic/default ... unless someone advises otherwise.
I think it'd be nicer (maybe better) to provide the LuCI steps to set this up properly, at least on this United Kingdom - Quick Setup with LuCi guide page and I'd be happy to have a go at updating it (assuming my switch-over all works with whatever settings I end up with)... providing I can get some guidance on everything here.
- Because the example ISP configs has a section, "For 22.03.X/23.X builds", which looks closer to settings I get through the more recent 24.10.0 LuCI, along with explicitly setting VLAN 101 settings, I wondered, should I also be ensuring I copy the other blocks shown in that section of config file too, including -
config atm-bridge 'atm'
option vpi '0'
option vci '38'
option encaps 'vc'
option payload 'bridged'
option nameprefix 'dsl'
which, along with me not knowing what it means, I don't have in my /etc/config/network
file and also -
config interface 'wan6'
option proto 'dhcpv6'
option reqaddress 'try'
option reqprefix 'auto'
option ifname 'dsl0.101'
?