uci set network.wwan=interface
uci set network.wwan.proto='wwan'
uci set network.wwan.apn='iliad'
uci set network.wwan.pincode='<your sim pin code>' #if pincode doesn't exist delete this line
uci set network.wwan.auto='0'
uci commit network
uci set firewall.@zone[1].network='wan wwan wan6'
uci commit firewall
Reboot openwrt. Now if you start wwan with ifup wwan you will be able to navigate.
With Tim SIM card I've used modemmanager. Before use it I've installed this packages:
I recently managed a configuration like your with a 3g dongle and Iliad, I noticed too that the connection sometimes doesn't start correctly on boot, but it doesn't fail if the router is rebooted by command. In case of a power failure or hardware switch off, at the next boot, 3g connection fail. My workaround is a little script in rd.local testing the connection and rebooting by shell.
I also created a boot script (stupid script ) to check if connection works. I've enabled cron to check the connection every 10 minutes because sometimes it falls and doesn't restart. MY STUPID BOOT SCRIPT (/etc/init.d/check_SIM_connection)
#!/bin/sh /etc/rc.common
START=98
USE_PROCD=1
start_service(){
logger -t 'check_SIM_connection' 'Check states of SIM connection'
if [ -z /root/sim_log.log ] || [ wc -l < /root/sim_log.log == "100" ]; then echo "" > /root/sim_log.log; fi
sleep 60
if ping -q -c 1 -W 2 8.8.8.8 > /dev/null; then
exit 0
else
sleep 60
if ping -q -c 1 -W 2 8.8.8.8 > /dev/null; then
exit 0
else
echo "$(date): Connection lost -> Reboot" >> /root/sim_log.log
reboot
fi
fi
procd_open_instance check_vpn_connections
procd_close_instance
}
Which hardware are you using to connect?
I explain, mine system is up 24/24 7/7 days, to give a gateway to some ip cams. It Is up flawlessly from several months, but recently, sometimes it goes offine and despite the test&reboot script and the cron scheduled test, it does not reconnect.... I suspect the internet key Huawei have reached his life limit.