# Can't get the Mikrotik LR8 connect to TTN

**URL:** <https://www.thethingsnetwork.org/forum/t/cant-get-the-mikrotik-lr8-connect-to-ttn/44416>\
**Category:** MikroTik Gateways\
**Created:** [February 17, 2021, 10:04am UTC](https://www.thethingsnetwork.org/forum/t/cant-get-the-mikrotik-lr8-connect-to-ttn/44416 "2021-02-17T10:04:25Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![rainerfritz](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/rainerfritz/32/36391_2.png) [@rainerfritz](https://www.thethingsnetwork.org/forum/u/rainerfritz)\
**Post date:** [February 17, 2021, 10:04am UTC](https://www.thethingsnetwork.org/forum/t/cant-get-the-mikrotik-lr8-connect-to-ttn/44416/1 "2021-02-17T10:04:25Z")

</div>

Hi !

Sorry to ask for help or double post, but my knowledge on router configuration is not that good and I have still not managed to get it connected to TTN EU network. Similar posts did not point me in the correct direction.  
Here is my configuration:

> Blockquote  
> feb/17/2021 10:28:49 by RouterOS 6.48.1  
> software id = TI2K-C6NS  
> model = RBwAPR-2nD  
> serial number =  
> /interface wireless  
> set [find default-name=wlan1] band=2ghz-b/g/n channel-width=20/40mhz-XX   
> country=austria disabled=no distance=indoors frequency=auto installation=  
> outdoor mode=ap-bridge ssid=MikroTik-B8825D station-roaming=enabled   
> wireless-protocol=802.11  
> /interface list  
> add comment=defconf name=WAN  
> add comment=defconf name=LAN  
> /interface wireless security-profiles  
> set [find default=yes] authentication-types=wpa2-psk mode=dynamic-keys   
> supplicant-identity=MikroTik wpa-pre-shared-key=   
> wpa2-pre-shared-key=  
> /ip pool  
> add name=dhcp ranges=192.168.88.10-192.168.88.254  
> /ip dhcp-server  
> add address-pool=dhcp disabled=no interface=wlan1 name=defconf  
> /lora servers  
> add address=us.mikrotik.thethings.industries down-port=1700 name=TTN-US   
> up-port=1700  
> add address=eu.mikrotik.thethings.industries down-port=1700 name=TTN-EU   
> up-port=1700  
> add address=router.eu.thethings.network down-port=1700 name=TTN-EU-open   
> up-port=1700  
> /ip neighbor discovery-settings  
> set discover-interface-list=LAN  
> /interface list member  
> add comment=defconf interface=wlan1 list=LAN  
> add comment=defconf interface=ether1 list=WAN  
> add list=LAN  
> /ip address  
> add address=192.168.88.1/24 comment=defconf interface=wlan1 network=  
> 192.168.88.0  
> add address=10.0.0.140/24 interface=ether1 network=10.0.0.0  
> /ip dhcp-client  
> add comment=defconf interface=ether1  
> /ip dhcp-server network  
> add address=192.168.88.0/24 comment=defconf gateway=192.168.88.1  
> /ip dns  
> set allow-remote-requests=yes servers=10.0.0.138,8.8.8.8  
> /ip dns static  
> add address=192.168.88.1 comment=defconf name=router.lan  
> /ip firewall filter  
> add action=accept chain=input comment=  
> “defconf: accept established,related,untracked” connection-state=  
> established,related,untracked  
> add action=drop chain=input comment=“defconf: drop invalid” connection-state=  
> invalid  
> add action=accept chain=input comment=“defconf: accept ICMP” protocol=icmp  
> add action=accept chain=input comment=  
> “defconf: accept to local loopback (for CAPsMAN)” dst-address=127.0.0.1  
> add action=drop chain=input comment=“defconf: drop all not coming from LAN”   
> in-interface-list=!LAN  
> add action=accept chain=forward comment=“defconf: accept in ipsec policy”   
> ipsec-policy=in,ipsec  
> add action=accept chain=forward comment=“defconf: accept out ipsec policy”   
> ipsec-policy=out,ipsec  
> add action=fasttrack-connection chain=forward comment=“defconf: fasttrack”   
> connection-state=established,related  
> add action=accept chain=forward comment=  
> “defconf: accept established,related, untracked” connection-state=  
> established,related,untracked  
> add action=drop chain=forward comment=“defconf: drop invalid”   
> connection-state=invalid  
> add action=drop chain=forward comment=  
> “defconf: drop all from WAN not DSTNATed” connection-nat-state=!dstnat   
> connection-state=new in-interface-list=WAN  
> add action=accept chain=input in-interface=ether1 protocol=udp  
> add action=accept chain=output out-interface=ether1 protocol=udp  
> add action=accept chain=input in-interface=ether1 protocol=tcp  
> add action=accept chain=output out-interface=ether1 protocol=tcp  
> /ip firewall nat  
> add action=masquerade chain=srcnat comment=“defconf: masquerade”   
> ipsec-policy=out,none out-interface-list=WAN  
> /ip route  
> add distance=1 gateway=10.0.0.138  
> /lora  
> set 0 forward=crc-valid name=OE1KFR\_GW servers=TTN-EU-open  
> /system clock  
> set time-zone-name=Europe/Vienna  
> /tool mac-server  
> set allowed-interface-list=LAN  
> /tool mac-server mac-winbox  
> set allowed-interface-list=LAN

I added port forwarding for port 1700 udp and tcp on my ISP router in client mode.  
I also added in the firewall of the mikrotik that udp and tcp is allowed on eth1.  
But still no luck to get it connected to TTN.  
Any help would be much appreciated.  
Thx  
Rainer

---

<div class="post-metadata">

**Author:** ![jpmeijers](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/jpmeijers/32/44875_2.png) [@jpmeijers](https://www.thethingsnetwork.org/forum/u/jpmeijers)\
**Post date:** [February 17, 2021, 10:19am UTC](https://www.thethingsnetwork.org/forum/t/cant-get-the-mikrotik-lr8-connect-to-ttn/44416/2 "2021-02-17T10:19:47Z")

</div>

One of our community members reported the same issue yesterday. They have multiple Mikrotik gateways installed, and a similar configuration as yours always worked. But a gateway installed yesterday did not want to come online on TTN V2.

---

<div class="post-metadata">

**Author:** ![rainerfritz](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/rainerfritz/32/36391_2.png) [@rainerfritz](https://www.thethingsnetwork.org/forum/u/rainerfritz)\
**Post date:** [February 20, 2021, 11:28am UTC](https://www.thethingsnetwork.org/forum/t/cant-get-the-mikrotik-lr8-connect-to-ttn/44416/3 "2021-02-20T11:28:21Z")

</div>

After resetting the mikrotik lr8 configuration with option to not generate the default config we managed to get it first connected to V3. No chance to connect it to v2. Now after two days in V3 it is also active in V2 without any interaction or changes.  
So it is running now…  
regards  
Rainer

---

<div class="post-metadata">

**Author:** ![bluejedi](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/bluejedi/32/44639_2.png) [@bluejedi](https://www.thethingsnetwork.org/forum/u/bluejedi)\
**Post date:** [February 20, 2021, 4:04pm UTC](https://www.thethingsnetwork.org/forum/t/cant-get-the-mikrotik-lr8-connect-to-ttn/44416/4 "2021-02-20T16:04:58Z")

</div>

> [@rainerfritz](#):
>
> Now after two days in V3 it is also active in V2 without any interaction or changes.

What do you mean, that have one single gateway connected to V2 and V3?

---

<div class="post-metadata">

**Author:** ![rainerfritz](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/rainerfritz/32/36391_2.png) [@rainerfritz](https://www.thethingsnetwork.org/forum/u/rainerfritz)\
**Post date:** [February 20, 2021, 5:27pm UTC](https://www.thethingsnetwork.org/forum/t/cant-get-the-mikrotik-lr8-connect-to-ttn/44416/5 "2021-02-20T17:27:58Z")

</div>

Yes with the Mikrotik Lora8 Kit and when you configure it with the winbox you can define two or more servers in parallel to forward the packets.  
you can see in the screenshots, that it is online on both:  
V2:  
 ![Bildschirmfoto 2021-02-20 um 18.23.51](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/e/0/e0a45b96f8d90a8515f7ca6437dc77558ea47a37.png)  
V3:  
 ![Bildschirmfoto 2021-02-20 um 18.24.56](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/d/0/d08df7b468ef41dd1abacb81776877e0c17da7c7.png)  
As i am currently not at home and still don’t have a vpn connection to the home network I have no screenshot of the winbox config of the miktrotik wap.  
BR  
Rainer

---

<div class="post-metadata">

**Author:** ![vaasseniot](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/vaasseniot/32/45150_2.png) [@vaasseniot](https://www.thethingsnetwork.org/forum/u/vaasseniot)\
**Post date:** [February 20, 2021, 8:10pm UTC](https://www.thethingsnetwork.org/forum/t/cant-get-the-mikrotik-lr8-connect-to-ttn/44416/6 "2021-02-20T20:10:28Z")

</div>

I’m having the same solution: connected to both - V2 and V3.

---

<div class="post-metadata">

**Author:** ![s54mtb](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/s54mtb/32/37436_2.png) [@s54mtb](https://www.thethingsnetwork.org/forum/u/s54mtb)\
**Post date:** [May 31, 2021, 5:39pm UTC](https://www.thethingsnetwork.org/forum/t/cant-get-the-mikrotik-lr8-connect-to-ttn/44416/7 "2021-05-31T17:39:41Z")

</div>

Is there a working example for configuration on both sides? I was trying to register new gateway on V2 and V3 witgout success. The V2 is OK, but has Status:unknown for the gateway and in V3 I got error: ID taken.

Here is my configuration:

[admin@mtik\_LoRaGateway] \> export hide-sensitive

# may/31/2021 19:29:02 by RouterOS 6.48.3

# software id = BS0G-I4NA

# 

# model = RBwAPR-2nD

# serial number = C0220B14ED28

/interface bridge  
add name=bridge1  
/interface wireless  
set [find default-name=wlan1] antenna-gain=0 country=no\_country\_set frequency-mode=manual-txpower mode=  
station-pseudobridge ssid=MikroTik station-roaming=enabled  
/interface ethernet  
set [find default-name=ether1] advertise=10M-half,10M-full,100M-half,100M-full,1000M-half,1000M-full  
/interface list  
add name=WAN  
add name=LAN  
/interface wireless security-profiles  
set [find default=yes] supplicant-identity=MikroTik  
/lora servers  
add address=eu1.cloud.thethings.network down-port=1700 name=“TTS Cloud (eu1)” up-port=1700  
add address=eu.thethings.network down-port=1700 name=ttn-v1 up-port=1700  
/user group  
set full policy=“local,telnet,ssh,ftp,reboot,read,write,policy,test,winbox,password,web,sniff,sensitive,api,romo  
n,dude,tikapp”  
/interface bridge port  
add bridge=bridge1 interface=wlan1  
add bridge=bridge1 interface=ether1  
/ip neighbor discovery-settings  
set discover-interface-list=!dynamic  
/interface list member  
add interface=wlan1 list=WAN  
add interface=ether1 list=LAN  
/ip address  
add address=44.150.168.221/24 interface=ether1 network=44.150.168.0  
/ip dhcp-client  
add interface=bridge1  
/ip dns  
set servers=44.150.168.1  
/ip route  
add distance=1 gateway=44.150.168.1  
/lora  
set 0 disabled=no servers=ttn-v1 spoof-gps=45.801832/15.178757/222m  
/system clock  
set time-zone-name=Europe/Ljubljana  
/system identity  
set name=mtik\_LoRaGateway

V2 console:

 ![slika](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/9/a/9ab1c065e2aa831fe291cdc251881cb3856e1d50.png)

When I change last digit in ID from 0 to 1, I can register new gateway in V3. I changed server to eu1.cloud.thethings.network  
but the GW is not connecting…

 ![slika](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/7/4/74d21967d0641ecdfae7a0a96bbf748344b65ebd.png)

Is there something I have to configure additionally to the settings described here:  
[https://help.mikrotik.com/docs/pages/viewpage.action?pageId=8978744#wAPLR8kit-Configuration](https://help.mikrotik.com/docs/pages/viewpage.action?pageId=8978744#wAPLR8kit-Configuration)  
or here:  
[https://www.thethingsnetwork.org/docs/gateways/mikrotik/](https://www.thethingsnetwork.org/docs/gateways/mikrotik/)

???

Or it just takes a very long time to connect?

Meanwhile during my typing some packets arrived:

 ![slika](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/8/a/8a4944aece3b453bc469b0dda1bb87fd01c8283f.png)

But the status of the GW is “unknown”.

Should there be some log in the “traffic” for the server connection ?

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [May 31, 2021, 6:58pm UTC](https://www.thethingsnetwork.org/forum/t/cant-get-the-mikrotik-lr8-connect-to-ttn/44416/8 "2021-05-31T18:58:12Z")

</div>

There is no point registering with two different systems as you can only tell the gateway one place to send the uplinks without getting in to rather advanced settings, v2 & v3 traffic are shared between the two and one will be shut down in the near future.

Have you read the sticky note at the top of the forum about v2 console status?

v3 only shows connected once it see traffic.

Please can you format you post, see this for info:

> [@How do I format my forum post? \[HowTo\]](https://www.thethingsnetwork.org/forum/t/how-do-i-format-my-forum-post-howto/8735):
>
> The TTN forum is using [Discourse](https://www.discourse.org/), which supports several ways to format your post: Markdown BBCode HTML Any combination of the above Quite often you’ll need an empty line above specific formatting to make it work. You’ll also have to type blank lines to create proper paragraphs; just pressing Return once and then typing a new block of text right below a previous block only creates a so-called line break, which might be harder to read. Leaving one blank line between two blocks of texts nicely…

---

<div class="post-metadata">

**Author:** ![RudiOnTheAir](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/rudiontheair/32/36997_2.png) [@RudiOnTheAir](https://www.thethingsnetwork.org/forum/u/RudiOnTheAir)\
**Post date:** [June 8, 2021, 1:36pm UTC](https://www.thethingsnetwork.org/forum/t/cant-get-the-mikrotik-lr8-connect-to-ttn/44416/9 "2021-06-08T13:36:06Z")

</div>

> [@descartes](#):
>
> v3 only shows connected once it see traffic.

Hi  
Does that mean, my Mikrotik Lora8, laying on my table indoor with no Lora signal around, can’t show connected until an signal is received? For example a not connected temp device…?

tnx for help…

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [June 8, 2021, 1:39pm UTC](https://www.thethingsnetwork.org/forum/t/cant-get-the-mikrotik-lr8-connect-to-ttn/44416/10 "2021-06-08T13:39:17Z")

</div>

I haven’t retested since new releases of the stack, but I saw my gateways saying not connected even though it was showing stat messages. Once an uplink arrived, it showed as connected.

But you can try this.

> [@RudiOnTheAir](#):
>
> For example a not connected temp device…?

A LoRaWAN gateway in a forest won’t show connected if the end-device isn’t powered & transmitting.

---

<div class="post-metadata">

**Author:** ![RudiOnTheAir](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/rudiontheair/32/36997_2.png) [@RudiOnTheAir](https://www.thethingsnetwork.org/forum/u/RudiOnTheAir)\
**Post date:** [June 8, 2021, 1:53pm UTC](https://www.thethingsnetwork.org/forum/t/cant-get-the-mikrotik-lr8-connect-to-ttn/44416/11 "2021-06-08T13:53:26Z")

</div>

OK, so there’s a chance that i’ve configured it alright.  
For my 1st tests, i’ve an Elsys.se ERSCO2, but that is connnected to another server outside TTN…

---

<div class="post-metadata">

**Author:** ![RudiOnTheAir](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/rudiontheair/32/36997_2.png) [@RudiOnTheAir](https://www.thethingsnetwork.org/forum/u/RudiOnTheAir)\
**Post date:** [June 8, 2021, 3:14pm UTC](https://www.thethingsnetwork.org/forum/t/cant-get-the-mikrotik-lr8-connect-to-ttn/44416/12 "2021-06-08T15:14:33Z")

</div>

Seems not to connect… On my Mikrotik i can see the traffic, but nothing on TTN. Whats wrong. Should i have to use the “eu.mikrotik.thethings.industries” server??

![grafik](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/4/d/4d014549890c5deab3504242a071abbdcbc31cf7.png)

![grafik](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/4/3/4381b3bdad085552a440f45868a5b8580fcfc691.png)

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [June 8, 2021, 3:20pm UTC](https://www.thethingsnetwork.org/forum/t/cant-get-the-mikrotik-lr8-connect-to-ttn/44416/13 "2021-06-08T15:20:26Z")

</div>

> [@RudiOnTheAir](#):
>
> Seems not to connect

What seems not to connect?

If the ERSCO2 is not registered on TTS then you won’t get anything more than some rejected traffic.

But your screen shot doesn’t show any `stat` messages. Your screen shot does show the address for the gateway server.

---

<div class="post-metadata">

**Author:** ![RudiOnTheAir](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/rudiontheair/32/36997_2.png) [@RudiOnTheAir](https://www.thethingsnetwork.org/forum/u/RudiOnTheAir)\
**Post date:** [June 8, 2021, 3:21pm UTC](https://www.thethingsnetwork.org/forum/t/cant-get-the-mikrotik-lr8-connect-to-ttn/44416/14 "2021-06-08T15:21:17Z")

</div>

Damned. Found ist. On my Mikrotik i added .industries, but in TTN there is by default .network… omg…Sorry.
