Banana BPI-R4 + Compatible Fiber Optic Module with ISP Provider

So if the plugging it is not enough… Anyone can help us with Guidelines…

Because our Dear/Friend @Thanks :pray: mentioned to use that GPON will work on our providers

Was my question is that GPON will be enough to let it work without full package :package: or I need purchase full package

https://a.aliexpress.com/_okRtAON

If it will work without full package : what is required for configurations

Thank you, I will buy the recommended device. As soon as it arrives and I carry out the tests, I will get back to you saying if everything went well.

1 Like

My Huawei MA5671A arrived, I have already installed it and I believe it was recognized perfectly.

But I cannot authenticate with the ISP provider.

I normally use the ONU provided by the provider, and EPPE authentication is done on the BPI-R4.

My goal is to connect the fiber directly to the BPI-R4 without the need for an ONU.

How do I proceed?

I have all the settings of the ONU provided by the provider. Including the VLAN configured on the LAN interface.

You need the information I mentioned above from the ISP modem to configure the ONU SFP module.

Do this because you do not have a fiber media converter to be able to login and configure the ONU SFP module:

I have all the information, and I have access to the ISP’s UNO. But I can’t access the Huawei module. I noticed that it doesn’t have a serial number. And I need to set a VLAN that I’ve already tried to set on the BPI-R4 but it didn’t work. It’s there just for this information.

Guide:

Web interface instructions

Make sure the ONU SFP module subnet doesn’t overlap with your LAN, so change the LAN subnet.

  1. Navigate to LuCINetworkInterfaces.
  2. Click Edit on the lan interface and change the IP address:
    • IPv4 address: 192.168.5.1
  3. Click Save, then Save & Apply and then Apply unchecked.

Assuming your ONU SFP module IP address is “192.168.1.10” and it is connected to the router’s WAN interface.

  1. Navigate to LuCINetworkInterfaces.
  2. Click Add new interface… and specify:
    • Name: modem
    • Protocol: Static address
    • Interface: @wan
  3. Click Create interface.
  4. On the General Settings tab specify:
    • IPv4 address: 192.168.1.15
    • IPv4 netmask: 255.255.255.0
  5. On the Firewall Settings tab specify:
    • Create / Assign firewall-zone: wan
  6. Click Save, then Save & Apply.
  7. Enter “192.168.1.10” in your browser’s address bar to access the Huawei MA5671A:
  8. Follow the steps as in the example and watch the tutorials:

At this point the ONU SFP module should be reachable from any host in the LAN.

Command-line instructions

  1. Make sure the ONU SFP module subnet doesn’t overlap with your LAN, so change the LAN subnet.

    # Configure network
    uci set network.lan.ipaddr="192.168.5.1"
    uci commit network
    service network restart
    
  2. Assuming your ONU SFP module IP address is “192.168.1.10” and it is connected to the router’s WAN interface.

    Set up a static WAN alias and assign it to the WAN zone.

    # Configure network
    uci -q del network.modem
    uci set network.modem="interface"
    uci set network.modem.proto="static"
    uci set network.modem.device="@wan"
    uci set network.modem.ipaddr="192.168.1.15"
    uci set network.modem.netmask="255.255.255.0"
    uci commit network
    service network restart
    
    # Configure firewall
    uci del_list firewall.@zone[1].network="modem"
    uci add_list firewall.@zone[1].network="modem"
    uci commit firewall
    service firewall restart
    
  3. Enter “192.168.1.10” in your browser’s address bar to access the Huawei MA5671A:

  4. Follow the steps as in the example and watch the tutorials:

Also:

Yes, I’ve already done that. I’ve opened all the Firewalls, I’ve done it and redone it. And I still don’t have access.

Are you sure you don’t need the converter for this method of accessing the module?

I can’t figure out what’s wrong.

Watch these videos:

do you have a “link detected: yes” on your SFP (cable connected)? have you a local IP-Adress from same subnet as your sfp webinterface? can you make a local ping and http request (telnet/curl) from r4 to the webinterface of the module?

1 Like

It worked!! :partying_face: :partying_face: :partying_face:

Everything worked!! With internet access on the module already connected to the BPI-R4.

After I got access to the SFP module, I configured the MAC, Password, LOID, GPON SN, VLAN. As in the tutorials. And it worked immediately.

I’m doing PPoE access on the Openwrt image on the BPI-R4, out of personal preference, but I know I could do it on the SFP module.

My problem is that when I was accessing the SFP module, I was setting up the interface, but when I set up the WAN bridge, it worked. I think it was a firewall.

Thanks for your help!

1 Like

Are you able to explain how the OP was able to get the MA5671A module to work in the BPI-R4’s SFP+ port given that the BPI-R4 documentation states “ The SFP serdes speed of BPI-R4 is fixed at 10Gbps, so only SFP that support this can be used”?

It is my understanding that the MA5671A only negotiates at 1G or 2.5G.

By the way, my ISP provides a G-010S-P that I would like to use in a BPI-R4 that I have ordered by not yet received. My provided network speed, from ISP, is 1.5G. So ideally, I would like to establish a 2.5G negotiated link between the BPI-R4 and the SFP module. Will I run into issues?

I also have a 2.5G module from luleey for GPON.

It didn’t work at first, because it tried to auto negotiate the speed of the interface between SFP and CPU.

I set it fixed to 1G, because my internet connection is only 500 MBit.

I could try to set it to 2.5G to test if that would work as well.

Thanks. Do you have a link to a tutorial on how to fix the speed?

The command I use is

ethtool -s eth2 speed 1000 duplex full autoneg off

which forces the speed to 1000MBit, full-duplex mode and disables auto negotiation.

I just tried with 2500 instead of 1000 but it didn’t work for my device, even though it is a 2.5G SFP module.

To see the supported modes use

ethtool eth2

and look for

Supported link modes:   1000baseX/Full

in the output.

To automate the process on boot I initially added the command to /etc/rc.local, but after seeing the SoC switch being reset by the kernel at runtime, I needed a different solution.

Instead, I now use a script in /etc/hotplug.d/iface/10-sfp, which automatically executes when the eth2 device comes up (again) at any time while the system is running.

#!/bin/sh

[ "$ACTION" = ifup -a "$DEVICE" = eth2 ] || exit 0

logger -t sfp "Force 1Gbps full-duplex on SFP module (eth2)"
ethtool -s eth2 speed 1000 duplex full autoneg off

@frank-w any idea why I don’t see the 2.5G option on eth2 for my module? Because for eth1 it looks like this, without a plugged SFP module though.

Settings for eth1:
        Supported ports: [ MII ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Half 1000baseT/Full
                                10000baseT/Full
                                2500baseX/Full
                                1000baseKX/Full
                                10000baseKX4/Full
                                10000baseKR/Full
                                1000baseX/Full
                                10000baseCR/Full
                                10000baseSR/Full
                                10000baseLR/Full
                                10000baseLRM/Full
                                10000baseER/Full
                                2500baseT/Full
                                5000baseT/Full

Should be same for eth1 and eth2 on r4 as there are same macs for both…(r3 is different in this manner where second sfp is connected to switch not sfp). Can you show output for eth2 for same state (only no sfp)? Afair i had fewer options for both when no sfp is connected…this is maybe driver bug (creating the mac with fewer options)

I didn’t make any speed settings, I left it on automatic. It looks like this:

image

It shows the same options for eth2 and eth1 when I remove the SFP module.

So, either the SFP module can’t deal with 2500Mb/s or a driver issue. Because according to the manufacturer it should support it.

What is the model of your SFP module that is not being recognized?

It’s this one 2.5G XPON STICK SFP ONU - LuLeey

According to name and specs it should support 2.5G. But in the SFP+ port of the R4 it doesn’t.

Not sure if the issue is SFP+ or the realtek chipset inside and the corresponding driver on the kernel side.

This one looks like it is the same as the ODI DFP-34X-2C2. Can you post the output of ethtool -m eth2 ?