[OpenWrt] 4G SIM卡設定

網路相關
回覆文章
Lexaul
文章: 231
註冊時間: 2019-10-18, 14:28

[OpenWrt] 4G SIM卡設定

文章 Lexaul » 2022-03-25, 15:28

參考資料:https://teklager.se/en/knowledge-base/o ... iguration/

1.Step 1: Install QMI software packages
Go to Software -> Update list -> search for QMI -> install the following packages.
qmi-utils luci-proto-qmi

1-1.重啟設備

2.Create the QMI interface
Go to Network => Interfaces => click "Add new interface"

You can input any name you like. In this example, I named my interface "4G".

In the protocol field choose "QMI". If you don't see QMI on the list, you have not installed the right packages or haven't rebooted the router.

3.Step 3: APN configuration
APN stands for Access Point Name and it's the name your modem will try to connect to gain access to the public internet. It's similar to SSID in WiFi networks. If you don't know what to input here, google for "APN + your provider name".

Select "/dev/cdc-wdm0" in the "Modem device" dropdown. If you don't see this device in the dropdown, your modem is not detected. Go to the troubleshooting section.

​​​​​​​Input the other fields as you see on the screenshot. If your SIM card has a PIN number, make sure to enter that.

3-1.中華電信4GSIM卡固定IP設定
APN:ip1
認證機制:None
PDP Type:ipv4

4.Step 4: Set the 4G interface as default WAN
Note, on the previous screenshot there's a wired WAN interface on eth0. We will need to delete this interface and configure the 4G interface as WAN.

Click the "Delete" button next to "WAN" and confirm the deletion.

Now click "Edit" on the 4G interface => go to Firewall settings tab => Assign firewall zone => Select WAN => Save.
[email protected]
github.com/Lexaul

回覆文章