Hi there I have been trying to set up a small hotspot but I would like to capture what the output of the mikroikt LAN port the client is on so that I can see what room they are in as I don’t want to setup a hotspot for each interface on the mikroik they are set so ether2 is the master and ether3-5 are in switch mode but using interface-name it show ether2 not which one they are on in guessing this is because they are barged to gather
For what purpose do you need that information? is it sufficient to look it up when needed or do you need to log such information somehow?
for like lookup you can find the MAC-addresses for all IPs under IP/ARP. But the port listed here will be the Masterport instead of the actual port the client is on. Such information you can find via Switch/Hosts
example from a RB750GL in my lab
port g1
port g2 master with salves g3,g4,g5
/ip arp print
Flags: X - disabled, I - invalid, H - DHCP, D - dynamic, P - published
# ADDRESS MAC-ADDRESS INTERFACE
0 D 10.x.x.x D4:CA:6D:xx:xx:A8 g1
1 D 192.168.88.23 00:1F:16:xx:xx:59 g2
/interface ethernet switch host print
Flags: D - dynamic, I - invalid
# SWITCH MAC-ADDRESS PORTS TIMEOUT DROP MIRROR VLAN-ID
0 D switch1 00:0C:42:xx:xx:61 switch1-cpu 3m30s no no 1
1 D switch1 00:1F:16:xx:xx:59 g5 3m30s no no 1
you can see my laptop with 192.168.88.23 is connected via g5
You can use bridge instead switch. Than you will see who communicates thru which port.
Ok well what i am trying to do is setup a hotspot at a hotel and would like to have a Ethernet port in each room yousing a mikrotik with 32 port in a hotel with 21 rooms the idea is so no what room the client is in by what Ethernet port on the mikrotik they are connected to so they do not have to put in a username and password they will be able to login by clicking on what plane they want to you then charge the cost to that room via freeradiusd this is a example but i need to no what Ethernet port on the mikrotik they are on when they go to the page and it will bearing up a message saying they are in room 12
It looks like step hundred years back to connect client’s computer in hotel by cable. What about tablets, phones and similar stuff with wifi only?
Anyway, you can set interface queues to see if there was traffic on each interface during the clients visit and then charge when client is leaving.