Can I plug in GPON/EPON into an SFP Port on a network switch and get rid of ONT?

  • Thread starter Thread starter JB701
  • Start date Start date
  • Replies Replies 193
  • Views Views 37,689
@rajil.s Looks like its not connected yet or OLT not authorized this SFP. Does it show O5 state?

4ZUYFa6.png
 
@hariselio No it is stuck on O0 state.
vhj5CJD.png


This is what Huawei ONU config is

t5ouZGQ.png


I flashed the SFP to the following settings
Code:
OMCI_OLT_MODE=0
GPON_ONU_MODEL=HG8145V5
OMCI_FAKE_OK=1
PON_VENDOR_ID=HWTC
GPON_SN=HWTCXXXXXX
ELAN_MAC_ADDR=xxxxxxx
OMCI_SW_VER1=V5R019C00S107
OMCI_SW_VER2=V5R019C00S107
HW_HWVER=15AD.A
GPON_ONU_MODEL=HG8145V5
VLAN_CFG_TYPE=1
VLAN_MANU_MODE=0
VLAN_MANU_TAG_VID=100

The ELAN_MAC_ADDR was set to what is written on the back side of the Huawei router. I am not sure if that is correct or do i need to use the mac address written on the ODI GPON itself.
 
@rajil.s are you getting optical signal? Seems to not the case. Try with blue connector upc type patch cord. I use green to blue patch cord, green side connected to airtel junction box and blue connected to sfp.

Also, Mac address change not required. In fact I've not done anything from flash command. Everything was done from the web page itself.
 
@hariselio, finally i was able to get it working.

This time i used the mac written on the ODI GPON itself to set the ELAN_MAC_ADDR. In addition i had to generate a MACKEY with this mac address using the code here and listed here for archival purpose.
Code:
#!/usr/bin/env python3
#ODI DFP-34X-2C2 MAC_KEY key generator by rajkosto

import sys
import string
import hashlib

args = sys.argv
if len(args) != 2:
    sys.exit("Usage: odi_keygen.py YOURMACADDR")

macAddr = args[1].strip().replace(':','')
if len(macAddr) != 12:
    sys.exit("Mac address must be 12 hex digits (6 bytes)")

if not all(c in string.hexdigits for c in macAddr):
    sys.exit("Mac address can only contain 0-9, A-F characters (hex digits)")

cmacPrefix = 'hsgq1.9a'
hashText = cmacPrefix+macAddr.upper()
encodedText = hashText.encode('ascii')
md5Hash = hashlib.md5(encodedText).digest().hex()

print('ELAN_MAC_ADDR='+macAddr.lower())
print('MAC_KEY='+md5Hash.lower())

The VLAN 660 is also exposed out of the box for VOIP.
 
good to know :). i guess mac address is not important for Airtel and it needs only serial number. Also mackey is needed only if we replace original mac address in the onu. Somewhere i read ELAN_MAC_ADDR change is necessary only for EPON and not needed for GPON.

few questions,

1. are you able to configure VOIP now?
2. which VLAN ID for internet? is it same as 100? and did you set that in SFP or your router?
 
My pfsense configuration is a bit screwed so i havent checked VOIP in detail yet. However VLAN 660 does show on the SFP. And yes the VLAN will need to be set on the router similar to Internet 100.

Code:
# omcicli mib get 84
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
VlanTagFilterData
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
=================================
EntityID: 0x01
FilterTbl[0]: PRI 0,CFI 0, VID 100
FwdOp:  0x04
NumOfEntries: 1
=================================
=================================
EntityID: 0x02
FilterTbl[0]: PRI 0,CFI 0, VID 660
FwdOp:  0x04
NumOfEntries: 1
=================================
=================================
EntityID: 0x03
FilterTbl[0]: PRI 0,CFI 0, VID 100
FwdOp:  0x04
NumOfEntries: 1
=================================

By the way i am using firmware version V1.0-220923
 


Mine also same firmware, but probably different vlan ID is specific to Mikrotik. Someone else who is using pfsense, commented in github he had to use 100.
 
Unfortunately, VOIP doesnt work for me anymore. I created a vlan660 on the router, however unable to ping the remote sip servers. Dont understand why the SFP is not sending any traffic over vlan660.
 

Back