Anime4000 / RTL960x

Hacking RTL960x based xPON ONU Stick to suite your Universal OLT
The Unlicense
649 stars 111 forks source link

DFP-34X-2C2 & Mikrotik hEX s unable to get IP EPON #105

Closed korzhyk closed 1 year ago

korzhyk commented 1 year ago

Hello, I faced with problem when my Mikrotik unable to sent DHCP IP Request through SFP interface. SFP ONU connection is established (due PON packets stats) but in PON stats I see 0 unicast messages sent, but has a lot of received.

korzhyk commented 1 year ago

SFP stick DFP-34X-2C2 was configured with this params:

DEVICE_TYPE=0
DIRECT_BRIDGE_MODE=1
ELAN_MAC_ADDR=a0c6ec09170c
MAC_KEY=273c6d095a33535a0a8295f9a5213b87
FIBER_MODE=0
GPON_ONU_MODEL=PU-E510
GPON_PLOAM_PASSWD=31323334353637383930
GPON_SN=RTKG11111111
HW_CWMP_MANUFACTURER=Realtek
HW_CWMP_PRODUCTCLASS=RTL9601B
HW_HWVER=R1
LAN_SDS_MODE=0
LOID=user
LOID_PASSWD=password
OMCC_VER=128
OMCI_FAKE_OK=1
OMCI_OLT_MODE=21
OMCI_SW_VER1=V8E104R170220
OMCI_SW_VER2=V8E104R170220
OMCI_TM_OPT=2
OMCI_VEIP_SLOT_ID=255
PON_MODE=2
PON_VENDOR_ID=RTKG
VLAN_CFG_TYPE=0
VLAN_MANU_MODE=0
# diag l2-table get entry address valid
LUT address: 0x0260 (1K LUT)
L2 Unicast table:
MACAddress        Spa Fid Age Vid  State  Ext  Hash
A0:C6:EC:09:17:0C 3   0   7   1    Auto   0    SVL     # ← ONU (ELAN_MAC_ADDR)
CtagIf Auth DaBlock SaBlock Arp
Dis    Dis  Dis     Dis     Dis

LUT address: 0x0270 (1K LUT)
L2 Unicast table:
MACAddress        Spa Fid Age Vid  State  Ext  Hash
08:55:31:00:00:00 0   0   7   1    Auto   0    SVL     # ← Router mikrotik
CtagIf Auth DaBlock SaBlock Arp
Dis    Dis  Dis     Dis     Dis

LUT address: 0x03bc (1K LUT)
L2 Unicast table:
MACAddress        Spa Fid Age Vid  State  Ext  Hash
3C:8A:B0:00:00:00 2   0   6   1    Auto   0    SVL     # ← ISP Gateway (Juniper Networks)
CtagIf Auth DaBlock SaBlock Arp
Dis    Dis  Dis     Dis     Dis

Currently connected to ISP via Picotel PU-E510 (ISP ONU)

# diag l2-table get entry address valid
LUT address: 0x0040 (256 LUT)
L2 Unicast table:
MACAddress        Spa Age Vid  State  Hash
A0:C6:EC:09:17:0C 2   7   2903 Auto   SVL     # ← ONU (ELAN_MAC_ADDR)
CtagIf CtagVid
Dis    0      

LUT address: 0x006c (256 LUT)
L2 Unicast table:
MACAddress        Spa Age Vid  State  Hash
08:55:31:00:00:00 0   7   2903 Auto   SVL     # ← Mikrotik router
CtagIf CtagVid
Dis    0      

LUT address: 0x0094 (256 LUT)
L2 Unicast table:
MACAddress        Spa Age Vid  State  Hash
84:79:73:00:00:00 1   7   1    Auto   SVL     # ← Unknown device (Shanghai Baud Data Communication Ltd)
CtagIf CtagVid
Dis    0      

LUT address: 0x00f4 (256 LUT)
L2 Unicast table:
MACAddress        Spa Age Vid  State  Hash
3C:8A:B0:00:00:00 1   7   2903 Auto   SVL     # ← ISP Gateway (Juniper Networks)
CtagIf CtagVid
En     2903   
TheKhack commented 1 year ago

Try clone settings from Picotel PU-E510 you have many settings that don't match with ODI DFP-34X-2C2

korzhyk commented 1 year ago

Try clone settings from Picotel PU-E510 you have many settings that don't match with ODI DFP-34X-2C2

No luck 😔 Already done. Also I updated l2 table for DFP-34X-2C2

dexxter00 commented 1 year ago

Which provider is this? Your ISP probably uses VLAN tagging, please check MIB 84 omcicli mib get 84

korzhyk commented 1 year ago

@dexxter00 unfortently omcicli mib get 84 return empty result on both ONUs and I'm my ISP (Lanet, Ukraine) uses EPON.

telnet 192.168.0.1
Trying 192.168.0.1...
Connected to 192.168.0.1.
Escape character is '^]'.
login: admin
Password: 

BusyBox v1.12.4 (2017-02-20 18:14:44 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

# omcicli mib get 84
# 
# 
korzhyk commented 1 year ago

Finally, got IP from ISP.

As I know from tech support of my ISP there only ONU MAC address auth on OLT side. So in my case I need only to change ELAN_MAC_ADDR and MAC_KEY to get my ONU registered. But also need to manually set PVID in VLAN settings. Actual PVID is a value 2903 from l2-table of ISP Picotel PU-E510. After this change I finally get Unicast packets received and IP from ISP DHCP. image

UPD: So firmware M110_sfp_ODI_220923.tar is a good choice for me, that version allows to change ELAN_MAC_ADDR, MAC_KEY from Web interface. But default PON_MODE=1 need to be changed to EPON PON_MODE=2 via telnet.

korzhyk commented 1 year ago

UPD2: LLID MAC addr also must be changed in this case ISP can monitor your SFP ONU, otherwise your ONU will be like a ghost in ISP network but will have Internet access.

Anime4000 commented 1 year ago

good find

payk24 commented 1 year ago

Hi, @korzhyk, can you help me, please? Could you explain to me how to set LLID?

korzhyk commented 1 year ago

@payk24 you need FW version "M114_sfp_ODI_Vlan_220414.tar" there is EPON settings menu that allows to change LLID (mac addr).