Community discussions

MikroTik App

Search found 5 matches

by sirlentschi
Fri Feb 02, 2024 10:40 am
Forum: General
Topic: ARP entries remain on status "DC"
Replies: 3
Views: 2209

Re: ARP entries remain on status "DC"

Thanks for your reply! I have already tried to reduce the limit: "Max-neighbor-entries must be at least 1024" ...and I am far away from this limit... Any other hints? I am pretty sure that I have not this problem with a previous OS-version (factory version 6.X.X). Can anyone else check the...
by sirlentschi
Fri Feb 02, 2024 9:45 am
Forum: General
Topic: ARP entries remain on status "DC"
Replies: 3
Views: 2209

ARP entries remain on status "DC"

Hello together, My use case (see https://forum.mikrotik.com/viewtopic.php?t=203958) needs a cleared ARP table to assign IP addresses according to connected devices. The ARP timeout is set to 1min. Although a device becomes disconnected it still remains on status "DC" for hours (after this ...
by sirlentschi
Thu Feb 01, 2024 4:29 pm
Forum: Scripting
Topic: Assigning IP to device on port 4 depending on MAC of device connected to port 5
Replies: 3
Views: 1531

Re: Assigning IP to device on port 4 depending on MAC of device connected to port 5

Got it! Searching for device PC2 via static IP address (arp entries!) and assigning an IP address to device PC1 accordingly: /ip arp remove [ find where !complete ] :local ipAddress "IP-ADDRESS-OF-PC2"; :local arpId [/ip arp find address=$ipAddress]; :local newIPAddress; :log info ("C...
by sirlentschi
Wed Jan 31, 2024 11:29 am
Forum: Scripting
Topic: Assigning IP to device on port 4 depending on MAC of device connected to port 5
Replies: 3
Views: 1531

Re: Assigning IP to device on port 4 depending on MAC of device connected to port 5

First of all, i would just like to know how to extract the mac-address of a device connected to port 5 by scripting. The command "/ip arp print as-value where address="192.168.88.253"" returns at least a list of data including the mac-address of the connected device. I need to de...
by sirlentschi
Wed Jan 31, 2024 10:36 am
Forum: Scripting
Topic: Assigning IP to device on port 4 depending on MAC of device connected to port 5
Replies: 3
Views: 1531

Assigning IP to device on port 4 depending on MAC of device connected to port 5

Hello together, I have checked the forum but did not find any case fitting my one. I would like to assign an IP-address to a device PC1 on port "ether4" depending on the device connected to port "ether5" (PC2 or PC3). I wrote a script but it does not work (RouterOS 7.13.3): :loca...