Temat: Banana Pi BPI-R3 i Leox GPON LXT-010S-H OpenWRT 23.05 snapshot Cezary
Mam problem z wkładką SFP Gpon od Leolabs, w zasadzie to nie wiem jak wygląda poprawne działanie/zachowanie wkładki pod OpenWRT więc może gdzieś popełniłem błąd, prosze o weryfikację poradę.
Poniżej kilka informacji nt aktualnego stanu
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------------------------------
| |
| OpenWrt 23.05-SNAPSHOT, r23633-c7b6cfac40 |
| |
| Build time: 2023-11-17 10:01 CET |
| Cezary Jackiewicz, https://eko.one.pl |
| |
-----------------------------------------------------------------------------
| Machine: Bananapi BPI-R3 |
| Uptime: 0d, 03:39:16 |
| Load: 0.01 0.01 0.00 |
| Flash: |
| Memory: total: 1.9GB, free: 1.8GB, used: 7% |
| Leases: 12 |
| lan: static, 192.168.100.4 |
| wan: pppoe, xxxxxxxxx |
| ont: static, 192.168.10.5 |
| radio0: lan, mode: ap, ssid: iFixThis, channel: 8, conn: 8 |
| radio1: lan, mode: ap, ssid: iFixThis_5GHz, channel: 64, conn: 2 |
-----------------------------------------------------------------------------
root@OpenWrt:~# uname -a
Linux OpenWrt 5.15.137 #0 SMP Wed Nov 15 10:00:19 2023 aarch64 GNU/Linux
root@OpenWrt:~# Widoczność wkładki po wciśnięciu w port - port sfp WAN
[10872.048108] device eth1 left promiscuous mode
[10872.052592] br-wan: port 1(eth1) entered disabled state
[10872.195766] mtk_soc_eth 15100000.ethernet eth1: configuring for inband/1000base-x link mode
[10872.523660] br-wan: port 1(eth1) entered blocking state
[10872.528922] br-wan: port 1(eth1) entered disabled state
[10872.534481] device eth1 entered promiscuous modeWyjecie i włożenie wkładki do portu SFP WAN
[ 14.506436] sfp sfp-1: Host maximum power 3.0W
[ 14.511681] sfp sfp-2: Host maximum power 3.0W
[ 14.849758] sfp sfp-1: module Hisense-Leox LXT-010S-H rev 1.0 sn LEOXD10000F7 dc 221104
[ 23.572293] mt7530-mdio mdio-bus:1f sfp2: configuring for inband/2500base-x link mode
[ 23.582459] br-lan: port 5(sfp2) entered blocking state
[ 23.587692] br-lan: port 5(sfp2) entered disabled state
[ 23.595611] device sfp2 entered promiscuous mode
[ 2148.868021] sfp sfp-1: module transmit fault indicated
[ 2148.873374] sfp sfp-1: module removed
[13550.742886] sfp sfp-1: module Hisense-Leox LXT-010S-H rev 1.0 sn LEOXD10000F7 dc 221104 Odczyt informacji z eepromu wkładki
root@OpenWrt:~# ethtool -m eth1
Offset Values
------ ------
0x0000: 03 04 01 00 00 00 02 00 00 00 00 03 0d 00 14 c8
0x0010: 00 00 00 00 48 69 73 65 6e 73 65 2d 4c 65 6f 78
0x0020: 20 20 20 20 00 00 00 00 4c 58 54 2d 30 31 30 53
0x0030: 2d 48 20 20 20 20 20 20 31 2e 30 20 05 1e 00 1a
0x0040: 00 1a 00 00 4c 45 4f 58 44 31 30 30 30 30 46 37
0x0050: 20 20 20 20 32 32 31 31 30 34 20 20 68 f0 08 4e
0x0060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0100: 6e 00 d3 00 69 00 d8 00 8c a0 75 30 88 b8 79 18
0x0110: c3 50 00 00 9c 40 00 00 9b 83 1f 07 7b 87 27 10
0x0120: 07 cb 00 0d 06 31 00 10 00 00 00 00 00 00 00 00
0x0130: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0140: 00 00 00 00 3f 80 00 00 00 00 00 00 01 00 00 00
0x0150: 01 00 00 00 01 00 00 00 01 00 00 00 00 00 00 79
0x0160: 25 bf 81 cf 00 00 00 00 00 00 f7 61 ce e1 02 00
0x0170: 01 00 00 00 01 40 00 00 ff ff ff ff ff ff ff 00
0x0180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0190: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x01a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x01b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x01c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x01d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x01e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x01f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Odczyt informacji nt portu eth1 - swiatlowód aktualnie nie podłączony, jak jest to nic to nie zmienia
root@OpenWrt:~# ethtool eth1
Settings for eth1:
Supported ports: [ FIBRE ]
Supported link modes: 1000baseX/Full
Supported pause frame use: Symmetric Receive-only
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 1000baseX/Full
Advertised pause frame use: Symmetric Receive-only
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Link partner advertised link modes: 1000baseX/Full
Link partner advertised pause frame use: Symmetric Receive-only
Link partner advertised auto-negotiation: Yes
Link partner advertised FEC modes: Not reported
Speed: 1000Mb/s
Duplex: Full
Port: FIBRE
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Current message level: 0x000000ff (255)
drv probe link timer ifdown ifup rx_err tx_err
Link detected: noDrugi port SFP jest pusty i się zgadza bo wkładki nie jest obsadzona
root@OpenWrt:~# ethtool sfp2
Settings for sfp2:
Supported ports: [ MII ]
Supported link modes: 2500baseX/Full
Supported pause frame use: Symmetric Receive-only
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 2500baseX/Full
Advertised pause frame use: Symmetric Receive-only
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Speed: 2500Mb/s
Duplex: Full
Port: MII
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: d
Wake-on: d
Link detected: no
root@OpenWrt:~# ethtool -m sfp2
Cannot get Module EEPROM data: No such device or address
SFP module not in cage?Wkładka ma ustawione odpowiednie dane zgodnie z urządzeniem combo od operatora oraz adres ip 192.160.10.1
Widzę ja w switchu z sfp, dostaje statu O5, nic tylko zestawić sesje PPPoE ale pod OpenWRT nie moge dostać się do wkładki
Ustawienia sieci
root@OpenWrt:~# cat /etc/config/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 'fd0e:954f:ef40::/48'
config device
option name 'br-lan'
option type 'bridge'
list ports 'lan1'
list ports 'lan2'
list ports 'lan3'
list ports 'lan4'
list ports 'sfp2'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr '192.168.100.4'
option netmask '255.255.255.0'
option ip6assign '60'
config device
option name 'br-wan'
option type 'bridge'
list ports 'eth1'
list ports 'wan'
config device
option name 'eth1'
option macaddr '3e:50:f6:01:b0:a6'
config device
option name 'wan'
option macaddr '3e:50:f6:01:b0:a6'
config interface 'wan'
option device 'br-wan'
option proto 'pppoe'
option username 'isb6rewr@bn24.pl'
option password 'uZRyP6iD'
option ipv6 'auto'
config interface 'ont'
option proto 'static'
option device 'eth1'
option ipaddr '192.168.10.5'
option netmask '255.255.255.0'Wkładki nie mogę pingować
root@OpenWrt:~# ping 192.168.10.1
PING 192.168.10.1 (192.168.10.1): 56 data bytes
^C
--- 192.168.10.1 ping statistics ---
8 packets transmitted, 0 packets received, 100% packet loss