-
Notifications
You must be signed in to change notification settings - Fork 34
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
Lan-Port-Bug für TP-LINK CPEs und NSM Locos #292
Comments
aufgefallen ist mir das auch. finde es ebenfalls verwirrend und aus o.g. Grund gefährlich.
Flasht man jedenfalls einen CPE210 mit Kathleen ist die Interface Zuordnung folgendermassen:
'Ursache' scheint, dass @NeoRaider eine Analogie gezogen hat, die nicht ganz passt: http://openwrt-devel.openwrt.narkive.com/thdXnmiF/patch-v2-0-2-tp-link-cpe210-220-510-520
Ergaenzung 27.10.
|
The lines that requires changes seems to be this one: |
We should keep this for consistency reasons as it is. The configuration depends on the usecase and we can't cover all usecases. I'm also not sure which usecase is more common. I suggest that we close this ticket soon. |
@booo Can you explain what you mean by "consistency"? |
Consistency means: The CPE-configuration should be as similar to the nanostation configuration as possible. If we switch the ports on the CPE we also switch the configuration on the nanostation. About the use case you are somehow right. But we could also think about this device as the typical device to connect users to the mesh. If they just want to use mesh and do not want to act as a gateway the configuration is somehow right. Can someone please make a proper proposal for a change towards a more user friendly flashing/configuration process. Just switching the ports after flashing does not solve the problem. Maybe we should start with a bit more documentation, e.g. on config.berlin? |
Nitpicking: For me that's not consistency, it's just a shortcoming/lazyness of some behind-the-scenes code. The CPE and the NSM are different devices with different configs. Handling the CPE port setup could be done on bootup, for example in the migration script, before it checking the guard. That'd be only a few lines. We could also make that configurable with a checkbox in the Assistent ("PoE port is a. WAN or b. FF-LAN, please choose"). I guess detecting the CPE is just a one-liner in lua/bash. Documentation is basically #286. We don't want more documentation in git (i.e., config.berlin code/configuration) but use the wiki for that: There are quite a few routers which need some lines of documentation (e.g., the Wifi switch of the 3600 not working properly; newer NSMs needing a downgrade before flashing etc.), and we want users to be able to contribute. |
This bugs also concerns the NSM Locos. There it's even better as they only have one Ethernet port. For the record, one relevant mailinglist thread including manual reconfiguration: |
@sarumpaet I think that (locos) is a problem that should be address upstream if possible. Is there a way to detect the loco case in software? |
Why should upstream care? In contrast to us they don't even have "WAN port goes to internet" as the standard use case as far as I know but I may be wrong. I don't have a normal NSM nor a Loco here. I guess the Loco can be detected as "if hardware==NSM and num_ethernet_ports==1" or something. ;-) |
i don't see here an bug. the manual of the router is for the router firmware. not for our firmware. but adding more documentation would be nice! |
Hi, i have a Nanostation 5 m flashed with "Powered by LuCI Trunk (git-14.294.77948-ecb0c2f) Freifunk Berlin kathleen 0.1.2" I opened the berlin.freifunk.net wifi, but cannot share my internet connection. I do have the VNP3 credentials setup. But which ever port i try, it does not work. @lynxis where would that documentation live? Thx |
@christoph-buente unter http://wiki.freifunk.net/Berlin:Firmware#Router-spezifische_Hinweise gibt's einen Abschnitt für CPE210. Da wird verlinkt auf: http://berlin.berlin.freifunk.narkive.com/9gl7g6uY/berlin-wireless-cpe210-ports-vertauschen-nur-in-config-vertauschen#post7 und Thomas schreibt, wie man die Ports umdreht. |
Hallo Sven, vielen Dank. Habe die CPE spezifischen Sachen immer ignoriert, da ich dachte das trifft auf die nanostation nicht zu. Ich habe mir auch den Post zum Port vertauschen durchgelesen. Jedoch finde ich im Luci den Punkt "Netzwerk => Switch" überhaupt nicht. ich habe das |
@christoph-buente ich merk grad, das ich falsch bin, du hast eine Nanostation (wie du schreibst), da hilft dir mein CPE-hinweis garnicht. |
On CPE210 we could detect the use case from wizard setting "take part in freifunk" -> POE-port = dhcp or "share my internet" POE-port = wan-port. That would reduce the risk of misconfiguration. |
What will it be like, when CPE210 V2 (single port Version) only is distributed? |
as on the NSMs loco: FF-LAN |
here a solution for a Ubnt Rocket M2 (single-lan-port): |
Am I right, that currently the wizard is not aware of the machine it's running on? |
There are several ways to check for the current board (via cpuinfo, via rpc, probably via luci.system). Comparing this to a list of relevant boards when sharenet=1 is not as hard. |
At openwrt is a script which does set certain values for interface, switch and vlans. |
Are you referencing the "/etc/board.d" scripts? |
@bobster-galore, it looks like you have made a lot of progress on this issue with branch https://github.com/freifunk-berlin/firmware-packages/tree/lan-port-on-sharenet I have added a new router, ubnt-unifiac-mesh, to the firmware (#611). This device has only one port. The default is that lan is on this port. Would you be able to add support to switch this to wan if sharenet==1? |
On the "switch" configuration page, it is also easy enough to just enter a "2" where VLAN ID "1" is, and "1" where VLAN ID "2" is. |
also affects UAPs (https://lists.berlin.freifunk.net/pipermail/berlin/2019-February/039053.html). |
This adds some commandline scripts to automate changing some configsettings. Initially it was based on the idea of working on the conflicting settings of the ethernet-ports for routers just participating in the network or providing an uplink (freifunk-berlin/firmware#292).
has been merged to master in freifunk-berlin/firmware-packages@51fc952 |
this is also relevant for #759 (TPlink MR3020 V3) |
For Gluon there was a related issue: freifunk-gluon/gluon#1932. but it seems they can change the assignment in the "setup-mode". |
I had a chance to work on the "sharenet-switch.sh" script (https://github.com/freifunk-berlin/firmware-packages/blob/bdfe20564fbdedffe4f12e3bc6c3a78cd05b5aa3/addons/freifunk-berlin-configtools/root/usr/share/freifunk-berlin/sharenet-switch.sh). It hast the basic functionality for the NSM2 (so I expect also for NSM5) and allows swapping the assignment of the physical LAN-ports. I think this can quickly extended to the TPLink CPEs v1. In general more testing is needed. |
sharenet-switch should work for NSM, NSM Loco and CPe v1 so far. In #826 I mentioned that there is a way of creating a "wan" section missing. |
Man muss in der Default-Konfiguration der 0.1.2 auf LAN0 das PoE und auf LAN1 das WAN anschließen. Das ist sehr unpraktiisch weil ja nur eine Leitung zum Router nach draußen gehen soll. Außerdem ist es gefährlich auf LAN0 sein WAN anzuschließen (so wie es in der Anleitung zum Router steht) weil man damit versehentlich sein Netz nach außen ungeschützt freigibt.
The text was updated successfully, but these errors were encountered: