4 ms·
I have one of the supported cards[0], so it's quite straightforward: Check the APN from your operator's settings. - Try the card first in a phone. Preferably
by pimeys 8y ago
I have one of the supported cards[0], so it's quite straightforward:
Check the APN from your operator's settings.
- Try the card first in a phone. Preferably turn on the SIM lock and change the PIN code.
- Insert the card to the laptop, boot.
- `doas ifconfig umb0 apn your.apn.com`
- `doas ifconfig umb0 pin XXXX`
- `doas ifconfig umb0 up`
- Confirm the gateway from `ifconfig umb0` when it appears, should say inet and it's the second IP.
- When gateway is visible, `doas route add -ifp umb0 default XXX.XXX.XXX.XXX`
- Confirm the DNS works, but you should now be able to access internet.
Sometimes when you turn off the power or suspend, you might need to enter the PIN to the card, turn the device up and set the route again. A player automates this with a script. :)
You can store the settings to `/etc/hostname.umb0`.
[0] Lenovo H5321 gw
- pimeys 8y agoP.S. Oh, and I found my information from `man ifconfig` and #openbsd IRC channel.