Prevent L2TP server from creating dynamic interface
Posted: Mon Sep 30, 2024 2:11 am
I have a problem. I have setup L2TP site-to-site tunnel. I am monitoring this tunnel with SNMP.
The problem is that from time to time the connection drops, and immediately reconnects. When reconnecting it creates virtual interface with < and > brackets around name:
And after some time it reconnects again, new virtual interface is created:
To prevent changing name of the interface for this connection I have created manually static interface:
And it works. But after 2 days it re-creates the dynamic interface again, switching from using staticly manually created interface to dynamic one.
Static interface state is 'down' which triggers alarm.
When I delete the dynamic interface, the static becomes active within a fraction of the second.
How to prevent Mikrotik to create dynamic interface?
How to force L2TP connection to use, and re-use specific statically created interface?
The problem is that from time to time the connection drops, and immediately reconnects. When reconnecting it creates virtual interface with < and > brackets around name:
Code: Select all
/interface/l2tp-server/add name="<l2tp-remote_site>" ....
Code: Select all
/interface/l2tp-server/add name="<l2tp-remote_site2>" ....
Code: Select all
/interface/l2tp-server/add name="l2tp-remote_site" ....
Static interface state is 'down' which triggers alarm.
When I delete the dynamic interface, the static becomes active within a fraction of the second.
How to prevent Mikrotik to create dynamic interface?
How to force L2TP connection to use, and re-use specific statically created interface?