I have setup 3 rpi inside my LAN 2 OSMC and 1 rasbian
I want to access everything using “xxx.local”
Between the 2 OSMCs zeroconf works fine.
The rasbian however cannot see the two OSMCs neither be seen them.
myosmc and myosmc0 are OSMC
mypi2 is raspbian
From an osmc with avahi-browse I get these
osmc@myosmc:~$ avahi-browse -a -t
+ wlan0 IPv4 myosmc0 Web Site local
+ wlan0 IPv4 myosmc Web Site local
+ wlan0 IPv4 myosmc0 _xbmc-jsonrpc._tcp local
+ wlan0 IPv4 myosmc _xbmc-jsonrpc._tcp local
+ wlan0 IPv4 myosmc0 _xbmc-jsonrpc-h._tcp local
+ wlan0 IPv4 myosmc _xbmc-jsonrpc-h._tcp local
+ wlan0 IPv4 myosmc0 _xbmc-events._udp local
+ wlan0 IPv4 myosmc _xbmc-events._udp local
+ wlan0 IPv4 pulse@myosmc PulseAudio Sound Server local
+ wlan0 IPv4 pulse@myosmc: bcm2835 ALSA Analog Stereo PulseAudio Sound Sink local
+ wlan0 IPv4 B827EB463E92@myosmc0 AirTunes Remote Audio local
+ wlan0 IPv4 B827EBB4DDCB@myosmc AirTunes Remote Audio local
+ wlan0 IPv4 myosmc0 _airplay._tcp local
+ wlan0 IPv4 myosmc _airplay._tcp local
+ wlan0 IPv4 myosmc0 Remote Disk Management local
+ wlan0 IPv4 myosmc Remote Disk Management local
+ wlan0 IPv4 myosmc0 SSH Remote Terminal local
+ wlan0 IPv4 myosmc SSH Remote Terminal local
+ wlan0 IPv4 myosmc0 SFTP File Transfer local
+ wlan0 IPv4 myosmc SFTP File Transfer local
+ wlan0 IPv4 myosmc0 [b8:27:eb:46:3e:92] Workstation local
+ wlan0 IPv4 myosmc [b8:27:eb:b4:dd:cb] Workstation local
from pi these
pi@mypi2:~ $ avahi-browse -a -t
+ eth0 IPv6 mypi2 SSH Remote Terminal local
+ eth0 IPv4 mypi2 SSH Remote Terminal local
+ eth0 IPv6 mypi2 _device-info._tcp local
+ eth0 IPv4 mypi2 _device-info._tcp local
+ eth0 IPv6 mypi2 [b8:27:eb:e3:fc:15] Workstation local
+ eth0 IPv4 mypi2 [b8:27:eb:e3:fc:15] Workstation local
Notice the IPv6 entries. Does it have to do something with messing the packets? Do I have to “enable” IPv6 on OSMC?
Thanks in advance.
It’s difficult to know if it’s IPv6-related. Is IPv6 enabled on your LAN? On my LAN, I don’t use IPv6 and avahi is working fine between a Pi 1 running Raspbian and an OSMC Vero 4K, so there’s no fundamental incompatibility between the two systems.
I assume you can ping between the systems by IP address.
On Raspbian and one OSMC box (use myosmc) please run the following commands:
cat /etc/nsswitch.conf
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.
passwd: compat
group: compat
shadow: compat
gshadow: files
hosts: files myhostname mdns4_minimal [NOTFOUND=return] dns mdns4
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis
mypi2
cat /etc/nsswitch.conf
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.
passwd: compat
group: compat
shadow: compat
gshadow: files
hosts: files mdns4_minimal [NOTFOUND=return] dns
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis
There is a difference in hosts osmc, also contains mdns4
Thanks for all that. Nothing jumps out at me. The most interesting snippet of information is that mypi2 is able to get its own domain name from avahi/mdns, which suggests that avahi is probably working on the Pi.
Before going any further, if at all possible, please reboot your router, then:
Please confirm that pings between machines work using IP addresses.
Confirm that you don’t have any unusual subnetting or vlans configured on the router.
Temporarily move one OSMC box onto eth0, ie directly attached to the router. Before moving the box, ensure that the ethernet port is switched on using sudo connmanctl enable ethernet. Then attach the box to the router and ensure that wireless is switched off using sudo connmanctl disable wifi.
Repeat the getent hosts <hostname> commands so that each box gets the details of the other two boxes, this time excluding itself. There should be six results.
Helllo @dillthedog
I restarted the router,pinging with addresses was OK.
I mover myosmc on ethernet.
Now mypi2 and myosmc are visible with its other (both on eth) and myosmc0 became invisible from both.
My best guess is that multicast bridging is not working on your router. It’s possible (and unfortunately far too common with domestic routers) that it just doesn’t work at all on your router. However, depending on the router, it might also be possible to change one of the settings to allow multicast bridging. If you can find an option (probably in an Advanced menu) related to multicast bridging or streaming, enable it.
Here’s a thread that seems to mirror your problem:
Edit: I forgot to include IGMP snooping. If available on the router, also try enabling it.