Skip to contentSkip to conversation

No Connection Between Two Specific Nodes in a 4-Node Network

DISCUSSION Jingwei LI 2 participants 3 messages Feb 7, 2025 – Feb 8, 2025

lore
Share & tools
lore

Jingwei LI

author
#0 lore raw

Hi all, thank you so much for such an awesome project! I got a problem and need your help.

I've set up a 4-router wireless network, routers are connected together in a linear topology, by using the AP-APCLI (AP Client) mode provided by the driver. The figure shows how they are connected:
[cid:8ed19ad8-f576-448b-8eea-360545bd4d4b]
However, the node 2 and node 4 cannot connect to each other, while other things go well.
Ping status:
Node 1 can ping 2, 3, 4.
Node 2 can ping 1, 3.
Node 3 can ping 1, 2, 4.
Node 4 can ping 1, 3.

Use Node 2 to ping Node 4, the tcpdump -i any icmp output on Node 4:

    02:11:54.683342 bat0  P   IP 192.168.6.2 > 192.168.6.4: ICMP echo request, id 32006, seq 0, length 64
    02:11:54.693420 br-lan In  IP 192.168.6.2 > 192.168.6.4: ICMP echo request, id 32006, seq 0, length 64
    02:11:54.703673 br-lan Out IP 192.168.6.4 > 192.168.6.2: ICMP echo reply, id 32006, seq 0, length 64
    02:11:54.703677 ra0   Out IP 192.168.6.4 > 192.168.6.2: ICMP echo reply, id 32006, seq 0, length 64

Here I noticed that the outgoing interface is ra0, instead of bat0, maybe this is the problem? Use Node 4 to ping Node 2, Node 2 gets nothing.

batctl ping works well:
Node 2 -> 4:

    ~# ./batctl ping 192.168.6.4
    PING 192.168.6.4 (9a:15:64:00:0b:f7) 20(48) bytes of data
    20 bytes from 192.168.6.4 icmp_seq=1 ttl=49 time=1.20 ms
Node 4 -> 2:
    ~# ./batctl ping 192.168.6.2
    PING 192.168.6.2 (9a:15:64:00:0b:f8) 20(48) bytes of data
    20 bytes from 192.168.6.2 icmp_seq=1 ttl=49 time=1.08 ms

batctl o outputs below. I also feel the output on node 3 and 4 are a bit weird, too. On 1:
[B.A.T.M.A.N. adv 2024.4, MainIF/MAC: rax0/90:15:64:00:0b:ee (bat0/22:f9:67:7c:cd:e8 BATMAN_IV)]
Originator last-seen (#/255) Nexthop [outgoingIF]

 * 9a:15:64:00:0b:f8    0.016s   (255) 9a:15:64:00:0b:f8 [      rax0]
 * 9a:15:64:00:0b:b9    0.980s   (221) 9a:15:64:00:0b:f8 [      rax0]
 * 9a:15:64:00:0b:f7    0.216s   (197) 9a:15:64:00:0b:f8 [      rax0]
On 2:
[B.A.T.M.A.N. adv 2024.4, MainIF/MAC: apclix0/9a:15:64:00:0b:f8 (bat0/f2:71:14:f3:8c:e8 BATMAN_IV)]
   Originator        last-seen (#/255) Nexthop           [outgoingIF]
 * 90:15:64:00:0b:ee    0.212s   (247) 90:15:64:00:0b:ee [   apclix0]
 * 9a:15:64:00:0b:b9    0.392s   (255) 9a:15:64:00:0b:b9 [      rax0]
 * 9a:15:64:00:0b:f7    0.588s   (225) 9a:15:64:00:0b:b9 [      rax0]
On 3:
[B.A.T.M.A.N. adv 2024.4, MainIF/MAC: apclix0/9a:15:64:00:0b:b9 (bat0/ca:97:7e:d4:23:7e BATMAN_IV)]
   Originator        last-seen (#/255) Nexthop           [outgoingIF]
 * 90:15:64:00:0b:ee    0.972s   (221) 90:15:64:00:0b:f9 [   apclix0]
 * 9a:15:64:00:0b:f8    0.032s   (255) 90:15:64:00:0b:f9 [   apclix0]
 * 90:15:64:00:0b:f9    0.128s   (251) 90:15:64:00:0b:f9 [   apclix0]
 * 9a:15:64:00:0b:f7    0.536s   (255) 9a:15:64:00:0b:f7 [      rax0]
On 4:
[B.A.T.M.A.N. adv 2024.4, MainIF/MAC: apclix0/9a:15:64:00:0b:f7 (bat0/ae:77:82:36:4d:f7 BATMAN_IV)]
   Originator        last-seen (#/255) Nexthop           [outgoingIF]
 * 90:15:64:00:0b:ee    0.412s   (187) 90:15:64:00:0b:ba [   apclix0]
 * 9a:15:64:00:0b:f8    0.652s   (217) 90:15:64:00:0b:ba [   apclix0]
 * 9a:15:64:00:0b:b9    0.840s   (255) 90:15:64:00:0b:ba [   apclix0]
 * 90:15:64:00:0b:ba    0.552s   (255) 90:15:64:00:0b:ba [   apclix0]

ip neigh on Node 2 (pasted related entries only):
192.168.6.4 dev br-lan lladdr 90:15:64:00:0b:f6 used 0/0/0 probes 1 STALE 192.168.6.3 dev br-lan lladdr 90:15:64:00:0b:b8 used 0/0/0 probes 1 STALE 192.168.6.1 dev br-lan lladdr 90:15:64:00:0b:ec used 0/0/0 probes 1 STALE

ip neigh on Node 4:
192.168.6.1 dev br-lan lladdr 90:15:64:00:0b:ec used 0/0/0 probes 1 STALE 192.168.6.2 dev br-lan lladdr 90:15:64:00:0b:f7 used 0/0/0 probes 4 STALE 192.168.6.3 dev br-lan lladdr 90:15:64:00:0b:b8 used 0/0/0 probes 1 STALE

All batctl parameters are remained default.

Thank you so much for your kind help!

Jingwei

#1 lore raw
Quoted 1 line · On Friday, 7 February 2025 14:21:47 GMT+1 Jingwei LI wrote:

[B.A.T.M.A.N. adv 2024.4, MainIF/MAC: rax0/90:15:64:00:0b:ee (bat0/22:f9:67:7c:cd:e8 BATMAN_IV)]

Please make sure you update to 2025.0. 2024.4 had a bad regression in the OGM TVLV handler and I would like to avoid to start debugging things before applying a fix [1] for a known bug.

Kind regards,
Sven

[1] https://git.open-mesh.org/batman-adv.git/commit/b10d75d994ee49ead8c87a3f26417c666dfccc82

author
#2 lore raw

[Resend because mail list told me my last reply is rejected due to the html content in email]

Hi Sven, thank you for your kind reply!

It turns out that it's not batman-adv's fault, the problem is caused by the bridge's MAC address on node2, the automatically generated MAC is the same as the MAC address on one of Node 4's interface (ra0), what a funny coincidence. So, sorry for the bothering!

Again, I really love batman-adv and thank you for your contribution!

Best regards,
Jingwei

________________________________________
From: Sven Eckelmann
Sent: Saturday, February 8, 2025 3:08 AM
To: Jingwei LI
Cc: [email protected]
Subject: Re: No Connection Between Two Specific Nodes in a 4-Node Network

Quoted 1 line · On Friday, 7 February 2025 14:21:47 GMT+1 Jingwei LI wrote:

[B.A.T.M.A.N. adv 2024.4, MainIF/MAC: rax0/90:15:64:00:0b:ee (bat0/22:f9:67:7c:cd:e8 BATMAN_IV)]

Please make sure you update to 2025.0. 2024.4 had a bad regression in the OGM

TVLV handler and I would like to avoid to start debugging things before

applying a fix [1] for a known bug.

Kind regards,

        Sven

[1] https://git.open-mesh.org/batman-adv.git/commit/b10d75d994ee49ead8c87a3f26417c666dfccc82