broadcast search layer 2

Hello everyone, I use a rut951 which is attached to a machine network on the LAN side. (PLC 192.168.1.10, Robot 192.168.1.11… etc)

The router is connected to the internet via the mobile network.

I would like to enable broadcast search layer 2.
what do I have to do for it? can someone explain to me what I have to do?
@MrAutomation
I saw in one of your posts that you also need OpenVPN.
can you possibly help me?
Thanks

Hey,

what is your goal exactly? To access the machine network through a remote connection? Then the usage of OpenVPN (or any other VPN mechanism) is mandatory imho. For beeing able to do a layer 2 broadcast with OpenVPN, you have to setup a bridged (TAP bridge) VPN connection, which is done in the client config with the command ‘dev tap’ instead of ‘dev tun’. On the server config the correspondig command is ‘server-bridge’ if i remember correctly. [Edit: The setup page for the OpenVPN Server on your router lets you decide between TUN/TAP-mode]

If everything is setup right, your OpenVPN-client should get an IP in the machine network and also will be able to do layer 2 broadcasts.

Greetings

hey,

Thanks for the fast respond.

Your assumption is correct.
I also work in the automation industry.
I am a plc developer and would like to have access to my machine network via layer 2 so that I don’t have to set a gateway on the devices.

We are new to using the Teltonika devices and are still having a bit of trouble setting them up correctly.

I’m currently testing CloudConnexa on the server side. what kind of service do you have on the server side?

In the .ovpn I entered “dev tap” instead of “dev tun”.
Do I have to make other settings on the router? define any route?

Thanks for your help

I just use an OpenVPN-connection (Teltonika router as server, programming PC as client). Just make sure that you use “TAP” on both sides and you’ll be fine. There are no additional routes necessary because your VPN adapter on your PC gets an IP from the network it connects to.

ah ok, and how did you solve the problem with the changing IP address?
Have you used a DDNS service somewhere?

Do you have instructions somewhere on how to correctly configure the router, openVPN server and client?

greeting

A solution for the changing external IP address could be using some DDNS service as you mentioned, or using the SMS utilities of your Teltonika device: Send an SMS to your routers phone number consisting of the admin password blank followed by the command ‘status’ (separated with blank space), and you will receive the routers status including it’s external IP.

Instructions are available on openvpn.org and on the web. As an example, my client configuration looks like this (for a windows system):

client
dev tap
dev-node [Name of TAP-Adapter]
proto udp
remote [Server IP] 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca “C:\program files\openvpn\config\ca.crt”
cert “C:\program files\openvpn\config\client1.crt”
key “C:\program files\openvpn\config\client1.key”
remote-cert-tls server
cipher AES-256-CBC
verb 3

And for the server on my Teltonika devices (RUT240):

This topic was automatically closed after 15 days. New replies are no longer allowed.