Configuring DNS with PPP

Hi all,
I'm trying to use PPPD to setup a connection over my cell modem, the Quectel BG95 M3. The interface is not able to be created after PPP fails to many IPCP config requests. After getting the successful CONNECT output from the chatscript, PPP starts trying to configure IP and DNS, but seemingly fails.
Here's my chatscript:

TIMEOUT 3
ECHO ON
'' AT
OK AT+CGDCONT=1,"IPV4V6","super"
OK AT+QCFG="iotopmode",0,1
OK AT+CFUN=1
OK AT+QCSQ;+CEREG?;+COPS?;+CGDCONT?
OK ATD*99#
CONNECT 150000000 ''

and here's the relevant section in my network file:

config interface 'wan2'
	option ifname 'ppp0'
	option proto 'ppp'
	option device '/dev/ttyUSB2'
	option speed '921600'
	option file '/etc/ppp/peers/att-QBG95'
	option connect '/usr/sbin/chat -v -f /etc/ppp/peers/att-QBG95-chat'
	option pppd_options 'debug'

I get this from logread after the connect:

Thu Jul 20 18:50:36 2023 daemon.debug pppd[27848]: sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
Thu Jul 20 18:50:36 2023 daemon.debug pppd[27848]: rcvd [LCP DiscReq id=0x1 magic=0xb3b71534]
Thu Jul 20 18:50:36 2023 daemon.debug pppd[27848]: rcvd [LCP EchoRep id=0x0 magic=0xb3b71534 44 87 c2 7d]
Thu Jul 20 18:50:36 2023 daemon.debug pppd[27848]: sent [LCP EchoReq id=0x1 magic=0x4487c27d]
Thu Jul 20 18:50:36 2023 daemon.debug pppd[27848]: rcvd [LCP EchoRep id=0x1 magic=0xb3b71534 44 87 c2 7d]
Thu Jul 20 18:50:37 2023 daemon.debug pppd[27848]: sent [LCP EchoReq id=0x2 magic=0x4487c27d]
Thu Jul 20 18:50:37 2023 daemon.debug pppd[27848]: rcvd [LCP EchoRep id=0x2 magic=0xb3b71534 44 87 c2 7d]
Thu Jul 20 18:50:38 2023 daemon.debug pppd[27848]: sent [LCP EchoReq id=0x3 magic=0x4487c27d]
Thu Jul 20 18:50:38 2023 daemon.debug pppd[27848]: rcvd [LCP EchoRep id=0x3 magic=0xb3b71534 44 87 c2 7d]
Thu Jul 20 18:50:39 2023 daemon.debug pppd[27848]: sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]

Eventually it times out with message "no network protocols running"
Any idea what I could be doing wrong?

For anyone running into similar issues. Doing 'noipv6' as as a pppd option completely caused this. I suppose the modem was looking for IPV6 config requests before it did anything else?
I also had to restart dnsmasq after the ppp interface was created in order to fix DNS resolution.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.