ieee488
Posts: 57
Joined: Sun Sep 01, 2019 7:16 pm

.local fails but using IP address works

Tue Feb 23, 2021 4:55 pm

I upgraded to Linux Mint 19.3.

I have a Zero and Zero W.
I have them both set up to be Ethernet USB Gadgets.
Both work in Windows 10 where I can ping pi0.local and pi0w.local

Yet in Linux Mint 19.3, only the board that is plugged in first can I ping using .local address.
It does not matter whether it is the Zero that I plug in first or the Zero W that I plug in first.
The screenshots below are of when the Zero W is plugged in first and the Zero is plugged in second.

ifconfig -a showing both boards
Image

ping pi0w.local works
Image
the IP address 169.254.213.36 does not show up in ifconfig -a
where is it coming from?


ping pi0.local does not work then ping 169.254.186.117 does work
Image

I am not sure what is going on with the IP addresses.
Can someone shed a light on how I can get both .local addresses to work?

If I wait long enough, it will be the pi0.local that works and pi0w.local that fails.
I see pop-up messages from Linux Mint telling me it lost connection.

pidd
Posts: 1778
Joined: Fri May 29, 2020 8:29 pm
Location: Wirral, UK
Contact: Website

Re: .local fails but using IP address works

Tue Feb 23, 2021 6:28 pm

The DNS thinks pi0.local is at 169.254.113.219, have you configured that as a static IP at any time?

cleverca22
Posts: 3265
Joined: Sat Aug 18, 2012 2:33 pm

Re: .local fails but using IP address works

Tue Feb 23, 2021 6:29 pm

https://en.wikipedia.org/wiki/Link-local_address

its a randomly assigned address, when the dhcp server cant be found

pidd
Posts: 1778
Joined: Fri May 29, 2020 8:29 pm
Location: Wirral, UK
Contact: Website

Re: .local fails but using IP address works

Tue Feb 23, 2021 6:37 pm

cleverca22 wrote:
Tue Feb 23, 2021 6:29 pm
https://en.wikipedia.org/wiki/Link-local_address

its a randomly assigned address, when the dhcp server cant be found
But the DNS appears to think it is at a different address from reality, even if it is in the link local address range I imagine a static entry would be accepted as gospel by the DNS resolver?

cleverca22
Posts: 3265
Joined: Sat Aug 18, 2012 2:33 pm

Re: .local fails but using IP address works

Tue Feb 23, 2021 6:42 pm

try also running "avahi-browse -ar" and then watch what it prints when you reboot some systems

there might be duplicate hostnames going on, or multiple interfaces on the same machine that are reachable

epoch1970
Posts: 6226
Joined: Thu May 05, 2016 9:33 am
Location: Paris, France

Re: .local fails but using IP address works

Tue Feb 23, 2021 7:10 pm

How it works: https://en.wikipedia.org/wiki/Link-local_address#IPv4

With zeroconf the host does everything: give itself an address that appears to be available over the network, and resolving it to “hostname.local”
DNS is not involved, neither is DHCP. Zeroconf replaces both by having hosts communicate over a predefined multicast address. It is a peer-to-peer system with no central server.
"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème." Les Shadoks, J. Rouxel

ieee488
Posts: 57
Joined: Sun Sep 01, 2019 7:16 pm

Re: .local fails but using IP address works

Tue Feb 23, 2021 7:35 pm

cleverca22 wrote:
Tue Feb 23, 2021 6:42 pm
try also running "avahi-browse -ar" and then watch what it prints when you reboot some systems

there might be duplicate hostnames going on, or multiple interfaces on the same machine that are reachable
All it shows is the printer.

Code: Select all

+ enp0s20u10 IPv6 HL-2170W @ Dell-JLLK732                       Internet Printer     local
+ enp0s20u10 IPv4 HL-2170W @ Dell-JLLK732                       Internet Printer     local
+ enp0s20u9 IPv6 HL-2170W @ Dell-JLLK732                       Internet Printer     local
+ enp0s20u9 IPv4 HL-2170W @ Dell-JLLK732                       Internet Printer     local
+ virbr0 IPv4 HL-2170W @ Dell-JLLK732                       Internet Printer     local
+ enp2s0 IPv6 HL-2170W @ Dell-JLLK732                       Internet Printer     local
+ enp2s0 IPv4 HL-2170W @ Dell-JLLK732                       Internet Printer     local
+     lo IPv4 HL-2170W @ Dell-JLLK732                       Internet Printer     local
+ enp0s20u10 IPv6 HL-2170W @ Dell-JLLK732                       Secure Internet Printer local
+ enp0s20u10 IPv4 HL-2170W @ Dell-JLLK732                       Secure Internet Printer local
+ enp0s20u9 IPv6 HL-2170W @ Dell-JLLK732                       Secure Internet Printer local
+ enp0s20u9 IPv4 HL-2170W @ Dell-JLLK732                       Secure Internet Printer local
+ virbr0 IPv4 HL-2170W @ Dell-JLLK732                       Secure Internet Printer local
+ enp2s0 IPv6 HL-2170W @ Dell-JLLK732                       Secure Internet Printer local
+ enp2s0 IPv4 HL-2170W @ Dell-JLLK732                       Secure Internet Printer local
+     lo IPv4 HL-2170W @ Dell-JLLK732                       Secure Internet Printer local
+ enp0s20u10 IPv6 HL-2170W @ Dell-JLLK732                       UNIX Printer         local
+ enp0s20u10 IPv4 HL-2170W @ Dell-JLLK732                       UNIX Printer         local
+ enp0s20u9 IPv6 HL-2170W @ Dell-JLLK732                       UNIX Printer         local
+ enp0s20u9 IPv4 HL-2170W @ Dell-JLLK732                       UNIX Printer         local
+ virbr0 IPv4 HL-2170W @ Dell-JLLK732                       UNIX Printer         local
+ enp2s0 IPv6 HL-2170W @ Dell-JLLK732                       UNIX Printer         local
+ enp2s0 IPv4 HL-2170W @ Dell-JLLK732                       UNIX Printer         local
+     lo IPv4 HL-2170W @ Dell-JLLK732                       UNIX Printer         local
= enp0s20u10 IPv6 HL-2170W @ Dell-JLLK732                       Internet Printer     local
   hostname = [Dell-JLLK732.local]
   address = [fe80::29ba:a1bf:6f42:335c]
   port = [631]
   txt = ["printer-type=0x80B016" "printer-state=3" "Duplex=T" "TLS=1.2" "UUID=c34aa787-9809-367c-5be2-e2870948b46a" "URF=DM3" "pdl=application/octet-stream,application/pdf,application/postscript,image/jpeg,image/png,image/pwg-raster,image/urf" "product=(HL-2170W)" "priority=0" "adminurl=https://Dell-JLLK732.local.:631/printers/HL-2170W" "ty=Brother HL-2170W Foomatic/hpijs-pcl5e (recommended)" "rp=printers/HL-2170W" "qtotal=1" "txtvers=1"]
= enp0s20u10 IPv4 HL-2170W @ Dell-JLLK732                       Internet Printer     local
   hostname = [Dell-JLLK732.local]
   address = [169.254.57.15]
   port = [631]
   txt = ["printer-type=0x80B016" "printer-state=3" "Duplex=T" "TLS=1.2" "UUID=c34aa787-9809-367c-5be2-e2870948b46a" "URF=DM3" "pdl=application/octet-stream,application/pdf,application/postscript,image/jpeg,image/png,image/pwg-raster,image/urf" "product=(HL-2170W)" "priority=0" "adminurl=https://Dell-JLLK732.local.:631/printers/HL-2170W" "ty=Brother HL-2170W Foomatic/hpijs-pcl5e (recommended)" "rp=printers/HL-2170W" "qtotal=1" "txtvers=1"]
= enp0s20u9 IPv6 HL-2170W @ Dell-JLLK732                       Internet Printer     local
   hostname = [Dell-JLLK732.local]
   address = [fe80::4be9:f3ea:ffde:be6d]
   port = [631]
   txt = ["printer-type=0x80B016" "printer-state=3" "Duplex=T" "TLS=1.2" "UUID=c34aa787-9809-367c-5be2-e2870948b46a" "URF=DM3" "pdl=application/octet-stream,application/pdf,application/postscript,image/jpeg,image/png,image/pwg-raster,image/urf" "product=(HL-2170W)" "priority=0" "adminurl=https://Dell-JLLK732.local.:631/printers/HL-2170W" "ty=Brother HL-2170W Foomatic/hpijs-pcl5e (recommended)" "rp=printers/HL-2170W" "qtotal=1" "txtvers=1"]
= enp0s20u9 IPv4 HL-2170W @ Dell-JLLK732                       Internet Printer     local
   hostname = [Dell-JLLK732.local]
   address = [169.254.124.170]
   port = [631]
   txt = ["printer-type=0x80B016" "printer-state=3" "Duplex=T" "TLS=1.2" "UUID=c34aa787-9809-367c-5be2-e2870948b46a" "URF=DM3" "pdl=application/octet-stream,application/pdf,application/postscript,image/jpeg,image/png,image/pwg-raster,image/urf" "product=(HL-2170W)" "priority=0" "adminurl=https://Dell-JLLK732.local.:631/printers/HL-2170W" "ty=Brother HL-2170W Foomatic/hpijs-pcl5e (recommended)" "rp=printers/HL-2170W" "qtotal=1" "txtvers=1"]
= enp0s20u10 IPv6 HL-2170W @ Dell-JLLK732                       Secure Internet Printer local
   hostname = [Dell-JLLK732.local]
   address = [fe80::29ba:a1bf:6f42:335c]
   port = [631]
   txt = ["printer-type=0x80B016" "printer-state=3" "Duplex=T" "TLS=1.2" "UUID=c34aa787-9809-367c-5be2-e2870948b46a" "URF=DM3" "pdl=application/octet-stream,application/pdf,application/postscript,image/jpeg,image/png,image/pwg-raster,image/urf" "product=(HL-2170W)" "priority=0" "adminurl=https://Dell-JLLK732.local.:631/printers/HL-2170W" "ty=Brother HL-2170W Foomatic/hpijs-pcl5e (recommended)" "rp=printers/HL-2170W" "qtotal=1" "txtvers=1"]
= enp0s20u10 IPv4 HL-2170W @ Dell-JLLK732                       Secure Internet Printer local
   hostname = [Dell-JLLK732.local]
   address = [169.254.57.15]
   port = [631]
   txt = ["printer-type=0x80B016" "printer-state=3" "Duplex=T" "TLS=1.2" "UUID=c34aa787-9809-367c-5be2-e2870948b46a" "URF=DM3" "pdl=application/octet-stream,application/pdf,application/postscript,image/jpeg,image/png,image/pwg-raster,image/urf" "product=(HL-2170W)" "priority=0" "adminurl=https://Dell-JLLK732.local.:631/printers/HL-2170W" "ty=Brother HL-2170W Foomatic/hpijs-pcl5e (recommended)" "rp=printers/HL-2170W" "qtotal=1" "txtvers=1"]
= enp0s20u9 IPv6 HL-2170W @ Dell-JLLK732                       Secure Internet Printer local
   hostname = [Dell-JLLK732.local]
   address = [fe80::4be9:f3ea:ffde:be6d]
   port = [631]
   txt = ["printer-type=0x80B016" "printer-state=3" "Duplex=T" "TLS=1.2" "UUID=c34aa787-9809-367c-5be2-e2870948b46a" "URF=DM3" "pdl=application/octet-stream,application/pdf,application/postscript,image/jpeg,image/png,image/pwg-raster,image/urf" "product=(HL-2170W)" "priority=0" "adminurl=https://Dell-JLLK732.local.:631/printers/HL-2170W" "ty=Brother HL-2170W Foomatic/hpijs-pcl5e (recommended)" "rp=printers/HL-2170W" "qtotal=1" "txtvers=1"]
= enp0s20u9 IPv4 HL-2170W @ Dell-JLLK732                       Secure Internet Printer local
   hostname = [Dell-JLLK732.local]
   address = [169.254.124.170]
   port = [631]
   txt = ["printer-type=0x80B016" "printer-state=3" "Duplex=T" "TLS=1.2" "UUID=c34aa787-9809-367c-5be2-e2870948b46a" "URF=DM3" "pdl=application/octet-stream,application/pdf,application/postscript,image/jpeg,image/png,image/pwg-raster,image/urf" "product=(HL-2170W)" "priority=0" "adminurl=https://Dell-JLLK732.local.:631/printers/HL-2170W" "ty=Brother HL-2170W Foomatic/hpijs-pcl5e (recommended)" "rp=printers/HL-2170W" "qtotal=1" "txtvers=1"]
= enp0s20u10 IPv6 HL-2170W @ Dell-JLLK732                       UNIX Printer         local
   hostname = [Dell-JLLK732.local]
   address = [fe80::29ba:a1bf:6f42:335c]
   port = [0]
   txt = []
= enp0s20u10 IPv4 HL-2170W @ Dell-JLLK732                       UNIX Printer         local
   hostname = [Dell-JLLK732.local]
   address = [169.254.57.15]
   port = [0]
   txt = []
= enp0s20u9 IPv6 HL-2170W @ Dell-JLLK732                       UNIX Printer         local
   hostname = [Dell-JLLK732.local]
   address = [fe80::4be9:f3ea:ffde:be6d]
   port = [0]
   txt = []
= enp0s20u9 IPv4 HL-2170W @ Dell-JLLK732                       UNIX Printer         local
   hostname = [Dell-JLLK732.local]
   address = [169.254.124.170]
   port = [0]
   txt = []
= enp2s0 IPv6 HL-2170W @ Dell-JLLK732                       Internet Printer     local
   hostname = [Dell-JLLK732.local]
   address = [fe80::753c:d7bc:31c9:9040]
   port = [631]
   txt = ["printer-type=0x80B016" "printer-state=3" "Duplex=T" "TLS=1.2" "UUID=c34aa787-9809-367c-5be2-e2870948b46a" "URF=DM3" "pdl=application/octet-stream,application/pdf,application/postscript,image/jpeg,image/png,image/pwg-raster,image/urf" "product=(HL-2170W)" "priority=0" "adminurl=https://Dell-JLLK732.local.:631/printers/HL-2170W" "ty=Brother HL-2170W Foomatic/hpijs-pcl5e (recommended)" "rp=printers/HL-2170W" "qtotal=1" "txtvers=1"]
= enp2s0 IPv6 HL-2170W @ Dell-JLLK732                       UNIX Printer         local
   hostname = [Dell-JLLK732.local]
   address = [fe80::753c:d7bc:31c9:9040]
   port = [0]
   txt = []
= enp2s0 IPv6 HL-2170W @ Dell-JLLK732                       Secure Internet Printer local
   hostname = [Dell-JLLK732.local]
   address = [fe80::753c:d7bc:31c9:9040]
   port = [631]
   txt = ["printer-type=0x80B016" "printer-state=3" "Duplex=T" "TLS=1.2" "UUID=c34aa787-9809-367c-5be2-e2870948b46a" "URF=DM3" "pdl=application/octet-stream,application/pdf,application/postscript,image/jpeg,image/png,image/pwg-raster,image/urf" "product=(HL-2170W)" "priority=0" "adminurl=https://Dell-JLLK732.local.:631/printers/HL-2170W" "ty=Brother HL-2170W Foomatic/hpijs-pcl5e (recommended)" "rp=printers/HL-2170W" "qtotal=1" "txtvers=1"]
= virbr0 IPv4 HL-2170W @ Dell-JLLK732                       Internet Printer     local
   hostname = [Dell-JLLK732.local]
   address = [192.168.123.1]
   port = [631]
   txt = ["printer-type=0x80B016" "printer-state=3" "Duplex=T" "TLS=1.2" "UUID=c34aa787-9809-367c-5be2-e2870948b46a" "URF=DM3" "pdl=application/octet-stream,application/pdf,application/postscript,image/jpeg,image/png,image/pwg-raster,image/urf" "product=(HL-2170W)" "priority=0" "adminurl=https://Dell-JLLK732.local.:631/printers/HL-2170W" "ty=Brother HL-2170W Foomatic/hpijs-pcl5e (recommended)" "rp=printers/HL-2170W" "qtotal=1" "txtvers=1"]
= virbr0 IPv4 HL-2170W @ Dell-JLLK732                       UNIX Printer         local
   hostname = [Dell-JLLK732.local]
   address = [192.168.123.1]
   port = [0]
   txt = []
= virbr0 IPv4 HL-2170W @ Dell-JLLK732                       Secure Internet Printer local
   hostname = [Dell-JLLK732.local]
   address = [192.168.123.1]
   port = [631]
   txt = ["printer-type=0x80B016" "printer-state=3" "Duplex=T" "TLS=1.2" "UUID=c34aa787-9809-367c-5be2-e2870948b46a" "URF=DM3" "pdl=application/octet-stream,application/pdf,application/postscript,image/jpeg,image/png,image/pwg-raster,image/urf" "product=(HL-2170W)" "priority=0" "adminurl=https://Dell-JLLK732.local.:631/printers/HL-2170W" "ty=Brother HL-2170W Foomatic/hpijs-pcl5e (recommended)" "rp=printers/HL-2170W" "qtotal=1" "txtvers=1"]
= enp2s0 IPv4 HL-2170W @ Dell-JLLK732                       Internet Printer     local
   hostname = [Dell-JLLK732.local]
   address = [192.168.0.118]
   port = [631]
   txt = ["printer-type=0x80B016" "printer-state=3" "Duplex=T" "TLS=1.2" "UUID=c34aa787-9809-367c-5be2-e2870948b46a" "URF=DM3" "pdl=application/octet-stream,application/pdf,application/postscript,image/jpeg,image/png,image/pwg-raster,image/urf" "product=(HL-2170W)" "priority=0" "adminurl=https://Dell-JLLK732.local.:631/printers/HL-2170W" "ty=Brother HL-2170W Foomatic/hpijs-pcl5e (recommended)" "rp=printers/HL-2170W" "qtotal=1" "txtvers=1"]
= enp2s0 IPv4 HL-2170W @ Dell-JLLK732                       UNIX Printer         local
   hostname = [Dell-JLLK732.local]
   address = [192.168.0.118]
   port = [0]
   txt = []
= enp2s0 IPv4 HL-2170W @ Dell-JLLK732                       Secure Internet Printer local
   hostname = [Dell-JLLK732.local]
   address = [192.168.0.118]
   port = [631]
   txt = ["printer-type=0x80B016" "printer-state=3" "Duplex=T" "TLS=1.2" "UUID=c34aa787-9809-367c-5be2-e2870948b46a" "URF=DM3" "pdl=application/octet-stream,application/pdf,application/postscript,image/jpeg,image/png,image/pwg-raster,image/urf" "product=(HL-2170W)" "priority=0" "adminurl=https://Dell-JLLK732.local.:631/printers/HL-2170W" "ty=Brother HL-2170W Foomatic/hpijs-pcl5e (recommended)" "rp=printers/HL-2170W" "qtotal=1" "txtvers=1"]
=     lo IPv4 HL-2170W @ Dell-JLLK732                       Internet Printer     local
   hostname = [localhost]
   address = [127.0.0.1]
   port = [631]
   txt = ["printer-type=0x80B016" "printer-state=3" "Duplex=T" "TLS=1.2" "UUID=c34aa787-9809-367c-5be2-e2870948b46a" "URF=DM3" "pdl=application/octet-stream,application/pdf,application/postscript,image/jpeg,image/png,image/pwg-raster,image/urf" "product=(HL-2170W)" "priority=0" "adminurl=https://Dell-JLLK732.local.:631/printers/HL-2170W" "ty=Brother HL-2170W Foomatic/hpijs-pcl5e (recommended)" "rp=printers/HL-2170W" "qtotal=1" "txtvers=1"]
=     lo IPv4 HL-2170W @ Dell-JLLK732                       UNIX Printer         local
   hostname = [localhost]
   address = [127.0.0.1]
   port = [0]
   txt = []
=     lo IPv4 HL-2170W @ Dell-JLLK732                       Secure Internet Printer local
   hostname = [localhost]
   address = [127.0.0.1]
   port = [631]
   txt = ["printer-type=0x80B016" "printer-state=3" "Duplex=T" "TLS=1.2" "UUID=c34aa787-9809-367c-5be2-e2870948b46a" "URF=DM3" "pdl=application/octet-stream,application/pdf,application/postscript,image/jpeg,image/png,image/pwg-raster,image/urf" "product=(HL-2170W)" "priority=0" "adminurl=https://Dell-JLLK732.local.:631/printers/HL-2170W" "ty=Brother HL-2170W Foomatic/hpijs-pcl5e (recommended)" "rp=printers/HL-2170W" "qtotal=1" "txtvers=1"]

ieee488
Posts: 57
Joined: Sun Sep 01, 2019 7:16 pm

Re: .local fails but using IP address works

Tue Feb 23, 2021 7:37 pm

epoch1970 wrote:
Tue Feb 23, 2021 7:10 pm
How it works: https://en.wikipedia.org/wiki/Link-local_address#IPv4

With zeroconf the host does everything: give itself an address that appears to be available over the network, and resolving it to “hostname.local”
DNS is not involved, neither is DHCP. Zeroconf replaces both by having hosts communicate over a predefined multicast address. It is a peer-to-peer system with no central server.
In Windows 10 when I ping both board using .local, I see IPv6 addresses
So I tried disabling IPv4 and enabling just IPv6 in Linux Mint. No good.

Not sure why .local works for the first board plugged in and not the second.

.

User avatar
thagrol
Posts: 4482
Joined: Fri Jan 13, 2012 4:41 pm
Location: Darkest Somerset, UK
Contact: Website

Re: .local fails but using IP address works

Tue Feb 23, 2021 8:26 pm

Sounds like an issue with Mint not with the zero & zeroW. Are you able to try with a different flavour of Linux? For example https://www.raspberrypi.org/software/ra ... i-desktop/

If you're stuck with using Mint, it might be worth asking on their forum/mailing list/support email.
I'm a volunteer. Take me for granted or abuse my support and I will walk away

All advice given is based on my experience. it worked for me, it may not work for you.
All GPIO pin numbers are BCM numbers.

ieee488
Posts: 57
Joined: Sun Sep 01, 2019 7:16 pm

Re: .local fails but using IP address works

Tue Feb 23, 2021 9:19 pm

thagrol wrote:
Tue Feb 23, 2021 8:26 pm
Sounds like an issue with Mint not with the zero & zeroW. Are you able to try with a different flavour of Linux? For example https://www.raspberrypi.org/software/ra ... i-desktop/

If you're stuck with using Mint, it might be worth asking on their forum/mailing list/support email.
I gave up on Avahi for the moment.

I went back to using static IP addresses with the ones you suggested.

Of course, that means lots of manual configuration whether Windows 10 or Linux Mint.

User avatar
thagrol
Posts: 4482
Joined: Fri Jan 13, 2012 4:41 pm
Location: Darkest Somerset, UK
Contact: Website

Re: .local fails but using IP address works

Tue Feb 23, 2021 11:42 pm

ieee488 wrote:
Tue Feb 23, 2021 9:19 pm
thagrol wrote:
Tue Feb 23, 2021 8:26 pm
Sounds like an issue with Mint not with the zero & zeroW. Are you able to try with a different flavour of Linux? For example https://www.raspberrypi.org/software/ra ... i-desktop/

If you're stuck with using Mint, it might be worth asking on their forum/mailing list/support email.
I gave up on Avahi for the moment.
this is probably relevant here too: viewtopic.php?f=91&t=304684&start=25#p1825693
I'm a volunteer. Take me for granted or abuse my support and I will walk away

All advice given is based on my experience. it worked for me, it may not work for you.
All GPIO pin numbers are BCM numbers.

Return to “Beginners”