Please see the concept of "attached network":
http://netjsonconfig.openwisp.org/en/latest/backends/openwrt.html#wireless-attached-to-a-different-network

This is the conf you should be using:

{
    "interfaces": [
        {
            "wireless": {
                "network": ["lan"],
                "mode": "access_point",
                "radio": "radio0",
                "ack_distance": 0,
                "rts_threshold": 0,
                "frag_threshold": 0,
                "ssid": "Righi_Wifi",
                "hidden": false,
                "wds": false,
                "encryption": {
                    "protocol": "wpa2_personal",
                    "key": "WifiRgh-935@?x0",
                    "disabled": false,
                    "cipher": "auto"
                },
                "wmm": true,
                "isolate": false,
                "macfilter": "disable",
                "maclist": []
            },
           "type": "wireless",
            "name": "wlan0",
            "mtu": 1500,
            "mac": "",
            "autostart": true,
            "disabled": false,
            "addresses": [],
            "network": ""
        }
    ]
}

Best regards
Federico Capoano

On Tue, May 18, 2021 at 11:59 AM <[email protected]> wrote:

> {
>
>     "interfaces": [
>
>         {
>
>             "wireless": {
>
>                 "network": [],
>
>                 "mode": "access_point",
>
>                 "radio": "radio0",
>
>                 "ack_distance": 0,
>
>                 "rts_threshold": 0,
>
>                 "frag_threshold": 0,
>
>                 "ssid": "Righi_Wifi",
>
>                 "hidden": false,
>
>                 "wds": false,
>
>                 "encryption": {
>
>                     "protocol": "wpa2_personal",
>
>                     "key": "WifiRgh-935@?x0",
>
>                     "disabled": false,
>
>                     "cipher": "auto"
>
>                 },
>
>                 "wmm": true,
>
>                 "isolate": false,
>
>                 "macfilter": "disable",
>
>                 "maclist": []
>
>             },
>
>            "type": "wireless",
>
>             "name": "wlan0",
>
>             "mtu": 1500,
>
>             "mac": "",
>
>             "autostart": true,
>
>             "disabled": false,
>
>             "addresses": [],
>
>             "network": "LAN"
>
>         }
>
>     ]
>
> }
>
>
>
> Bye
>
>
>
> *Da:* [email protected] <[email protected]> *Per conto di
> *Federico Capoano
> *Inviato:* lunedì 17 maggio 2021 17:46
> *A:* [email protected]
> *Oggetto:* Re: [openwisp] Wireless interface template
>
>
>
> Hi,
>
>
>
> Can you share the NetJSON configuration of this interface please?
>
>
>
> Federico
>
>
>
> On Sun, May 16, 2021 at 2:33 AM <[email protected]> wrote:
>
> I state that I have recently approached Openwrt. I noticed that just
> installed, by default Openwrt has a virtual interface called LAN that
> relies on a bridge called br-lan between the eth0 physical ethernet
> interface and the wlan0 wireless interface.
>
> This wireless interface called wlan0 has in the Network field the virtual
> interface called LAN mentioned above and is associated with the object
> radio0.
>
> I would like to leave the default configuration, but only change the wlan0
> wireless interface settings.
>
> To do this from Openwisp, I created an Interface type template with the
> following fields:
>
>
>
> Interface1: Wireless Interface
>
> name: wlan0
>
> type: wireless
>
> autostart: yes
>
> network: LAN
>
> wireless: access point
>
> mode: access point
>
> radio: radio0
>
>
>
> When I go to the AP, I find that another virtual interface called LAN has
> been created, basically a duplicate. In addition, the wlan0 wireless
> interface appears to be in WDS.
>
>
>
> Why? Thank you
>
> --
> You received this message because you are subscribed to the Google Groups
> "OpenWISP" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/openwisp/078701d74a25%24b9e24c60%242da6e520%24%40gmail.com
> <https://groups.google.com/d/msgid/openwisp/078701d74a25%24b9e24c60%242da6e520%24%40gmail.com?utm_medium=email&utm_source=footer>
> .
>
> --
> You received this message because you are subscribed to the Google Groups
> "OpenWISP" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/openwisp/CAAGgX6L2-D12A-wTxhijmdyvHCzHFX-R4fQnsOYw3YFi8fpufA%40mail.gmail.com
> <https://groups.google.com/d/msgid/openwisp/CAAGgX6L2-D12A-wTxhijmdyvHCzHFX-R4fQnsOYw3YFi8fpufA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> --
> You received this message because you are subscribed to the Google Groups
> "OpenWISP" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/openwisp/0e9801d74c07%243396ec90%249ac4c5b0%24%40gmail.com
> <https://groups.google.com/d/msgid/openwisp/0e9801d74c07%243396ec90%249ac4c5b0%24%40gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/openwisp/CAAGgX6JAMYC0wCtCrHH887aG5mjuB2oeUeRAUsiFD-Vs-svkxw%40mail.gmail.com.

Reply via email to