I know this must be simple, but I am not finding how to display the mac address of a device attached to a specific port that is part of another vlan??? /ip arp print works fine for default
RB-750G
I know this must be simple, but I am not finding how to display the mac address of a device attached to a specific port that is part of another vlan??? /ip arp print works fine for default
RB-750G
bump
ip arp print where interface=
This is what I get:
[admin@Maccray-ITV] > ip arp print where interface=ether2
Flags: X - disabled, I - invalid, H - DHCP, D - dynamic
I am attempting to get the mac address of the device directly connected to ether2. May have asked for wrong info???
Is there currently an ARP entry in the table for it when you check in Winbox? It is possible the router doesn’t have an ARP entry for it since it hasn’t received a packet from it, or needed to send a packet to the device. This can happen with switches and access points since they don’t need to have an IP or talk to a router to do their jobs.
I have 2 vlans on this box: 106 & 107. Issuing /ip arp displays a couple mac addresses for vlan 106, but nothing else. Under interfaces, I have two bridges: v106 & v107, and of course, the vlans. issuing ip arp print where interface=ether2 (on vlan 107), =v107, or =107 do not produce any mac addresses.
The device attached to ether2 (vlan 107) is a video codec. During an active call that generates a lot of packets, I still could not get any mac-address info.
The RB750 is connected to an HP 3500yl switch, via port 1. I can get the mac address of the RB750 by issuing the following commands: show mac-address vlan 106 (RB750 shows up), show mac-address vlan 107 (mac of codec shows up)
Arp is enabled on all interfaces, so not sure why I am unable to view the mac of a connected device??
It should be in the ARP list then. Try this:
interface bridge host print where on-interface=ether2
That worked. Thank you!
However, is there a way to get the mac address of the device directly connected to ether1? I end up with a long list, but no way I know of to discern which mac is directly connected.
Not really, ARP is for mapping MAC addresses to IP addresses on the layer2 interface. The router isn’t really going to have an idea of how many layer2 devices are in the way for it to reach a given MAC. If you know the IP address of the directly connected device, you can narrow down the results by adding in the IP address.
ip arp print where address=<IP Address>