Re: Error - mac address of the ping destination could not be resolved and is not a bat-host name
Sven Eckelmann wrote: > On Friday, 9 June 2023 20:55:24 CEST Mark Mundy wrote: > Btw. this has nothing to do with batman-adv but is just about basic (Linux) > networking. I took this to heart and went back and checked everything again. Not too surprisingly, you were correct. But that's what you get for putting a Windows Developer onto a Linux box to do networking. I finally resolved the networking issue and used a shell script to configure the batman after /etc/network/interfaces was fully completed. I will call this issue resolved, and start a new thread with my current issue. If anyone comes here as part of this discussion, look for my next post to see the current state of my configuration files. I know I hate it when people forget to post the actual answer. Mark
Re: Error - mac address of the ping destination could not be resolved and is not a bat-host name
On Friday, 9 June 2023 20:55:24 CEST Mark Mundy wrote: > I think I understand this to mean that I should remove the ipaddress, netmask > configuration items from the bat0 interface, and create a bridge with bat0 > and eth1. Nearly correct - the eth1 IP configuration must also be removed because you configured two conflicting IP addresses (with the same subnet and metric) and in this process broke the routing table. > Something more like this for 10.1.1.1, and similar changes for 10.2.1.1 where > it is actually the bridge interface that contains holds the IP address info [...] > allow hotplug eth1 > auto eth1 > iface eth1 inet static > address 10.1.1.1 > netmask 255.0.0.0 > gateway 10.0.0.1 > #dns-nameservers 1.1.1.1 8.8.8.8 8.8.4.4 Why do you configure an IP address on eth1? It is part of a bridge and the IP configuration must be on top of the bridge. But you already have an IP address in the same subnet configured on br0. There are ways to still work around this configuration problem but it would be weird to not simply fix the configuration. Btw. this has nothing to do with batman-adv but is just about basic (Linux) networking. Kind regards, Sven signature.asc Description: This is a digitally signed message part.
Re: Error - mac address of the ping destination could not be resolved and is not a bat-host name
Thanks for your reply, Sven. Comments inline below Sven Eckelmann wrote: > On Thursday, 8 June 2023 22:38:23 CEST mark.mu...@draeger.com wrote: If I read your message correctly, the bridging of interfaces may make my original question moot. If I am wrong about that, I will go back to your original answer. > If it should be a transparent bridge between mesh without IP routing then > please add bat0+eth1 in the same bridge. And then configure the IP address on > top of the bridge. I think I understand this to mean that I should remove the ipaddress, netmask configuration items from the bat0 interface, and create a bridge with bat0 and eth1. Something more like this for 10.1.1.1, and similar changes for 10.2.1.1 where it is actually the bridge interface that contains holds the IP address info # new configuration file # /etc/network/interfaces for 10.1.1.1 # source-directory /etc/network/interfaces.d allow-hotplug eth0 auto eth0 iface eth0 inet dhcp allow hotplug eth1 auto eth1 iface eth1 inet static address 10.1.1.1 netmask 255.0.0.0 gateway 10.0.0.1 #dns-nameservers 1.1.1.1 8.8.8.8 8.8.4.4 allow hotplug bat0 auto bat0 iface bat0 inet manual <-- changed from static #address 10.2.1.4 #netmask 255.0.0.0 up ip link set up dev $IFACE pre-up ip link set up dev wlan0 pre-up iw dev wlan0 del pre-up iw phy phy0 interface add wlan0 type mesh pre-up iw dev wlan0 set channel 149 80MHz pre-up ip link set up dev wlan0 pre-up iw dev wlan0 mesh join mesh149 pre-up batctl if add wlan0 pre-up batctl if add eth1 down ip link set down dev $IFACE batman-adv-bridge yes batman-adv-mesh-id bat0 batman-adv-multicast-mode 1 batman-adv-ttl 50 batman-adv-originator-ttl 50 batman-adv-gateway-mode server batman-adv-hard-interface wlan0 batman-adv-hard-interface eth1 allow hotplug br0 auto br0 iface br0 inet static address 10.2.1.4 netmask 255.0.0.0 bridge_ports eth1 bat0 > Kind regards, > Sven
Re: Error - mac address of the ping destination could not be resolved and is not a bat-host name
On Thursday, 8 June 2023 22:38:23 CEST mark.mu...@draeger.com wrote: > What is the best way to figure out why 2 nodes that are connected on a WMN > can see each other through 'batctl n', but 'batman ping' fails with the > message "Error - mac address of the ping destination could not be resolved > and is not a bat-host name"? Please use either the actual mac address of the remote or the IP which is configured on the bat0 (which is also reachable directly by your host). batman-adv is not the IP subsystem and will therefore not be able to resolve any non-direct neighbors (over bat0). > Node at eth1 - 10.1.1.1, wlan0 mac ether 04:f0:21:59:38:c9 > root@jammy-newport:~# batctl n > [B.A.T.M.A.N. adv 2021.3, MainIF/MAC: wlan0/04:f0:21:59:38:c9 > (bat0/72:85:90:2a:95:06 BATMAN_IV)] > IF Neighbor last-seen > wlan0 c4:4b:d1:90:02:900.500s > root@jammy-newport:~# batctl ping 10.2.1.1 > Error - mac address of the ping destination could not be resolved and is not > a bat-host name: 10.2.1.1 > > > Node at eth1 - 10.2.1.1, wlan0 mac ether c4:4b:d1:90:02:90 > root@focal-newport:~# batctl n > [B.A.T.M.A.N. adv 2021.3, MainIF/MAC: wlan0/c4:4b:d1:90:02:90 > (bat0/6e:87:15:7e:f3:14 BATMAN_IV)] > IF Neighbor last-seen > wlan0 04:f0:21:59:38:c90.708s > root@focal-newport:~# batctl ping 10.1.1.1 > Error - mac address of the ping destination could not be resolved and is not > a bat-host name: 10.1.1.1 > > My intention is to be able to reach a computer on the far side of the WMN > connected to eth1 10.2.1.1 from my host computer connected to the same > network on eth1 10.1.1.1. It should look something like this. > network -> eth1 10.1.1.1 -> wlan0 -> bat0 (inet 10.1.1.4) -> BATMAN -> bat0 > (inet 10.2.1.4) -> wlan0 -> eth1 10.2.1.1 -> non-BATMAN computer > > My intention is to have eth1 10.1.1.1 connected to the main network as an > interface for bat0 able to communicate over bat0. On the other end, eth1 > 10.2.1.1 The interfaces for eth1 and wlan0 show as active for both computers. Reach how? With IP routing? It is not the task of batman-adv to perform IP routing (it is on the wrong layer). On Thursday, 8 June 2023 22:38:23 CEST mark.mu...@draeger.com wrote: > allow hotplug eth1 > auto eth1 > iface eth1 inet static > address 10.1.1.1 > netmask 255.0.0.0 > gateway 10.0.0.1 > #dns-nameservers 1.1.1.1 8.8.8.8 8.8.4.4 > > allow hotplug bat0 > auto bat0 > iface bat0 inet static > address 10.1.1.4 > netmask 255.0.0.0 The IP configuration is weird. You have two IP addresses (bat0+ethX) which are overlapping (10.0.0.0/8). This cannot work. If it should be a transparent bridge between mesh without IP routing then please add bat0+eth1 in the same bridge. And then configure the IP address on top of the bridge. Kind regards, Sven signature.asc Description: This is a digitally signed message part.