Skip to content

Multiple LAN Interfaces #2056

@Jixabon

Description

@Jixabon

Is your feature request related to a problem?

My goal is to immitate the function of a traditional router. Using eth0 (pi port) as the WAN port and wlan0 (pi wifi) and/or potential additional wireless and ethernet interfaces, likely via usb, as LAN interfaces. From my personal research this would require a bridge (br0) to allow the same subnet and dhcp like a traditional router. To get this outcome right now I'm required to create and modify files manually, potentially causing issues on the web interface as well as not being able to change things from the web ui.

Describe the solution you'd like

An interface to enable "Multi LAN Interfaces" which would create a bridge but keep the DHCP and everything as usual. A configure interface which would allow you to select which interfaces you want to be part of said bridge and be LAN interfaces. Due to the nature of USB dongles, configured LAN interfaces may not be available after a boot or might be new. An ease of use feature would be a cache of MAC addresses of USB interfaces. While running when the system detects that said MAC address has been connected and is part of the LAN interfaces. Add the interface to the bridge and restart relavant services. This would also work visa versa when unplugging the device. When there are no additional interfaces besides potentially wlan0 in the bridge it could just sit there waiting for other interfaces when "Multi LAN Interfaces" is enabled. In essence it would make a sort of modular traditional router which has hot swappable ports as they are needed. Need 4 ethernet ports? 1 ethernet and another wireless adapter? Just add them to the bridge!

Describe alternatives you've considered

  • Use separate subnets for each LAN interface
  • Modify files manually, which requires technical and networking knowledge.
  • Use different software/OS

Additional context

I understand this could be a significant undertaking. All work is greatly appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions