1 (edytowany przez safe0101 2018-11-11 14:48:39)

Temat: Redundancja dostępu do internetu (kabel - wifi)

Cześć, potrzebuje zrobić sobie backup w postaci drugiego łącza Internetowego.
Podpisałem umowę u jednego z dostawców usług sieci, z limitem 40GB/mc, karta SIM wyłącznie z dostępem do Internetu.

Telefon będzie pełnił funkcję bramy, z aktywnym tethering'iem.
W telefonie będzie przypisany adres MAC katy WiFI router'a z OPENWRT, tak więc tylko ten router będzie miał dostęp do telefonu.

Potrzebuje sobie zrobić jakiś heartbeat, sprawdzający co 30 sec czy usługa dostępu do Internetu zarówno przez kabel  jak i przez telefon jest aktywna.

Teraz tak:
- jeśli usługa kablowa przestanie być aktywna, natychmiast przełączam się na telefon (i odwrotnie), wysyłając maila z informacją
- jeśli usługa kablowa stanie się dostępna (powinna być priorytetowa), automatycznie przełączam się z telefonu na kabel
- jeśli heartbeat wykryje, że któraś z usług przestała być aktywna, wysyła maila z informacją

Kabel:
Statyczna konfiguracja

Telefon:
DHCP

Pomożecie mi coś takiego skonfigurować ?

Hitron CGNv4 // Cisco Meraki-MR18
TL-WR1043NDv2, Mikrotik RB2011UiAS-2HnD-IN Pracują na LEDE
https://wiki.openwrt.org/toh/mikrotik/r … ll_openwrt

2

Odp: Redundancja dostępu do internetu (kabel - wifi)

Zainstaluj mwan3 (opisane na eko.one.pl), obsługę mejla sobie dorób (było to wałkowane tu na forum, właśnie do mwan3).

Niestety jak widzę chcesz zrobić z wifi klienta. Jeżeli to wifi ma być dodatkowo też ap, to możesz mieć zabawę jak będzie wyłączał ap jak klient straci połączenie.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3

Odp: Redundancja dostępu do internetu (kabel - wifi)

Cezary napisał/a:

Zainstaluj mwan3 (opisane na eko.one.pl), obsługę mejla sobie dorób (było to wałkowane tu na forum, właśnie do mwan3).
Niestety jak widzę chcesz zrobić z wifi klienta. Jeżeli to wifi ma być dodatkowo też ap, to możesz mieć zabawę jak będzie wyłączał ap jak klient straci połączenie.

Dzięki, poszukam.

WiFi nie będzie pracować jako AP, jego zadaniem będzie wyłącznie dostarczyć sieć do router'a z telefonu.

Żaden klient nie będzie się do routera podłączał bezprzewodowo.

Hitron CGNv4 // Cisco Meraki-MR18
TL-WR1043NDv2, Mikrotik RB2011UiAS-2HnD-IN Pracują na LEDE
https://wiki.openwrt.org/toh/mikrotik/r … ll_openwrt

4

Odp: Redundancja dostępu do internetu (kabel - wifi)

mam tak

config interface 'loopback'
    option device 'lo'
    option proto 'static'
    option ipaddr '127.0.0.1'
    option netmask '255.0.0.0'

config globals 'globals'
    option ula_prefix 'fdf8:4727:2690::/48'
    option dhcp_default_duid '0004ddc5efd08f9d4bac9b0394e94a99420c'

config device 'brlan_dev'
    option name 'br-lan'
    option type 'bridge'
    list ports 'eth0.1'

config interface 'lan'
    option device 'br-lan'
    option proto 'static'
    option ipaddr '192.168.0.1'
    option netmask '255.255.255.0'
    option ip6assign '60'
    option ip6ifaceid '::1'
    option dns '192.168.0.1'

config switch
    option name 'switch0'
    option reset '1'
    option enable_vlan '1'

config switch_vlan 'switch_lan_vlan'
    option device 'switch0'
    option vlan '1'
    option ports '1 2 3 0t'

config switch_vlan 'switch_wan_vlan'
    option device 'switch0'
    option vlan '2'
    option ports '5 0t'

config device 'wan_eth_dev'
    option name 'eth0.2'
    option macaddr 'd4:72:26:15:fd:ed'

config interface 'wan'
    option device 'eth0.2'
    option proto 'pppoe'
    option username 'TU_WPISZ_LOGIN_OD_DOSTAWCY'
    option password 'TU_WPISZ_HASLO_OD_DOSTAWCY'
    option ipv6 '0'
    option metric '10'
    option peerdns '0'
    list dns '8.8.8.8'
    list dns '1.1.1.1'

config interface 'lte'
    option proto 'ncm'
    option device '/dev/ttyACM0'
    option username 'internet'
    option password 'internet'
    option apn 'internet'
    option pincode 'XXXX'
    option mobile_isp 'Poland - Orange'
    option ipv6 '0'
    option metric '20'
    option peerdns '0'
    list dns '8.8.8.8'
    list dns '1.1.1.1'

ale jak tylko coś zmienia w GUI np longin i hasło to łącze pada
czy jest zatem przewidywana w przyszłości zmiana w samym GUI w tym zakresie? smile
mam router ZTE MF286R z Gargoyle: 1.15.0.5 (Built 20260411-1712 git@cf140c45) czyli najnowsza

5

Odp: Redundancja dostępu do internetu (kabel - wifi)

Bo oba pola są typu password i przeglądarka wprowadza ci zapamiętane hasło w pola.

Nie rób zapamiętywania haseł dla tej strony

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

6 (edytowany przez jecekjacek 2026-07-22 17:05:52)

Odp: Redundancja dostępu do internetu (kabel - wifi)

Cezary napisał/a:

Bo oba pola są typu password i przeglądarka wprowadza ci zapamiętane hasło w pola.

Nie rób zapamiętywania haseł dla tej strony

Chyba nie precyzyjnie zapytałem smile
Chodzi o to że po jakiejkolwiek zmianie i zapisie w GUI, w pliku nerwork zmienia sie sekcja 'wan' w

config interface 'wan'
    option device 'eth0.2'
    option proto 'pppoe'
    option username 'TU_WPISZ_LOGIN_OD_DOSTAWCY'
    option password 'TU_WPISZ_HASLO_OD_DOSTAWCY'
    option ipv6 '0'
    option metric '10'
    option peerdns '0'
    list dns '8.8.8.8'
    list dns '1.1.1.1' 

Wzmianka o haśle była tylko przykładem
Redundancja nie działa
Czyli jak wypne kabel z wan lte nie działa, a ma sie przełączyć automatycznie

7

Odp: Redundancja dostępu do internetu (kabel - wifi)

Zgubiłem się. Co się zmienia w wan, bo tego nie widzię.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

8

Odp: Redundancja dostępu do internetu (kabel - wifi)

Jest tak

ifstatus wan
{
        "up": true,
        "pending": false,
        "available": true,
        "autostart": true,
        "dynamic": false,
        "uptime": 15,
        "l3_device": "eth0.2",
        "proto": "dhcp",
        "device": "eth0.2",
        "updated": [
                "addresses",
                "routes",
                "data"
        ],
        "metric": 10,
        "dns_metric": 0,
        "delegation": true,
        "ipv4-address": [
                {
                        "address": "192.168.5.189",
                        "mask": 24
                }
        ],
        "ipv6-address": [

        ],
        "ipv6-prefix": [

        ],
        "ipv6-prefix-assignment": [

        ],
        "route": [
                {
                        "target": "0.0.0.0",
                        "mask": 0,
                        "nexthop": "192.168.5.1",
                        "source": "192.168.5.189/32"
                }
        ],
        "dns-server": [
                "8.8.8.8",
                "1.1.1.1"
        ],
        "dns-search": [

        ],
        "neighbors": [

        ],
        "inactive": {
                "ipv4-address": [

                ],
                "ipv6-address": [

                ],
                "route": [

                ],
                "dns-server": [
                        "192.168.5.1"
                ],
                "dns-search": [
                        "home.arpa"
                ],
                "neighbors": [

                ]
        },
        "data": {
                "dhcpserver": "192.168.5.1",
                "hostname": "Gargoyle",
                "leaseacquired": 1102,
                "leasetime": 43200
        }
}
root@Gargoyle:~# ifstatus lte
{
        "up": true,
        "pending": false,
        "available": true,
        "autostart": true,
        "dynamic": false,
        "uptime": 1035,
        "l3_device": "usb1",
        "proto": "ncm",
        "updated": [
                "data"
        ],
        "metric": 20,
        "dns_metric": 0,
        "delegation": true,
        "ipv4-address": [

        ],
        "ipv6-address": [

        ],
        "ipv6-prefix": [

        ],
        "ipv6-prefix-assignment": [

        ],
        "route": [

        ],
        "dns-server": [
                "8.8.8.8",
                "1.1.1.1"
        ],
        "dns-search": [

        ],
        "neighbors": [

        ],
        "inactive": {
                "ipv4-address": [

                ],
                "ipv6-address": [

                ],
                "route": [

                ],
                "dns-server": [

                ],
                "dns-search": [

                ],
                "neighbors": [

                ]
        },
        "data": {
                "manufacturer": "\"zte"
        }
}
root@Gargoyle:~# ip route
default via 192.168.5.1 dev eth0.2 proto static src 192.168.5.189 metric 10
default via 10.109.105.30 dev usb1 proto static src 10.109.105.225 metric 20
10.109.105.0/24 dev usb1 proto static scope link metric 20
192.168.5.0/24 dev eth0.2 proto static scope link metric 10
192.168.40.0/24 dev br-lan proto kernel scope link src 192.168.40.1

9

Odp: Redundancja dostępu do internetu (kabel - wifi)

Wyciągnij kabel z wanu, przełączy się na lte.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

10

Odp: Redundancja dostępu do internetu (kabel - wifi)

Cezary napisał/a:

Wyciągnij kabel z wanu, przełączy się na lte.

jasne smile
ale jak dam zapis w GUI to mam tak

config interface 'loopback'
    option device 'lo'
    option proto 'static'
    option ipaddr '127.0.0.1'
    option netmask '255.0.0.0'

config globals 'globals'
    option ula_prefix 'fdf8:4727:2690::/48'
    option dhcp_default_duid '0004ddc5efd08f9d4bac9b0394e94a99420c'

config device 'brlan_dev'
    option name 'br-lan'
    option type 'bridge'
    list ports 'eth0.1'

config interface 'lan'
    option device 'br-lan'
    option proto 'static'
    option ipaddr '192.168.40.1'
    option netmask '255.255.255.0'
    option ip6assign '60'
    option ip6ifaceid '::1'
    option dns '192.168.40.1'

config switch
    option name 'switch0'
    option reset '1'
    option enable_vlan '1'

config switch_vlan 'switch_lan_vlan'
    option device 'switch0'
    option vlan '1'
    option ports '1 2 3 0t'

config switch_vlan 'switch_wan_vlan'
    option device 'switch0'
    option vlan '2'
    option ports '5 0t'

config device 'wan_eth_dev'
    option name 'eth0.2'
    option macaddr 'd4:72:26:15:fd:ed'

[b]config interface 'wan'
    option device '/dev/ttyACM0'
    option proto 'dhcp'
    option metric '10'
    option ipv6 '0[/b]'

config interface 'lte'
    option proto 'ncm'
    option device '/dev/ttyACM0'
    option username 'internet'
    option password 'internet'
    option apn 'internet'
    option pincode '6505'
    option mobile_isp 'Poland - Orange'
    option ipv6 '0'
    option metric '20'
    option peerdns '0'
    list dns '8.8.8.8'
    list dns '1.1.1.1'

co co pogrubione powinno być takie
wtedy będzie działać redundancja

config interface 'wan'
    option device 'eth0.2'
    option proto 'dhcp'
    option metric '10'
    option peerdns '0'
    list dns '8.8.8.8'
    list dns '1.1.1.1'

11

Odp: Redundancja dostępu do internetu (kabel - wifi)

Jaki to router?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

12

Odp: Redundancja dostępu do internetu (kabel - wifi)

<W pierwszym poście>
ZTE MF286R z Gargoyle: 1.15.0.5 (Built 20260411-1712 git@cf140c45)

13

Odp: Redundancja dostępu do internetu (kabel - wifi)

I czemu się dziwisz? MF286R nie definiuje wanu w ogóle w konfigruacji, więc gui nie wie co tak naprawdę jest wanem. Nie ustawi ci tego poprawnie.

Dwa rozwiązania:
- nie ruszaj nic w gui
- zmień sobie board.json definiując wan, żeby gui wiedziało co później podstawić jako wan.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

14 (edytowany przez jecekjacek 2026-07-22 18:39:28)

Odp: Redundancja dostępu do internetu (kabel - wifi)

tak będzie OK?

{
    "model": {
        "id": "zte,mf286r",
        "name": "ZTE MF286R"
    },
    "switch": {
        "switch0": {
            "enable": true,
            "reset": true,
            "ports": [
                {
                    "num": 0,
                    "device": "eth0",
                    "need_tag": false,
                    "want_untag": false
                },
                {
                    "num": 1,
                    "role": "lan",
                    "index": 4
                },
                {
                    "num": 2,
                    "role": "lan",
                    "index": 3
                },
                {
                    "num": 3,
                    "role": "lan",
                    "index": 2
                },
                {
                    "num": 5,
                    "role": "wan",
                    "index": 1
                }
            ],
            "roles": [
                {
                    "role": "lan",
                    "ports": "1 2 3 0t",
                    "device": "eth0.1"
                },
                {
                    "role": "wan",
                    "ports": "5 0t",
                    "device": "eth0.2"
                }
            ]
        }
    },
    "network": {
        "lan": {
            "device": "eth0.1",
            "protocol": "static"
        },
        "wan": {
            "device": "eth0.2",
            "protocol": "dhcp"
        }
    },
    "gpioswitch": {
        "power_btn_block": {
            "name": "Power button blocker",
            "pin": "532",
            "default": 0
        }
    },
    "wlan": {
        "phy0": {
            "path": "pci0000:00/0000:00:00.0",
            "info": {
                "antenna_rx": 3,
                "antenna_tx": 3,
                "bands": {
                    "5G": {
                        "ht": true,
                        "vht": true,
                        "max_width": 80,
                        "modes": [
                            "NOHT",
                            "HT20",
                            "VHT20",
                            "HT40",
                            "VHT40",
                            "VHT80"
                        ],
                        "default_channel": 36
                    }
                },
                "radios": []
            }
        },
        "phy1": {
            "path": "platform/ahb/18100000.wmac",
            "info": {
                "antenna_rx": 7,
                "antenna_tx": 7,
                "bands": {
                    "2G": {
                        "ht": true,
                        "max_width": 40,
                        "modes": [
                            "NOHT",
                            "HT20",
                            "HT40"
                        ],
                        "default_channel": 1
                    }
                },
                "radios": []
            }
        }
    }
}

było tak

{
    "model": {
        "id": "zte,mf286r",
        "name": "ZTE MF286R"
    },
    "switch": {
        "switch0": {
            "enable": true,
            "reset": true,
            "ports": [
                {
                    "num": 0,
                    "device": "eth0",
                    "need_tag": false,
                    "want_untag": false
                },
                {
                    "num": 1,
                    "role": "lan",
                    "index": 4
                },
                {
                    "num": 2,
                    "role": "lan",
                    "index": 3
                },
                {
                    "num": 3,
                    "role": "lan",
                    "index": 2
                },
                {
                    "num": 5,
                    "role": "lan",
                    "index": 1
                }
            ],
            "roles": [
                {
                    "role": "lan",
                    "ports": "1 2 3 5 0t",
                    "device": "eth0.1"
                }
            ]
        }
    },
    "network": {
        "lan": {
            "device": "eth0.1",
            "protocol": "static"
        }
    },
    "gpioswitch": {
        "power_btn_block": {
            "name": "Power button blocker",
            "pin": "532",
            "default": 0
        }
    },
    "wlan": {
        "phy0": {
            "path": "pci0000:00/0000:00:00.0",
            "info": {
                "antenna_rx": 3,
                "antenna_tx": 3,
                "bands": {
                    "5G": {
                        "ht": true,
                        "vht": true,
                        "max_width": 80,
                        "modes": [
                            "NOHT",
                            "HT20",
                            "VHT20",
                            "HT40",
                            "VHT40",
                            "VHT80"
                        ],
                        "default_channel": 36
                    }
                },
                "radios": [
                ]
            }
        },
        "phy1": {
            "path": "platform/ahb/18100000.wmac",
            "info": {
                "antenna_rx": 7,
                "antenna_tx": 7,
                "bands": {
                    "2G": {
                        "ht": true,
                        "max_width": 40,
                        "modes": [
                            "NOHT",
                            "HT20",
                            "HT40"
                        ],
                        "default_channel": 1
                    }
                },
                "radios": [
                ]
            }
        }
    }
}

15

Odp: Redundancja dostępu do internetu (kabel - wifi)

Chyba coś takiego. Zrestartuj, w /tmp/cached_basic_vars będziesz miał zmienne które gargoyle wykryło, zobacz czy widzi interfejs wanu i co widzi.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

16

Odp: Redundancja dostępu do internetu (kabel - wifi)

niestety zmiana w pomogła
w /tmp/cached_basic_vars
mam tak

var isBcm94704 = false;
var allLanMacs = [];
allLanMacs.push("d4:72:26:15:fd:ed");
allLanMacs.push("d4:72:26:15:fd:ed");
allLanMacs.push("d4:72:26:17:fd:ed");
allLanMacs.push("d4:72:26:17:fd:ed");
var isRamips = false;
var wifiDevG=uciWirelessDevs.length > 0 ? uciWirelessDevs[0] : "";
var wifiDevA="";
var phyRadio=[];
var radioPhy=[];
var phyCapab=[];
var wirelessDriver="mac80211";
var mac80211Channels = [];
var mac80211ChFreqs = [];
var mac80211ChPwrs = [];
var nextCh=[];
var dualBandWireless=true;
nextCh     = [];
nextChFreq = [];
nextChPwr  = [];
wifiDevA="radio0";
var AwifiN = true;
var AwifiAC = true;
var AwifiAX = false;
var maxACwidth = "80" ;
var AC80P80 = false;
var maxAXwidth = "0" ;
var AX80P80 = false;
nextCh.push(36); nextChFreq[36] = "5180MHz"; nextChPwr[36] = 23;
nextCh.push(40); nextChFreq[40] = "5200MHz"; nextChPwr[40] = 23;
nextCh.push(44); nextChFreq[44] = "5220MHz"; nextChPwr[44] = 23;
nextCh.push(48); nextChFreq[48] = "5240MHz"; nextChPwr[48] = 23;
nextCh.push(52); nextChFreq[52] = "5260MHz"; nextChPwr[52] = 20;
nextCh.push(56); nextChFreq[56] = "5280MHz"; nextChPwr[56] = 20;
nextCh.push(60); nextChFreq[60] = "5300MHz"; nextChPwr[60] = 20;
nextCh.push(64); nextChFreq[64] = "5320MHz"; nextChPwr[64] = 20;
nextCh.push(100); nextChFreq[100] = "5500MHz"; nextChPwr[100] = 26;
nextCh.push(104); nextChFreq[104] = "5520MHz"; nextChPwr[104] = 26;
nextCh.push(108); nextChFreq[108] = "5540MHz"; nextChPwr[108] = 26;
nextCh.push(112); nextChFreq[112] = "5560MHz"; nextChPwr[112] = 26;
nextCh.push(116); nextChFreq[116] = "5580MHz"; nextChPwr[116] = 26;
nextCh.push(120); nextChFreq[120] = "5600MHz"; nextChPwr[120] = 26;
nextCh.push(124); nextChFreq[124] = "5620MHz"; nextChPwr[124] = 26;
nextCh.push(128); nextChFreq[128] = "5640MHz"; nextChPwr[128] = 26;
nextCh.push(132); nextChFreq[132] = "5660MHz"; nextChPwr[132] = 26;
nextCh.push(136); nextChFreq[136] = "5680MHz"; nextChPwr[136] = 26;
nextCh.push(140); nextChFreq[140] = "5700MHz"; nextChPwr[140] = 26;
nextCh.push(144); nextChFreq[144] = "5720MHz"; nextChPwr[144] = 13;
nextCh.push(149); nextChFreq[149] = "5745MHz"; nextChPwr[149] = 13;
nextCh.push(153); nextChFreq[153] = "5765MHz"; nextChPwr[153] = 13;
nextCh.push(157); nextChFreq[157] = "5785MHz"; nextChPwr[157] = 13;
nextCh.push(161); nextChFreq[161] = "5805MHz"; nextChPwr[161] = 13;
nextCh.push(165); nextChFreq[165] = "5825MHz"; nextChPwr[165] = 13;
nextCh.push(169); nextChFreq[169] = "5845MHz"; nextChPwr[169] = 13;
nextCh.push(173); nextChFreq[173] = "5865MHz"; nextChPwr[173] = 13;
mac80211Channels["A"] = nextCh ;
mac80211ChFreqs["A"]  = nextChFreq ;
mac80211ChPwrs["A"]   = nextChPwr ;
phyRadio["phy0"] = "radio0";
radioPhy["radio0"] = "phy0";
phyCapab["phy0"] = [];
phyCapab["phy0"]["5G"] = [];
phyCapab["phy0"]["5G"]["ht"] = 1;
phyCapab["phy0"]["5G"]["vht"] = 1;
phyCapab["phy0"]["5G"]["he"] = 0;
phyCapab["phy0"]["5G"]["max_width"] = 80;
phyCapab["phy0"]["5G"]["modes"] = [];
phyCapab["phy0"]["5G"]["modes"].push("NOHT");
phyCapab["phy0"]["5G"]["modes"].push("HT20");
phyCapab["phy0"]["5G"]["modes"].push("VHT20");
phyCapab["phy0"]["5G"]["modes"].push("HT40");
phyCapab["phy0"]["5G"]["modes"].push("VHT40");
phyCapab["phy0"]["5G"]["modes"].push("VHT80");
phyCapab["phy0"]["5G"]["channels"] = [];
phyCapab["phy0"]["5G"]["freqs"] = [];
phyCapab["phy0"]["5G"]["pwrs"] = [];
nextCh     = [];
nextChFreq = [];
nextChPwr  = [];
nextCh.push(36); nextChFreq[36] = "5180MHz"; nextChPwr[36] = 23;
nextCh.push(40); nextChFreq[40] = "5200MHz"; nextChPwr[40] = 23;
nextCh.push(44); nextChFreq[44] = "5220MHz"; nextChPwr[44] = 23;
nextCh.push(48); nextChFreq[48] = "5240MHz"; nextChPwr[48] = 23;
nextCh.push(52); nextChFreq[52] = "5260MHz"; nextChPwr[52] = 20;
nextCh.push(56); nextChFreq[56] = "5280MHz"; nextChPwr[56] = 20;
nextCh.push(60); nextChFreq[60] = "5300MHz"; nextChPwr[60] = 20;
nextCh.push(64); nextChFreq[64] = "5320MHz"; nextChPwr[64] = 20;
nextCh.push(100); nextChFreq[100] = "5500MHz"; nextChPwr[100] = 26;
nextCh.push(104); nextChFreq[104] = "5520MHz"; nextChPwr[104] = 26;
nextCh.push(108); nextChFreq[108] = "5540MHz"; nextChPwr[108] = 26;
nextCh.push(112); nextChFreq[112] = "5560MHz"; nextChPwr[112] = 26;
nextCh.push(116); nextChFreq[116] = "5580MHz"; nextChPwr[116] = 26;
nextCh.push(120); nextChFreq[120] = "5600MHz"; nextChPwr[120] = 26;
nextCh.push(124); nextChFreq[124] = "5620MHz"; nextChPwr[124] = 26;
nextCh.push(128); nextChFreq[128] = "5640MHz"; nextChPwr[128] = 26;
nextCh.push(132); nextChFreq[132] = "5660MHz"; nextChPwr[132] = 26;
nextCh.push(136); nextChFreq[136] = "5680MHz"; nextChPwr[136] = 26;
nextCh.push(140); nextChFreq[140] = "5700MHz"; nextChPwr[140] = 26;
nextCh.push(144); nextChFreq[144] = "5720MHz"; nextChPwr[144] = 13;
nextCh.push(149); nextChFreq[149] = "5745MHz"; nextChPwr[149] = 13;
nextCh.push(153); nextChFreq[153] = "5765MHz"; nextChPwr[153] = 13;
nextCh.push(157); nextChFreq[157] = "5785MHz"; nextChPwr[157] = 13;
nextCh.push(161); nextChFreq[161] = "5805MHz"; nextChPwr[161] = 13;
nextCh.push(165); nextChFreq[165] = "5825MHz"; nextChPwr[165] = 13;
nextCh.push(169); nextChFreq[169] = "5845MHz"; nextChPwr[169] = 13;
nextCh.push(173); nextChFreq[173] = "5865MHz"; nextChPwr[173] = 13;
phyCapab["phy0"]["5G"]["channels"] = nextCh ;
phyCapab["phy0"]["5G"]["freqs"]  = nextChFreq ;
phyCapab["phy0"]["5G"]["pws"]   = nextChPwr ;
nextCh     = [];
nextChFreq = [];
nextChPwr  = [];
wifiDevG="radio1";
var GwifiN = true;
var GwifiAX = false;
nextCh.push(1); nextChFreq[1] = "2412MHz"; nextChPwr[1] = 20;
nextCh.push(2); nextChFreq[2] = "2417MHz"; nextChPwr[2] = 20;
nextCh.push(3); nextChFreq[3] = "2422MHz"; nextChPwr[3] = 20;
nextCh.push(4); nextChFreq[4] = "2427MHz"; nextChPwr[4] = 20;
nextCh.push(5); nextChFreq[5] = "2432MHz"; nextChPwr[5] = 20;
nextCh.push(6); nextChFreq[6] = "2437MHz"; nextChPwr[6] = 20;
nextCh.push(7); nextChFreq[7] = "2442MHz"; nextChPwr[7] = 20;
nextCh.push(8); nextChFreq[8] = "2447MHz"; nextChPwr[8] = 20;
nextCh.push(9); nextChFreq[9] = "2452MHz"; nextChPwr[9] = 20;
nextCh.push(10); nextChFreq[10] = "2457MHz"; nextChPwr[10] = 20;
nextCh.push(11); nextChFreq[11] = "2462MHz"; nextChPwr[11] = 20;
nextCh.push(12); nextChFreq[12] = "2467MHz"; nextChPwr[12] = 20;
nextCh.push(13); nextChFreq[13] = "2472MHz"; nextChPwr[13] = 20;
mac80211Channels["G"] = nextCh ;
mac80211ChFreqs["G"]  = nextChFreq ;
mac80211ChPwrs["G"]   = nextChPwr ;
phyRadio["phy1"] = "radio1";
radioPhy["radio1"] = "phy1";
phyCapab["phy1"] = [];
phyCapab["phy1"]["2G"] = [];
phyCapab["phy1"]["2G"]["ht"] = 1;
phyCapab["phy1"]["2G"]["vht"] = 0;
phyCapab["phy1"]["2G"]["he"] = 0;
phyCapab["phy1"]["2G"]["max_width"] = 40;
phyCapab["phy1"]["2G"]["modes"] = [];
phyCapab["phy1"]["2G"]["modes"].push("NOHT");
phyCapab["phy1"]["2G"]["modes"].push("HT20");
phyCapab["phy1"]["2G"]["modes"].push("HT40");
phyCapab["phy1"]["2G"]["channels"] = [];
phyCapab["phy1"]["2G"]["freqs"] = [];
phyCapab["phy1"]["2G"]["pwrs"] = [];
nextCh     = [];
nextChFreq = [];
nextChPwr  = [];
nextCh.push(1); nextChFreq[1] = "2412MHz"; nextChPwr[1] = 20;
nextCh.push(2); nextChFreq[2] = "2417MHz"; nextChPwr[2] = 20;
nextCh.push(3); nextChFreq[3] = "2422MHz"; nextChPwr[3] = 20;
nextCh.push(4); nextChFreq[4] = "2427MHz"; nextChPwr[4] = 20;
nextCh.push(5); nextChFreq[5] = "2432MHz"; nextChPwr[5] = 20;
nextCh.push(6); nextChFreq[6] = "2437MHz"; nextChPwr[6] = 20;
nextCh.push(7); nextChFreq[7] = "2442MHz"; nextChPwr[7] = 20;
nextCh.push(8); nextChFreq[8] = "2447MHz"; nextChPwr[8] = 20;
nextCh.push(9); nextChFreq[9] = "2452MHz"; nextChPwr[9] = 20;
nextCh.push(10); nextChFreq[10] = "2457MHz"; nextChPwr[10] = 20;
nextCh.push(11); nextChFreq[11] = "2462MHz"; nextChPwr[11] = 20;
nextCh.push(12); nextChFreq[12] = "2467MHz"; nextChPwr[12] = 20;
nextCh.push(13); nextChFreq[13] = "2472MHz"; nextChPwr[13] = 20;
phyCapab["phy1"]["2G"]["channels"] = nextCh ;
phyCapab["phy1"]["2G"]["freqs"]  = nextChFreq ;
phyCapab["phy1"]["2G"]["pws"]   = nextChPwr ;
var wpad_eap = true;
var wpad_sae = true;
var wpad_owe = true;
var wpad_sb192 = true;
var wpad_wep = false;
var distribTarget='ath79/nand';

17

Odp: Redundancja dostępu do internetu (kabel - wifi)

Moja wina, to jest trzymane w /etc/gargoyle_default_ifs, tam sobie zmień.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

18

Odp: Redundancja dostępu do internetu (kabel - wifi)

czyli ma być tak?

default_lan_if    eth0.1
default_wan_if    eth0.2
default_wan_mac    d4:72:26:15:fd:ed

19

Odp: Redundancja dostępu do internetu (kabel - wifi)

tak.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

20

Odp: Redundancja dostępu do internetu (kabel - wifi)

super dzięki pomogło smile
zmieniłem jeszcze wpis w 02_network

zte,mf286|\
zte,mf286a|\
zte,mf286r)
    ucidef_add_switch "switch0" \
        "0@eth0" "1:lan:4" "2:lan:3" "3:lan:2" "5:wan"
    ;;

dokładnie "5:wan"

21

Odp: Redundancja dostępu do internetu (kabel - wifi)

To nie jest potrzebne, bo to się wykonuje przy pierwszym uruchomieniu. A przy pierwszym i tak zmian nie będzie które wykonałeś, więc...

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

22

Odp: Redundancja dostępu do internetu (kabel - wifi)

Cezary napisał/a:

To nie jest potrzebne, bo to się wykonuje przy pierwszym uruchomieniu. A przy pierwszym i tak zmian nie będzie które wykonałeś, więc...

ok dzięki za wyjaśnienie
nie wiedziałem
teraz jak zmieniam coś w GUI np. parametry WiFi to nie rozwala mi ustawień sieci WAN
bardzo dziękuje za pomoc smile