Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

The generation of random numbers is too important to be left to chance.


computers / comp.sys.raspberry-pi / Re: Network names (Was: PI Zero W. Another puzzler)

SubjectAuthor
* PI Zero W. Another puzzlerThe Natural Philosopher
+* Re: PI Zero W. Another puzzlerTheo
|`- Re: PI Zero W. Another puzzlerThe Natural Philosopher
+* Re: PI Zero W. Another puzzlerTauno Voipio
|+- Re: PI Zero W. Another puzzlerThe Natural Philosopher
|`* Re: PI Zero W. Another puzzlerThe Natural Philosopher
| `* Re: PI Zero W. Another puzzlerThe Natural Philosopher
|  +* Network names (Was: PI Zero W. Another puzzler)Kenny McCormack
|  |+* Re: Network names (Was: PI Zero W. Another puzzler)Chris Elvidge
|  ||`- Why did you do that? (Was: Network names (Was: PI Zero W. Another puzzler))Kenny McCormack
|  |+* Re: Network names (Was: PI Zero W. Another puzzler)Richard Harnden
|  ||+- Re: Network names (Was: PI Zero W. Another puzzler)The Natural Philosopher
|  ||`- Re: Network names (Was: PI Zero W. Another puzzler)Kenny McCormack
|  |+* Re: Network names (Was: PI Zero W. Another puzzler)Ahem A Rivet's Shot
|  ||`* Re: Network names (Was: PI Zero W. Another puzzler)Kenny McCormack
|  || `* Re: Network names (Was: PI Zero W. Another puzzler)Tauno Voipio
|  ||  `* Re: Network names (Was: PI Zero W. Another puzzler)The Natural Philosopher
|  ||   `- Re: Network names (Was: PI Zero W. Another puzzler)Tauno Voipio
|  |`- Re: Network names (Was: PI Zero W. Another puzzler)The Natural Philosopher
|  `* Re: PI Zero W. Another puzzlerTauno Voipio
|   `- Re: PI Zero W. Another puzzlerThe Natural Philosopher
`- Re: PI Zero W. Another puzzlerDavid W. Hodgins

1
PI Zero W. Another puzzler

<ue3rvl$3otib$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=7213&group=comp.sys.raspberry-pi#7213

 copy link   Newsgroups: comp.sys.raspberry-pi comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp...@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi,comp.os.linux.misc
Subject: PI Zero W. Another puzzler
Date: Sat, 16 Sep 2023 10:19:48 +0100
Organization: A little, after lunch
Lines: 121
Message-ID: <ue3rvl$3otib$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 16 Sep 2023 09:19:49 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="7088daaf74b6403e5a913752407374c4";
logging-data="3962443"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19UgY+X9jCQ3k1GRxv3BVdYAUsHfZ7CWgc="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.15.1
Cancel-Lock: sha1:AJlUsWmY7Ks/1wB6yrHzDMAsihs=
Content-Language: en-GB
 by: The Natural Philosop - Sat, 16 Sep 2023 09:19 UTC

First of all, huge thanks to all who helped me get to the bottom of the
memory bug...code seems rock solid now.

Here is another 'strangeness' .

The Pi Zero W is configured to present its usb interface as an ethernet
device, in order that for initial configuration, it can be plugged into
a host computer which will acquire an Ethernet connection and be issued
by DHCP with an address that can directly communicate with the Pi Zeros
web server by issuing a command in the host computers web browser to a
fixed IP address. When this works, it works perfectly.

If the host computer (HP Elite Desk, Linux MINT 20) is rebooted WITH the
Pi Zero connected, it works.

If the host computer is rebooted *without* the Pi Zero connected and
the Pi Zero is subsequently connected, it works.

But if the Pi Zero is disconnected and then reconnected, it fails to
pick up DHCP.

The network manager app tries indefinitely to get a connection, and fails.

If the computer is told to reboot with the Pi Zero connected, it hangs.
If the computer is powered off and on, it works.

This is the syslog for a *successful* connection after reboot

Sep 16 09:57:42 juliet NetworkManager[739]: <info> [1694854662.5981]
dhcp4 (usb0): option dhcp_lease_time => '43200'
Sep 16 09:57:42 juliet NetworkManager[739]: <info> [1694854662.5982]
dhcp4 (usb0): option domain_name_servers => '172.16.21.32'
Sep 16 09:57:42 juliet NetworkManager[739]: <info> [1694854662.5982]
dhcp4 (usb0): option expiry => '1694897859'
Sep 16 09:57:42 juliet NetworkManager[739]: <info> [1694854662.5983]
dhcp4 (usb0): option host_name => 'juliet'
Sep 16 09:57:42 juliet NetworkManager[739]: <info> [1694854662.5983]
dhcp4 (usb0): option ip_address => '172.16.21.3'
Sep 16 09:57:42 juliet NetworkManager[739]: <info> [1694854662.5983]
dhcp4 (usb0): option next_server => '172.16.21.32'
Sep 16 09:57:42 juliet avahi-daemon[735]: Joining mDNS multicast group
on interface usb0.IPv4 with address 172.16.21.3.
Sep 16 09:57:42 juliet NetworkManager[739]: <info> [1694854662.5983]
dhcp4 (usb0): option requested_broadcast_address => '1'
Sep 16 09:57:42 juliet avahi-daemon[735]: New relevant interface
usb0.IPv4 for mDNS.
Sep 16 09:57:42 juliet NetworkManager[739]: <info> [1694854662.5984]
dhcp4 (usb0): option requested_domain_name => '1'
Sep 16 09:57:42 juliet avahi-daemon[735]: Registering new address record
for 172.16.21.3 on usb0.IPv4.
Sep 16 09:57:42 juliet NetworkManager[739]: <info> [1694854662.5984]
dhcp4 (usb0): option requested_domain_name_servers => '1'
Sep 16 09:57:42 juliet NetworkManager[739]: <info> [1694854662.5984]
dhcp4 (usb0): option requested_domain_search => '1'
Sep 16 09:57:42 juliet NetworkManager[739]: <info> [1694854662.5985]
dhcp4 (usb0): option requested_host_name => '1'
Sep 16 09:57:42 juliet NetworkManager[739]: <info> [1694854662.5985]
dhcp4 (usb0): option requested_interface_mtu => '1'
Sep 16 09:57:42 juliet NetworkManager[739]: <info> [1694854662.5985]
dhcp4 (usb0): option requested_ms_classless_static_routes => '1'
Sep 16 09:57:42 juliet NetworkManager[739]: <info> [1694854662.5985]
dhcp4 (usb0): option requested_nis_domain => '1'

But this is what happens when the device is unplugged and re plugged in..

Sep 16 09:41:53 juliet NetworkManager[737]: <info> [1694853713.4136]
manager: (usb0): new Ethernet device
(/org/freedesktop/NetworkManager/Devices/4)
Sep 16 09:41:53 juliet NetworkManager[737]: <info> [1694853713.5013]
device (usb0): interface index 4 renamed iface from 'usb0' to
'enxf62dad34f39e'
Sep 16 09:41:53 juliet NetworkManager[737]: <info> [1694853713.5233]
device (enxf62dad34f39e): state change: unmanaged -> unavailable (reason
'managed', sys-iface-state: 'external')
Sep 16 09:41:53 juliet NetworkManager[737]: <info> [1694853713.5242]
device (enxf62dad34f39e): carrier: link connected
Sep 16 09:41:53 juliet NetworkManager[737]: <info> [1694853713.5263]
settings: (enxf62dad34f39e): created default wired connection 'Wired
connection 2'
Sep 16 09:41:53 juliet NetworkManager[737]: <info> [1694853713.5267]
device (enxf62dad34f39e): state change: unavailable -> disconnected
(reason 'none', sys-iface-state: 'managed')
Sep 16 09:41:53 juliet NetworkManager[737]: <info> [1694853713.5316]
policy: auto-activating connection 'Wired connection 2'
(c8d6876c-99de-3b51-b55d-c6fe727632ed)
Sep 16 09:41:53 juliet NetworkManager[737]: <info> [1694853713.5319]
device (enxf62dad34f39e): Activation: starting connection 'Wired
connection 2' (c8d6876c-99de-3b51-b55d-c6fe727632ed)
Sep 16 09:41:53 juliet NetworkManager[737]: <info> [1694853713.5320]
device (enxf62dad34f39e): state change: disconnected -> prepare (reason
'none', sys-iface-state: 'managed')
Sep 16 09:41:53 juliet NetworkManager[737]: <info> [1694853713.5324]
device (enxf62dad34f39e): state change: prepare -> config (reason
'none', sys-iface-state: 'managed')
Sep 16 09:41:53 juliet NetworkManager[737]: <info> [1694853713.5327]
device (enxf62dad34f39e): state change: config -> ip-config (reason
'none', sys-iface-state: 'managed')
Sep 16 09:41:53 juliet NetworkManager[737]: <info> [1694853713.5329]
dhcp4 (enxf62dad34f39e): activation: beginning transaction (timeout in
45 seconds)
Sep 16 09:41:59 juliet NetworkManager[737]: <info> [1694853719.5490]
device (enxf62dad34f39e): state change: ip-config -> unavailable (reason
'carrier-changed', sys-iface-state: 'managed
')
Sep 16 09:41:59 juliet NetworkManager[737]: <info> [1694853719.5649]
dhcp4 (enxf62dad34f39e): canceled DHCP transaction
Sep 16 09:41:59 juliet NetworkManager[737]: <info> [1694853719.5650]
dhcp4 (enxf62dad34f39e): state changed unknown -> done

Does anyone have a clue? I don't.

--
The higher up the mountainside
The greener grows the grass.
The higher up the monkey climbs
The more he shows his arse.

Traditional

Re: PI Zero W. Another puzzler

<nWk*nFwqz@news.chiark.greenend.org.uk>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=7214&group=comp.sys.raspberry-pi#7214

 copy link   Newsgroups: comp.sys.raspberry-pi comp.os.linux.misc
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsfeed.xs3.de!callisto.xs3.de!nntp-feed.chiark.greenend.org.uk!ewrotcd!.POSTED.chiark.greenend.org.uk!not-for-mail
From: theom+n...@chiark.greenend.org.uk (Theo)
Newsgroups: comp.sys.raspberry-pi,comp.os.linux.misc
Subject: Re: PI Zero W. Another puzzler
Date: 16 Sep 2023 13:27:33 +0100 (BST)
Organization: University of Cambridge, England
Message-ID: <nWk*nFwqz@news.chiark.greenend.org.uk>
References: <ue3rvl$3otib$1@dont-email.me>
Injection-Info: chiark.greenend.org.uk; posting-host="chiark.greenend.org.uk:212.13.197.229";
logging-data="32536"; mail-complaints-to="abuse@chiark.greenend.org.uk"
User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (Linux/5.10.0-22-amd64 (x86_64))
Originator: theom@chiark.greenend.org.uk ([212.13.197.229])
 by: Theo - Sat, 16 Sep 2023 12:27 UTC

In comp.sys.raspberry-pi The Natural Philosopher <tnp@invalid.invalid> wrote:
> Does anyone have a clue? I don't.

What do the logs on the Pi end say? Maybe it barfs and stops replying.

Theo

Re: PI Zero W. Another puzzler

<ue4crb$3rd8p$4@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=7215&group=comp.sys.raspberry-pi#7215

 copy link   Newsgroups: comp.sys.raspberry-pi comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp...@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi,comp.os.linux.misc
Subject: Re: PI Zero W. Another puzzler
Date: Sat, 16 Sep 2023 15:07:39 +0100
Organization: A little, after lunch
Lines: 20
Message-ID: <ue4crb$3rd8p$4@dont-email.me>
References: <ue3rvl$3otib$1@dont-email.me>
<nWk*nFwqz@news.chiark.greenend.org.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 16 Sep 2023 14:07:39 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="7088daaf74b6403e5a913752407374c4";
logging-data="4044057"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19IObP83qMwe7BY28vuX4on+/b4kv5DkP4="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.15.1
Cancel-Lock: sha1:cjFCtRDczkhgx1QBfLD40JBcbJk=
In-Reply-To: <nWk*nFwqz@news.chiark.greenend.org.uk>
Content-Language: en-GB
 by: The Natural Philosop - Sat, 16 Sep 2023 14:07 UTC

On 16/09/2023 13:27, Theo wrote:
> In comp.sys.raspberry-pi The Natural Philosopher <tnp@invalid.invalid> wrote:
>> Does anyone have a clue? I don't.
>
> What do the logs on the Pi end say? Maybe it barfs and stops replying.
>
I am not sure...
I will try and get that info. IIRC it keeps dishing out the data and
its not accepted for some reason.

A bit more googling reveals that this is not an unknown problem - the
pseudo Ethernet interface is distinctly sketchy, by all accounts...

> Theo

--
Gun Control: The law that ensures that only criminals have guns.

Re: PI Zero W. Another puzzler

<ue4irf$3sfnm$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=7216&group=comp.sys.raspberry-pi#7216

 copy link   Newsgroups: comp.sys.raspberry-pi comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tauno.vo...@notused.fi.invalid (Tauno Voipio)
Newsgroups: comp.sys.raspberry-pi,comp.os.linux.misc
Subject: Re: PI Zero W. Another puzzler
Date: Sat, 16 Sep 2023 18:50:06 +0300
Organization: A noiseless patient Spider
Lines: 130
Message-ID: <ue4irf$3sfnm$1@dont-email.me>
References: <ue3rvl$3otib$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 16 Sep 2023 15:50:07 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="c217831441ae9c89cb3f59425e66913b";
logging-data="4079350"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Feb2WqxpddevkCn02dKSmZ/QGcJzcKm8="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:h9eSYE0ImydRqfVHrPqua3aMXbo=
Content-Language: en-US
In-Reply-To: <ue3rvl$3otib$1@dont-email.me>
 by: Tauno Voipio - Sat, 16 Sep 2023 15:50 UTC

It seems that your Raspi OS is set up to provide 'predictable
interface names', which changes usb0 to enx<MAC without colons>,
so your Ethernet is f6:2d:ad:34:f3:9e.

The Network Manager gets confused of the naming change.

There is an option to disable the interface name change in
raspi-config.

--

-TV

On 16.9.2023 12.19, The Natural Philosopher wrote:
>
> First of all, huge thanks to all who helped me get to the bottom of the
> memory bug...code seems rock solid now.
>
> Here is another 'strangeness' .
>
> The Pi Zero W is configured to present its usb interface as an ethernet
> device, in order that for initial configuration, it can be plugged into
> a host computer which will acquire an Ethernet connection and be issued
> by DHCP with an address that can directly communicate with the Pi Zeros
> web server by issuing a command in the host computers web browser to a
> fixed IP address. When this works, it works perfectly.
>
> If the host computer (HP Elite Desk, Linux MINT 20) is rebooted WITH the
> Pi Zero connected, it works.
>
> If the host computer is rebooted *without* the Pi Zero connected  and
> the Pi Zero is subsequently connected, it works.
>
> But if the Pi Zero is disconnected and then reconnected, it fails to
> pick up DHCP.
>
> The network manager app tries indefinitely to get a connection, and fails.
>
> If the  computer is told to reboot with the Pi Zero connected, it hangs.
> If the computer is powered off and on, it works.
>
>
> This is the syslog for a *successful* connection after reboot
>
> Sep 16 09:57:42 juliet NetworkManager[739]: <info>  [1694854662.5981]
> dhcp4 (usb0): option dhcp_lease_time      => '43200'
> Sep 16 09:57:42 juliet NetworkManager[739]: <info>  [1694854662.5982]
> dhcp4 (usb0): option domain_name_servers  => '172.16.21.32'
> Sep 16 09:57:42 juliet NetworkManager[739]: <info>  [1694854662.5982]
> dhcp4 (usb0): option expiry               => '1694897859'
> Sep 16 09:57:42 juliet NetworkManager[739]: <info>  [1694854662.5983]
> dhcp4 (usb0): option host_name            => 'juliet'
> Sep 16 09:57:42 juliet NetworkManager[739]: <info>  [1694854662.5983]
> dhcp4 (usb0): option ip_address           => '172.16.21.3'
> Sep 16 09:57:42 juliet NetworkManager[739]: <info>  [1694854662.5983]
> dhcp4 (usb0): option next_server          => '172.16.21.32'
> Sep 16 09:57:42 juliet avahi-daemon[735]: Joining mDNS multicast group
> on interface usb0.IPv4 with address 172.16.21.3.
> Sep 16 09:57:42 juliet NetworkManager[739]: <info>  [1694854662.5983]
> dhcp4 (usb0): option requested_broadcast_address => '1'
> Sep 16 09:57:42 juliet avahi-daemon[735]: New relevant interface
> usb0.IPv4 for mDNS.
> Sep 16 09:57:42 juliet NetworkManager[739]: <info>  [1694854662.5984]
> dhcp4 (usb0): option requested_domain_name => '1'
> Sep 16 09:57:42 juliet avahi-daemon[735]: Registering new address record
> for 172.16.21.3 on usb0.IPv4.
> Sep 16 09:57:42 juliet NetworkManager[739]: <info>  [1694854662.5984]
> dhcp4 (usb0): option requested_domain_name_servers => '1'
> Sep 16 09:57:42 juliet NetworkManager[739]: <info>  [1694854662.5984]
> dhcp4 (usb0): option requested_domain_search => '1'
> Sep 16 09:57:42 juliet NetworkManager[739]: <info>  [1694854662.5985]
> dhcp4 (usb0): option requested_host_name  => '1'
> Sep 16 09:57:42 juliet NetworkManager[739]: <info>  [1694854662.5985]
> dhcp4 (usb0): option requested_interface_mtu => '1'
> Sep 16 09:57:42 juliet NetworkManager[739]: <info>  [1694854662.5985]
> dhcp4 (usb0): option requested_ms_classless_static_routes => '1'
> Sep 16 09:57:42 juliet NetworkManager[739]: <info>  [1694854662.5985]
> dhcp4 (usb0): option requested_nis_domain => '1'
>
>  But this is what happens when the device is unplugged and re plugged in..
>
> Sep 16 09:41:53 juliet NetworkManager[737]: <info>  [1694853713.4136]
> manager: (usb0): new Ethernet device
> (/org/freedesktop/NetworkManager/Devices/4)
> Sep 16 09:41:53 juliet NetworkManager[737]: <info>  [1694853713.5013]
> device (usb0): interface index 4 renamed iface from 'usb0' to
> 'enxf62dad34f39e'
> Sep 16 09:41:53 juliet NetworkManager[737]: <info>  [1694853713.5233]
> device (enxf62dad34f39e): state change: unmanaged -> unavailable (reason
> 'managed', sys-iface-state: 'external')
> Sep 16 09:41:53 juliet NetworkManager[737]: <info>  [1694853713.5242]
> device (enxf62dad34f39e): carrier: link connected
> Sep 16 09:41:53 juliet NetworkManager[737]: <info>  [1694853713.5263]
> settings: (enxf62dad34f39e): created default wired connection 'Wired
> connection 2'
> Sep 16 09:41:53 juliet NetworkManager[737]: <info>  [1694853713.5267]
> device (enxf62dad34f39e): state change: unavailable -> disconnected
> (reason 'none', sys-iface-state: 'managed')
> Sep 16 09:41:53 juliet NetworkManager[737]: <info>  [1694853713.5316]
> policy: auto-activating connection 'Wired connection 2'
> (c8d6876c-99de-3b51-b55d-c6fe727632ed)
> Sep 16 09:41:53 juliet NetworkManager[737]: <info>  [1694853713.5319]
> device (enxf62dad34f39e): Activation: starting connection 'Wired
> connection 2' (c8d6876c-99de-3b51-b55d-c6fe727632ed)
> Sep 16 09:41:53 juliet NetworkManager[737]: <info>  [1694853713.5320]
> device (enxf62dad34f39e): state change: disconnected -> prepare (reason
> 'none', sys-iface-state: 'managed')
> Sep 16 09:41:53 juliet NetworkManager[737]: <info>  [1694853713.5324]
> device (enxf62dad34f39e): state change: prepare -> config (reason
> 'none', sys-iface-state: 'managed')
> Sep 16 09:41:53 juliet NetworkManager[737]: <info>  [1694853713.5327]
> device (enxf62dad34f39e): state change: config -> ip-config (reason
> 'none', sys-iface-state: 'managed')
> Sep 16 09:41:53 juliet NetworkManager[737]: <info>  [1694853713.5329]
> dhcp4 (enxf62dad34f39e): activation: beginning transaction (timeout in
> 45 seconds)
> Sep 16 09:41:59 juliet NetworkManager[737]: <info>  [1694853719.5490]
> device (enxf62dad34f39e): state change: ip-config -> unavailable (reason
> 'carrier-changed', sys-iface-state: 'managed
> ')
> Sep 16 09:41:59 juliet NetworkManager[737]: <info>  [1694853719.5649]
> dhcp4 (enxf62dad34f39e): canceled DHCP transaction
> Sep 16 09:41:59 juliet NetworkManager[737]: <info>  [1694853719.5650]
> dhcp4 (enxf62dad34f39e): state changed unknown -> done
>
> Does anyone have a clue? I don't.
>
>

Re: PI Zero W. Another puzzler

<op.2bdgr6yta3w0dxdave@hodgins.homeip.net>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=7217&group=comp.sys.raspberry-pi#7217

 copy link   Newsgroups: comp.sys.raspberry-pi comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dwhodg...@nomail.afraid.org (David W. Hodgins)
Newsgroups: comp.sys.raspberry-pi,comp.os.linux.misc
Subject: Re: PI Zero W. Another puzzler
Date: Sat, 16 Sep 2023 12:15:32 -0400
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <op.2bdgr6yta3w0dxdave@hodgins.homeip.net>
References: <ue3rvl$3otib$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes
Content-Transfer-Encoding: 8bit
Injection-Info: dont-email.me; posting-host="6cfe4074dc432428bb24a1e83bd81085";
logging-data="4095437"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/6GtzNuuvLycujMZGEyr4zn5XS2aWYKNw="
User-Agent: Opera Mail/12.16 (Linux)
Cancel-Lock: sha1:TVV3TI1ejn7/LKx9OUMP3AtgwmM=
 by: David W. Hodgins - Sat, 16 Sep 2023 16:15 UTC

On Sat, 16 Sep 2023 05:19:48 -0400, The Natural Philosopher <tnp@invalid.invalid> wrote:

<parts snipped> Just including the parts relevant to my suggestion ...

> But if the Pi Zero is disconnected and then reconnected, it fails to
> pick up DHCP.

> This is the syslog for a *successful* connection after reboot
>
> Sep 16 09:57:42 juliet NetworkManager[739]: <info> [1694854662.5981]
> dhcp4 (usb0): option dhcp_lease_time => '43200'

> But this is what happens when the device is unplugged and re plugged in..

> Sep 16 09:41:53 juliet NetworkManager[737]: <info> [1694853713.5013]
> device (usb0): interface index 4 renamed iface from 'usb0' to
> 'enxf62dad34f39e'

There isn't enough shown from the good connection to show whether it's occurring
after the interface is renamed or before it. I'm just wondering if it's not
being recognized due to that, in combination with settings in the dhcp server.

Try adding the kernel boot parameter net.ifnames=0 to stop the interface being
renamed.

If that fails, run wireshark on the host so you can compare what is being sent
and received to/from the dhcp server.

Regards, Dave Hodgins

Re: PI Zero W. Another puzzler

<ue56b2$8pt$4@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=7218&group=comp.sys.raspberry-pi#7218

 copy link   Newsgroups: comp.sys.raspberry-pi comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp...@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi,comp.os.linux.misc
Subject: Re: PI Zero W. Another puzzler
Date: Sat, 16 Sep 2023 22:22:42 +0100
Organization: A little, after lunch
Lines: 18
Message-ID: <ue56b2$8pt$4@dont-email.me>
References: <ue3rvl$3otib$1@dont-email.me> <ue4irf$3sfnm$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 16 Sep 2023 21:22:42 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="7088daaf74b6403e5a913752407374c4";
logging-data="9021"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+pPrqabKr1QN5hR6if57zB+492yUTZ1Qo="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.15.1
Cancel-Lock: sha1:x0sdzlBBqwiXrB9gg/0IZjXget0=
Content-Language: en-GB
In-Reply-To: <ue4irf$3sfnm$1@dont-email.me>
 by: The Natural Philosop - Sat, 16 Sep 2023 21:22 UTC

On 16/09/2023 16:50, Tauno Voipio wrote:
> It seems that your Raspi OS is set up to provide 'predictable
> interface names', which changes usb0 to enx<MAC without colons>,
> so your Ethernet is f6:2d:ad:34:f3:9e.
>
> The Network Manager gets confused of the naming change.
>
> There is an option to disable the interface name change in
> raspi-config.
>
Tauno, that sounds promising. I will look into it.
--
Labour - a bunch of rich people convincing poor people to vote for rich
people by telling poor people that "other" rich people are the reason
they are poor.

Peter Thompson

Re: PI Zero W. Another puzzler

<ue56nd$8pt$5@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=7219&group=comp.sys.raspberry-pi#7219

 copy link   Newsgroups: comp.sys.raspberry-pi comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp...@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi,comp.os.linux.misc
Subject: Re: PI Zero W. Another puzzler
Date: Sat, 16 Sep 2023 22:29:17 +0100
Organization: A little, after lunch
Lines: 21
Message-ID: <ue56nd$8pt$5@dont-email.me>
References: <ue3rvl$3otib$1@dont-email.me> <ue4irf$3sfnm$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 16 Sep 2023 21:29:17 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="7088daaf74b6403e5a913752407374c4";
logging-data="9021"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18j8l1W5L5WFRb3zTqAOJIvT7VEngWwSVE="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.15.1
Cancel-Lock: sha1:4ySgDrj8BXsPdBEKnMpvhbcABqo=
In-Reply-To: <ue4irf$3sfnm$1@dont-email.me>
Content-Language: en-GB
 by: The Natural Philosop - Sat, 16 Sep 2023 21:29 UTC

On 16/09/2023 16:50, Tauno Voipio wrote:
> It seems that your Raspi OS is set up to provide 'predictable
> interface names', which changes usb0 to enx<MAC without colons>,
> so your Ethernet is f6:2d:ad:34:f3:9e.
>
> The Network Manager gets confused of the naming change.
>
> There is an option to disable the interface name change in
> raspi-config.
>

Umm. I looked into this it it appeared to be disabled.

I am even more confused

--
“It is dangerous to be right in matters on which the established
authorities are wrong.”

― Voltaire, The Age of Louis XIV

Re: PI Zero W. Another puzzler

<ue5711$8pt$6@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=7220&group=comp.sys.raspberry-pi#7220

 copy link   Newsgroups: comp.sys.raspberry-pi comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp...@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi,comp.os.linux.misc
Subject: Re: PI Zero W. Another puzzler
Date: Sat, 16 Sep 2023 22:34:25 +0100
Organization: A little, after lunch
Lines: 28
Message-ID: <ue5711$8pt$6@dont-email.me>
References: <ue3rvl$3otib$1@dont-email.me> <ue4irf$3sfnm$1@dont-email.me>
<ue56nd$8pt$5@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 16 Sep 2023 21:34:25 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="7088daaf74b6403e5a913752407374c4";
logging-data="9021"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Y8ZcJfgrhTeJBoocVWwJG7GrwZKw7d30="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.15.1
Cancel-Lock: sha1:/upJWRb/g8xQF+tNfXZ7EjbzpLo=
In-Reply-To: <ue56nd$8pt$5@dont-email.me>
Content-Language: en-GB
 by: The Natural Philosop - Sat, 16 Sep 2023 21:34 UTC

On 16/09/2023 22:29, The Natural Philosopher wrote:
> On 16/09/2023 16:50, Tauno Voipio wrote:
>> It seems that your Raspi OS is set up to provide 'predictable
>> interface names', which changes usb0 to enx<MAC without colons>,
>> so your Ethernet is f6:2d:ad:34:f3:9e.
>>
>> The Network Manager gets confused of the naming change.
>>
>> There is an option to disable the interface name change in
>> raspi-config.
>>
>
> Umm. I looked into this it it appeared to be disabled.
>
> I am even more confused
>

Well I explicitly selected to disable it in the config tool and now it
seems to work

Where (what file) is that config option stored?

--
"And if the blind lead the blind, both shall fall into the ditch".

Gospel of St. Mathew 15:14

Network names (Was: PI Zero W. Another puzzler)

<ue5abn$vhqc$1@news.xmission.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=7221&group=comp.sys.raspberry-pi#7221

 copy link   Newsgroups: comp.sys.raspberry-pi comp.os.linux.misc
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: gaze...@shell.xmission.com (Kenny McCormack)
Newsgroups: comp.sys.raspberry-pi,comp.os.linux.misc
Subject: Network names (Was: PI Zero W. Another puzzler)
Date: Sat, 16 Sep 2023 22:31:19 -0000 (UTC)
Organization: The official candy of the new Millennium
Message-ID: <ue5abn$vhqc$1@news.xmission.com>
References: <ue3rvl$3otib$1@dont-email.me> <ue4irf$3sfnm$1@dont-email.me> <ue56nd$8pt$5@dont-email.me> <ue5711$8pt$6@dont-email.me>
Injection-Date: Sat, 16 Sep 2023 22:31:19 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4";
logging-data="1034060"; mail-complaints-to="abuse@xmission.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gazelle@shell.xmission.com (Kenny McCormack)
 by: Kenny McCormack - Sat, 16 Sep 2023 22:31 UTC

In article <ue5711$8pt$6@dont-email.me>,
The Natural Philosopher <tnp@invalid.invalid> wrote:
....
>Well I explicitly selected to disable it in the config tool and now it
>seems to work

That's good. I was going to comment to that effect (that the network names
thing was your issue, but others beat me to it.

>Where (what file) is that config option stored?

The standard advice given at this point is to look at the code in
/usr/bin/raspi-config. It is a shell script, and reasonably readable.

Searching around a bit, I found this function:

get_net_names() {
if grep -q "net.ifnames=0" $CMDLINE || [ "$(readlink -f /etc/systemd/network/99-def
ault.link)" = "/dev/null" ] ; then
echo 1
else
echo 0
fi
}

I think that should give you the general idea.
there is also a set_net_names() function in there too.

Two other comments:

1) This Orwellian termed "predictable names" thing is a real PIA. To be
fair, it is probably the sort of thing that is a good thing if you
a) really need it and b) can deal with the fallout. But for most
people, it is just a PIA. It was added to RaspiOS a few releases
back, but then when people complained about it, they made it
off-by-default. So, you must be running one of the versions where
it is on-by-default.

2) You might want to join the Raspberry Pi help forum and ask your
questions there. I say this entirely in peaces and love - this is
not a "You're off topic in my newsgroup!" flame. It is a good
forum and they are very attentive to people's questions such as
yours. forums.raspberrypi.com should get you there.

I'm not trying to discourage you from posting RPi questions to
Usenet, but I think you'll do better there.

--
The randomly chosen signature file that would have appeared here is more than 4
lines long. As such, it violates one or more Usenet RFCs. In order to remain
in compliance with said RFCs, the actual sig can be found at the following URL:
http://user.xmission.com/~gazelle/Sigs/Rorschach

Re: Network names (Was: PI Zero W. Another puzzler)

<ue5dt6$1qr2$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=7222&group=comp.sys.raspberry-pi#7222

 copy link   Newsgroups: comp.sys.raspberry-pi comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chr...@mshome.net (Chris Elvidge)
Newsgroups: comp.sys.raspberry-pi,comp.os.linux.misc
Subject: Re: Network names (Was: PI Zero W. Another puzzler)
Date: Sun, 17 Sep 2023 00:31:45 +0100
Organization: A noiseless patient Spider
Lines: 60
Message-ID: <ue5dt6$1qr2$1@dont-email.me>
References: <ue3rvl$3otib$1@dont-email.me> <ue4irf$3sfnm$1@dont-email.me>
<ue56nd$8pt$5@dont-email.me> <ue5711$8pt$6@dont-email.me>
<ue5abn$vhqc$1@news.xmission.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 16 Sep 2023 23:31:51 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="47dbd83127e81f5519a7686f01f0e5d6";
logging-data="60258"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18RhyhVRf8tV26jXIq7XYi2qCAb9tESDqE="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
Thunderbird/52.2.1 Lightning/5.4
Cancel-Lock: sha1:GtRUQe4lZzh37rP8orXkLlaUQ1Y=
Content-Language: en-GB
In-Reply-To: <ue5abn$vhqc$1@news.xmission.com>
 by: Chris Elvidge - Sat, 16 Sep 2023 23:31 UTC

On 16/09/2023 23:31, Kenny McCormack wrote:
> In article <ue5711$8pt$6@dont-email.me>,
> The Natural Philosopher <tnp@invalid.invalid> wrote:
> ...
>> Well I explicitly selected to disable it in the config tool and now it
>> seems to work
>
> That's good. I was going to comment to that effect (that the network names
> thing was your issue, but others beat me to it.
>
>> Where (what file) is that config option stored?

On a full RPi 3B added ' net.ifnames=0 biosdevname=0 ' to end of command
line in /boot/cmdline.txt to get "old" interface names

This may not help of course. I don't know about Pi0.

>
> The standard advice given at this point is to look at the code in
> /usr/bin/raspi-config. It is a shell script, and reasonably readable.
>
> Searching around a bit, I found this function:
>
> get_net_names() {
> if grep -q "net.ifnames=0" $CMDLINE || [ "$(readlink -f /etc/systemd/network/99-def
> ault.link)" = "/dev/null" ] ; then
> echo 1
> else
> echo 0
> fi
> }
>
> I think that should give you the general idea.
> there is also a set_net_names() function in there too.
>
> Two other comments:
>
> 1) This Orwellian termed "predictable names" thing is a real PIA. To be
> fair, it is probably the sort of thing that is a good thing if you
> a) really need it and b) can deal with the fallout. But for most
> people, it is just a PIA. It was added to RaspiOS a few releases
> back, but then when people complained about it, they made it
> off-by-default. So, you must be running one of the versions where
> it is on-by-default.
>
> 2) You might want to join the Raspberry Pi help forum and ask your
> questions there. I say this entirely in peaces and love - this is
> not a "You're off topic in my newsgroup!" flame. It is a good
> forum and they are very attentive to people's questions such as
> yours. forums.raspberrypi.com should get you there.
>
> I'm not trying to discourage you from posting RPi questions to
> Usenet, but I think you'll do better there.
>

--
Chris Elvidge, England
BEWITCHED, DOES NOT PROMOTE SATANISM

Why did you do that? (Was: Network names (Was: PI Zero W. Another puzzler))

<ue5ptj$vr9q$1@news.xmission.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=7223&group=comp.sys.raspberry-pi#7223

 copy link   Newsgroups: comp.sys.raspberry-pi comp.os.linux.misc
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: gaze...@shell.xmission.com (Kenny McCormack)
Newsgroups: comp.sys.raspberry-pi,comp.os.linux.misc
Subject: Why did you do that? (Was: Network names (Was: PI Zero W. Another puzzler))
Date: Sun, 17 Sep 2023 02:56:51 -0000 (UTC)
Organization: The official candy of the new Millennium
Message-ID: <ue5ptj$vr9q$1@news.xmission.com>
References: <ue3rvl$3otib$1@dont-email.me> <ue5711$8pt$6@dont-email.me> <ue5abn$vhqc$1@news.xmission.com> <ue5dt6$1qr2$1@dont-email.me>
Injection-Date: Sun, 17 Sep 2023 02:56:51 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4";
logging-data="1043770"; mail-complaints-to="abuse@xmission.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gazelle@shell.xmission.com (Kenny McCormack)
 by: Kenny McCormack - Sun, 17 Sep 2023 02:56 UTC

In article <ue5dt6$1qr2$1@dont-email.me>,
Chris Elvidge <chris@mshome.net> wrote:
....
>>> Where (what file) is that config option stored?
>
>On a full RPi 3B added ' net.ifnames=0 biosdevname=0 ' to end of command
>line in /boot/cmdline.txt to get "old" interface names

Why did you respond to a post of mine (*), rather than OP, to answer OP's
question? And to basically answer it by giving half the answer I gave?

(*) And quoting the whole thing, when you were, in fact, responding to none
of it...

>This may not help of course. I don't know about Pi0.

Yeah, it is the same. It is only a function of the OS version, not of the
hardware involved. RPi is very good about having the same OS for all
flavors of the board.

--
If Jeb is Charlie Brown kicking a football-pulled-away, Mitt is a '50s
housewife with a black eye who insists to her friends the roast wasn't
dry.

Re: Network names (Was: PI Zero W. Another puzzler)

<ue6a1l$9eaf$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=7224&group=comp.sys.raspberry-pi#7224

 copy link   Newsgroups: comp.sys.raspberry-pi comp.os.linux.misc
Followup: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: richard....@gmail.com (Richard Harnden)
Newsgroups: comp.sys.raspberry-pi,comp.os.linux.misc
Subject: Re: Network names (Was: PI Zero W. Another puzzler)
Followup-To: comp.sys.raspberry-pi
Date: Sun, 17 Sep 2023 08:32:05 +0100
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <ue6a1l$9eaf$1@dont-email.me>
References: <ue3rvl$3otib$1@dont-email.me> <ue4irf$3sfnm$1@dont-email.me>
<ue56nd$8pt$5@dont-email.me> <ue5711$8pt$6@dont-email.me>
<ue5abn$vhqc$1@news.xmission.com>
Reply-To: nospam.harnden@gmail.com
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 17 Sep 2023 07:32:05 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="2e1de0048fc984e22a1d2282c7670503";
logging-data="309583"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18QNWQjR68vihFQVvFIG8wVxK1kbaJOXxs="
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0)
Gecko/20100101 Thunderbird/102.15.1
Cancel-Lock: sha1:runbptCpTSu+6bE6mcnZdkazIA0=
In-Reply-To: <ue5abn$vhqc$1@news.xmission.com>
 by: Richard Harnden - Sun, 17 Sep 2023 07:32 UTC

On 16/09/2023 23:31, Kenny McCormack wrote:
>
> 2) You might want to join the Raspberry Pi help forum and ask your
> questions there. I say this entirely in peaces and love - this is
> not a "You're off topic in my newsgroup!" flame. It is a good
> forum and they are very attentive to people's questions such as
> yours. forums.raspberrypi.com should get you there.
>
> I'm not trying to discourage you from posting RPi questions to
> Usenet, but I think you'll do better there.
>

I think c.s.raspberry-pi is a perfectly good corner of usenet in which
to post Raspberry Pi questions :)

Re: Network names (Was: PI Zero W. Another puzzler)

<20230917084313.b1052a54cd60f92b29aa0616@eircom.net>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=7225&group=comp.sys.raspberry-pi#7225

 copy link   Newsgroups: comp.sys.raspberry-pi comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ste...@eircom.net (Ahem A Rivet's Shot)
Newsgroups: comp.sys.raspberry-pi,comp.os.linux.misc
Subject: Re: Network names (Was: PI Zero W. Another puzzler)
Date: Sun, 17 Sep 2023 08:43:13 +0100
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <20230917084313.b1052a54cd60f92b29aa0616@eircom.net>
References: <ue3rvl$3otib$1@dont-email.me>
<ue4irf$3sfnm$1@dont-email.me>
<ue56nd$8pt$5@dont-email.me>
<ue5711$8pt$6@dont-email.me>
<ue5abn$vhqc$1@news.xmission.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="e5cb2b98f4040974e8b7a1f63fa97e70";
logging-data="320099"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/RRBwIfNszJq7SqMdp/N0RZ24ckmVQiyw="
Cancel-Lock: sha1:GK82ZwZ66l7pSceJGIXFjvHMwqk=
X-Clacks-Overhead: "GNU Terry Pratchett"
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd13.1)
 by: Ahem A Rivet's - Sun, 17 Sep 2023 07:43 UTC

On Sat, 16 Sep 2023 22:31:19 -0000 (UTC)
gazelle@shell.xmission.com (Kenny McCormack) wrote:

> 1) This Orwellian termed "predictable names" thing is a real PIA. To
> be fair, it is probably the sort of thing that is a good thing if you
> a) really need it and b) can deal with the fallout.

It's most useful (read pretty much essential) if there are multiple
interfaces and you want to make sure they get the right static routes and
firewall rules.

--
Steve O'Hara-Smith
Odds and Ends at http://www.sohara.org/
Host: Beautiful Theory meet Inconvenient Fact
Obit: Beautiful Theory died today of factual inconsistency

Re: Network names (Was: PI Zero W. Another puzzler)

<ue6ce1$104m3$1@news.xmission.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=7226&group=comp.sys.raspberry-pi#7226

 copy link   Newsgroups: comp.sys.raspberry-pi comp.os.linux.misc
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: gaze...@shell.xmission.com (Kenny McCormack)
Newsgroups: comp.sys.raspberry-pi,comp.os.linux.misc
Subject: Re: Network names (Was: PI Zero W. Another puzzler)
Date: Sun, 17 Sep 2023 08:12:49 -0000 (UTC)
Organization: The official candy of the new Millennium
Message-ID: <ue6ce1$104m3$1@news.xmission.com>
References: <ue3rvl$3otib$1@dont-email.me> <ue5711$8pt$6@dont-email.me> <ue5abn$vhqc$1@news.xmission.com> <20230917084313.b1052a54cd60f92b29aa0616@eircom.net>
Injection-Date: Sun, 17 Sep 2023 08:12:49 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4";
logging-data="1053379"; mail-complaints-to="abuse@xmission.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gazelle@shell.xmission.com (Kenny McCormack)
 by: Kenny McCormack - Sun, 17 Sep 2023 08:12 UTC

In article <20230917084313.b1052a54cd60f92b29aa0616@eircom.net>,
Ahem A Rivet's Shot <steveo@eircom.net> wrote:
>On Sat, 16 Sep 2023 22:31:19 -0000 (UTC)
>gazelle@shell.xmission.com (Kenny McCormack) wrote:
>
>> 1) This Orwellian termed "predictable names" thing is a real PIA. To
>> be fair, it is probably the sort of thing that is a good thing if you
>> a) really need it and b) can deal with the fallout.
>
> It's most useful (read pretty much essential) if there are multiple
>interfaces and you want to make sure they get the right static routes and
>firewall rules.

You're probably right. Which is about 0.000001% of users.

Which is why they were right to make it off-by-default. Those who need it,
will be able to enable it.

For most people, it was: What the h*** is this???

--
I love the poorly educated.

Re: Network names (Was: PI Zero W. Another puzzler)

<ue6cng$9t02$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=7227&group=comp.sys.raspberry-pi#7227

 copy link   Newsgroups: comp.sys.raspberry-pi comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp...@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi,comp.os.linux.misc
Subject: Re: Network names (Was: PI Zero W. Another puzzler)
Date: Sun, 17 Sep 2023 09:17:51 +0100
Organization: A little, after lunch
Lines: 62
Message-ID: <ue6cng$9t02$1@dont-email.me>
References: <ue3rvl$3otib$1@dont-email.me> <ue4irf$3sfnm$1@dont-email.me>
<ue56nd$8pt$5@dont-email.me> <ue5711$8pt$6@dont-email.me>
<ue5abn$vhqc$1@news.xmission.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 17 Sep 2023 08:17:52 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="315702974463422239a68aede622b53a";
logging-data="324610"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18C7xlsgcHfRaZ3VN++CvohNks4q5u1o3Y="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.15.1
Cancel-Lock: sha1:wCimxHRbFqhvjJE/2mzCqiZqDh0=
Content-Language: en-GB
In-Reply-To: <ue5abn$vhqc$1@news.xmission.com>
 by: The Natural Philosop - Sun, 17 Sep 2023 08:17 UTC

On 16/09/2023 23:31, Kenny McCormack wrote:
> In article <ue5711$8pt$6@dont-email.me>,
> The Natural Philosopher <tnp@invalid.invalid> wrote:
> ...
>> Well I explicitly selected to disable it in the config tool and now it
>> seems to work
>
> That's good. I was going to comment to that effect (that the network names
> thing was your issue, but others beat me to it.
>
>> Where (what file) is that config option stored?
>
> The standard advice given at this point is to look at the code in
> /usr/bin/raspi-config. It is a shell script, and reasonably readable.
>
> Searching around a bit, I found this function:
>
> get_net_names() {
> if grep -q "net.ifnames=0" $CMDLINE || [ "$(readlink -f /etc/systemd/network/99-def
> ault.link)" = "/dev/null" ] ; then
> echo 1
> else
> echo 0
> fi
> }
>
> I think that should give you the general idea.
> there is also a set_net_names() function in there too.
>
Yeah > found thatr link but couldnt believe it
> Two other comments:
>
> 1) This Orwellian termed "predictable names" thing is a real PIA. To be
> fair, it is probably the sort of thing that is a good thing if you
> a) really need it and b) can deal with the fallout. But for most
> people, it is just a PIA. It was added to RaspiOS a few releases
> back, but then when people complained about it, they made it
> off-by-default. So, you must be running one of the versions where
> it is on-by-default.
>
AFAIK I downloaded the latest a couple of months ago.

> 2) You might want to join the Raspberry Pi help forum and ask your
> questions there. I say this entirely in peaces and love - this is
> not a "You're off topic in my newsgroup!" flame. It is a good
> forum and they are very attentive to people's questions such as
> yours. forums.raspberrypi.com should get you there.
>
I found many instances of the problem there. I found no solution

> I'm not trying to discourage you from posting RPi questions to
> Usenet, but I think you'll do better there.
>

As it happens I have done pretty well here so far..;-)

--
"And if the blind lead the blind, both shall fall into the ditch".

Gospel of St. Mathew 15:14

Re: Network names (Was: PI Zero W. Another puzzler)

<ue6cqp$9t02$2@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=7228&group=comp.sys.raspberry-pi#7228

 copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp...@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Network names (Was: PI Zero W. Another puzzler)
Date: Sun, 17 Sep 2023 09:19:37 +0100
Organization: A little, after lunch
Lines: 27
Message-ID: <ue6cqp$9t02$2@dont-email.me>
References: <ue3rvl$3otib$1@dont-email.me> <ue4irf$3sfnm$1@dont-email.me>
<ue56nd$8pt$5@dont-email.me> <ue5711$8pt$6@dont-email.me>
<ue5abn$vhqc$1@news.xmission.com> <ue6a1l$9eaf$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 17 Sep 2023 08:19:38 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="315702974463422239a68aede622b53a";
logging-data="324610"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18p0KOwYB33Gk1LuA+/LPrjdSTCpY2xa7E="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.15.1
Cancel-Lock: sha1:tZ+HP0P50UrpsSZ8yNmF/LJOeiw=
Content-Language: en-GB
In-Reply-To: <ue6a1l$9eaf$1@dont-email.me>
 by: The Natural Philosop - Sun, 17 Sep 2023 08:19 UTC

On 17/09/2023 08:32, Richard Harnden wrote:
> On 16/09/2023 23:31, Kenny McCormack wrote:
>>
>>      2) You might want to join the Raspberry Pi help forum and ask your
>>     questions there.  I say this entirely in peaces and love - this is
>>     not a "You're off topic in my newsgroup!" flame.  It is a good
>>     forum and they are very attentive to people's questions such as
>>     yours.  forums.raspberrypi.com should get you there.
>>
>>     I'm not trying to discourage you from posting RPi questions to
>>     Usenet, but I think you'll do better there.
>>
>
> I think c.s.raspberry-pi is a perfectly good corner of usenet in which
> to post Raspberry Pi questions :)
>

I think his point was that forums.raspberrypi.com might be a better
places to get *answers*.

--
How fortunate for governments that the people they administer don't think.

Adolf Hitler

Re: PI Zero W. Another puzzler

<ue73k5$dm82$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=7241&group=comp.sys.raspberry-pi#7241

 copy link   Newsgroups: comp.sys.raspberry-pi comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tauno.vo...@notused.fi.invalid (Tauno Voipio)
Newsgroups: comp.sys.raspberry-pi,comp.os.linux.misc
Subject: Re: PI Zero W. Another puzzler
Date: Sun, 17 Sep 2023 17:48:37 +0300
Organization: A noiseless patient Spider
Lines: 34
Message-ID: <ue73k5$dm82$1@dont-email.me>
References: <ue3rvl$3otib$1@dont-email.me> <ue4irf$3sfnm$1@dont-email.me>
<ue56nd$8pt$5@dont-email.me> <ue5711$8pt$6@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 17 Sep 2023 14:48:37 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="e1183e541cc0d412039d174e47240467";
logging-data="448770"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Eu/0xtdOZNCwLdc9+nFEkSO7o39bd2gA="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:jEI1bw7F8DDmpctQwFeb1Ki709k=
In-Reply-To: <ue5711$8pt$6@dont-email.me>
Content-Language: en-US
 by: Tauno Voipio - Sun, 17 Sep 2023 14:48 UTC

On 17.9.2023 0.34, The Natural Philosopher wrote:
> On 16/09/2023 22:29, The Natural Philosopher wrote:
>> On 16/09/2023 16:50, Tauno Voipio wrote:
>>> It seems that your Raspi OS is set up to provide 'predictable
>>> interface names', which changes usb0 to enx<MAC without colons>,
>>> so your Ethernet is f6:2d:ad:34:f3:9e.
>>>
>>> The Network Manager gets confused of the naming change.
>>>
>>> There is an option to disable the interface name change in
>>> raspi-config.
>>>
>>
>> Umm. I looked into this it it appeared to be disabled.
>>
>> I am even more confused
>>
>
> Well I explicitly selected to disable it in the config tool and now it
> seems to work
>
> Where (what file) is that config option stored?

The simple way to keep the original name on USB Ethernet is to
create a symlink /etc/systemd/network/73-usb-net-by-mac.link
pointing to /dev/null.

Of course, the link has to be created with sudo or running as root.

--

-TV

Re: Network names (Was: PI Zero W. Another puzzler)

<ue73s6$dm82$2@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=7242&group=comp.sys.raspberry-pi#7242

 copy link   Newsgroups: comp.sys.raspberry-pi comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tauno.vo...@notused.fi.invalid (Tauno Voipio)
Newsgroups: comp.sys.raspberry-pi,comp.os.linux.misc
Subject: Re: Network names (Was: PI Zero W. Another puzzler)
Date: Sun, 17 Sep 2023 17:52:54 +0300
Organization: A noiseless patient Spider
Lines: 33
Message-ID: <ue73s6$dm82$2@dont-email.me>
References: <ue3rvl$3otib$1@dont-email.me> <ue5711$8pt$6@dont-email.me>
<ue5abn$vhqc$1@news.xmission.com>
<20230917084313.b1052a54cd60f92b29aa0616@eircom.net>
<ue6ce1$104m3$1@news.xmission.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 17 Sep 2023 14:52:54 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="e1183e541cc0d412039d174e47240467";
logging-data="448770"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18LWPaYQQTGyV0KF8/EOzjGsgvBHS0VeLg="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:jkG2BPpUiAwH2Fya7Pke7cKsEbg=
Content-Language: en-US
In-Reply-To: <ue6ce1$104m3$1@news.xmission.com>
 by: Tauno Voipio - Sun, 17 Sep 2023 14:52 UTC

On 17.9.2023 11.12, Kenny McCormack wrote:
> In article <20230917084313.b1052a54cd60f92b29aa0616@eircom.net>,
> Ahem A Rivet's Shot <steveo@eircom.net> wrote:
>> On Sat, 16 Sep 2023 22:31:19 -0000 (UTC)
>> gazelle@shell.xmission.com (Kenny McCormack) wrote:
>>
>>> 1) This Orwellian termed "predictable names" thing is a real PIA. To
>>> be fair, it is probably the sort of thing that is a good thing if you
>>> a) really need it and b) can deal with the fallout.
>>
>> It's most useful (read pretty much essential) if there are multiple
>> interfaces and you want to make sure they get the right static routes and
>> firewall rules.
>
> You're probably right. Which is about 0.000001% of users.
>
> Which is why they were right to make it off-by-default. Those who need it,
> will be able to enable it.
>
> For most people, it was: What the h*** is this???

It is one of the side-effects of systemd.

If I need many Ethernet interfaces on a Pi, I'll use a VLAN aware
switch and put the separate ports in separate VLANS, trunked to
the Pi connection. The VLANs can be accessed from the OS directly
as separate virtual interfaces.

--

-TV

Re: PI Zero W. Another puzzler

<ue73vl$dmc3$6@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=7243&group=comp.sys.raspberry-pi#7243

 copy link   Newsgroups: comp.sys.raspberry-pi comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp...@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi,comp.os.linux.misc
Subject: Re: PI Zero W. Another puzzler
Date: Sun, 17 Sep 2023 15:54:45 +0100
Organization: A little, after lunch
Lines: 49
Message-ID: <ue73vl$dmc3$6@dont-email.me>
References: <ue3rvl$3otib$1@dont-email.me> <ue4irf$3sfnm$1@dont-email.me>
<ue56nd$8pt$5@dont-email.me> <ue5711$8pt$6@dont-email.me>
<ue73k5$dm82$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 17 Sep 2023 14:54:45 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="315702974463422239a68aede622b53a";
logging-data="448899"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/yR5BitFvlDepGaUbtHotC1wT9CGA7RUw="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.15.1
Cancel-Lock: sha1:BuaQ3bk5zp4GbcgEdwzQzWKfFDE=
Content-Language: en-GB
In-Reply-To: <ue73k5$dm82$1@dont-email.me>
 by: The Natural Philosop - Sun, 17 Sep 2023 14:54 UTC

On 17/09/2023 15:48, Tauno Voipio wrote:
> On 17.9.2023 0.34, The Natural Philosopher wrote:
>> On 16/09/2023 22:29, The Natural Philosopher wrote:
>>> On 16/09/2023 16:50, Tauno Voipio wrote:
>>>> It seems that your Raspi OS is set up to provide 'predictable
>>>> interface names', which changes usb0 to enx<MAC without colons>,
>>>> so your Ethernet is f6:2d:ad:34:f3:9e.
>>>>
>>>> The Network Manager gets confused of the naming change.
>>>>
>>>> There is an option to disable the interface name change in
>>>> raspi-config.
>>>>
>>>
>>> Umm. I looked into this it it appeared to be disabled.
>>>
>>> I am even more confused
>>>
>>
>> Well I explicitly selected to disable it in the config tool and now it
>> seems to work
>>
>> Where (what file) is that config option stored?
>
>
> The simple way to keep the original name on USB Ethernet is to
> create a symlink /etc/systemd/network/73-usb-net-by-mac.link
> pointing to /dev/null.
>
> Of course, the link has to be created with sudo or running as root.
>

Yes. Something - presumably Raspi-config - did that. It was confusing.
The NO option was highlighted in that program so I assumed that was its
current state, but hitting return seems to have made it NO when it
wasn't before. And a find mtime -1 revealed that that was the only
likely looking file that had changed.

Only that idiot Poettering could have conceived of the idea of linking a
file to /dev/null was in fact a way to configure a computer.

--
The theory of Communism may be summed up in one sentence: Abolish all
private property.

Karl Marx

Re: Network names (Was: PI Zero W. Another puzzler)

<ue74ps$e079$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=7245&group=comp.sys.raspberry-pi#7245

 copy link   Newsgroups: comp.sys.raspberry-pi comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp...@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.sys.raspberry-pi,comp.os.linux.misc
Subject: Re: Network names (Was: PI Zero W. Another puzzler)
Date: Sun, 17 Sep 2023 16:08:43 +0100
Organization: A little, after lunch
Lines: 71
Message-ID: <ue74ps$e079$1@dont-email.me>
References: <ue3rvl$3otib$1@dont-email.me> <ue5711$8pt$6@dont-email.me>
<ue5abn$vhqc$1@news.xmission.com>
<20230917084313.b1052a54cd60f92b29aa0616@eircom.net>
<ue6ce1$104m3$1@news.xmission.com> <ue73s6$dm82$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 17 Sep 2023 15:08:44 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="315702974463422239a68aede622b53a";
logging-data="458985"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+6ukrFz2NqVQQe5yrP1eGRSdiQhCHpSnI="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.15.1
Cancel-Lock: sha1:h7SGCq8SPTsbMrdMdTBhhTZawaQ=
Content-Language: en-GB
In-Reply-To: <ue73s6$dm82$2@dont-email.me>
 by: The Natural Philosop - Sun, 17 Sep 2023 15:08 UTC

On 17/09/2023 15:52, Tauno Voipio wrote:
> On 17.9.2023 11.12, Kenny McCormack wrote:
>> In article <20230917084313.b1052a54cd60f92b29aa0616@eircom.net>,
>> Ahem A Rivet's Shot  <steveo@eircom.net> wrote:
>>> On Sat, 16 Sep 2023 22:31:19 -0000 (UTC)
>>> gazelle@shell.xmission.com (Kenny McCormack) wrote:
>>>
>>>>      1) This Orwellian termed "predictable names" thing is a real
>>>> PIA.  To
>>>> be fair, it is probably the sort of thing that is a good thing if you
>>>>     a) really need it and b) can deal with the fallout.
>>>
>>>     It's most useful (read pretty much essential) if there are multiple
>>> interfaces and you want to make sure they get the right static routes
>>> and
>>> firewall rules.
>>
>> You're probably right.  Which is about 0.000001% of users.
>>
>> Which is why they were right to make it off-by-default.  Those who
>> need it,
>> will be able to enable it.
>>
>> For most people, it was: What the h*** is this???
>
>
> It is one of the side-effects of systemd.
>
> If I need many Ethernet interfaces on a Pi, I'll use a VLAN aware
> switch and put the separate ports in separate VLANS, trunked to
> the Pi connection. The VLANs can be accessed from the OS directly
> as separate virtual interfaces.
>
Well this PI has 'two, but very small' as the song says - usb0 and wlan0.

It seems perfectly simple to distinguish between them, to me.

I cant remember how they were configured - I cargo culted some script -
but the issue seemed to be that dnsmasq wasnt in the end expecting to
deal with the interface as it became renamed, but with usb0.

i.e. in /etc/dnsmasq.conf we have

interface=usb0
bind-dynamic
domain-needed
bogus-priv
dhcp-range=172.16.21.1,172.16.21.5,255.255.0.0,12h

So that would explain why, if the interface was renamed at some point,
the client machine couldn't get DHCP.

Oh. I just looked and that interface has now disconnected itself. Maybe
the problem is still extant.

Nope. It still seems to work.

I am back to two interfaces.

I do get it that its handy to have unique Ids for disks and interfaces
so that whether a disk is /dev/sda or /dev/sdb it gets mounted in the
correct place....and likewise if one had a dozen usb0 1 2 3 etc Ethernet
adapters ..one would want to give them some sort of unique id, but, as
you say, if that is where you are going you probably have the nous to
enable smart ID via MAC address anyway, without it being the default

--
No Apple devices were knowingly used in the preparation of this post.

Re: Network names (Was: PI Zero W. Another puzzler)

<ue7g35$g127$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=7253&group=comp.sys.raspberry-pi#7253

 copy link   Newsgroups: comp.sys.raspberry-pi comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tauno.vo...@notused.fi.invalid (Tauno Voipio)
Newsgroups: comp.sys.raspberry-pi,comp.os.linux.misc
Subject: Re: Network names (Was: PI Zero W. Another puzzler)
Date: Sun, 17 Sep 2023 21:21:25 +0300
Organization: A noiseless patient Spider
Lines: 76
Message-ID: <ue7g35$g127$1@dont-email.me>
References: <ue3rvl$3otib$1@dont-email.me> <ue5711$8pt$6@dont-email.me>
<ue5abn$vhqc$1@news.xmission.com>
<20230917084313.b1052a54cd60f92b29aa0616@eircom.net>
<ue6ce1$104m3$1@news.xmission.com> <ue73s6$dm82$2@dont-email.me>
<ue74ps$e079$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 17 Sep 2023 18:21:25 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="e1183e541cc0d412039d174e47240467";
logging-data="525383"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX188nK2OkHREgUjpv79t5dyjbAGYUw/ubdA="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:XCwOBLtDeJssiVh77VmEBJIhQaU=
In-Reply-To: <ue74ps$e079$1@dont-email.me>
Content-Language: en-US
 by: Tauno Voipio - Sun, 17 Sep 2023 18:21 UTC

On 17.9.2023 18.08, The Natural Philosopher wrote:
> On 17/09/2023 15:52, Tauno Voipio wrote:
>> On 17.9.2023 11.12, Kenny McCormack wrote:
>>> In article <20230917084313.b1052a54cd60f92b29aa0616@eircom.net>,
>>> Ahem A Rivet's Shot  <steveo@eircom.net> wrote:
>>>> On Sat, 16 Sep 2023 22:31:19 -0000 (UTC)
>>>> gazelle@shell.xmission.com (Kenny McCormack) wrote:
>>>>
>>>>>      1) This Orwellian termed "predictable names" thing is a real
>>>>> PIA.  To
>>>>> be fair, it is probably the sort of thing that is a good thing if you
>>>>>     a) really need it and b) can deal with the fallout.
>>>>
>>>>     It's most useful (read pretty much essential) if there are multiple
>>>> interfaces and you want to make sure they get the right static
>>>> routes and
>>>> firewall rules.
>>>
>>> You're probably right.  Which is about 0.000001% of users.
>>>
>>> Which is why they were right to make it off-by-default.  Those who
>>> need it,
>>> will be able to enable it.
>>>
>>> For most people, it was: What the h*** is this???
>>
>>
>> It is one of the side-effects of systemd.
>>
>> If I need many Ethernet interfaces on a Pi, I'll use a VLAN aware
>> switch and put the separate ports in separate VLANS, trunked to
>> the Pi connection. The VLANs can be accessed from the OS directly
>> as separate virtual interfaces.
>>
> Well this PI has 'two, but very small'  as the song says - usb0 and wlan0.
>
> It seems perfectly simple to distinguish between them, to me.
>
> I cant remember how they were configured - I cargo culted some script -
> but the issue seemed to be that dnsmasq wasnt in the end expecting to
> deal with the interface as it became renamed, but with usb0.
>
> i.e. in /etc/dnsmasq.conf we have
>
> interface=usb0
> bind-dynamic
> domain-needed
> bogus-priv
> dhcp-range=172.16.21.1,172.16.21.5,255.255.0.0,12h
>
> So that would explain why, if the interface was renamed at some point,
> the client machine couldn't get DHCP.
>
> Oh. I just looked and that interface has now disconnected itself. Maybe
> the problem is still extant.
>
> Nope. It still seems to work.
>
> I am back to two interfaces.
>
> I do get it that its handy to have unique Ids for disks and interfaces
> so that whether a disk is /dev/sda or /dev/sdb it gets mounted in the
> correct place....and likewise if one had a dozen usb0 1 2 3 etc Ethernet
> adapters ..one would want to give them some sort of unique id, but, as
> you say, if that is where you are going you probably have the nous to
> enable smart ID via MAC address anyway, without it being the default
>
>
>

wlan0 is a different beast, not a subject to current discussion.

--

-TV

Re: Network names (Was: PI Zero W. Another puzzler)

<uf6esa$1gk9b$3@news.xmission.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=7424&group=comp.sys.raspberry-pi#7424

 copy link   Newsgroups: comp.sys.raspberry-pi comp.os.linux.misc
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: gaze...@shell.xmission.com (Kenny McCormack)
Newsgroups: comp.sys.raspberry-pi,comp.os.linux.misc
Subject: Re: Network names (Was: PI Zero W. Another puzzler)
Date: Fri, 29 Sep 2023 12:10:50 -0000 (UTC)
Organization: The official candy of the new Millennium
Message-ID: <uf6esa$1gk9b$3@news.xmission.com>
References: <ue3rvl$3otib$1@dont-email.me> <ue5711$8pt$6@dont-email.me> <ue5abn$vhqc$1@news.xmission.com> <ue6a1l$9eaf$1@dont-email.me>
Injection-Date: Fri, 29 Sep 2023 12:10:50 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4";
logging-data="1593643"; mail-complaints-to="abuse@xmission.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gazelle@shell.xmission.com (Kenny McCormack)
 by: Kenny McCormack - Fri, 29 Sep 2023 12:10 UTC

In article <ue6a1l$9eaf$1@dont-email.me>,
Richard Harnden <nospam.harnden@gmail.com> wrote:
>On 16/09/2023 23:31, Kenny McCormack wrote:
>>
>> 2) You might want to join the Raspberry Pi help forum and ask your
>> questions there. I say this entirely in peaces and love - this is
>> not a "You're off topic in my newsgroup!" flame. It is a good
>> forum and they are very attentive to people's questions such as
>> yours. forums.raspberrypi.com should get you there.
>>
>> I'm not trying to discourage you from posting RPi questions to
>> Usenet, but I think you'll do better there.
>>
>
>I think c.s.raspberry-pi is a perfectly good corner of usenet in which
>to post Raspberry Pi questions :)
>

I get what you're saying. And, as I went to great lengths to explain in
the text quoted above, I'm absolutely *not* doing the usual "You're
off-topic! slag". I am genuinely trying to help OP.

But have you looked at the content of the c.s.r group? It is dominated by
3 (last time I checked) interminable threads about nonsense. Also, it is
(or was) dominated by discussions of running various flavors of BSD on the
Pi, something basically nobody does (*). So, yeah, it has pretty much lost its
way and its relevance.

(*) Pretty much everyone runs RaspiOS - and for good reason.

Editor's note: I see that this thread is cross-posted into c.s.r. So
noted. I am reading/posting to it from c.o.l.m

--
So to cure the problem of arrogant incompetent rich people we should turn
the government over to an arrogant incompetent trust fund billionaire
who knows nothing about government and who has never held a job in his
entire spoiled life?

1
server_pubkey.txt

rocksolid light 0.9.7
clearnet tor