Working cfg in OWRT interface/bridgedevice/network, but error in OpenWisp deployment

65 views
Skip to first unread message

J H

unread,
Dec 20, 2022, 3:40:24 AM12/20/22
to OpenWISP
hi

On OWRT 21.x / 22.x I already have a working cfg, but i wanted to deploy it via latest OpenWisp

radio0 (5Ghz) and radio1 (2Ghz) with same SSid and bound to same network and bridge vlan 10 on eth0:

config device 'device5'
    option bridge_empty '1'
    option name 'br-iot'
    list ports 'eth0.10'
    option type 'bridge'

config wifi-iface 'wifinet9'
    option device 'radio0'
    option mode 'ap'
    option network 'lan_iot'
    option disabled '0'
    option ssid 'iot'

config wifi-iface 'wifinet10'
    option device 'radio1'
    option mode 'ap'
    option network 'lan_iot'
    option disabled '0'
    option ssid 'iot'

config interface 'lan_iot'
    option proto 'none'
    option device 'br-iot'


When i try to this this via OpenWisp i get this config which does not work:

config device 'device_lan_iot'
    option name 'br_iot'
    list ports 'eth0.22'
    option type 'bridge'

config interface 'lan_iot'
    option auto '1'
    option bridge_empty '1'
    option device 'br_iot'
    option enabled '1'
    option proto 'none'

config device 'device_lan_iot'
    option mtu '1500'
    option name 'iot5'

config interface 'lan_iot'
    option auto '1'
    option device 'iot5'
    option enabled '1'
    option proto 'none'

config device 'device_lan_iot'
    option mtu '1500'
    option name 'iot2'

config interface 'lan_iot'
    option auto '1'
    option device 'iot2'
    option enabled '1'
    option proto 'none'

package wireless

config wifi-device 'radio0'
    option disabled '0'

config wifi-device 'radio1'
    option disabled '0'

config wifi-iface 'wifi_iot5'
    option device 'radio0'
    option disabled '0'
    option ifname 'iot5'
    option mode 'ap'
    option network 'lan_iot'
    option ssid 'iot'

config wifi-iface 'wifi_iot2'
    option device 'radio1'
    option disabled '0'
    option ifname 'iot2'
    option mode 'ap'
    option network 'lan_iot'
    option ssid 'iot'


Why are ifname used and devices built that are not used ? If i add iot2 or iot5 interfaces as bridge members then deployment also fails.
Is it possible to built a cfg w/o ifnames and those interfaces ? Because that config works - just use network in wifi-ifaces.

thank you


J H

unread,
Dec 20, 2022, 3:42:35 AM12/20/22
to OpenWISP
Ignore the   "list ports 'eth0.22'  " typo.   VLAN id is not relevant here - bridge and device work on eth, just not when i want to add wifi to it.

Federico Capoano

unread,
Dec 20, 2022, 7:45:52 AM12/20/22
to open...@googlegroups.com
Hi JH,

Can you please post the NetJSON config you're using to generate this?

F.

--
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 openwisp+u...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openwisp/f9c4d66c-2ab4-40f6-9e4a-c1353fde7da7n%40googlegroups.com.

J H

unread,
Dec 20, 2022, 5:36:01 PM12/20/22
to OpenWISP
{
    "radios": [
        {
            "protocol": "802.11ac",
            "name": "radio0",
            "channel": 0,
            "channel_width": 20,
            "country": "AT",
            "disabled": false,
            "driver": "mac80211",
            "hwmode": "11a",
            "channels": "96-136",
            "cell_density": 1,
            "rrm_neighbor_report": true,
            "ieee80211k": true,
            "rrm_beacon_report": true,
            "time_advertisement": 2,
            "time_zone": "CET-1CEST,M3.5.0,M10.5.0/3",
            "wnm_sleep_mode": false,
            "bss_transition": true,
            "country_ie": true,
            "beacon_int": 100
        },
        {
            "protocol": "802.11n",
            "name": "radio1",
            "channel": 0,
            "channel_width": 20,
            "country": "AT",
            "disabled": false,
            "driver": "mac80211",
            "hwmode": "11g",
            "channels": "13 5 1 9",
            "cell_density": 2,
            "rrm_neighbor_report": true,
            "ieee80211k": true,
            "rrm_beacon_report": true,
            "time_advertisement": 2,
            "time_zone": "CET-1CEST,M3.5.0,M10.5.0/3",
            "wnm_sleep_mode": false,
            "bss_transition": true,
            "country_ie": true,
            "beacon_int": 200
        }
    ],
    "interfaces": [
        {
            "type": "bridge",
            "bridge_members": [
                "eth0.22"
            ],
            "name": "br_iot",
            "disabled": false,
            "network": "lan_iot",
            "autostart": true
        },
        {
            "wireless": {
                "network": [
                    "lan_iot"
                ],
                "mode": "access_point",
                "radio": "radio0",
                "ack_distance": 0,
                "rts_threshold": 0,
                "frag_threshold": 0,
                "ssid": "iot",
                "hidden": false,
                "wds": false,
                "encryption": {
                    "protocol": "wpa2_personal",
                    "key": "xxxxxxxxxxxx",
                    "disabled": false,
                    "cipher": "ccmp",
                    "ieee80211w": "0",
                    "wpa_disable_eapol_key_retries": 0,
                    "wpa_group_rekey": 3600
                },
                "wmm": false,
                "isolate": true,
                "ieee80211r": true,
                "reassociation_deadline": 20000,
                "ft_psk_generate_local": true,
                "ft_over_ds": true,
                "rsn_preauth": true,
                "macfilter": "disable",
                "maclist": [],
                "mobility_domain": "3333",
                "pmk_r1_push": true,
                "dtim_period": 3
            },
            "type": "wireless",
            "name": "iot5",
            "mtu": 1500,
            "disabled": false,
            "network": "lan_iot",
            "mac": "",
            "autostart": true
        },
        {
            "wireless": {
                "network": [
                    "lan_iot"
                ],
                "mode": "access_point",
                "radio": "radio1",
                "ack_distance": 0,
                "rts_threshold": 0,
                "frag_threshold": 0,
                "ssid": "iot",
                "hidden": false,
                "wds": false,
                "encryption": {
                    "protocol": "wpa2_personal",
                    "key": "XXXXXXXXXXXX",
                    "disabled": false,
                    "cipher": "ccmp",
                    "ieee80211w": "0",
                    "wpa_disable_eapol_key_retries": 0,
                    "wpa_group_rekey": 3600
                },
                "wmm": false,
                "isolate": true,
                "ieee80211r": true,
                "reassociation_deadline": 20000,
                "ft_psk_generate_local": true,
                "ft_over_ds": true,
                "rsn_preauth": true,
                "macfilter": "disable",
                "maclist": [],
                "mobility_domain": "3333",
                "pmk_r1_push": true,
                "dtim_period": 3
            },
            "type": "wireless",
            "name": "iot2",
            "mtu": 1500,
            "disabled": false,
            "network": "lan_iot",
            "mac": "",
            "autostart": true
        }
    ]
Reply all
Reply to author
Forward
0 new messages