I have a FreeBSD 13.3 machine with Sierra Wireless EM7421 LTE/4G modem. I have been trying to get mpd5 (mpd5-5.9_18) working with without much success. The configuration I'm using is the same which works with older devices having SimTech modems.
When started, everything seems to come up but immediately after that I see this in log:
mpd[3393]:[B-Link]LCP:rec'd Terminate Request #66 (Opened)mpd[3393]: [B-Link] LCP: state change Opened --> Stopping
and the connection closes. I'll attach the complete logfile.
The modem itself seems to work, because when I try to use it with user-level ppp in FreeBSD, connection comes up and stays up. However, I would prefer to use mpd, but don't understand what is wrong with my configuration.
If I disable ipcp then lcp stays up, but the connection is obviously quite useless then.
Disabling vjcomp and CCP didn't help. Here is mpd2.log from connection attempt with those disabled. I'll attach also ppp.log from user-level ppp which contains successful negotiation.
Perhaps, your ISP somehow detects you are "sharing" the connection among multiple devices while it does not permit that? Try filtering all IP traffic running over ng0 interface for some time to see if termination delays, too?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It's not ISP I'm talking to. It's LTE/4G modem, which uses PPP between it and host system. This is very common with such devices, but there is now PPP going out from modem's radio!
Section 13 in manual "GSM/WCDMA AT COMMANDS", page 131.
As these modems can achive quite high network speeds, we have been preferring mpd5 instead FreeBSD's user mode ppp (which pushes all the traffic thru user mode process).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm starting to suspect that problem is not in mpd5, but in ng_ kernel modules that are being used here. If I disable ipcp the link stays up. And ipcp happens in ng_ module (as far as I understand).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I have a FreeBSD 13.3 machine with Sierra Wireless EM7421 LTE/4G modem. I have been trying to get mpd5 (mpd5-5.9_18) working with without much success. The configuration I'm using is the same which works with older devices having SimTech modems.
My configuration looks like this:
When started, everything seems to come up but immediately after that I see this in log:
and the connection closes. I'll attach the complete logfile.
The modem itself seems to work, because when I try to use it with user-level ppp in FreeBSD, connection comes up and stays up. However, I would prefer to use mpd, but don't understand what is wrong with my configuration.
If I disable ipcp then lcp stays up, but the connection is obviously quite useless then.
First, disable IPCP vjcomp option as remote side rejects it anyway:
set ipcp disable vjcomp
And retry. If it does not help, please collect similar log of user-level ppp that includes IPCP negotiation to compare, and post it.
Also, remote side rejects CCP protocol, so change "set bundle enable compression" to "set bundle disable compression"
Disabling vjcomp and CCP didn't help. Here is mpd2.log from connection attempt with those disabled. I'll attach also ppp.log from user-level ppp which contains successful negotiation.
The only notable difference left is accmap option, try to add this:
set link accmap 0
Unfortunately, with this change, it still behaves same as before.
Anyway, please post latest mpd log.
Here is the latest log.
The log shows the following:
The documentation https://mpd.sourceforge.net/doc5/mpd20.html#20 tells:
Your configuration above does not include "set link ident" but you seem to have it really. Comment it out and retry.
Last edit: Eugene Grosbein 2024-09-16
Oh yes, I tried to add it because there was something similar in ppp.log. Removed now, fresh log and config attached.
OTOH, maybe other side wants to serve only "known" PPP clients. Try to pretend this is user-ppp:
set link ident "user-ppp 3.4.2"
Last edit: Eugene Grosbein 2024-09-16
Tried that. Unfortunately no luck.
Perhaps, your ISP somehow detects you are "sharing" the connection among multiple devices while it does not permit that? Try filtering all IP traffic running over ng0 interface for some time to see if termination delays, too?
It's not ISP I'm talking to. It's LTE/4G modem, which uses PPP between it and host system. This is very common with such devices, but there is now PPP going out from modem's radio!
https://source.sierrawireless.com/resources/airprime/minicard/75xx/41111748-airprime-em75xx-at-command-reference/
Section 13 in manual "GSM/WCDMA AT COMMANDS", page 131.
As these modems can achive quite high network speeds, we have been preferring mpd5 instead FreeBSD's user mode ppp (which pushes all the traffic thru user mode process).
Make sure that your AT-commands script for the modem initializes it exactly same way as one for user-ppp.
There is only one relevant initialization setting in mpd.script (AT+CGDCONT), which is same for both.
Is it possible to have mpd5 log serial line data ? Something like this in user-mode ppp:
Your logs already have it, for example:
You could find useful ktrace(1) kernel facility to record system calls and sent/received data of mpd5 process:
I'm starting to suspect that problem is not in mpd5, but in ng_ kernel modules that are being used here. If I disable ipcp the link stays up. And ipcp happens in ng_ module (as far as I understand).
Upgraded to FreeBSD 14.1 and now it works.