Community discussions

MikroTik App
 
clueluzz
newbie
Topic Author
Posts: 34
Joined: Sun Feb 23, 2020 5:47 pm
Location: Jakarta, Indonesia
Contact:

Switch port IP?

Sat Apr 25, 2020 5:17 am

Hi,

Is there anyway to check the IP that a switch port is using/giving to the client without going to client side on winbox or terminal? I can check on the leases from the DHCP server but can't seem to figure out which one is using the actual port.

So let's say ether10 is C4:AD:34:55:7F:AB but on the DHCP server it's detecting the MAC address of the client. I cannot find what the ip is on ether10. Or is this not possible?
 
User avatar
sindy
Forum Guru
Forum Guru
Posts: 11280
Joined: Mon Dec 04, 2017 9:19 pm

Re: Switch port IP?  [SOLVED]

Sat Apr 25, 2020 11:07 am

/ip dhcp lease print where address=ip.add.re.ss shows you the mapping between the IP address and the MAC address of the client. Ping the IP to update the MAC forwarding tables of the bridge if the client was eventually idle for a long time, and run /interface bridge host print where interface=ether10 !local to see only the MAC addresses accessible via ether10, or /interface bridge host print where mac-address~"ma:ca:dd:re:ss" to see only the record for that single MAC address (which includes the Ethernet interface through which the MAC address is accessible).
 
clueluzz
newbie
Topic Author
Posts: 34
Joined: Sun Feb 23, 2020 5:47 pm
Location: Jakarta, Indonesia
Contact:

Re: Switch port IP?

Sun Apr 26, 2020 3:46 am

Thanks Sindy! This helps a lot.

@Mikrotik should have this as a feature in WinBox instead of a terminal search :D