FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
104 views 0 comments
by anonymous
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 anonymous

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.