Nп/п : 67 из 100
 От   : Chris Elvidge                       2:5075/128        17 сен 23 00:31:45
 К    : Kenny McCormack                                       17 сен 23 02:35:02
 Тема : Re: Network names (Was: PI Zero W. Another puzzler)
----------------------------------------------------------------------------------
                                                                                 
@MSGID: 1@dont-email.me> c1fa4c58
@REPLY: 1@news.xmission.com>
9ac5ac08
@REPLYADDR Chris Elvidge <chris@mshome.net>
@REPLYTO 2:5075/128 Chris Elvidge
@CHRS: CP866 2
@RFC: 1 0
@RFC-Message-ID: 1@dont-email.me>
@RFC-References: 1@dont-email.me>
1@dont-email.me> 5@dont-email.me> 6@dont-email.me>
1@news.xmission.com>
@TZUTC: 0100
@PID: Mozilla/5.0 (X11; Linux x86_64; rv:52.0)
Gecko/20100101 Thunderbird/52.2.1 Lightning/5.4
@TID: FIDOGATE-5.12-ge4e8b94
On 16/09/2023 23:31, Kenny McCormack wrote:
> In article 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
 --- Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
Thunderbird/52.2.1 Lightning/5.4
 * Origin: A noiseless patient Spider (2:5075/128)
SEEN-BY: 5001/100 5005/49 5015/255 5019/40 5020/715
848 1042 4441 12000
SEEN-BY: 5030/49 1081 5058/104 5075/128
@PATH: 5075/128 5020/1042 4441



   GoldED+ VK   │                                                 │   09:55:30    
                                                                                
В этой области больше нет сообщений.

Остаться здесь
Перейти к списку сообщений
Перейти к списку эх