FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

12086 questions

14384 answers

22686 comments

36289 members

0 votes
73 views 0 comments
by
Hello,

I am fairly bad at networking in general so I could use some assistance in setting up my RUT240 for my mobile robotics use case.

Given that the modem is set up with a working sim card, how can I, via CLI, tell it to prefer connecting to a wifi if possible, and how can I tell it to prefer using mobile connection?

Currently, we connect our computer to the LAN port. What use is the WAN port? Can we connect that to our company network to allow the modem to act as a switch?

Thank you!

1 Answer

0 votes
by

Hello 

Thanks for contacting TELTONIKA | Crowd-support forum. 

Kindly be informed that RUT240 can connect to internet using Three types of WAN (Mobile, Wired and Wi-Fi), To choose your main WAN just check the desired option (wired, mobile or Wi-Fi) in the Main WAN column (first from the left). Please check the link below for more information.

https://wiki.teltonika-networks.com/view/RUT240_WAN#Operation_Modes

In case you want to set Wi-Fi as the main WAN, it’s necessary to configure RUT240 as a WiFi Station (client) to obtain an Internet connection from another WiFi AP. Please check the link below for more information.

https://wiki.teltonika-networks.com/view/RUT240_Wireless#Wireless_Station

You can set the main WAN via CLI as well, Here’s the commands:

You need to go to the /etc/config directory, use cd /etc/config

Use cat network to get the inside contents of "network" file in your screen 

The output of these command would be similar to: 

root@Teltonika-RUT240:# cd /etc/config

root@Teltonika-RUT240:/etc/config# cat network

config interface 'wan'

        option ifname 'wwan0'

        option proto 'dhcp'

        option enabled '1'

config interface 'wan2'

        option disabled '1'

        option ifname 'eth1'

        option proto 'dhcp'

        option enabled '0'

In this case the main WAN is Mobile, in order to set Wired as the main WAN the network file should be modified via VI command

root@Teltonika-RUT240:/etc/config# vi network

config interface 'wan'

        option ifname 'eth1'

        option proto 'dhcp'

        option enabled '1'

config interface 'wan2'

        option disabled '1'

        option ifname 'wwan0'

        option proto 'none'

        option enabled '0'

After modifying the network file type Ecs :wq and perform a reboot for the changes to take place.

I would recommend you to use the router’s WebUI since it does not require many modifications.

Additionally, if you need more than one LAN port, you can set up the WAN port as LAN port

Please check the link below for more information.

https://wiki.teltonika-networks.com/view/WAN_as_LAN

Should you need any additional information please let us know.

Best regards.