Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    How to delay the initialization of interfaces during boot after switching the composition (mode) of the LTE modem HUAWEI e3372

    Scheduled Pinned Locked Moved Hardware
    9 Posts 4 Posters 1.1k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      rkokorev
      last edited by rkokorev

      pfsense_problem.jpeg

      Hi guys!

      • I use LTE (HUAWEI e3372) modem as WAN
      • after initializing the modem, I switch it to cdc_ether mode through the usb_modeswitch utility
        https://www.draisberghof.de/usb_modeswitch
      • for autoswitching during boot I use devd action https://gist.github.com/elupus/b926858a0cfb1f055be81509500b4032

      PROBLEM: The modem does not have time to switch the final mode during the booting.
      and loading hangs on error "Network interface mismatch... " (see screenshot above)

      I hade tried:

      • using loader_delay setting
      • using shellcmd to run switch batch
      • I tried several computers

      === the behavior is the same (

      please help!!!

      GertjanG viktor_gV 2 Replies Last reply Reply Quote 0
      • GertjanG
        Gertjan @rkokorev
        last edited by

        @rkokorev said in How to delay the initialization of interfaces during boot after switching the composition (mode) of the LTE modem HUAWEI e3372:

        please help!!!

        dbbdd7bc-4373-49f9-96f6-a6b307e7381f-image.png

        Consider helping yourself a lot by not using a device with only one NIC. And if it has to be one NIC, not a Realtek.

        Trying to use USB NIC's as useable network devices is not a good idea.
        When the system boots they need time to 'wake up' (but you already found this out I guess).
        pfSense is based on FreeBSD : no good (network) USB support. aka it easy for yourself : it's plain bad so its no option so no more issues.

        For the good news :

        I do remember that there is a possibility to inform the USB driver / or kernel ? that it should not wait while this device is ready ... something like that.
        It's here, somewhere on the forum.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        R 1 Reply Last reply Reply Quote 0
        • viktor_gV
          viktor_g Netgate @rkokorev
          last edited by

          @rkokorev you need to use earlyshellcmd for this
          see https://docs.netgate.com/pfsense/en/latest/development/boot-commands.html#earlyshellcmd-option

          R 1 Reply Last reply Reply Quote 0
          • R
            rkokorev @Gertjan
            last edited by

            @gertjan is it: vfs.root_mount_always_wait="1" ? https://lists.freebsd.org/pipermail/freebsd-stable/2017-February/086831.html

            1 Reply Last reply Reply Quote 0
            • R
              rkokorev @viktor_g
              last edited by

              @viktor_g I have tried, not helped (

              viktor_gV 1 Reply Last reply Reply Quote 0
              • viktor_gV
                viktor_g Netgate @rkokorev
                last edited by

                @rkokorev also add sleep 10
                see https://redmine.pfsense.org/issues/11154

                R 1 Reply Last reply Reply Quote 0
                • stephenw10S
                  stephenw10 Netgate Administrator
                  last edited by

                  Previously when hitting this we have exluded ue from the validury check by adding it here:
                  https://github.com/pfsense/pfsense/blob/RELENG_2_4_5/src/etc/inc/util.inc#L2207
                  But that brings it's own problems if in fact the interface is not present. Usually preferable to failing to boot though.

                  Steve

                  1 Reply Last reply Reply Quote 0
                  • R
                    rkokorev @viktor_g
                    last edited by rkokorev

                    @viktor_g it - helped! thank you so match!

                    ... && sleep 10
                    
                    1 Reply Last reply Reply Quote 0
                    • R
                      rkokorev
                      last edited by rkokorev

                      and to the end:
                      I have connected two LTE modem (dual WAN): earlyshellcmd and shellcmd - working in not correct.
                      Corrcect working is only "devd" mechanism!

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post
                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.