FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
Koushik_IND_Banglore
Article Id 398383
Description This article describes a workaround regarding the LTE modem's failure to connect with the carrier.
Scope FortiGate with built-in modem.
Solution

After inserting the SIM into the Modem SIM slot, the Modem interface (WWAN) status remains connecting and then goes to the failed status. LTE Modem interface (WWAN) is unable to get a DHCP IP address from the carrier. 

 

The SIM card gets detected correctly, which can be verified with the following command:

 

diagnose system lte-modem sim-info

 

Example output:

 

TE Modem SIM card information:
Active Slot: Slot 1
SIM state: QMI_UIM_CARD_STATE_PRESENT  <-- SIM is Present.
ICCID: 89919******33217f
IMSI: *******0083321
Country: India
Network: Airtel
SIM PIN status: Verified

 

The IPv4 and IPv6 connection status shows UNKNOWN when WWAN is unable to get an IP and remains in the connecting state. The  connection status can be verified with the following command:

 

Siware-Retail-Spoke # diagnose sys lte-modem data-session-info
LTE Modem data session information:
Interface name: wwan
IPV4 connection: QMI_WDS_CONNECTION_STATUS_UNKNOWN     <----- IPv4 Connection status in unknown state.
IPV6 connection: QMI_WDS_CONNECTION_STATUS_UNKNOWN     <----- IPv6 Connection status in unknown state.
Profile ID: 2
Data profile name: profile2
Profile type: QMI_WDS_PROFILE_TYPE_3GPP
PDP context type: QMI_WDS_PDP_TYPE_IPV4_OR_IPV6
APN name: airtelgprs.com
Auto connect: QMI_WDS_AUTOCONNECT_ENABLED
Network type: Unknown WDS Bearer Tech
Network type(last): Unknown WDS Bearer Tech

 

The 'diagnose test app lted 6' command shows the IP address of the internal modem. It will show an incorrect IP address schema/random value similar to the following sample output:

 

Siware-Retail-Spoke # diagnose test app lted 6
at+cgpaddr
+CGPADDR: 1,0.0.0.0,0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0    <---
+CGPADDR: 2,0.0.0.0,0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0    <---

 

Even after switching the SIM slot, the connection status remains the same.

 

If this behavior is observed, the 'auto-connect' feature under 'config system lte-modem' needs to be disabled for successful Modem connection with the carrier:

 

config system lte-modem
    set auto-connect disable  <------
end