Jump to content

LAN as WAN on TRB series: Difference between revisions

From Teltonika Networks Wiki
Created page with "test"
 
No edit summary
 
(13 intermediate revisions by one other user not shown)
Line 1: Line 1:
test
<p style="color:red">The information on this page is updated in accordance with the [https://wiki.teltonika-networks.com/view/FW_%26_SDK_Downloads'''00.07.14.2'''] firmware version .</p>
 
==Introduction==
 
This article provides a guide on how to configure the LAN port as WAN on TRB series devices that have Ethernet ports. It can be useful if you want the device to be able to connect to the internet without relying on a SIM card.
 
==Configuration overview and prerequisites==
 
Before we begin, let's overview the configuration that we are attempting to achieve and the prerequisites that make it possible.
 
'''Prerequisites''':
* TRB series device with Ethernet port.
* Router or a gateway that could provide TRB with internet connectivity (make sure that the LAN IPs of the TRB and the router '''do not match''').
* End device for configuration.
 
==Device configuration==
 
Navigate to '''Network → LAN → edit LAN''' the instance:
 
[[File:TRB_Edit_LanV1.png|border|class=tlt-border]]
 
Once there, press on the '''LAN to WAN''' button:
 
[[File:TRB_LAN_to_WANV1.png|border|class=tlt-border]]
 
You will receive a pop-up message to confirm that the interface will be switched. Note that '''Remote access will be turned on automatically''', so the device will be reachable through the WAN port. Press on the '''Switch Interface''' button to continue:
 
[[File:TRB Switch InterfaceV1.png|border|class=tlt-border]]
 
To finish up the configuration, press '''Save & Apply''' to create a new interface for WAN:
 
[[File:TRB Apply WANV1.png|border|class=tlt-border]]
 
With this, the configuration is done.
 
==How to reach the device through the WAN port==
 
Once the configuration has been finished, connect the TRB to the router to supply an internet connection to the TRB. If you'd like to reach and configure the device, then you would need to know what WAN IP address it currently uses. To find out, you would need to reach your router and check the DHCP leases.
 
For example, on the Teltonika router, you could check the lease by navigating to '''Status → Network → LAN'''. Here we can see that the TRB has been leased a '''192.168.1.179''' IP address:
 
[[File:TRB DHCP lease.png|border|class=tlt-border]]
 
Also, the command line could be used to check the DHCP lease. Use the '''arp''' command to find the device and a corresponding IP address:
 
[[File:TRB arpV1.png|border|class=tlt-border]]
 
Using this IP ('''192.168.1.179''') you should be able to reach the device:
 
[[File:TRB WAN Metrics V1.png|border|class=tlt-border]]
 
'''Note''': If you need to reach SSH using the same IP, make sure to enable '''Remote SSH access''' in the '''System → Administration → Access Control''' section.
 
==Testing the configuration==
 
If the device does not have SIM inserted, simply navigate to '''System → Maintenance → Troubleshoot''' and look for '''Diagnostics''' section. Here you can check if the device is able to reach the internet:
 
[[File:TRB_Ping_Test_V1.png|border|class=tlt-border]]
 
If the device does have SIM inserted, you will need to change the WAN interface metric first. To do so, switch the WebUI to advanced, navigate to '''Network → WAN''' and place the '''lan_to_wan''' interface in the top position:
 
[[File:2023-10-13 10h56 37 wan metric.png|border|class=tlt-border]]
 
'''Note''': TRB1XX does not have Failover functionality, so to use the Mobile interface, you would need to modify metrics or edit routing table.

Latest revision as of 10:54, 14 May 2025

The information on this page is updated in accordance with the 00.07.14.2 firmware version .

Introduction

This article provides a guide on how to configure the LAN port as WAN on TRB series devices that have Ethernet ports. It can be useful if you want the device to be able to connect to the internet without relying on a SIM card.

Configuration overview and prerequisites

Before we begin, let's overview the configuration that we are attempting to achieve and the prerequisites that make it possible.

Prerequisites:

  • TRB series device with Ethernet port.
  • Router or a gateway that could provide TRB with internet connectivity (make sure that the LAN IPs of the TRB and the router do not match).
  • End device for configuration.

Device configuration

Navigate to Network → LAN → edit LAN the instance:

Once there, press on the LAN to WAN button:

You will receive a pop-up message to confirm that the interface will be switched. Note that Remote access will be turned on automatically, so the device will be reachable through the WAN port. Press on the Switch Interface button to continue:

To finish up the configuration, press Save & Apply to create a new interface for WAN:

With this, the configuration is done.

How to reach the device through the WAN port

Once the configuration has been finished, connect the TRB to the router to supply an internet connection to the TRB. If you'd like to reach and configure the device, then you would need to know what WAN IP address it currently uses. To find out, you would need to reach your router and check the DHCP leases.

For example, on the Teltonika router, you could check the lease by navigating to Status → Network → LAN. Here we can see that the TRB has been leased a 192.168.1.179 IP address:

Also, the command line could be used to check the DHCP lease. Use the arp command to find the device and a corresponding IP address:

Using this IP (192.168.1.179) you should be able to reach the device:

Note: If you need to reach SSH using the same IP, make sure to enable Remote SSH access in the System → Administration → Access Control section.

Testing the configuration

If the device does not have SIM inserted, simply navigate to System → Maintenance → Troubleshoot and look for Diagnostics section. Here you can check if the device is able to reach the internet:

If the device does have SIM inserted, you will need to change the WAN interface metric first. To do so, switch the WebUI to advanced, navigate to Network → WAN and place the lan_to_wan interface in the top position:

Note: TRB1XX does not have Failover functionality, so to use the Mobile interface, you would need to modify metrics or edit routing table.