How to do ping from mesh interface ?

I using a mesh bridge with eth1 wlan1

when I do ping from interface=wlan1 , I get no replay , but when I do ping from interface=bridge1 I get an answer.

only wlan1 is connected - so why I get no replay ?

Flags: X - disabled, I - inactive, D - dynamic 
 #    INTERFACE                                     BRIDGE                                     PRIORITY  PATH-COST    HORIZON
 0 I  ether1                                        bridge1                                        0x80         10       none
 1  D WDS To Unit1                                  bridge1                                        0x80        112       none
 2    wlan1                                         bridge1                                        0x80         10       none



[admin@Unit2] > ping 10.0.0.120 interface=bridge1 
  SEQ HOST                                     SIZE TTL TIME  STATUS                                                         
    0 10.0.0.120                                 56  64 195ms
    1 10.0.0.120                                 56  64 107ms
    sent=2 received=2 packet-loss=0% min-rtt=107ms avg-rtt=151ms max-rtt=195ms 

[admin@Unit2] > ping 10.0.0.120 interface=wlan1   
  SEQ HOST                                     SIZE TTL TIME  STATUS                                                         
    0 10.0.0.120                                              timeout                                                        
    1 10.0.0.120                                              timeout                                                        
    sent=2 received=0 packet-loss=100% 

[admin@Unit2] > ping 10.0.0.120 interface="WDS To Unit1"
  SEQ HOST                                     SIZE TTL TIME  STATUS                                                         
    0 10.0.0.120                                              timeout                                                        
    1 10.0.0.120                                              timeout                                                        
    2 10.0.0.102                                 84  64 986ms host unreachable                                               
    sent=3 received=0 packet-loss=100%

how can I see that the replay came from WDS1 ?

Thanks ,

When a network interface is a member of a bridge, from an L3 perspective, you can’t treat it as a discrete interface any longer. Your 10.0.0.x network is defined on bridge1, so you can only ping from bridge1. I don’t know why you would expect anything else to work…

To verify that communication with 10.0.0.120 is happening over the bridge member port that you want, first check the ARP cache for the MAC address of the host in question, and then look through “/interface bridge host” for that MAC and see which interface that MAC was learned on (‘on-interface’); for example:

[admin@Unit2] > /interface bridge host print where mac-address=[/ip arp get [find address=10.0.0.120] mac-address]
Flags: L - local, E - external-fdb 
  BRIDGE           MAC-ADDRESS       ON-INTERFACE          AGE                 
  bridge1          00:11:22:AA:BB:CC WDS To Unit1          26s

– Nathan

O.k.
Thanks,

and if I want to save the interface "WDS To Unit1 " as a variable ?
how can I do this ?
i want to save the interface that go to 10.0.0.120 in a script and print it

I have try this

 :put [/interface bridge host find where mac-address=[/ip arp get [find address=10.0.0.120] mac-address ]]

and got this

*1

Thanks ,

Well, now you are asking a scripting question, which isn’t really what you started out asking. But in any case, the “*1” is an object ID. You need to use the ‘get’ command to retrieve specific information about a particular object:

[admin@Unit2] > :put [/interface bridge host get [:pick \
[[\... [/interface bridge host find where mac-address=[/ip arp get \
[[[[\... [find address=10.0.0.120] mac-address]] 0] on-interface]
WDS To Unit1
[admin@Unit2] >

For further questions about scripting, you might try the scripting forum and the scripting manual

– Nathan

thanks it help me with what I need

the “:pick” is what I didn’t remember

Thanks ,