How to delay the initialization of interfaces during boot after switching the composition (mode) of the LTE modem HUAWEI e3372
- I use LTE (HUAWEI e3372) modem as WAN
- after initializing the modem, I switch it to cdc_ether mode through the usb_modeswitch utility
- 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 (
Gertjan last edited by
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.
@rkokorev you need to use
@gertjan is it: vfs.root_mount_always_wait="1" ? https://lists.freebsd.org/pipermail/freebsd-stable/2017-February/086831.html
@viktor_g I have tried, not helped (
Previously when hitting this we have exluded ue from the validury check by adding it here:
But that brings it's own problems if in fact the interface is not present. Usually preferable to failing to boot though.
@viktor_g it - helped! thank you so match!
... && sleep 10
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!