This tutorial will show you how to share Mobile internet traffic to an external device over ethernet. This allows you to connect Syrus to a switch, adapter, or directly to an ethernet capable device in order to give it internet.
You will learn
- How to configure the ethernet interface on the Syrus to manage different networks
You will need
- Ethernet cable
- Hub, switch, or ethernet capable device
- Syrus 4 device
Start by disconnecting the ethernet cable from the Syrus and the laptop.
Next, make sure your Syrus device has a SIM card with data enabled.
Next, use the terminal or if you have ssh access to send the following and verify there's connectivity.
# Verify Syrus has a connection via ppp0 ip route # Ping a website using the ppp0 interface ping -I ppp0 www.google.com
Next, configure the ethernet interface on the Syrus 4 with the apx-ethernet command.
# Set the IP, Gateway, and DNS address apx-ethernet set --ip=192.168.1.99/24 --gateway=192.168.1.255 --dns=18.104.22.168 --route=none
With the above configuration you are assigning Syrus to have
- Subnet mask:
- Range of hosts:
192.168.1.1 - 192.168.1.254(excluding .99)
With the ethernet cable still unplugged, attempt to configure the ethernet interface on the laptop as follow:
- IP Address:
Xrange from 1-254, excluding 99)
- Subnet Mask:
192.168.1.99(--ip address set on the Syrus device)
- DNS Server:
22.214.171.124, 126.96.36.199(Google's dns or custom)
In Windows go to the Network and Sharing center and edit the ethernet adapter settings to configure the IPv4 address
Connect the ethernet cable and perform a ping and speed test to confirm the results.
# Mac / Windows ping www.google.com # Linux # replace enp8s0 with the ethernet interface on your linux machine ping -I enp8s0 www.google.com
Verify network priority
Depending on your system you may have to modify the network priority in order for the ethernet interface to be used for internet access.
On mac you can go to the network settings and Set Service Order...
To make sure the priority is given to the ethernet port.
In linux computers you can send
ip route to verify the network priority and make sure the ethernet is the first option.
# verify internet traffic routing ip route # add interface to the ip route list (replace with the IP of the Syrus device) sudo route add default gw 192.168.1.99 # remove interface from ip route list sudo route del default wlp7s0
Windows file and printer sharing
If you experience disconnections on a Windows PC you may have to turn off File and printer sharing options in the network settings.
You're now ready to sharing internet to ethernet devices.
Updated 14 days ago