Community discussions

MikroTik App
Jacka
Member Candidate
Member Candidate
Topic Author
Posts: 125
加入: Thu Jan 13, 2011 11:34 am

How can I see all the IP'c connected to the router

Fri Nov 25, 2011 12:19 pm

Hi all,

On the router I see only IP's that were allocated trough DHCP (IP>DHCP Server>Leases), how can I see all the IP's that are connected to the router using manual IP settings ?

Thank you.
Top
用户头像
sadeghrafie
Long time Member
Long time Member
Posts: 514
加入: Sat Nov 14, 2009 11:28 am
Location:Bushehr, IRAN

Re: How can I see all the IP'c connected to the router

2011年11月25日星期五46页m

you can check your arp list>> IP arp
Or you can scan all IPs which in the same network of your router IP.
Top
Jacka
Member Candidate
Member Candidate
Topic Author
Posts: 125
加入: Thu Jan 13, 2011 11:34 am

Re: How can I see all the IP'c connected to the router

Fri Nov 25, 2011 12:48 pm

you can check your arp list>> IP arp
This is what I needed, can't understand how I missed this option, thank you.
Top
TDPsGM
Frequent Visitor
Frequent Visitor
Posts: 55
加入: Sun Oct 30, 2011 12:53 am

Re: How can I see all the IP'c connected to the router

Sun Nov 27, 2011 1:25 am

you can check your arp list>> IP arp
Or you can scan all IPs which in the same network of your router IP.
Unless I am reading this wrong, does that not just show the leases that were handed out?
If a certain machine connected and then left the network it would still show in this list ( at least that is what I am seeing on my setup ).

I WOULD like to be able to see "live" who is ON and who IS NOT on. Is there a better way to do this?
Last edited byTDPsGMon Sun Nov 27, 2011 1:33 am, edited 1 time in total.
Top
fewi
Forum Guru
Forum Guru
Posts: 7717
加入: Tue Aug 11, 2009 3:19 am

Re: How can I see all the IP'c connected to the router

Sun Nov 27, 2011 1:32 am

The ARP table is where a router maps MAC addresses to IP addresses. It has nothing to do with DHCP leases - static IP hosts would show here, too. In TCP/IP broadcast networks each host has a layer 2 address (its MAC address), which is used by directly connected hosts to talk to it. MAC addresses are what switches use to find destination hosts. ARP tables map the IP addresses of directly connected hosts to MAC addresses, and time out relatively aggressively so that the tables don't contain stale entries for hosts that no longer are on the network - after all a different host could show up and get the same IP address as a host that left. Without the ARP mapping being correct hosts wouldn't be able to talk. The ARP table is the most up to date information you can get on who is on the network. If you want as close to a real time view as you can get you'd want to clear out the ARP table ("/ip arp remove [find]") - this is harmless to do as the router will discover the ARP mapping for any destination it has to send traffic to - and then watch entries populate back. Whoever is in that list from that time on is actively receiving traffic from the router, or sending traffic to the router (hosts get added if the router receives a frame from a host it doesn't already have a record for).

Of course that only shows hosts talking to the router. If you need to also find hosts that are just talking among each other you'd have to look at the MAC address tables of your switching infrastructure as well, or the associated client tables of your APs.
Top
TDPsGM
Frequent Visitor
Frequent Visitor
Posts: 55
加入: Sun Oct 30, 2011 12:53 am

Re: How can I see all the IP'c connected to the router

Sun Nov 27, 2011 1:53 am

Thanks fewi.

I was tinkering with the lease times.
(This is under IP / DHCP Server / and the "Expires After" column )
I set them to 10 minutes just to see what would happen. Initially it looked like if a computer signed on to the network that the timer would start counting down from that 10 minute mark. Now, for some reason it is showing a lease time of a couple of days even though I have the least time set to 10 minutes.

You gave us this code:

[quote="fewi" ("/ip arp remove [find]") [/quote]

Where exactly are we to type this?
Do we type it in the " New Terminal"?
and would I type:
/ip arp remove
/ip arp find
...In that order?
Again, thank you for the help.
Top
fewi
Forum Guru
Forum Guru
Posts: 7717
加入: Tue Aug 11, 2009 3:19 am

Re: How can I see all the IP'c connected to the router

Sun Nov 27, 2011 2:03 am

Again, DHCP leases have nothing to do with ARP. Are you trying to troubleshoot ARP, or DHCP?

This command is literally what you would use:
Code:Select all
/ip arp { remove [find] }
You would type exactly that, anywhere in the CLI.
Top
TDPsGM
Frequent Visitor
Frequent Visitor
Posts: 55
加入: Sun Oct 30, 2011 12:53 am

Re: How can I see all the IP'c connected to the router

Sun Nov 27, 2011 3:22 am

不,我没有试图解决任何(). All I wanted to do was to be able to see who is currently online on the network at this very moment.

I do not (at this moment) care which DHCP leases have been handed out in the last couple of days as this does not tell me which computer is online " Right Now".

I want to be able to assign static IP's to every machine on the network. Doing so does not seem to tell me what it is I'm looking for above though.

Does that make sense?

The reason for assigning static IP's is for management purposes in the future as that is how I used to do it. Now it may be that we do the managing via Mac addresses here, but I haven't got that far yet.
Top
fewi
Forum Guru
Forum Guru
Posts: 7717
加入: Tue Aug 11, 2009 3:19 am

Re: How can I see all the IP'c connected to the router

Sun Nov 27, 2011 3:25 am

OK. Those two things are entirely unrelated. Completely and utterly so. So let's keep your DHCP stuff in the two threads you made for this already - duplicating threads is frowned upon because it wastes people's time. Someone might spend 15 minutes typing up a reply in one thread only to find that's already been covered in the other one.

Do you have any further questions regarding ARP tables? As explained they show who is exchanging packets with the router more or less at that moment in time as they time out rather quickly.
Top

Who is online

Users browsing this forum:voskamikforand 18 guests