I problem sie wyjaśnił.
Nie mozna na zdefiniowanym LANie ustawiać IP z innego zakresu.
To co chce zrobic na 100% zadziała po WIFI lub pociagnieciu kabla z innego gniazdka LAN (ktore wczesniej przepisze sie do innej podsieci).

Dziekuję za wyjasnienie !

Ehhh ...chyba wiem o co chodzi Cezaremu.
Router, na portach (interfejsie) LAN ustawia adresacje 192.168.0.*
Skoro do routera jest podlaczony komputer po LANie (nie wazne ze po switchu), nie ma szans na otrzymanie adresu z interfejsu GUEST (192.168.200.*).

Zgadza sie ?

Q002 napisał/a:

Dostaje bo odpowiadają obydwa serwer DHCP, ten z podsieci domowej jest szybszy wiec host konfiguruje adres z jego odpowiedzi, odpowiedź drugiego serwera jest ignorowana. Dodaj

option ignore '1'

w sekcji dhcp podsieci domowej i zobaczysz, że zacznie dostawać z gościnnej.


O wlasnie .... to brzmi sensownie !
Sprobuje po powrocie do domu.
Sprawdz czy i gdzie mam uzyte : option ignore '1'

Dzieki !

ad2014 napisał/a:

ustaw na win. adres na sztywno  wpisz w tabelki  taki jaki ma być  ( to przecież nic nie zmienia  - tyle ze jest wpisany )

Tak, to napewno zadziala, ale przeczy działaniu DHCP.

No właśnie wg konfiguracji DHCP powinien dostać z interfejsu , podsieci gościnnej (192.168.200.*), a dostaje z podsieci domowej (192.168.0.*)

Hi.

Kombinowalem na wiele sposobów, ale nie udało mi sie dojść.... why ?

Dlaczego, mimo dodania komputerowi ( z WIN11 i z konkretnym adresem MAC ) adresu IP , komputer nadal ma inny niz docelowy adres IP ?

Po kolei fragment konfiguracji DHCP :

root@EA7500:/etc/config#  grep -C2 47:04 dhcp
config host
        option name 'STACJONARNY'
        option mac 'A8:A1:59:DE:47:04'
        option ip '192.168.200.132'

Jak widać jest tylko jedno wystąpienie w pliku dhcp.

Na routerze mam zdefiniowane 2 sieci.
Jedna , goscinna , ma zakres 192.168.200.*
Druga, domowa, ma zakres 192.168.0.*

Komputer jest podlaczony do routera po kablu [router - switch 8 portowy - PC z WIN11].

Po restarcie routera, po restarcie komputera ...za kazdym razem komputer dostaje IP z podsieci 192.168.0.233.


Macie pomysł ....dlaczego komputer dostaje inny adres ?


---- EDIT - >> Na komputerze ustawione jest DHCP.
---- EDIT - >> Zmiana adresacji podsieci domowej : 192.168.0.* zamiast 192.168.300.* [taka nie prawa istnieć, ale nie zmienia samego problemu]

Ad 1. Klient DHCP (SmartPlug) - ok, do wyjasnienia. On leci po Wifi.

Ad 2. Kabel podłączony do LAN2 jest od baaardzo dawna , ale OK, podmienie kabel na inny.
Ale czy to mialoby wplyw na restart polaczenia ?
No wlasnie .. w logu nie widac restartu sieci w routerze ... jest TYLKO timeout .... miedzy klient - router.

Po podmianie kabla :

[  101.994383] device phy1-ap1 entered promiscuous mode
[  101.999637] br-guest: port 2(phy1-ap1) entered blocking state
[  102.005500] br-guest: port 2(phy1-ap1) entered forwarding state
[98110.472067] mt7530-mdio mdio-bus:1f lan2: Link is Down
[98110.477649] br-lan: port 2(lan2) entered disabled state
[98146.856191] mt7530-mdio mdio-bus:1f lan2: Link is Up - 100Mbps/Full - flow control rx/tx
[98146.864399] br-lan: port 2(lan2) entered blocking state
[98146.869653] br-lan: port 2(lan2) entered forwarding state
[98155.627686] mt7530-mdio mdio-bus:1f lan2: Link is Down
[98155.632978] br-lan: port 2(lan2) entered disabled state
[98158.687186] mt7530-mdio mdio-bus:1f lan2: Link is Up - 100Mbps/Full - flow control rx/tx
[98158.695339] br-lan: port 2(lan2) entered blocking state
[98158.700587] br-lan: port 2(lan2) entered forwarding state
[98163.667827] mt7530-mdio mdio-bus:1f lan2: Link is Down
[98163.673121] br-lan: port 2(lan2) entered disabled state
[98165.224374] mt7530-mdio mdio-bus:1f lan2: Link is Up - 100Mbps/Full - flow control rx/tx
[98165.232582] br-lan: port 2(lan2) entered blocking state
[98165.237841] br-lan: port 2(lan2) entered forwarding state

Ale jest jeszcze inna opcja.
Miedzy routerem a komputerem PC jest hub 8 portowy podłączony do portu LAN1, wiec problem rozszerza sie o dodatkowe kable, gniazdka w scianach , hub.

Hej !

Po upgradzie zauwazylem dziwna rzecz, mianowicie zdarza sie rozlaczenie ( ? restart ?) sieci na routerze.
Ustawilem na komputerze pinga do routera i co jakis czas ... losowy ... kilkanascie sekund ... kilka minut mam timed out.
Nie kilkanascie ..ale jeden, czasami 2 requesty, najczesciej taka kombinacja :

Reply from 192.168.100.100: bytes=32 time<1ms TTL=64
Reply from 192.168.100.100: bytes=32 time<1ms TTL=64
Reply from 192.168.100.100: bytes=32 time<1ms TTL=64
Reply from 192.168.100.100: bytes=32 time<1ms TTL=64
Reply from 192.168.100.100: bytes=32 time<1ms TTL=64
Reply from 192.168.100.100: bytes=32 time<1ms TTL=64
Reply from 192.168.100.100: bytes=32 time<1ms TTL=64
Request timed out.
Reply from 192.168.100.100: bytes=32 time<1ms TTL=64
Reply from 192.168.100.100: bytes=32 time<1ms TTL=64
Request timed out.
Request timed out.
Reply from 192.168.100.100: bytes=32 time<1ms TTL=64
Reply from 192.168.100.100: bytes=32 time<1ms TTL=64
Reply from 192.168.100.100: bytes=32 time<1ms TTL=64
Reply from 192.168.100.100: bytes=32 time<1ms TTL=64

Sprawdzalem na LAN i Wifi ...to samo.

W logu nie widze nic szczególnego. Uptime od ponad 20h.
Mam ustawione DHCP dla wszystkich swoich urzadzen w sieci, mam 2 sieci wifi.

Konćowka logu :

[   34.952478] IPv6: ADDRCONF(NETDEV_CHANGE): br-guest: link becomes ready
[   35.183766] mt7530-mdio mdio-bus:1f lan2: Link is Up - 100Mbps/Full - flow control rx/tx
[   35.192052] br-lan: port 2(lan2) entered blocking state
[   35.197310] br-lan: port 2(lan2) entered forwarding state
[   37.552142] mtk_soc_eth 1e100000.ethernet wan: Link is Up - 1Gbps/Full - flow control rx
[   37.560320] IPv6: ADDRCONF(NETDEV_CHANGE): wan: link becomes ready
[   38.891984] mt7530-mdio mdio-bus:1f lan2: Link is Down
[   38.897833] br-lan: port 2(lan2) entered disabled state
[   40.492321] mt7530-mdio mdio-bus:1f lan2: Link is Up - 100Mbps/Full - flow control rx/tx
[   40.500474] br-lan: port 2(lan2) entered blocking state
[   40.505780] br-lan: port 2(lan2) entered forwarding state
[   44.333984] mt7530-mdio mdio-bus:1f lan2: Link is Down
[   44.339260] br-lan: port 2(lan2) entered disabled state
[   47.377095] mt7530-mdio mdio-bus:1f lan2: Link is Up - 100Mbps/Full - flow control rx/tx
[   47.385308] br-lan: port 2(lan2) entered blocking state
[   47.390541] br-lan: port 2(lan2) entered forwarding state
[   51.581659] mt7530-mdio mdio-bus:1f lan2: Link is Down
[   51.587015] br-lan: port 2(lan2) entered disabled state
[   53.144310] mt7530-mdio mdio-bus:1f lan2: Link is Up - 100Mbps/Full - flow control rx/tx
[   53.152559] br-lan: port 2(lan2) entered blocking state
[   53.157775] br-lan: port 2(lan2) entered forwarding state
[  101.718851] IPv6: ADDRCONF(NETDEV_CHANGE): phy1-ap0: link becomes ready
[  101.725865] br-lan: port 5(phy1-ap0) entered blocking state
[  101.731481] br-lan: port 5(phy1-ap0) entered forwarding state
[  101.806641] br-guest: port 2(phy1-ap1) entered blocking state
[  101.812549] br-guest: port 2(phy1-ap1) entered disabled state
[  101.818997] device phy1-ap1 entered promiscuous mode
[  101.826821] br-guest: port 2(phy1-ap1) entered blocking state
[  101.832710] br-guest: port 2(phy1-ap1) entered forwarding state
[  101.902054] device phy1-ap1 left promiscuous mode
[  101.906991] br-guest: port 2(phy1-ap1) entered disabled state
[  101.973998] IPv6: ADDRCONF(NETDEV_CHANGE): phy1-ap1: link becomes ready
[  101.982264] br-guest: port 2(phy1-ap1) entered blocking state
[  101.988100] br-guest: port 2(phy1-ap1) entered disabled state
[  101.994383] device phy1-ap1 entered promiscuous mode
[  101.999637] br-guest: port 2(phy1-ap1) entered blocking state
[  102.005500] br-guest: port 2(phy1-ap1) entered forwarding state

Jak widać, nic szczegolnego.

Dodatkowo zauwazylem dziwna rzecz, mianowicie czesc sprawdzanie DHCP :

Mon Aug 19 20:53:05 2024 daemon.info dnsmasq-dhcp[1]: DHCPREQUEST(br-guest) 192.168.200.242 50:8b:b9:34:a9:1b
Mon Aug 19 20:53:05 2024 daemon.info dnsmasq-dhcp[1]: DHCPACK(br-guest) 192.168.200.242 50:8b:b9:34:a9:1b SmartPlug-2
Mon Aug 19 20:53:19 2024 daemon.info dnsmasq-dhcp[1]: DHCPREQUEST(br-guest) 192.168.200.237 50:8b:b9:27:9d:19
Mon Aug 19 20:53:19 2024 daemon.info dnsmasq-dhcp[1]: DHCPACK(br-guest) 192.168.200.237 50:8b:b9:27:9d:19 SmartPlug-1
Mon Aug 19 20:53:35 2024 daemon.info dnsmasq-dhcp[1]: DHCPREQUEST(br-lan) 192.168.100.220 ac:f1:08:1d:bc:14
Mon Aug 19 20:53:35 2024 daemon.info dnsmasq-dhcp[1]: DHCPACK(br-lan) 192.168.100.220 ac:f1:08:1d:bc:14 LG-SUSZARKA
Mon Aug 19 20:54:00 2024 cron.info crond[1877]: USER root pid 5715 cmd /usr/bin/easyconfig_statistics.sh
Mon Aug 19 20:54:05 2024 daemon.info dnsmasq-dhcp[1]: DHCPREQUEST(br-guest) 192.168.200.242 50:8b:b9:34:a9:1b
Mon Aug 19 20:54:05 2024 daemon.info dnsmasq-dhcp[1]: DHCPACK(br-guest) 192.168.200.242 50:8b:b9:34:a9:1b SmartPlug-2
Mon Aug 19 20:54:19 2024 daemon.info dnsmasq-dhcp[1]: DHCPREQUEST(br-guest) 192.168.200.237 50:8b:b9:27:9d:19
Mon Aug 19 20:54:19 2024 daemon.info dnsmasq-dhcp[1]: DHCPACK(br-guest) 192.168.200.237 50:8b:b9:27:9d:19 SmartPlug-1
Mon Aug 19 20:54:35 2024 daemon.info dnsmasq-dhcp[1]: DHCPREQUEST(br-lan) 192.168.100.220 ac:f1:08:1d:bc:14
Mon Aug 19 20:54:35 2024 daemon.info dnsmasq-dhcp[1]: DHCPACK(br-lan) 192.168.100.220 ac:f1:08:1d:bc:14 LG-SUSZARKA
Mon Aug 19 20:55:00 2024 cron.info crond[1877]: USER root pid 5779 cmd /usr/bin/easyconfig_statistics.sh
Mon Aug 19 20:55:05 2024 daemon.info dnsmasq-dhcp[1]: DHCPREQUEST(br-guest) 192.168.200.242 50:8b:b9:34:a9:1b
Mon Aug 19 20:55:05 2024 daemon.info dnsmasq-dhcp[1]: DHCPACK(br-guest) 192.168.200.242 50:8b:b9:34:a9:1b SmartPlug-2
Mon Aug 19 20:55:19 2024 daemon.info dnsmasq-dhcp[1]: DHCPREQUEST(br-guest) 192.168.200.237 50:8b:b9:27:9d:19
Mon Aug 19 20:55:19 2024 daemon.info dnsmasq-dhcp[1]: DHCPACK(br-guest) 192.168.200.237 50:8b:b9:27:9d:19 SmartPlug-1
Mon Aug 19 20:55:35 2024 daemon.info dnsmasq-dhcp[1]: DHCPREQUEST(br-lan) 192.168.100.220 ac:f1:08:1d:bc:14
Mon Aug 19 20:55:35 2024 daemon.info dnsmasq-dhcp[1]: DHCPACK(br-lan) 192.168.100.220 ac:f1:08:1d:bc:14 LG-SUSZARKA
Mon Aug 19 20:56:00 2024 cron.info crond[1877]: USER root pid 5843 cmd /usr/bin/easyconfig_statistics.sh
Mon Aug 19 20:56:05 2024 daemon.info dnsmasq-dhcp[1]: DHCPREQUEST(br-guest) 192.168.200.242 50:8b:b9:34:a9:1b
Mon Aug 19 20:56:05 2024 daemon.info dnsmasq-dhcp[1]: DHCPACK(br-guest) 192.168.200.242 50:8b:b9:34:a9:1b SmartPlug-2
Mon Aug 19 20:56:19 2024 daemon.info dnsmasq-dhcp[1]: DHCPREQUEST(br-guest) 192.168.200.237 50:8b:b9:27:9d:19
Mon Aug 19 20:56:19 2024 daemon.info dnsmasq-dhcp[1]: DHCPACK(br-guest) 192.168.200.237 50:8b:b9:27:9d:19 SmartPlug-1
Mon Aug 19 20:56:35 2024 daemon.info dnsmasq-dhcp[1]: DHCPREQUEST(br-lan) 192.168.100.220 ac:f1:08:1d:bc:14
Mon Aug 19 20:56:35 2024 daemon.info dnsmasq-dhcp[1]: DHCPACK(br-lan) 192.168.100.220 ac:f1:08:1d:bc:14 LG-SUSZARKA
Mon Aug 19 20:56:41 2024 authpriv.info dropbear[5906]: Child connection from 192.168.100.130:64282
Mon Aug 19 20:56:45 2024 authpriv.notice dropbear[5906]: Password auth succeeded for 'root' from 192.168.100.130:64282
Mon Aug 19 20:57:00 2024 cron.info crond[1877]: USER root pid 6062 cmd /usr/bin/easyconfig_statistics.sh
Mon Aug 19 20:57:05 2024 daemon.info dnsmasq-dhcp[1]: DHCPREQUEST(br-guest) 192.168.200.242 50:8b:b9:34:a9:1b
Mon Aug 19 20:57:05 2024 daemon.info dnsmasq-dhcp[1]: DHCPACK(br-guest) 192.168.200.242 50:8b:b9:34:a9:1b SmartPlug-2
Mon Aug 19 20:57:19 2024 daemon.info dnsmasq-dhcp[1]: DHCPREQUEST(br-guest) 192.168.200.237 50:8b:b9:27:9d:19
Mon Aug 19 20:57:19 2024 daemon.info dnsmasq-dhcp[1]: DHCPACK(br-guest) 192.168.200.237 50:8b:b9:27:9d:19 SmartPlug-1
Mon Aug 19 20:57:35 2024 daemon.info dnsmasq-dhcp[1]: DHCPREQUEST(br-lan) 192.168.100.220 ac:f1:08:1d:bc:14
Mon Aug 19 20:57:35 2024 daemon.info dnsmasq-dhcp[1]: DHCPACK(br-lan) 192.168.100.220 ac:f1:08:1d:bc:14 LG-SUSZARKA
Mon Aug 19 20:58:00 2024 cron.info crond[1877]: USER root pid 6136 cmd /usr/bin/easyconfig_statistics.sh
Mon Aug 19 20:58:05 2024 daemon.info dnsmasq-dhcp[1]: DHCPREQUEST(br-guest) 192.168.200.242 50:8b:b9:34:a9:1b
Mon Aug 19 20:58:05 2024 daemon.info dnsmasq-dhcp[1]: DHCPACK(br-guest) 192.168.200.242 50:8b:b9:34:a9:1b SmartPlug-2
Mon Aug 19 20:58:19 2024 daemon.info dnsmasq-dhcp[1]: DHCPREQUEST(br-guest) 192.168.200.237 50:8b:b9:27:9d:19
Mon Aug 19 20:58:19 2024 daemon.info dnsmasq-dhcp[1]: DHCPACK(br-guest) 192.168.200.237 50:8b:b9:27:9d:19 SmartPlug-1

Grep po SmartPlug-2

Mon Aug 19 20:41:05 2024 daemon.info dnsmasq-dhcp[1]: DHCPACK(br-guest) 192.168.200.242 50:8b:b9:34:a9:1b SmartPlug-2
Mon Aug 19 20:42:05 2024 daemon.info dnsmasq-dhcp[1]: DHCPACK(br-guest) 192.168.200.242 50:8b:b9:34:a9:1b SmartPlug-2
Mon Aug 19 20:43:05 2024 daemon.info dnsmasq-dhcp[1]: DHCPACK(br-guest) 192.168.200.242 50:8b:b9:34:a9:1b SmartPlug-2
Mon Aug 19 20:44:05 2024 daemon.info dnsmasq-dhcp[1]: DHCPACK(br-guest) 192.168.200.242 50:8b:b9:34:a9:1b SmartPlug-2
Mon Aug 19 20:45:05 2024 daemon.info dnsmasq-dhcp[1]: DHCPACK(br-guest) 192.168.200.242 50:8b:b9:34:a9:1b SmartPlug-2
Mon Aug 19 20:46:05 2024 daemon.info dnsmasq-dhcp[1]: DHCPACK(br-guest) 192.168.200.242 50:8b:b9:34:a9:1b SmartPlug-2
Mon Aug 19 20:47:05 2024 daemon.info dnsmasq-dhcp[1]: DHCPACK(br-guest) 192.168.200.242 50:8b:b9:34:a9:1b SmartPlug-2
Mon Aug 19 20:48:05 2024 daemon.info dnsmasq-dhcp[1]: DHCPACK(br-guest) 192.168.200.242 50:8b:b9:34:a9:1b SmartPlug-2
Mon Aug 19 20:49:05 2024 daemon.info dnsmasq-dhcp[1]: DHCPACK(br-guest) 192.168.200.242 50:8b:b9:34:a9:1b SmartPlug-2
Mon Aug 19 20:50:05 2024 daemon.info dnsmasq-dhcp[1]: DHCPACK(br-guest) 192.168.200.242 50:8b:b9:34:a9:1b SmartPlug-2
Mon Aug 19 20:51:05 2024 daemon.info dnsmasq-dhcp[1]: DHCPACK(br-guest) 192.168.200.242 50:8b:b9:34:a9:1b SmartPlug-2
Mon Aug 19 20:52:05 2024 daemon.info dnsmasq-dhcp[1]: DHCPACK(br-guest) 192.168.200.242 50:8b:b9:34:a9:1b SmartPlug-2
Mon Aug 19 20:53:05 2024 daemon.info dnsmasq-dhcp[1]: DHCPACK(br-guest) 192.168.200.242 50:8b:b9:34:a9:1b SmartPlug-2
Mon Aug 19 20:54:05 2024 daemon.info dnsmasq-dhcp[1]: DHCPACK(br-guest) 192.168.200.242 50:8b:b9:34:a9:1b SmartPlug-2
Mon Aug 19 20:55:05 2024 daemon.info dnsmasq-dhcp[1]: DHCPACK(br-guest) 192.168.200.242 50:8b:b9:34:a9:1b SmartPlug-2
Mon Aug 19 20:56:05 2024 daemon.info dnsmasq-dhcp[1]: DHCPACK(br-guest) 192.168.200.242 50:8b:b9:34:a9:1b SmartPlug-2
Mon Aug 19 20:57:05 2024 daemon.info dnsmasq-dhcp[1]: DHCPACK(br-guest) 192.168.200.242 50:8b:b9:34:a9:1b SmartPlug-2
Mon Aug 19 20:58:05 2024 daemon.info dnsmasq-dhcp[1]: DHCPACK(br-guest) 192.168.200.242 50:8b:b9:34:a9:1b SmartPlug-2
Mon Aug 19 20:59:05 2024 daemon.info dnsmasq-dhcp[1]: DHCPACK(br-guest) 192.168.200.242 50:8b:b9:34:a9:1b SmartPlug-2

Pomożecie mi z tymi rozlaczeniami sieci ?
Oraz czy te odpytywania DHCP musza byc tak zczesto ?

/Wojtek

Jak zwykle ... wykonalem 2 razy ... 2x tak samo ...ale juz sobie zapisalem ...

BTW , może dopisz do https://eko.one.pl/?p=openwrt-guestnetwork
że commit robi sie dodając moduł ... network , dhcp , wireless , firewall

Raz jeszcze ...dziekuje !

Powiem tak ... magia.
Dla ponizszych wartosci
wreless.guest.network='lan'
wireless.guest1.network='lan'

jest lan, gdyz zalezalo mi na tym, ale siec dzialala.
Ustawialem na lan, (oryginalnie powinno byc guest) po wykonaniu testu, gdy nie dawalo sie podlaczyc.

Ale przywrocilem jeszcze raz, wylaczylem ukrywanie sieci.
Dziala.
Wlaczylm ukrywanie ... nadal dziala ... cuda !

Cezary ..wielkie dzieki !!!

Racja co do DNS .. usuniete.

A wireless wyglada tak :

root@Linksys_EA7500_v2:/tmp# uci show wireless
wireless.radio0=wifi-device
wireless.radio0.type='mac80211'
wireless.radio0.path='1e140000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0'
wireless.radio0.channel='1'
wireless.radio0.band='2g'
wireless.radio0.htmode='HT20'
wireless.radio0.country='PL'
wireless.radio0.cell_density='0'
wireless.default_radio0=wifi-iface
wireless.default_radio0.device='radio0'
wireless.default_radio0.network='lan'
wireless.default_radio0.mode='ap'
wireless.default_radio0.key='###'
wireless.default_radio0.ssid='domowa'
wireless.default_radio0.encryption='psk-mixed'
wireless.default_radio0.hidden='1'
wireless.radio1=wifi-device
wireless.radio1.type='mac80211'
wireless.radio1.path='1e140000.pcie/pci0000:00/0000:00:01.0/0000:02:00.0'
wireless.radio1.channel='36'
wireless.radio1.band='5g'
wireless.radio1.htmode='VHT80'
wireless.radio1.country='PL'
wireless.radio1.cell_density='0'
wireless.default_radio1=wifi-iface
wireless.default_radio1.device='radio1'
wireless.default_radio1.network='lan'
wireless.default_radio1.mode='ap'
wireless.default_radio1.ssid='domowa'
wireless.default_radio1.hidden='1'
wireless.default_radio1.encryption='psk-mixed'
wireless.default_radio1.key='###'
wireless.guest=wifi-iface
wireless.guest.mode='ap'
wireless.guest.ssid='goscinna'
wireless.guest.key='###'
wireless.guest.device='radio0'
wireless.guest.encryption='psk-mixed'
wireless.guest.hidden='1'
wireless.guest.network='lan'
wireless.guest1=wifi-iface
wireless.guest1.device='radio1'
wireless.guest1.mode='ap'
wireless.guest1.network='lan'
wireless.guest1.ssid='goscinna'
wireless.guest1.encryption='psk-mixed'
wireless.guest1.key='###'
wireless.guest1.hidden='1'
wireless.guest1.disabled='1'
root@Linksys_EA7500_v2:/tmp#

Racja , nie dalem commitów na network i dhcp, poprawilem sie.
Dodałem tez wpisy zwiazane z firewallem :

 uci add firewall zone
 uci set firewall.@zone[-1].name=guest
 uci add_list firewall.@zone[-1].network=guest
 uci set firewall.@zone[-1].input=ACCEPT
 uci set firewall.@zone[-1].output=ACCEPT
 uci set firewall.@zone[-1].forward=ACCEPT

 uci add firewall forwarding
 uci set firewall.@forwarding[-1].src=guest
 uci set firewall.@forwarding[-1].dest=wan

i uci commit firewall

ale niestety, w telefonie i na kompie widac siec, ale przy probie polaczenia urzadzenia czekaja na przydzielenie IP i nie lacza sie.


W network mam :

config interface 'guest'
        option device 'br-guest'
        option proto 'static'
        option ipaddr '192.168.200.150'
        option netmask '255.255.255.0'
        list dns '8.8.8.8'
        list dns '9.9.9.9'

config device
        option name 'br-guest'
        option type 'bridge'
        option bridge_empty '1'

w dhp

config dhcp 'guest'
        option leasetime '12h'
        option interface 'guest'
        option start '200'
        option limit '50'

zas w firewall :

config zone
        option name 'guest'
        list network 'guest'
        option input 'ACCEPT'
        option output 'ACCEPT'
        option forward 'ACCEPT'

config forwarding
        option src 'guest'
        option dest 'wan'

Hmmm nadal nic ...raz jeszcze .
Usunalem wszystko i zrestartowalem siec.

Plik network nie byl odtwarzany z backupu.
Aktualnie mam w pliku /etc/config/network

root@Linksys_EA7500_v2:/etc/config# cat network

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 'fd72:2660:abdf::/48'
        option packet_steering '1'

config device
        option name 'br-lan'
        option type 'bridge'
        list ports 'lan1'
        list ports 'lan2'
        list ports 'lan3'
        list ports 'lan4'

config device
        option name 'lan1'
        option macaddr '30:23:03:e8:31:d0'

config device
        option name 'lan2'
        option macaddr '30:23:03:e8:31:d0'

config device
        option name 'lan3'
        option macaddr '30:23:03:e8:31:d0'

config device
        option name 'lan4'
        option macaddr '30:23:03:e8:31:d0'

config interface 'lan'
        option device 'br-lan'
        option proto 'static'
        option ipaddr '192.168.100.100'
        option netmask '255.255.255.0'
        option ip6assign '60'
        list dns '8.8.8.8'
        list dns '9.9.9.9'

config device
        option name 'wan'
        option macaddr '30:23:03:e8:31:d0'

config interface 'wan'
        option device 'wan'
        option proto 'dhcp'

config interface 'wan6'
        option device 'wan'
        option proto 'dhcpv6'

root@Linksys_EA7500_v2:/etc/config#

uci show network pokazuje :

root@Linksys_EA7500_v2:/etc/config# uci show network
network.loopback=interface
network.loopback.device='lo'
network.loopback.proto='static'
network.loopback.ipaddr='127.0.0.1'
network.loopback.netmask='255.0.0.0'
network.globals=globals
network.globals.ula_prefix='fd72:2660:abdf::/48'
network.globals.packet_steering='1'
network.@device[0]=device
network.@device[0].name='br-lan'
network.@device[0].type='bridge'
network.@device[0].ports='lan1' 'lan2' 'lan3' 'lan4'
network.@device[1]=device
network.@device[1].name='lan1'
network.@device[1].macaddr='30:23:03:e8:31:d0'
network.@device[2]=device
network.@device[2].name='lan2'
network.@device[2].macaddr='30:23:03:e8:31:d0'
network.@device[3]=device
network.@device[3].name='lan3'
network.@device[3].macaddr='30:23:03:e8:31:d0'
network.@device[4]=device
network.@device[4].name='lan4'
network.@device[4].macaddr='30:23:03:e8:31:d0'
network.lan=interface
network.lan.device='br-lan'
network.lan.proto='static'
network.lan.ipaddr='192.168.100.100'
network.lan.netmask='255.255.255.0'
network.lan.ip6assign='60'
network.lan.dns='8.8.8.8' '9.9.9.9'
network.@device[5]=device
network.@device[5].name='wan'
network.@device[5].macaddr='30:23:03:e8:31:d0'
network.wan=interface
network.wan.device='wan'
network.wan.proto='dhcp'
network.wan6=interface
network.wan6.device='wan'
network.wan6.proto='dhcpv6'
root@Linksys_EA7500_v2:/etc/config# 

Mam 2 sieci wifi.
- jedna lokalna - korzysta z br-lan - dziala
- druga dla gosci - ma korzystac z guest , aktualnie korzystac z lan

wireless.guest=wifi-iface
wireless.guest.mode='ap'
wireless.guest.ssid='goscinna'
wireless.guest.key='###'
wireless.guest.device='radio0'
wireless.guest.encryption='psk-mixed'
wireless.guest.hidden='1'
wireless.guest.network='lan'
wireless.guest1=wifi-iface
wireless.guest1.device='radio1'
wireless.guest1.mode='ap'
wireless.guest1.network='lan'
wireless.guest1.ssid='goscinna'
wireless.guest1.encryption='psk-mixed'
wireless.guest1.key='###'
wireless.guest1.hidden='1'
wireless.guest1.disabled='1'

Rozumiem, że wykonanie :

 uci set network.guest=interface
 uci set network.guest.device=br-guest
 uci set network.guest.proto=static
 uci set network.guest.ipaddr=192.168.200.100
 uci set network.guest.netmask=255.255.255.0

 uci add network device
 uci set network.@device[-1].name='br-guest'
 uci set network.@device[-1].type='bridge'
 uci set network.@device[-1].bridge_empty='1'

 uci set dhcp.guest=dhcp
 uci set dhcp.guest.start=200
 uci set dhcp.guest.limit=50
 uci set dhcp.guest.leasetime=12h
 uci set dhcp.guest.interface=guest

uci commit network

oraz zmiana w sekcji wifi z lan na guest powinna zadzialac ?

Hej

Help, Hilfe, F1 wink

Dawno nie zagladalem do routera i "nadejszła" pora upgradu.
Mam problem z dodaniem sieci goscinnej wykonywanej zgodnie z :
https://eko.one.pl/?p=openwrt-guestnetwork

Mianowicie, po wykonaniu :

uci set network.guest=interface
uci set network.guest.device=br-guest
uci set network.guest.proto=static
uci set network.guest.ipaddr=192.168.200.100
uci set network.guest.netmask=255.255.255.0

mam :

root@Linksys_EA7500_v2:/tmp # uci commit
uci: Entry not found

Wynik uci show network :

root@Linksys_EA7500_v2:/tmp# uci show network | grep guest
network.guest=interface
network.guest.device='br-guest'
network.guest.proto='static'
network.guest.ipaddr='192.168.200.100'
network.guest.netmask='255.255.255.0'
root@Linksys_EA7500_v2:/tmp#

Zas po wykonaniu :

uci add network device
uci set network.@device[-1].name='br-guest'
uci set network.@device[-1].type='bridge'
uci set network.@device[-1].bridge_empty='1'

Po uci commit mam ten sam blad.

uci show network pokazuje :

network.loopback=interface
network.loopback.device='lo'
network.loopback.proto='static'
network.loopback.ipaddr='127.0.0.1'
network.loopback.netmask='255.0.0.0'
network.globals=globals
network.globals.ula_prefix='fd72:2660:abdf::/48'
network.globals.packet_steering='1'
network.@device[0]=device
network.@device[0].name='br-lan'
network.@device[0].type='bridge'
network.@device[0].ports='lan1' 'lan2' 'lan3' 'lan4'
network.@device[1]=device
network.@device[1].name='lan1'
network.@device[1].macaddr='30:23:03:e8:31:d0'
network.@device[2]=device
network.@device[2].name='lan2'
network.@device[2].macaddr='30:23:03:e8:31:d0'
network.@device[3]=device
network.@device[3].name='lan3'
network.@device[3].macaddr='30:23:03:e8:31:d0'
network.@device[4]=device
network.@device[4].name='lan4'
network.@device[4].macaddr='30:23:03:e8:31:d0'
network.lan=interface
network.lan.device='br-lan'
network.lan.proto='static'
network.lan.ipaddr='192.168.100.100'
network.lan.netmask='255.255.255.0'
network.lan.ip6assign='60'
network.lan.dns='8.8.8.8' '9.9.9.9'
network.@device[5]=device
network.@device[5].name='wan'
network.@device[5].macaddr='30:23:03:e8:31:d0'
network.wan=interface
network.wan.device='wan'
network.wan.proto='dhcp'
network.wan6=interface
network.wan6.device='wan'
network.wan6.proto='dhcpv6'
network.guest=interface
network.guest.device='br-guest'
network.guest.proto='static'
network.guest.ipaddr='192.168.200.100'
network.guest.netmask='255.255.255.0'
network.@device[6]=device
network.@device[6].name='br-guest'
network.@device[6].type='bridge'
network.@device[6].bridge_empty='1'

Pomożecie ?

Po dodaniu dodatkowej sieci WIFI, i ustawieniu, aby korzystala wlasnie z br-guest ... urzadzenie probuje sie polaczyc i uzyskac adres IP ..ale nie udaje się.

W pierwszym poście wspomniałem, że po restarcie (zanik zasilania) uruchamia mi się oryginalny soft zamiast openwrt.
Zapytałeś się, czy zmieniałem coś w ustawieniach w mechanizmie uruchamiania po braku zasilania.
Chodziło o plik /etc/init.d/bootcounter.

Nic nie zmieniałem w tym pliku.
Dlaczego więc zaczął sie bootowac z oryginalnego softu ?

Cezary napisał/a:

Nie wiem jak sprawdzić. W sumie - to się chyba flashowało na przemian, wiec zrób kilka razy flash i to chyba tyle.

Racja !

Zrobione.
Później wgram openwrt.

Powiedz mi proszę, co z tym bootcountem i uruchamianiem oryginalnego firmware-u w tym linksysie ?

Cezary, wiesz może jak sprawdzić czy oryginalny soft jest na obu partycjach ?
Wrzucilem oryginalny firmware z poziomu firmware-u Linksysa.

Po restarcie mam niby to samo.
Po 3 restartach nadal.

Spodziewałbym się, że na jednej partycji jest oryginalny i skonfigurowany system a na drugiej jest oryginalny ale nieskonfigurowany system.

Chyba te restarty nie skończyly sie dobrze dla OpenWRT.

Z-boot-owałem router z OpenWRT (3 nieudane restarty)

Jeżeli chodzio bootcount to mam :

#!/bin/sh /etc/rc.common

START=99

boot() {
        case $(board_name) in
        alfa-network,quad-e4g)
                [ -n "$(fw_printenv bootcount bootchanged 2>/dev/null)" ] &&\
                        echo -e "bootcount\nbootchanged\n" | /usr/sbin/fw_setenv -s -
                ;;
        linksys,ea7300-v1|\
        linksys,ea7300-v2|\
        linksys,ea7500-v2)
                mtd resetbc s_env || true
                ;;
        samknows,whitebox-v8)
                fw_setenv bootcount 0
                ;;
        esac
}

Ale patrząc na logi, to chyba sypie sie system lub pamięć.
Obstawiam system (plików z pewnościa).
Problemu nie ma na oryginalnym sofcie - działa i LAN i WIFI.
Niby LAN działa (bo łącze się do routera po LANie) , ale wifi jest wyłączone.
Działa ping do 8.8.8.8, ale tylko przez kilka minut, potem nie działa wyjscie poza router.

[    0.000000] Linux version 5.4.99 (cezary@eko.one.pl) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r15819-0011c7ad12)) #0 SMP Sat Feb 20 18:57:33 2021
[    0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
[    0.000000] printk: bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
[    0.000000] MIPS: machine is Linksys EA7500 v2
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] VPE topology {2,2} total 4
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] On node 0 totalpages: 65536
[    0.000000]   Normal zone: 576 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 65536 pages, LIFO batch:15
[    0.000000] percpu: Embedded 14 pages/cpu s26768 r8192 d22384 u57344
[    0.000000] pcpu-alloc: s26768 r8192 d22384 u57344 alloc=14*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 64960
[    0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Writing ErrCtl register=0005408c
[    0.000000] Readback ErrCtl register=0005408c
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 250788K/262144K available (6075K kernel code, 209K rwdata, 748K rodata, 1276K init, 238K bss, 11356K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] NR_IRQS: 256
[    0.000000] random: get_random_bytes called from 0x806e1a10 with crng_init=0
[    0.000000] CPU Clock: 880MHz
[    0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
[    0.000009] sched_clock: 32 bits at 440MHz, resolution 2ns, wraps every 4880645118ns
[    0.007802] Calibrating delay loop... 583.68 BogoMIPS (lpj=1167360)
[    0.042001] pid_max: default: 32768 minimum: 301
[    0.046780] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.054006] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.064400] rcu: Hierarchical SRCU implementation.
[    0.069835] smp: Bringing up secondary CPUs ...
[    9.059368] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    9.059378] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    9.059391] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    9.059492] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.102599] Synchronize counters for CPU 1: done.
[    9.120675] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    9.120683] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    9.120690] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    9.120753] CPU2 revision is: 0001992f (MIPS 1004Kc)
[    0.167298] Synchronize counters for CPU 2: done.
[    9.182050] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    9.182058] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    9.182065] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    9.182128] CPU3 revision is: 0001992f (MIPS 1004Kc)
[    0.225159] Synchronize counters for CPU 3: done.
[    0.255028] smp: Brought up 1 node, 4 CPUs
[    0.263515] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.273209] futex hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.280275] pinctrl core: initialized pinctrl subsystem
[    0.287011] NET: Registered protocol family 16
[    0.297683] FPU Affinity set after 4688 emulations
[    0.313167] workqueue: max_active 576 requested for napi_workq is out of range, clamping between 1 and 512
[    0.325227] clocksource: Switched to clocksource GIC
[    0.331690] thermal_sys: Registered thermal governor 'step_wise'
[    0.332181] NET: Registered protocol family 2
[    0.343355] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.351741] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.359331] TCP bind hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.366421] TCP: Hash tables configured (established 2048 bind 2048)
[    0.372842] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.379324] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.386506] NET: Registered protocol family 1
[    0.390818] PCI: CLS 0 bytes, default 32
[    0.485176] 4 CPUs re-calibrate udelay(lpj = 1167360)
[    0.491760] workingset: timestamp_bits=14 max_order=16 bucket_order=2
[    0.502337] random: fast init done
[    0.512746] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.518515] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.530061] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.539230] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.545218] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.551038] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    0.557518] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.567560] printk: console [ttyS0] disabled
[    0.571864] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 19, base_baud = 3125000) is a 16550A
[    0.580850] printk: console [ttyS0] enabled
[    0.589108] printk: bootconsole [early0] disabled
[    0.600991] mt7621-nand 1e003000.nand: Using programmed access timing: 31c07388
[    0.608639] nand: device found, Manufacturer ID: 0xc2, Chip ID: 0xf1
[    0.614987] nand: Macronix MX30LF1G18AC
[    0.618824] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.626384] mt7621-nand 1e003000.nand: ECC strength adjusted to 4 bits
[    0.632931] mt7621-nand 1e003000.nand: Using programmed access timing: 21005134
[    0.640229] mt7621-nand 1e003000.nand: Using programmed access timing: 21005134
[    0.647536] Scanning device for bad blocks
[    1.948539] 11 fixed-partitions partitions found on MTD device mt7621-nand
[    1.955403] Creating 11 MTD partitions on "mt7621-nand":
[    1.960715] 0x000000000000-0x000000080000 : "boot"
[    1.966844] 0x000000080000-0x0000000c0000 : "u_env"
[    1.972936] 0x0000000c0000-0x000000100000 : "factory"
[    1.979386] 0x000000100000-0x000000140000 : "s_env"
[    1.985608] 0x000000140000-0x000000180000 : "devinfo"
[    1.992103] 0x000000180000-0x000000580000 : "kernel"
[    1.998414] 0x000000580000-0x000002980000 : "ubi"
[    2.004727] 0x000002980000-0x000002d80000 : "alt_kernel"
[    2.011347] 0x000002d80000-0x000005180000 : "alt_rootfs"
[    2.018350] 0x000005180000-0x000005280000 : "sysdiag"
[    2.024694] 0x000005280000-0x000007f80000 : "syscfg"
[    2.032679] libphy: Fixed MDIO Bus: probed
[    2.063664] libphy: mdio: probed
[    2.067114] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module
[    2.075620] mtk_soc_eth 1e100000.ethernet: generated random MAC address 42:c0:52:c2:93:09
[    2.084661] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 21
[    2.095069] mt7621-pci 1e140000.pcie: Parsing DT failed
[    2.103167] NET: Registered protocol family 10
[    2.109014] Segment Routing with IPv6
[    2.112828] NET: Registered protocol family 17
[    2.117373] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    2.130533] 8021q: 802.1Q VLAN Support v1.8
[    2.136623] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module
[    2.153107] libphy: dsa slave smi: probed
[    2.157604] mt7530 mdio-bus:1f wan (uninitialized): PHY [dsa-0.0:00] driver [Generic PHY]
[    2.167206] mt7530 mdio-bus:1f lan1 (uninitialized): PHY [dsa-0.0:01] driver [Generic PHY]
[    2.176934] mt7530 mdio-bus:1f lan2 (uninitialized): PHY [dsa-0.0:02] driver [Generic PHY]
[    2.186619] mt7530 mdio-bus:1f lan3 (uninitialized): PHY [dsa-0.0:03] driver [Generic PHY]
[    2.196361] mt7530 mdio-bus:1f lan4 (uninitialized): PHY [dsa-0.0:04] driver [Generic PHY]
[    2.206166] mt7530 mdio-bus:1f: configuring for fixed/rgmii link mode
[    2.217413] DSA: tree 0 setup
[    2.220729] rt2880-pinmux pinctrl: pcie is already enabled
[    2.226235] mt7621-pci 1e140000.pcie: Error applying setting, reverse things back
[    2.233854] mt7621-pci-phy 1e149000.pcie-phy: PHY for 0xbe149000 (dual port = 1)
[    2.241423] mt7621-pci-phy 1e14a000.pcie-phy: PHY for 0xbe14a000 (dual port = 0)
[    2.348893] mt7621-pci-phy 1e149000.pcie-phy: Xtal is 40MHz
[    2.354478] mt7621-pci-phy 1e14a000.pcie-phy: Xtal is 40MHz
[    2.460056] mt7621-pci 1e140000.pcie: pcie2 no card, disable it (RST & CLK)
[    2.467011] mt7621-pci 1e140000.pcie: PCIE0 enabled
[    2.471883] mt7621-pci 1e140000.pcie: PCIE1 enabled
[    2.476762] mt7621-pci 1e140000.pcie: PCI coherence region base: 0x60000000, mask/settings: 0xf0000002
[    2.486229] mt7621-pci 1e140000.pcie: PCI host bridge to bus 0000:00
[    2.492599] pci_bus 0000:00: root bus resource [io  0x1e160000-0x1e16ffff]
[    2.499468] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    2.506336] pci_bus 0000:00: root bus resource [bus 00-ff]
[    2.511856] pci 0000:00:00.0: [0e8d:0801] type 01 class 0x060400
[    2.517890] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    2.524153] pci 0000:00:00.0: reg 0x14: [mem 0x60400000-0x6040ffff]
[    2.530483] pci 0000:00:00.0: supports D1
[    2.534495] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    2.540635] pci 0000:00:01.0: [0e8d:0801] type 01 class 0x060400
[    2.546676] pci 0000:00:01.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    2.552941] pci 0000:00:01.0: reg 0x14: [mem 0x60410000-0x6041ffff]
[    2.559260] pci 0000:00:01.0: supports D1
[    2.563272] pci 0000:00:01.0: PME# supported from D0 D1 D3hot
[    2.570557] pci 0000:01:00.0: [14c3:7615] type 00 class 0x000280
[    2.576632] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
[    2.583579] pci 0000:01:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s x1 link at 0000:00:00.0 (capable of 4.000 Gb/s with 5 GT/s x1 link)
[    2.598660] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[    2.603901] pci 0000:00:00.0:   bridge window [io  0x0000-0x0fff]
[    2.609991] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    2.616770] pci 0000:00:00.0:   bridge window [mem 0x60100000-0x601fffff pref]
[    2.623986] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    2.630832] pci 0000:02:00.0: [14c3:7615] type 00 class 0x000280
[    2.636894] pci 0000:02:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
[    2.643837] pci 0000:02:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s x1 link at 0000:00:01.0 (capable of 4.000 Gb/s with 5 GT/s x1 link)
[    2.658898] pci 0000:00:01.0: PCI bridge to [bus 02-ff]
[    2.664137] pci 0000:00:01.0:   bridge window [io  0x0000-0x0fff]
[    2.670227] pci 0000:00:01.0:   bridge window [mem 0x60200000-0x602fffff]
[    2.677006] pci 0000:00:01.0:   bridge window [mem 0x60300000-0x603fffff pref]
[    2.684220] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    2.690884] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    2.697492] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.704444] pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000]
[    2.711049] pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.718004] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    2.724784] pci 0000:00:00.0: BAR 9: assigned [mem 0x60100000-0x601fffff pref]
[    2.732004] pci 0000:00:01.0: BAR 8: assigned [mem 0x60200000-0x602fffff]
[    2.738787] pci 0000:00:01.0: BAR 9: assigned [mem 0x60300000-0x603fffff pref]
[    2.746001] pci 0000:00:00.0: BAR 1: assigned [mem 0x60400000-0x6040ffff]
[    2.752785] pci 0000:00:01.0: BAR 1: assigned [mem 0x60410000-0x6041ffff]
[    2.759569] pci 0000:00:00.0: BAR 7: assigned [io  0x1e160000-0x1e160fff]
[    2.766352] pci 0000:00:01.0: BAR 7: assigned [io  0x1e161000-0x1e161fff]
[    2.773141] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bit]
[    2.780452] pci 0000:00:00.0: PCI bridge to [bus 01]
[    2.785419] pci 0000:00:00.0:   bridge window [io  0x1e160000-0x1e160fff]
[    2.792198] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    2.798979] pci 0000:00:00.0:   bridge window [mem 0x60100000-0x601fffff pref]
[    2.806199] pci 0000:02:00.0: BAR 0: assigned [mem 0x60200000-0x602fffff 64bit]
[    2.813508] pci 0000:00:01.0: PCI bridge to [bus 02]
[    2.818471] pci 0000:00:01.0:   bridge window [io  0x1e161000-0x1e161fff]
[    2.825252] pci 0000:00:01.0:   bridge window [mem 0x60200000-0x602fffff]
[    2.832029] pci 0000:00:01.0:   bridge window [mem 0x60300000-0x603fffff pref]
[    2.839778] mt7530 mdio-bus:1f: Link is Up - 1Gbps/Full - flow control off
[    2.847735] UBI: auto-attach mtd6
[    2.851113] ubi0: attaching mtd6
[    3.220132] ubi0: scanning is finished
[    3.240197] ubi0: attached mtd6 (name "ubi", size 36 MiB)
[    3.245615] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    3.252470] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    3.259243] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    3.266187] ubi0: good PEBs: 288, bad PEBs: 0, corrupted PEBs: 0
[    3.272177] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[    3.279383] ubi0: max/mean erase counter: 7/3, WL threshold: 4096, image sequence number: 1611618593
[    3.288494] ubi0: available PEBs: 0, total reserved PEBs: 288, PEBs reserved for bad PEB handling: 20
[    3.297712] ubi0: background thread "ubi_bgt0d" started, PID 504
[    3.299498] block ubiblock0_0: created from ubi0:0(rootfs)
[    3.309203] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[    3.316153] hctosys: unable to open rtc device (rtc0)
[    3.328713] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[    3.340225] Freeing unused kernel memory: 1276K
[    3.344778] This architecture does not have kernel memory protection.
[    3.351205] Run /sbin/init as init process
[    3.833078] init: Console is alive
[    3.836741] init: - watchdog -
[    4.853648] SQUASHFS error: xz decompression failed, data probably corrupt
[    4.860546] SQUASHFS error: squashfs_read_data failed to read block 0x23763a
[    4.891535] SQUASHFS error: xz decompression failed, data probably corrupt
[    4.898420] SQUASHFS error: squashfs_read_data failed to read block 0x23763a
[    4.929360] SQUASHFS error: xz decompression failed, data probably corrupt
[    4.936240] SQUASHFS error: squashfs_read_data failed to read block 0x23763a
[    4.945621] init: - preinit -
[    5.682235] mtk_soc_eth 1e100000.ethernet eth0: configuring for fixed/rgmii link mode
[    5.690545] mtk_soc_eth 1e100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[    5.699005] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    5.891016] random: jshn: uninitialized urandom read (4 bytes read)
[    5.954776] random: jshn: uninitialized urandom read (4 bytes read)
[    6.166589] random: jshn: uninitialized urandom read (4 bytes read)
[    6.465115] mt7530 mdio-bus:1f lan1: configuring for phy/gmii link mode
[    6.472167] 8021q: adding VLAN 0 to HW filter on device lan1
[   10.553719] mt7530 mdio-bus:1f lan1: Link is Up - 1Gbps/Full - flow control rx/tx
[   10.561245] IPv6: ADDRCONF(NETDEV_CHANGE): lan1: link becomes ready
[   10.690117] UBIFS (ubi0:1): Mounting in unauthenticated mode
[   10.696106] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 614
[   10.741048] urandom_read: 6 callbacks suppressed
[   10.741060] random: procd: uninitialized urandom read (4 bytes read)
[   10.779384] UBIFS (ubi0:1): recovery needed
[   10.930112] UBIFS (ubi0:1): recovery completed
[   10.934716] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[   10.942529] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   10.952416] UBIFS (ubi0:1): FS size: 25141248 bytes (23 MiB, 198 LEBs), journal size 1269760 bytes (1 MiB, 10 LEBs)
[   10.962825] UBIFS (ubi0:1): reserved for root: 1187482 bytes (1159 KiB)
[   10.969433] UBIFS (ubi0:1): media format: w5/r0 (latest is w5/r0), UUID 8ACA8B34-6ED8-4B4D-B11D-5E7A508FFFAD, small LPT model
[   10.994413] mount_root: loading kmods from internal overlay
[   11.044244] SQUASHFS error: xz decompression failed, data probably corrupt
[   11.051129] SQUASHFS error: squashfs_read_data failed to read block 0x23763a
[   11.082073] SQUASHFS error: xz decompression failed, data probably corrupt
[   11.088952] SQUASHFS error: squashfs_read_data failed to read block 0x23763a
[   11.096778] mount_root: failed to launch kmodloader from internal overlay
[   11.625756] block: attempting to load /tmp/ubifs_cfg/upper/etc/config/fstab
[   11.641869] block: extroot: not configured
[   11.649874] mount_root: switching to ubifs overlay
[   11.669528] urandom-seed: Seeding with /etc/urandom.seed
[   11.804821] mt7530 mdio-bus:1f lan1: Link is Down
[   11.823811] procd: - early -
[   11.826816] procd: - watchdog -
[   12.405478] procd: - watchdog -
[   12.412552] procd: - ubus -
[   12.580327] procd: - init -
[   13.420041] SQUASHFS error: xz decompression failed, data probably corrupt
[   13.426937] SQUASHFS error: squashfs_read_data failed to read block 0x23763a
[   13.460420] SQUASHFS error: xz decompression failed, data probably corrupt
[   13.467317] SQUASHFS error: squashfs_read_data failed to read block 0x23763a
[   13.614504] urngd: v1.0.2 started.
[   13.817898] random: crng init done
[   20.996045] SQUASHFS error: xz decompression failed, data probably corrupt
[   21.002952] SQUASHFS error: squashfs_read_data failed to read block 0x23763a
[   21.036953] SQUASHFS error: xz decompression failed, data probably corrupt
[   21.043853] SQUASHFS error: squashfs_read_data failed to read block 0x23763a
[   21.092582] SQUASHFS error: xz decompression failed, data probably corrupt
[   21.099522] SQUASHFS error: squashfs_read_data failed to read block 0x23763a
[   21.133605] SQUASHFS error: xz decompression failed, data probably corrupt
[   21.140531] SQUASHFS error: squashfs_read_data failed to read block 0x23763a
[   21.195761] SQUASHFS error: xz decompression failed, data probably corrupt
[   21.202681] SQUASHFS error: squashfs_read_data failed to read block 0x23763a
[   21.234091] SQUASHFS error: xz decompression failed, data probably corrupt
[   21.241009] SQUASHFS error: squashfs_read_data failed to read block 0x23763a
[   21.292254] SQUASHFS error: xz decompression failed, data probably corrupt
[   21.299154] SQUASHFS error: squashfs_read_data failed to read block 0x23763a
[   21.332794] SQUASHFS error: xz decompression failed, data probably corrupt
[   21.339700] SQUASHFS error: squashfs_read_data failed to read block 0x23763a
[   21.356645] mtk_soc_eth 1e100000.ethernet eth0: Link is Down
[   21.370726] mtk_soc_eth 1e100000.ethernet eth0: configuring for fixed/rgmii link mode
[   21.379171] mtk_soc_eth 1e100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   21.383256] device eth0 entered promiscuous mode
[   21.392888] mt7530 mdio-bus:1f lan1: configuring for phy/gmii link mode
[   21.400435] 8021q: adding VLAN 0 to HW filter on device lan1
[   21.409173] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   21.416194] br-lan: port 1(lan1) entered blocking state
[   21.421499] br-lan: port 1(lan1) entered disabled state
[   21.427603] device lan1 entered promiscuous mode
[   21.453676] mt7530 mdio-bus:1f lan2: configuring for phy/gmii link mode
[   21.460899] 8021q: adding VLAN 0 to HW filter on device lan2
[   21.470306] br-lan: port 2(lan2) entered blocking state
[   21.475677] br-lan: port 2(lan2) entered disabled state
[   21.483248] device lan2 entered promiscuous mode
[   21.496048] mt7530 mdio-bus:1f lan3: configuring for phy/gmii link mode
[   21.503391] 8021q: adding VLAN 0 to HW filter on device lan3
[   21.512462] br-lan: port 3(lan3) entered blocking state
[   21.517802] br-lan: port 3(lan3) entered disabled state
[   21.524462] device lan3 entered promiscuous mode
[   21.539763] mt7530 mdio-bus:1f lan4: configuring for phy/gmii link mode
[   21.547031] 8021q: adding VLAN 0 to HW filter on device lan4
[   21.556424] br-lan: port 4(lan4) entered blocking state
[   21.561824] br-lan: port 4(lan4) entered disabled state
[   21.568549] device lan4 entered promiscuous mode
[   21.594427] mt7530 mdio-bus:1f wan: configuring for phy/gmii link mode
[   21.601701] 8021q: adding VLAN 0 to HW filter on device wan
[   23.513888] mt7530 mdio-bus:1f lan2: Link is Up - 100Mbps/Full - flow control rx/tx
[   23.521739] br-lan: port 2(lan2) entered blocking state
[   23.527048] br-lan: port 2(lan2) entered forwarding state
[   23.533736] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   23.943380] SQUASHFS error: xz decompression failed, data probably corrupt
[   23.950301] SQUASHFS error: squashfs_read_data failed to read block 0x23763a
[   23.995796] SQUASHFS error: xz decompression failed, data probably corrupt
[   24.002725] SQUASHFS error: squashfs_read_data failed to read block 0x23763a
[   24.474024] mt7530 mdio-bus:1f lan1: Link is Up - 1Gbps/Full - flow control rx/tx
[   24.481738] br-lan: port 1(lan1) entered blocking state
[   24.487113] br-lan: port 1(lan1) entered forwarding state
[   25.689719] mt7530 mdio-bus:1f wan: Link is Up - 1Gbps/Full - flow control rx
[   25.696893] IPv6: ADDRCONF(NETDEV_CHANGE): wan: link becomes ready
[   42.797163] SQUASHFS error: xz decompression failed, data probably corrupt
[   42.804140] SQUASHFS error: squashfs_read_data failed to read block 0x23763a
[   42.846047] SQUASHFS error: xz decompression failed, data probably corrupt
[   42.852952] SQUASHFS error: squashfs_read_data failed to read block 0x23763a
[   42.915531] SQUASHFS error: xz decompression failed, data probably corrupt
[   42.922450] SQUASHFS error: squashfs_read_data failed to read block 0x23763a
[   42.963739] SQUASHFS error: xz decompression failed, data probably corrupt
[   42.970676] SQUASHFS error: squashfs_read_data failed to read block 0x23763a
[   43.035871] SQUASHFS error: xz decompression failed, data probably corrupt
[   43.042782] SQUASHFS error: squashfs_read_data failed to read block 0x23763a
[   43.087062] SQUASHFS error: xz decompression failed, data probably corrupt

Był podłączony pendrive, ale go wyłączylem z mount-owania przy starcie.
Restarty z poziomu systemu nie pomagają.

Pozostało wgranie nowego softu ..czy może jest sposób na przywrocenie go do życia ?

Poszedł mail.

Sprawdzę jak tylko wróci zasilanie.

Cezary, spójrz na PRIV.

Nie sądzę. Nawet nie wiem czy i gdzie to jest.
Z poziomu aplikacji mobilnej tego nie widzę, ale może jest dostępne przez zwykle WWW.

Sprawdzę jak wróci zasilanie.

Hej !

Słowem wstępu.
W/w router ma 2 partycje systemowe.
Na jednej z nich jest oryginalny firmware, na drugiej np OpenWRT.
Gdy bootowanie się nie powiedzie 3 razy, router próbuje bootować z drugiej partycji.

Sęk w tym, że po zaniku zasilania, nie wiem czemu, ale wstaje najczęściej na oryginalnym firmware.

Tak, wiem, że mógłbym wgrać nowy firmware (z uruchomionego OpenWRT), ale chciałbym się dowiedzieć, czy można ustawić który firmware ma się uruchamiać jako pierwszy po zaniku zasilania ?

Aktualnie mam wszystko, pięknie skonfigurowane.
Nie chce mi się kolejny raz konfigurować i instalować wszystkiego od początku.

Jeżeli nie ma innej opcji to trudno, zainstaluje coś na oryginalnym firmware.

23

(11 odpowiedzi, napisanych Oprogramowanie / Software)

Cezary napisał/a:

W /etc/firewall.user, /etc/rc.local czy inny skrypt startowy. Ale nie do crona...

Ależ oczywiście !!!
Po Twojej pierwszej odpowiedzi od razu poprawiłem.

24

(11 odpowiedzi, napisanych Oprogramowanie / Software)

Cezary napisał/a:

Ale strasznie intrygujące to się zrobiło. Więc czemu akurat wpisałeś to do crona?

Jakis czas temu skorzystałem ze skryptów jednego z userów - chodzilo o blokowanie sprzetu po wykorzystaniu limitu czasu.
W cronie byly wpisane czasy uruchamiania skryptów (sprawdzajace + blokujacego oraz zdejmujacego blokade).

Kiedys dopisałem wlasnie do crona blokowanie jednego adresu i tak zostało. Zadziałało, a pozniej nie przypatrywalem sie temu wpisowi ... dopiero teraz to wyszło.

Dzisiaj zrobilem upgrade softu  i przekopiowałem crona.

@Cezary - nie drąż proszę ... wink

25

(11 odpowiedzi, napisanych Oprogramowanie / Software)

Cezary napisał/a:

Czemu niby wpisałeś to akurat do crona? W jakim celu? Czym się kierowałeś?

Nie ma tematu <brakuje emotki pokazującej moją głupotę>