Remove Dynamic Invalid Address

Hi ALL

I have 2 mikrotik x86 os5.21, but the problem remained unchanged from version 5.3, Configured as OVPN server for about 50 client

Often for unknown reasons, all VPN Go DOWN and connections leaving the addresses assigned to the server interfaces in the state DI … I can not delete addresses from command line but only from winbox

any suggestion to delete addresses DI by script O solve the problem …

I tried with

/ip address remove [/interface find name=<NAME_INT>]

but don’t work no error but don’t remove

thanks to all
await some suggestions
Senzatempo

try this

/ip address remove [find interface=ether1 ]

If DI is your requirement, then this should work:

/ip address remove [find dynamic=yes invalid=yes]

thanks psamsig works perfectly for my problem

/ip address remove [find dynamic=yes invalid=yes]

I’m sorry for not replying earlier, but I was expecting that the error presented for the test, I could not replicate it manually

Hello,

I have the same problem with Dynamic Invalid interfaces but in L2TP with profile who have got a Limit 2/2Mbps.
ROS v5.21 on RB1100AHx2.

I see the bad entry what must be removed:
a) IP Addresses, DI interfaces:
/ip address remove [find dynamic=yes invalid=yes ];

b) IP Firewall Mangle
/ip firewall mangle remove [find dynamic=yes invalid=yes];

c) queue, but the entry are only Dynamic, not invalid!
/queue simple remove [find dynamic=yes invalid=no ];

By the c) I cannot run this as auto-script running every 5min bcs will be delete a queue for good rules too.
in logs I see: 03:42:04 l2tp,ppp,error could not add queue: already have such name (6)

I cannot update to v5.26 - this is productive and in remote DataCenter… or on v6 (this is not stable core futures for me).

I hope, this will be help for someone and on now current v5.26 exist fix on this problem, I hope.
/SiB