-
Notifications
You must be signed in to change notification settings - Fork 325
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Wishlist: Config-Mode UI for Interface Roles Feature #2393
Comments
This is pretty cool and would hopefully solve the problems we have with our nodes running several gluon_wired mesh links over directional radio. I've played around with #2372 a bit and so far I'm only missing one thing which is dedicated gluon_wired interfaces per configured mesh interface. At first I thought this is not an issue but the downside of having all interfaces in the same gluon_wired/vxlan interface is that every node can see every other node even if there is no direct physical path between them. In the past we configured dedicated gluon_wired interfaces for each link to work around this. Right now this configuration is still possible but it does not look nice and may break again in the future as we have to duplicate the firewall zone wired_mesh and add the gluon_wired interfaces with the gluon_preserve flag directly in /etc/config/network. The easiest way to improve this would be to sort the upgrade script 997-migrate-preserved before the 300-firewall-rules which will result in adding the custom gluon_wired interfaces to the wired_mesh zone during gluon-reconfigure. But to be honest this still isn't very nice. It would be really nice if there is an option to create individual gluon_wired interfaces via /etc/config/gluon. |
Just stumbled across @kpanic23 s mockup from 2017
Originally posted by @kpanic23 in #1174 (comment) |
This comment was marked as off-topic.
This comment was marked as off-topic.
@AiyionPrime The mockup from @kpanic23 would be a good first step. But we could allow doing more. The backend code also allows adding arbitrary (?) vlans on top of the lan/wan ports and assigning roles to them. |
In general, I would assume, that we need kind of an "interface discovery", that returns a list of interfaces where roles can be assigned. This would be helpful in cases where people add additional interfaces to the node (e.g. usb network adapters, pci network cards, virtual network cards, ...). |
We should also check the differences between DSA and swconfig devices. I would assume the following:
But these are just assumptions. We should check them. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
I am not quite sure, but I think there are role combinations, that should be forbidden on the same interface. I would say:
|
If I look at the wired interfaces on my TP-Link TL-WDR4900 (with swconfig), there are:
I would say, it makes sense to only show |
Remembering a conversation with @CodeFetch, I would like to append
to the wishlist, which could pave the way for more unambiguous visual representations of device ports, similar to the LuCI switch configuration page. Regarding position, there might be a trade-off between flexibility and simplicity (for "ordinary devices") here, but I think when using appropriate defaults, even a semantic port location structure like
would be feasible to add (i.e. Especially the color in combination with port labelling seems to become more important to avoid confusion among users, with commercial "mesh" equipment hitting the shelves that is not even meant to replace ISP routers anymore (way too much support effort, also users rely on telephony from that box etc.), thus deviating from traditional port roles or even using auto-detection (enable DHCP when no DHCP server was detected on the port). For example, devices from the COVR-X1862 kit have two ports labelled |
@s-2 That would be device information that is not yet available, neither in openwrt nor gluon, is it? While I think it might be an interesting extension and might help the users to understand their device faster, I'd recommend not integrate that feature in the same PR as the one that solves this issue. Your (or @CodeFetch's) suggestion appears to be an orthogonal feature to everything in the current wishlist and neither hinder or support any other feature in it for now. |
Right, there is no such data structure in gluon nor openwrt at the moment, and I believe the latter might not express that much interest either (although there's also e.g.
Another thought that I dropped earlier (lunch break suddenly was over) regarding Unfortunately, this resulted in a randomized mac address (re-generated with every reboot) being assigned to wan, as OpenWrt only explicitly fixes the lan and wan mac addresses for the corresponding But as far as I understand the implementation of port roles in #2372, this is not an issue here (unless we would actually allow adding interfaces for swconfig devices), since the roles just map to either |
(At the 2022-01 Gluon meeting it was decided to open this issue).
With #2372 gluon will officially start supporting the assignment of roles to network interfaces. This means that there is no longer a fixed mapping between network interface and the functionality assigned to that interface. Instead, each network interface is now assigned a user-modifiable list of roles. Since the list of roles is not only user-modifiable, but also allows for additional user-defined interfaces, Gluon's network configuration is much more flexible than before.
However, only the backend part is implemented in #2372. The user interface still needs to be discussed. Since there have been numerous discussions (in many issues) over a long period of time, this issue is intended to work towards a coordinated wish list (that can be implemented).
So far, I have collected links to related issues:
Playing Around with #2372:
The interface to role assignment is defined in /etc/config/gluon:
There are two ways of specifying the
name
option an interface here:/
in at the beginning of/wan
indicates that the actual interface name should be read from/lib/gluon/core/sysconfig/wan_ifname
.eth0.43
directly refers to the interface name.VLAN devices like
eth0.43
will be working directly (without explicit configuration of a vlan interface), since netifd creates vlan interfaces implicitly on demand.Currently the roles
uplink
,client
andmesh
exist.After /etc/config/gluon has been modified,
gluon-reconfigure
has to be called to regenerate/etc/config/network
. After that, the network has to be restarted using/etc/init.d/network restart
.The text was updated successfully, but these errors were encountered: