If you need to enter a PIN number then click on **Advanced Options**
If you need to enter a PIN number, then click on **Advanced Options**
Click **Save** to apply the settings.
@ -47,7 +127,7 @@ Click **Save** to apply the settings.
:width:100%
---------------------------------
Step 2 - Assign the WAN interface
Step 3 - Assign the WAN interface
---------------------------------
To assign the interface go to **Interfaces->Assignments** in our case we will make
this our primary internet connection and change the WAN assignment accordingly.
@ -56,32 +136,44 @@ To do so just change the **Network port** for **WAN** to **ppp0 (/dev/cuaU0.0) -
No click **Save** below the form.
If everything went fine then your are all setup and the default gateway will be
If everything went fine, then you are all set, and the default gateway will be
the one of you cellular connection.
..image:: images/Interface_assignment_4g.png
:width:100%
-------------------------
Step 3 - Trouble shooting
-------------------------
Ok, so it doesn't work as expected.
In that case, first look at the log of the cellular device's PPP connection, to do
so go to: **Interfaces->Point-to-Point->Log File**. Often you can see what went
wrong directly in the log.
------------------------
Step 4 - Troubleshooting
------------------------
In case it still does not work, first look at the log of the cellular device's PPP connection, to do so go to: **Interfaces->Point-to-Point->Log File**. If you are
lucky you can see what went wrong directly in the log. Unfortunately, the PPP log is
not very informative so it might not help at all.
If you can't figure out what is wrong then a reboot to reinitialize the device can
sometimes help.
If you can't figure out what is wrong, then a reboot to reinitialize the device can
sometimes help. This seems particularly true on embedded devices, better reboot
once too much and if you got lost in the options, a factory reset to start from
scratch is a good idea too. In our experience playing with SIM cards from different
providers required factory resets (for whatever reason) to get them to work properly.
..Note::
Before booting your device it is best to make sure the SIM card is inserted correctly.
As mentioned above, the SIM card needs to be available. See the hints
in the first step of this tutorial to make sure everything is prepared properly.
..Note::
Some Sierra Wireless modems still seem to need a specific init string to work
properly. One that seems to work for multiple users and LTE cards is ``&F0E1Q0 +CMEE=2``. In any case you should first try without init string and only give it
a try if you could not get any connection without. You can add this in **Interfaces->Point-to-Point->Devices->Your particular device->Advanced Options->Init String**.
When the device seems to work properly then checkout if the interface was assigned
an IP address, go to **Interfaces->Overview** and click on the WAN interface to
see the details.
You should see an IP address, Gateway IP and ISP DNS server(s).
If all is filled in then either your firewall is blocking the traffic or the
If all is filled in, then either your firewall is blocking the traffic or the
network connection is not working well.
In case you were not successful, you might have to check manually what is going
on. Read the `Troubleshooting PPP Connections <https://www.freebsd.org/doc/handbook/ppp-troubleshoot.html>`_ section in the FreeBSD manual for more information and