Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Never test for an error condition you don't know how to handle. -- Steinbach


computers / comp.sys.raspberry-pi / bullseye - how to configure eth1 for LAN only ?

SubjectAuthor
* bullseye - how to configure eth1 for LAN only ?R.Wieser
`* Re: bullseye - how to configure eth1 for LAN only ?Chris Elvidge
 `* Re: bullseye - how to configure eth1 for LAN only ?R.Wieser
  `* Re: bullseye - how to configure eth1 for LAN only ?Chris Elvidge
   `* Re: bullseye - how to configure eth1 for LAN only ?R.Wieser
    `* Re: bullseye - how to configure eth1 for LAN only ?Chris Elvidge
     `* Re: bullseye - how to configure eth1 for LAN only ?R.Wieser
      `* Re: bullseye - how to configure eth1 for LAN only ?Chris Elvidge
       `* Re: bullseye - how to configure eth1 for LAN only ?R.Wieser
        +- Re: bullseye - how to configure eth1 for LAN only ?The Natural Philosopher
        +* Re: bullseye - how to configure eth1 for LAN only ?Chris Elvidge
        |`* Re: bullseye - how to configure eth1 for LAN only ?R.Wieser
        | `- Re: bullseye - how to configure eth1 for LAN only ?The Natural Philosopher
        +* Re: bullseye - how to configure eth1 for LAN only ?Chris Elvidge
        |`* Re: bullseye - how to configure eth1 for LAN only ?The Natural Philosopher
        | `* Re: bullseye - how to configure eth1 for LAN only ?Chris Elvidge
        |  `* Re: bullseye - how to configure eth1 for LAN only ?The Natural Philosopher
        |   `* Re: bullseye - how to configure eth1 for LAN only ?Chris Elvidge
        |    `* Re: bullseye - how to configure eth1 for LAN only ?Pancho
        |     `* Re: bullseye - how to configure eth1 for LAN only ?Chris Elvidge
        |      +* Re: bullseye - how to configure eth1 for LAN only ?Pancho
        |      |`- Re: bullseye - how to configure eth1 for LAN only ?Computer Nerd Kev
        |      +* Re: bullseye - how to configure eth1 for LAN only ?The Natural Philosopher
        |      |`* Re: bullseye - how to configure eth1 for LAN only ?Ahem A Rivet's Shot
        |      | `* Re: bullseye - how to configure eth1 for LAN only ?The Natural Philosopher
        |      |  +* Re: bullseye - how to configure eth1 for LAN only ?Martin Gregorie
        |      |  |`* Re: bullseye - how to configure eth1 for LAN only ?The Natural Philosopher
        |      |  | `* Re: bullseye - how to configure eth1 for LAN only ?Martin Gregorie
        |      |  |  +* Re: bullseye - how to configure eth1 for LAN only ?The Natural Philosopher
        |      |  |  |`* Re: bullseye - how to configure eth1 for LAN only ?The Natural Philosopher
        |      |  |  | `- Re: bullseye - how to configure eth1 for LAN only ?Pancho
        |      |  |  `* Re: bullseye - how to configure eth1 for LAN only ?Martin Gregorie
        |      |  |   `- Re: bullseye - how to configure eth1 for LAN only ?The Natural Philosopher
        |      |  `- Re: bullseye - how to configure eth1 for LAN only ?Jan Panteltje
        |      `- Re: bullseye - how to configure eth1 for LAN only ?The Natural Philosopher
        `* Re: bullseye - how to configure eth1 for LAN only ?Ahem A Rivet's Shot
         +* Re: bullseye - how to configure eth1 for LAN only ?Chris Elvidge
         |+* Re: bullseye - how to configure eth1 for LAN only ?Jim Jackson
         ||`- Re: bullseye - how to configure eth1 for LAN only ?Chris Elvidge
         |`* Re: bullseye - how to configure eth1 for LAN only ?R.Wieser
         | `* Re: bullseye - how to configure eth1 for LAN only ?Chris Elvidge
         |  `- Re: bullseye - how to configure eth1 for LAN only ?R.Wieser
         `* Re: bullseye - how to configure eth1 for LAN only ?R.Wieser
          +* Re: bullseye - how to configure eth1 for LAN only ?Ahem A Rivet's Shot
          |`* Re: bullseye - how to configure eth1 for LAN only ?R.Wieser
          | `* Re: bullseye - how to configure eth1 for LAN only ?Ahem A Rivet's Shot
          |  `* Re: bullseye - how to configure eth1 for LAN only ?R.Wieser
          |   `* Re: bullseye - how to configure eth1 for LAN only ?Ahem A Rivet's Shot
          |    `* Re: bullseye - how to configure eth1 for LAN only ?R.Wieser
          |     `* Re: bullseye - how to configure eth1 for LAN only ?Ahem A Rivet's Shot
          |      +* Re: bullseye - how to configure eth1 for LAN only ?R.Wieser
          |      |`- Re: bullseye - how to configure eth1 for LAN only ?Martin Gregorie
          |      +* Re: bullseye - how to configure eth1 for LAN only ?The Natural Philosopher
          |      |`- Re: bullseye - how to configure eth1 for LAN only ?Computer Nerd Kev
          |      `- Re: bullseye - how to configure eth1 for LAN only ?scott
          `* Re: bullseye - how to configure eth1 for LAN only ?The Natural Philosopher
           +* Re: bullseye - how to configure eth1 for LAN only ?Andy Burns
           |`- Re: bullseye - how to configure eth1 for LAN only ?The Natural Philosopher
           `- Re: bullseye - how to configure eth1 for LAN only ?Chris Elvidge

Pages:123
bullseye - how to configure eth1 for LAN only ?

<u25mqd$ad9k$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: comp.sys.raspberry-pi
Subject: bullseye - how to configure eth1 for LAN only ?
Date: Mon, 24 Apr 2023 12:48:32 +0200
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <u25mqd$ad9k$1@dont-email.me>
Injection-Date: Mon, 24 Apr 2023 10:48:45 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="b68f2ce7f84f1091c5cac5356f3302a4";
logging-data="341300"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/myyGJ9SWO2IVGXmPCYDRMZunZXhp3RJ0frcR8WYrcKQ=="
Cancel-Lock: sha1:T/CbQKAwAXGQZG1RkaqNUpTabqA=
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
 by: R.Wieser - Mon, 24 Apr 2023 10:48 UTC

Hello all,

Using bullseye lite (terminal only) and DHCP (dhclient) I'm trying to
configure two network interfaces, connected to different networks with their
own routers.

I would like to configure one or both of the eth? interfaces as a LAN only
connection, meaning without a "default gateway" and/or DNS server adresses
and such.

I've found some information about what to edit in /etc/dhcp/dhclient.conf,
but after rebooting and checking the output of "route" I still see a
"gateway" entry for eth1.

Does anybody know what to add/remove/change in that dhclient.conf file to
get it to work ?

Remark: I've also seen suggestions to just give eth1 a high metric (so the
eth0 gateway is considered first), but that doesn't work for me as eth0
might not be always available.

Regards,
Rudy Wieser

Re: bullseye - how to configure eth1 for LAN only ?

<u25ouf$app7$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris@mshome.net (Chris Elvidge)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: bullseye - how to configure eth1 for LAN only ?
Date: Mon, 24 Apr 2023 12:25:02 +0100
Organization: A noiseless patient Spider
Lines: 41
Message-ID: <u25ouf$app7$1@dont-email.me>
References: <u25mqd$ad9k$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 24 Apr 2023 11:25:03 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a9f6f963bc7d985ae0e5740919a50d07";
logging-data="354087"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18QLPYZygpNlVKtzfb8MlpwMwrsw7FeClQ="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
Thunderbird/52.2.1 Lightning/5.4
Cancel-Lock: sha1:CzdA/vXu6YgK9UoUWWPunz8DTOE=
In-Reply-To: <u25mqd$ad9k$1@dont-email.me>
Content-Language: en-GB
 by: Chris Elvidge - Mon, 24 Apr 2023 11:25 UTC

On 24/04/2023 11:48, R.Wieser wrote:
> Hello all,
>
> Using bullseye lite (terminal only) and DHCP (dhclient) I'm trying to
> configure two network interfaces, connected to different networks with their
> own routers.
>
> I would like to configure one or both of the eth? interfaces as a LAN only
> connection, meaning without a "default gateway" and/or DNS server adresses
> and such.
>
> I've found some information about what to edit in /etc/dhcp/dhclient.conf,
> but after rebooting and checking the output of "route" I still see a
> "gateway" entry for eth1.
>
> Does anybody know what to add/remove/change in that dhclient.conf file to
> get it to work ?
>
> Remark: I've also seen suggestions to just give eth1 a high metric (so the
> eth0 gateway is considered first), but that doesn't work for me as eth0
> might not be always available.
>
> Regards,
> Rudy Wieser
>
>

Do you use NetworkManager? Or dhclient directly? Systemd?

This gives suggestions for both NM and dhclient:
https://unix.stackexchange.com/questions/399659/how-to-avoid-dhclient-default-gateway-on-an-interface

However systemd doesn't use dhclient.conf (I am told). See here:
https://serverfault.com/questions/674731/multiple-dhcp-uplinks-how-to-ignore-dns-and-default-route-on-all-but-one
Last answer mentions systemd.

HIH

--
Chris Elvidge
England

Re: bullseye - how to configure eth1 for LAN only ?

<u25ufv$bno1$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: bullseye - how to configure eth1 for LAN only ?
Date: Mon, 24 Apr 2023 14:59:29 +0200
Organization: A noiseless patient Spider
Lines: 41
Message-ID: <u25ufv$bno1$1@dont-email.me>
References: <u25mqd$ad9k$1@dont-email.me> <u25ouf$app7$1@dont-email.me>
Injection-Date: Mon, 24 Apr 2023 12:59:43 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="b68f2ce7f84f1091c5cac5356f3302a4";
logging-data="384769"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18pEo3p/SPJxxak6fAh4xqdByvEG9/vaCaaFlijjJvksg=="
Cancel-Lock: sha1:66yG6cqPd6KM/WqBEAvmRIdGHtg=
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-MSMail-Priority: Normal
X-RFC2646: Format=Flowed; Response
 by: R.Wieser - Mon, 24 Apr 2023 12:59 UTC

Chris,

> Do you use NetworkManager? Or dhclient directly? Systemd?

I tried "nmcli" but got the response that NetworkManager wasn't running.

I do have a /etc/dhcp/dhclient.conf file, but I'm not sure at all if its
actually used (editing it doesn't seem to change anything).

As for systemd ? It looks like it, as I have a "/etc/systemd" folder.

So, I've got two outof three, with one maybe.

> This gives suggestions for both NM and dhclient:
> https://unix.stackexchange.com/questions/399659/how-to-avoid-dhclient-default-gateway-on-an-interface

Thats one of the links I found from which I applied the "Another way:
dhclient.conf" suggstion. Alas, I still got a "default gateway" on eth1.

> However systemd doesn't use dhclient.conf (I am told). See here:
> https://serverfault.com/questions/674731/multiple-dhcp-uplinks-how-to-ignore-dns-and-default-route-on-all-but-one

Yep, found that one too. The second post (by Nils Toedtmann) says the same
as your link. :-)

> Last answer mentions systemd.

I read that too, but although I can find the "/etc/systemd/network" folder
itself I simply do not have enough information to be sure what the
"*.interface" name should be. Next to that I do not see, under "[DHCP]",
any mentioning of a gateway, but to see the "lets use a high metric" hack
that I, as mentioned, can't use. :-\

In short, the presence of a "dhclient.conf" *and* "/etc/systemd" makes me
quite unsure which one actually gouverns the network configuration. Hence
my post.

Regards,
Rudy Wieser

Re: bullseye - how to configure eth1 for LAN only ?

<u266d0$cvro$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris@mshome.net (Chris Elvidge)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: bullseye - how to configure eth1 for LAN only ?
Date: Mon, 24 Apr 2023 16:14:37 +0100
Organization: A noiseless patient Spider
Lines: 61
Message-ID: <u266d0$cvro$1@dont-email.me>
References: <u25mqd$ad9k$1@dont-email.me> <u25ouf$app7$1@dont-email.me>
<u25ufv$bno1$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 24 Apr 2023 15:14:41 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="9cf9aa279d895235fad8dd8440550356";
logging-data="425848"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19QKEJ9GP/a+yYjNmWm3Cqpie6mn5yYATs="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
Thunderbird/52.2.1 Lightning/5.4
Cancel-Lock: sha1:ktFDD+UJ1MF9s3YM8R3dvQy6ve0=
Content-Language: en-GB
X-Mozilla-News-Host: news://news.eternal-september.org
In-Reply-To: <u25ufv$bno1$1@dont-email.me>
 by: Chris Elvidge - Mon, 24 Apr 2023 15:14 UTC

On 24/04/2023 13:59, R.Wieser wrote:
> Chris,
>
>> Do you use NetworkManager? Or dhclient directly? Systemd?
>
> I tried "nmcli" but got the response that NetworkManager wasn't running.

OK, no NetworkManager.

>
> I do have a /etc/dhcp/dhclient.conf file, but I'm not sure at all if its
> actually used (editing it doesn't seem to change anything).
>
> As for systemd ? It looks like it, as I have a "/etc/systemd" folder.
>
> So, I've got two outof three, with one maybe.
>
>> This gives suggestions for both NM and dhclient:
>> https://unix.stackexchange.com/questions/399659/how-to-avoid-dhclient-default-gateway-on-an-interface
>
> Thats one of the links I found from which I applied the "Another way:
> dhclient.conf" suggstion. Alas, I still got a "default gateway" on eth1.
>
>> However systemd doesn't use dhclient.conf (I am told). See here:
>> https://serverfault.com/questions/674731/multiple-dhcp-uplinks-how-to-ignore-dns-and-default-route-on-all-but-one
>
> Yep, found that one too. The second post (by Nils Toedtmann) says the same
> as your link. :-)
>
>> Last answer mentions systemd.
>
> I read that too, but although I can find the "/etc/systemd/network" folder
> itself I simply do not have enough information to be sure what the
> "*.interface" name should be. Next to that I do not see, under "[DHCP]",
> any mentioning of a gateway, but to see the "lets use a high metric" hack
> that I, as mentioned, can't use. :-\
>
> In short, the presence of a "dhclient.conf" *and* "/etc/systemd" makes me
> quite unsure which one actually gouverns the network configuration. Hence
> my post.
>
> Regards,
> Rudy Wieser
>
>

Are you sure you're using dhclient?
What does `ps ax | grep dhc` say?

Just looked at my 11.6 install. It uses dhcpcd

If yours does too, try putting

interface eth1
nogateway

at the end of /etc/dhcpcd.conf

--
Chris Elvidge
England

Re: bullseye - how to configure eth1 for LAN only ?

<u26b2p$douf$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: bullseye - how to configure eth1 for LAN only ?
Date: Mon, 24 Apr 2023 18:34:26 +0200
Organization: A noiseless patient Spider
Lines: 51
Message-ID: <u26b2p$douf$1@dont-email.me>
References: <u25mqd$ad9k$1@dont-email.me> <u25ouf$app7$1@dont-email.me> <u25ufv$bno1$1@dont-email.me> <u266d0$cvro$1@dont-email.me>
Injection-Date: Mon, 24 Apr 2023 16:34:33 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="b68f2ce7f84f1091c5cac5356f3302a4";
logging-data="451535"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+M/KYOG4lCo+F067qRhJfAmKrZmnZGYtP9+AkM7L77NA=="
Cancel-Lock: sha1:VaPeik5JzWYx4IkoqHRV8F6TZC0=
X-RFC2646: Format=Flowed; Original
X-MSMail-Priority: Normal
X-Priority: 3
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
 by: R.Wieser - Mon, 24 Apr 2023 16:34 UTC

Chris,

> Are you sure you're using dhclient?

Reasonably sure : I used

/var/log/syslog | grep -Ei 'dhcp'.

(https://superuser.com/questions/944687/how-to-see-what-dhcp-client-does)

to check, and had a number of lines mentioning "dhcpcd" with one of them
mentioning "adding default route", showing the IP of the router servicing
the eth1 LAN

> What does `ps ax | grep dhc` say?

It says

/user/sbin/dhcpcd -w -q

> Just looked at my 11.6 install. It uses dhcpcd

Could you tell me how you checked that ?

> If yours does too, try putting
>
> interface eth1
> nogateway
>
> at the end of /etc/dhcpcd.conf

That does seem to have done the trick. Thanks.

It also means I have to do a bit more googeling, but now focussed on that
paricular file.

A question though : if that file is there to configure the interfaces, what
than is the "/etc/dhcp/dhclient.conf" file about ? Do you know ?

And strangely enough, I've only seen that "dhcpcd.conf" file being mentioned
once,

https://raspberrypi.stackexchange.com/questions/127497/how-to-setup-eth1-with-fixed-ip

but must admit I skipped it as it was talking about setting a fixed IP.

Regards,
Rudy Wieser

Re: bullseye - how to configure eth1 for LAN only ?

<u26dt1$e6hf$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris@mshome.net (Chris Elvidge)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: bullseye - how to configure eth1 for LAN only ?
Date: Mon, 24 Apr 2023 18:22:38 +0100
Organization: A noiseless patient Spider
Lines: 75
Message-ID: <u26dt1$e6hf$1@dont-email.me>
References: <u25mqd$ad9k$1@dont-email.me> <u25ouf$app7$1@dont-email.me>
<u25ufv$bno1$1@dont-email.me> <u266d0$cvro$1@dont-email.me>
<u26b2p$douf$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 24 Apr 2023 17:22:42 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="9cf9aa279d895235fad8dd8440550356";
logging-data="465455"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/MZeEBPpioqHi8vsstoFKSLzICm0ZVJoA="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
Thunderbird/52.2.1 Lightning/5.4
Cancel-Lock: sha1:BqupZMpD9z/YyMeq1wSQw/UIJb8=
Content-Language: en-GB
In-Reply-To: <u26b2p$douf$1@dont-email.me>
 by: Chris Elvidge - Mon, 24 Apr 2023 17:22 UTC

On 24/04/2023 17:34, R.Wieser wrote:
> Chris,
>
>> Are you sure you're using dhclient?
>
> Reasonably sure : I used
>
> /var/log/syslog | grep -Ei 'dhcp'.
>
> (https://superuser.com/questions/944687/how-to-see-what-dhcp-client-does)
>
> to check, and had a number of lines mentioning "dhcpcd" with one of them
> mentioning "adding default route", showing the IP of the router servicing
> the eth1 LAN
>
>> What does `ps ax | grep dhc` say?
>
> It says
>
> /user/sbin/dhcpcd -w -q

that's the line from /usr/lib/systemd/system/dhcpcd.service

>
>> Just looked at my 11.6 install. It uses dhcpcd
>
> Could you tell me how you checked that ?

ps ax | grep dhc

>
>> If yours does too, try putting
>>
>> interface eth1
>> nogateway
>>
>> at the end of /etc/dhcpcd.conf
>
> That does seem to have done the trick. Thanks.
>
> It also means I have to do a bit more googeling, but now focussed on that
> paricular file.
>
> A question though : if that file is there to configure the interfaces, what
> than is the "/etc/dhcp/dhclient.conf" file about ? Do you know ?

it is to configure dhclient

>
> And strangely enough, I've only seen that "dhcpcd.conf" file being mentioned
> once,
>
> https://raspberrypi.stackexchange.com/questions/127497/how-to-setup-eth1-with-fixed-ip

that's coz raspbian uses dhcpcd

>
> but must admit I skipped it as it was talking about setting a fixed IP.
>
> Regards,
> Rudy Wieser
>
>
>

dhclient and dhcpcd are 2 *different* methods of automatically assigning
ip adresses. dhclient is not used by stock raspbian.

look at /usr/lib/systemd/system/dhcpcd.service
systemctl status dhcpcd.service

--
Chris Elvidge
England

Re: bullseye - how to configure eth1 for LAN only ?

<u26hlu$ephu$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!rocksolid2!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: bullseye - how to configure eth1 for LAN only ?
Date: Mon, 24 Apr 2023 20:27:03 +0200
Organization: A noiseless patient Spider
Lines: 51
Message-ID: <u26hlu$ephu$1@dont-email.me>
References: <u25mqd$ad9k$1@dont-email.me> <u25ouf$app7$1@dont-email.me> <u25ufv$bno1$1@dont-email.me> <u266d0$cvro$1@dont-email.me> <u26b2p$douf$1@dont-email.me> <u26dt1$e6hf$1@dont-email.me>
Injection-Date: Mon, 24 Apr 2023 18:27:10 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="b68f2ce7f84f1091c5cac5356f3302a4";
logging-data="484926"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+G7JVFbzDkHqr8IVI11jToaP0uQpSJ1U9qkwj9w1HO6Q=="
Cancel-Lock: sha1:BJKt+sZKAkpkL7J6OQzX1j20ms4=
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-MSMail-Priority: Normal
X-Priority: 3
 by: R.Wieser - Mon, 24 Apr 2023 18:27 UTC

Chris,

>> A question though : if that file is there to configure the interfaces,
>> what than is the "/etc/dhcp/dhclient.conf" file about ? Do you know ?
>
> it is to configure dhclient

:-) That much I already assumed.

> dhclient and dhcpcd are 2 *different* methods

Well, that explains everything. I've been focussing on and modifying an
unused configuration file. No wonder nothing seemed to work. :-(

I must say that I don't quite understand why bullseye *lite* would carry two
seperate network configuration methods - one of which it doesn't even use -
while not bothering to including supporting files for when someone (like me)
wants to do a bit of GPIO or graphics using GCC.

>> And strangely enough, I've only seen that "dhcpcd.conf" file being
>> mentioned
>> once,
>>
>> https://raspberrypi.stackexchange.com/questions/127497/how-to-setup-eth1-with-fixed-ip
>
> that's coz raspbian uses dhcpcd

I've seen post about dhcpcd dated as far back as 2011. I would have expected
that my two/three day stint googeling would have popped up that name a few
more times - Especially in relation to the RPi by people having a similar
"how to configure the network" problem.

Than again, how many people would want to create a "LAN only" interface ...

> look at /usr/lib/systemd/system/dhcpcd.service

Thanks. I just did. Can't say I understand what whats in it means though.
More to google I guess. :-)

> systemctl status dhcpcd.service

Apart from recognising the the syslog entries at the bottom the same goes
here.

Thanks for the help and info.

Regards,
Rudy Wieser

Re: bullseye - how to configure eth1 for LAN only ?

<u26mi8$fipf$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris@mshome.net (Chris Elvidge)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: bullseye - how to configure eth1 for LAN only ?
Date: Mon, 24 Apr 2023 20:50:30 +0100
Organization: A noiseless patient Spider
Lines: 73
Message-ID: <u26mi8$fipf$1@dont-email.me>
References: <u25mqd$ad9k$1@dont-email.me> <u25ouf$app7$1@dont-email.me>
<u25ufv$bno1$1@dont-email.me> <u266d0$cvro$1@dont-email.me>
<u26b2p$douf$1@dont-email.me> <u26dt1$e6hf$1@dont-email.me>
<u26hlu$ephu$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 24 Apr 2023 19:50:32 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="9cf9aa279d895235fad8dd8440550356";
logging-data="510767"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/2/TfmGl4B7w2lvZblA+xUGG3mIii2xzY="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
Thunderbird/52.2.1 Lightning/5.4
Cancel-Lock: sha1:0WvSh6H3JU10zo7iYEJFSch/bIE=
In-Reply-To: <u26hlu$ephu$1@dont-email.me>
Content-Language: en-GB
 by: Chris Elvidge - Mon, 24 Apr 2023 19:50 UTC

On 24/04/2023 19:27, R.Wieser wrote:
> Chris,
>
>>> A question though : if that file is there to configure the interfaces,
>>> what than is the "/etc/dhcp/dhclient.conf" file about ? Do you know ?
>>
>> it is to configure dhclient
>
> :-) That much I already assumed.
>
>> dhclient and dhcpcd are 2 *different* methods
>
> Well, that explains everything. I've been focussing on and modifying an
> unused configuration file. No wonder nothing seemed to work. :-(
>
> I must say that I don't quite understand why bullseye *lite* would carry two
> seperate network configuration methods - one of which it doesn't even use -
> while not bothering to including supporting files for when someone (like me)
> wants to do a bit of GPIO or graphics using GCC.
>

I haven't come across any distro that doesn't include both.
I've always thought the lite moniker just meant no X

>>> And strangely enough, I've only seen that "dhcpcd.conf" file being
>>> mentioned
>>> once,
>>>
>>> https://raspberrypi.stackexchange.com/questions/127497/how-to-setup-eth1-with-fixed-ip
>>
>> that's coz raspbian uses dhcpcd
>
> I've seen post about dhcpcd dated as far back as 2011. I would have expected
> that my two/three day stint googeling would have popped up that name a few
> more times - Especially in relation to the RPi by people having a similar
> "how to configure the network" problem.
>
> Than again, how many people would want to create a "LAN only" interface ...

I do it regularly!

If I'd looked at my installation earlier I'd probably have twigged you
were using dhcpcd not dhclient.

>
>> look at /usr/lib/systemd/system/dhcpcd.service
>
> Thanks. I just did. Can't say I understand what whats in it means though.
> More to google I guess. :-)

The Exec line says what it does - starts dhcpcd. Type say it forks and
Restart tells it to restart if it crashes or is stopped.

The rest of the file just sets up the environment.

>
>> systemctl status dhcpcd.service
>
> Apart from recognising the the syslog entries at the bottom the same goes
> here.
>
> Thanks for the help and info.
>
> Regards,
> Rudy Wieser
>
>
>

--
Chris Elvidge
England

Re: bullseye - how to configure eth1 for LAN only ?

<u2ajcb$19ovp$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: bullseye - how to configure eth1 for LAN only ?
Date: Wed, 26 Apr 2023 09:20:30 +0200
Organization: A noiseless patient Spider
Lines: 46
Message-ID: <u2ajcb$19ovp$1@dont-email.me>
References: <u25mqd$ad9k$1@dont-email.me> <u25ouf$app7$1@dont-email.me> <u25ufv$bno1$1@dont-email.me> <u266d0$cvro$1@dont-email.me> <u26b2p$douf$1@dont-email.me> <u26dt1$e6hf$1@dont-email.me> <u26hlu$ephu$1@dont-email.me> <u26mi8$fipf$1@dont-email.me>
Injection-Date: Wed, 26 Apr 2023 07:20:43 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="571df5711b00069951756cf412246e71";
logging-data="1369081"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+s17cF+5KCltrbOusEAywE05dsZC/jy+An0bZWn9lipg=="
Cancel-Lock: sha1:AXMZs+VZSm/Vg8MkY0chYJ0nhzU=
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Priority: 3
X-RFC2646: Format=Flowed; Response
 by: R.Wieser - Wed, 26 Apr 2023 07:20 UTC

Chris,

> I've always thought the lite moniker just meant no X

My own assumption went a bit further than that : minimal default installed
software, less stuff running by default. Which fit me just fine, as I'm
using it on am ancient, rather slow RPi v1. (yes, I did try to tun a
graphical environment first. It was painfull. :-) )

> If I'd looked at my installation earlier I'd probably have twigged you
> were using dhcpcd not dhclient.

I did see the "dhcpcd" name in the syslog, but as I didn't (yet) know about
whats what I failed to recognise it for what it was ...

A new question though (if you don't mind) : I've been trying to disable ipv6
too, and reading the man page for dhcpcd.conf I saw that I could use
"ipv4only".

I've put that just above the "interface eth1" line (assuming that it would
than work for all interfaces), but "ifconfig" still shows ipv6 adresses for
both "eth1" as well as "lo" (eth0 is disconnected). I also tried to put it
under "interface eth1" and got the same result. As such I'm not at all sure
what that "ipv4only" is supposed to do (if anything).

I get the feeling (fuelled by some googeling results) that ipv6 needs to be
disabled elsewhere. But although googeling for a way to do so turns up some
results, I'm not at all sure if any of it applies to bullseye (most of it is
old).

Besides that, I would also would like to have some more information about
(possibly) disabeling/changing DNS and other stuff dhpdcd seems to ask the
dhcp server for* (even when DNS servers can't be reached without a default
gateway).

* I had a windows machine capture both the request as well as the response.
The RPi asked for a lot, but got only a little ...

In short : do you know of any source of info (website) which explains the
network configuration, focussed on what is currently used by bullseye ?

Regards,
Rudy Wieser

Re: bullseye - how to configure eth1 for LAN only ?

<u2b259$1c0t4$1@dont-email.me>

  copy mid

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

  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: bullseye - how to configure eth1 for LAN only ?
Date: Wed, 26 Apr 2023 12:32:57 +0100
Organization: A little, after lunch
Lines: 19
Message-ID: <u2b259$1c0t4$1@dont-email.me>
References: <u25mqd$ad9k$1@dont-email.me> <u25ouf$app7$1@dont-email.me>
<u25ufv$bno1$1@dont-email.me> <u266d0$cvro$1@dont-email.me>
<u26b2p$douf$1@dont-email.me> <u26dt1$e6hf$1@dont-email.me>
<u26hlu$ephu$1@dont-email.me> <u26mi8$fipf$1@dont-email.me>
<u2ajcb$19ovp$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 26 Apr 2023 11:32:57 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="83faf8c678c3613cc841119c4d784a87";
logging-data="1442724"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+frOvabaFOXn20OAmzAg4CspXxtA110lE="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.10.0
Cancel-Lock: sha1:InpKBNP8oUGhOKH0z/DomUcltkU=
In-Reply-To: <u2ajcb$19ovp$1@dont-email.me>
Content-Language: en-GB
 by: The Natural Philosop - Wed, 26 Apr 2023 11:32 UTC

On 26/04/2023 08:20, R.Wieser wrote:
> Besides that, I would also would like to have some more information about
> (possibly) disabeling/changing DNS and other stuff dhpdcd seems to ask the
> dhcp server for* (even when DNS servers can't be reached without a default
> gateway).
DHCP is a noddy default setup for a client machine that is connected to
well maintained environment. If you want other than the defaults I would
suggest either using static IP configuration (NO DHCP) or doing some
work on the DHCP server - typically a router these days. Its quite hard
to have a *partial* DHCP configuration.

Your router may support different LAN address with different DHCP
configurations, to disable default route and DNS instances.
--
"Socialist governments traditionally do make a financial mess. They
always run out of other people's money. It's quite a characteristic of them"

Margaret Thatcher

Re: bullseye - how to configure eth1 for LAN only ?

<u2b3u5$1cerq$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris@mshome.net (Chris Elvidge)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: bullseye - how to configure eth1 for LAN only ?
Date: Wed, 26 Apr 2023 13:03:16 +0100
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <u2b3u5$1cerq$1@dont-email.me>
References: <u25mqd$ad9k$1@dont-email.me> <u25ouf$app7$1@dont-email.me>
<u25ufv$bno1$1@dont-email.me> <u266d0$cvro$1@dont-email.me>
<u26b2p$douf$1@dont-email.me> <u26dt1$e6hf$1@dont-email.me>
<u26hlu$ephu$1@dont-email.me> <u26mi8$fipf$1@dont-email.me>
<u2ajcb$19ovp$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 26 Apr 2023 12:03:17 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="7a69770fcc484410aed4b7ceefb9ce95";
logging-data="1457018"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+jauoEaD5JuDl9lQyizH3hRkywJq99ILk="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
Thunderbird/52.2.1 Lightning/5.4
Cancel-Lock: sha1:yUmQe9YzQUQCT/R4CAiGNQ9jVUU=
In-Reply-To: <u2ajcb$19ovp$1@dont-email.me>
Content-Language: en-GB
 by: Chris Elvidge - Wed, 26 Apr 2023 12:03 UTC

On 26/04/2023 08:20, R.Wieser wrote:
>
> A new question though (if you don't mind) : I've been trying to disable ipv6
> too, and reading the man page for dhcpcd.conf I saw that I could use
> "ipv4only".
>

Try:
noipv6rs
noipv6

According to the BSD DHCPCD man page:

noipv6 Don't solicit or accept IPv6 Router Advertisements and DHCPv6.
noipv6rs Don't solicit or accept IPv6 Router Advertisements.

This seems to say that noipv6 includes noipv6rs, but Archwiki says
putting in both (in that order) works.

Have you looked at man dhcpcd.conf?

Arch wiki is a valuable resource e.g.
https://wiki.archlinux.org/title/dhcpcd
and usually better than alternatives.

--
Chris Elvidge
England

Re: bullseye - how to configure eth1 for LAN only ?

<u2b464$1cg06$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris@mshome.net (Chris Elvidge)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: bullseye - how to configure eth1 for LAN only ?
Date: Wed, 26 Apr 2023 13:07:31 +0100
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <u2b464$1cg06$1@dont-email.me>
References: <u25mqd$ad9k$1@dont-email.me> <u25ouf$app7$1@dont-email.me>
<u25ufv$bno1$1@dont-email.me> <u266d0$cvro$1@dont-email.me>
<u26b2p$douf$1@dont-email.me> <u26dt1$e6hf$1@dont-email.me>
<u26hlu$ephu$1@dont-email.me> <u26mi8$fipf$1@dont-email.me>
<u2ajcb$19ovp$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 26 Apr 2023 12:07:32 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="7a69770fcc484410aed4b7ceefb9ce95";
logging-data="1458182"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX195Kmf6qS6rqqSmW7c3kO/AdMoCVTJu3AY="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
Thunderbird/52.2.1 Lightning/5.4
Cancel-Lock: sha1:1a+9JImdEx4CKwtUped9lGpbNGM=
Content-Language: en-GB
In-Reply-To: <u2ajcb$19ovp$1@dont-email.me>
 by: Chris Elvidge - Wed, 26 Apr 2023 12:07 UTC

On 26/04/2023 08:20, R.Wieser wrote:
>
> In short : do you know of any source of info (website) which explains the
> network configuration, focussed on what is currently used by bullseye ?
>
Don't get too hung up on the raspbian/bullseye focus.
dhcpcd configuration is dhcpcd configuration no matter which distro
you're using.
Even the systemd invocation used by debian and thus raspbian is just a
straight invocation of dhcpcd.
As previous, try the archwiki.

--
Chris Elvidge
England

Re: bullseye - how to configure eth1 for LAN only ?

<u2b4v2$1c0t4$4@dont-email.me>

  copy mid

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

  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: bullseye - how to configure eth1 for LAN only ?
Date: Wed, 26 Apr 2023 13:20:50 +0100
Organization: A little, after lunch
Lines: 23
Message-ID: <u2b4v2$1c0t4$4@dont-email.me>
References: <u25mqd$ad9k$1@dont-email.me> <u25ouf$app7$1@dont-email.me>
<u25ufv$bno1$1@dont-email.me> <u266d0$cvro$1@dont-email.me>
<u26b2p$douf$1@dont-email.me> <u26dt1$e6hf$1@dont-email.me>
<u26hlu$ephu$1@dont-email.me> <u26mi8$fipf$1@dont-email.me>
<u2ajcb$19ovp$1@dont-email.me> <u2b464$1cg06$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 26 Apr 2023 12:20:50 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="83faf8c678c3613cc841119c4d784a87";
logging-data="1442724"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18s7FTsWUdIDHHsUstqTbo7SGSUaK3SiJw="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.10.0
Cancel-Lock: sha1:boxol+mce/LOPisRcct2zhG8/Rg=
Content-Language: en-GB
In-Reply-To: <u2b464$1cg06$1@dont-email.me>
 by: The Natural Philosop - Wed, 26 Apr 2023 12:20 UTC

On 26/04/2023 13:07, Chris Elvidge wrote:
> On 26/04/2023 08:20, R.Wieser wrote:
>>
>> In short : do you know of any source of info (website) which explains the
>> network configuration, focussed on what is currently used by bullseye ?
>>
> Don't get too hung up on the raspbian/bullseye focus.
> dhcpcd configuration is dhcpcd configuration no matter which distro
> you're using.
> Even the systemd invocation used by debian and thus raspbian is just a
> straight invocation of dhcpcd.
> As previous, try the archwiki.
>
I thought the OP was trying to set up a DHCP client, not a server?

--
You can get much farther with a kind word and a gun than you can with a
kind word alone.

Al Capone

Re: bullseye - how to configure eth1 for LAN only ?

<20230426133620.426097443b9f9251d626b811@eircom.net>

  copy mid

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

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: steveo@eircom.net (Ahem A Rivet's Shot)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: bullseye - how to configure eth1 for LAN only ?
Date: Wed, 26 Apr 2023 13:36:20 +0100
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <20230426133620.426097443b9f9251d626b811@eircom.net>
References: <u25mqd$ad9k$1@dont-email.me>
<u25ouf$app7$1@dont-email.me>
<u25ufv$bno1$1@dont-email.me>
<u266d0$cvro$1@dont-email.me>
<u26b2p$douf$1@dont-email.me>
<u26dt1$e6hf$1@dont-email.me>
<u26hlu$ephu$1@dont-email.me>
<u26mi8$fipf$1@dont-email.me>
<u2ajcb$19ovp$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="fd7a674c7182ef96ded9fdf028bdb683";
logging-data="1473961"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+O/NEO40yR9bsF+TO9frVaileUjzYzJmY="
Cancel-Lock: sha1:pUiONddxqkoGJXYOeVAxA4q3S8E=
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 - Wed, 26 Apr 2023 12:36 UTC

On Wed, 26 Apr 2023 09:20:30 +0200
"R.Wieser" <address@is.invalid> wrote:

> A new question though (if you don't mind) : I've been trying to disable
> ipv6 too, and reading the man page for dhcpcd.conf I saw that I could use
> "ipv4only".
>
> I've put that just above the "interface eth1" line (assuming that it
> would than work for all interfaces), but "ifconfig" still shows ipv6
> adresses for both "eth1" as well as "lo" (eth0 is disconnected).

What sort of ipv6 addresses ? If it is only link local ipv6
addresses (starting fe80::) then they don't come from DHCPCD but from IPv6
neighbour discovery and are probably quite hard to get rid of but they're
only valid on a LAN segment so I wouldn't worry about them too much.

--
Steve O'Hara-Smith
Odds and Ends at http://www.sohara.org/

Re: bullseye - how to configure eth1 for LAN only ?

<u2b8h1$1d6n1$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris@mshome.net (Chris Elvidge)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: bullseye - how to configure eth1 for LAN only ?
Date: Wed, 26 Apr 2023 14:21:37 +0100
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <u2b8h1$1d6n1$1@dont-email.me>
References: <u25mqd$ad9k$1@dont-email.me> <u25ouf$app7$1@dont-email.me>
<u25ufv$bno1$1@dont-email.me> <u266d0$cvro$1@dont-email.me>
<u26b2p$douf$1@dont-email.me> <u26dt1$e6hf$1@dont-email.me>
<u26hlu$ephu$1@dont-email.me> <u26mi8$fipf$1@dont-email.me>
<u2ajcb$19ovp$1@dont-email.me> <u2b464$1cg06$1@dont-email.me>
<u2b4v2$1c0t4$4@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 26 Apr 2023 13:21:37 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="7a69770fcc484410aed4b7ceefb9ce95";
logging-data="1481441"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Xn/c3zUUypobguhEQIUxxZVmm0U5hrIM="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
Thunderbird/52.2.1 Lightning/5.4
Cancel-Lock: sha1:FfE0+YOqJT8jdNAm3r2IuywUQTs=
Content-Language: en-GB
In-Reply-To: <u2b4v2$1c0t4$4@dont-email.me>
 by: Chris Elvidge - Wed, 26 Apr 2023 13:21 UTC

On 26/04/2023 13:20, The Natural Philosopher wrote:
> On 26/04/2023 13:07, Chris Elvidge wrote:
>> On 26/04/2023 08:20, R.Wieser wrote:
>>>
>>> In short : do you know of any source of info (website) which explains
>>> the
>>> network configuration, focussed on what is currently used by bullseye ?
>>>
>> Don't get too hung up on the raspbian/bullseye focus.
>> dhcpcd configuration is dhcpcd configuration no matter which distro
>> you're using.
>> Even the systemd invocation used by debian and thus raspbian is just a
>> straight invocation of dhcpcd.
>> As previous, try the archwiki.
>>
> I thought the OP was trying to set up a DHCP client, not a server?
>

dhcpcd is client, isn't it?

--
Chris Elvidge
England

Re: bullseye - how to configure eth1 for LAN only ?

<u2b92d$1d7oa$1@dont-email.me>

  copy mid

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

  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: bullseye - how to configure eth1 for LAN only ?
Date: Wed, 26 Apr 2023 14:30:53 +0100
Organization: A little, after lunch
Lines: 33
Message-ID: <u2b92d$1d7oa$1@dont-email.me>
References: <u25mqd$ad9k$1@dont-email.me> <u25ouf$app7$1@dont-email.me>
<u25ufv$bno1$1@dont-email.me> <u266d0$cvro$1@dont-email.me>
<u26b2p$douf$1@dont-email.me> <u26dt1$e6hf$1@dont-email.me>
<u26hlu$ephu$1@dont-email.me> <u26mi8$fipf$1@dont-email.me>
<u2ajcb$19ovp$1@dont-email.me> <u2b464$1cg06$1@dont-email.me>
<u2b4v2$1c0t4$4@dont-email.me> <u2b8h1$1d6n1$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 26 Apr 2023 13:30:53 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="83faf8c678c3613cc841119c4d784a87";
logging-data="1482506"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/R9GIw19lBUWryEdobUSA9YZybPbZqPqQ="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.10.0
Cancel-Lock: sha1:durUEwCKLAvqfAHDUSbqNuiv3qc=
In-Reply-To: <u2b8h1$1d6n1$1@dont-email.me>
Content-Language: en-GB
 by: The Natural Philosop - Wed, 26 Apr 2023 13:30 UTC

On 26/04/2023 14:21, Chris Elvidge wrote:
> On 26/04/2023 13:20, The Natural Philosopher wrote:
>> On 26/04/2023 13:07, Chris Elvidge wrote:
>>> On 26/04/2023 08:20, R.Wieser wrote:
>>>>
>>>> In short : do you know of any source of info (website) which
>>>> explains the
>>>> network configuration, focussed on what is currently used by bullseye ?
>>>>
>>> Don't get too hung up on the raspbian/bullseye focus.
>>> dhcpcd configuration is dhcpcd configuration no matter which distro
>>> you're using.
>>> Even the systemd invocation used by debian and thus raspbian is just
>>> a straight invocation of dhcpcd.
>>> As previous, try the archwiki.
>>>
>> I thought the OP was trying to set up a DHCP client, not a server?
>>
>
> dhcpcd is client, isn't it?
>
Thought it was the server

dhclient is the client. But I think there are many clients now. What
with systemd and network manager its all a muddle.

--
"In our post-modern world, climate science is not powerful because it is
true: it is true because it is powerful."

Lucas Bergkamp

Re: bullseye - how to configure eth1 for LAN only ?

<u2b9to$1ddsc$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris@mshome.net (Chris Elvidge)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: bullseye - how to configure eth1 for LAN only ?
Date: Wed, 26 Apr 2023 14:45:27 +0100
Organization: A noiseless patient Spider
Lines: 45
Message-ID: <u2b9to$1ddsc$1@dont-email.me>
References: <u25mqd$ad9k$1@dont-email.me> <u25ouf$app7$1@dont-email.me>
<u25ufv$bno1$1@dont-email.me> <u266d0$cvro$1@dont-email.me>
<u26b2p$douf$1@dont-email.me> <u26dt1$e6hf$1@dont-email.me>
<u26hlu$ephu$1@dont-email.me> <u26mi8$fipf$1@dont-email.me>
<u2ajcb$19ovp$1@dont-email.me> <u2b464$1cg06$1@dont-email.me>
<u2b4v2$1c0t4$4@dont-email.me> <u2b8h1$1d6n1$1@dont-email.me>
<u2b92d$1d7oa$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 26 Apr 2023 13:45:29 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="7a69770fcc484410aed4b7ceefb9ce95";
logging-data="1488780"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ZICzbffvtlNVjvQ+jhrJwgDnZfPiF2IE="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
Thunderbird/52.2.1 Lightning/5.4
Cancel-Lock: sha1:kPqWPmStrPQk6ys0vHd8O3Oo/YQ=
Content-Language: en-GB
In-Reply-To: <u2b92d$1d7oa$1@dont-email.me>
 by: Chris Elvidge - Wed, 26 Apr 2023 13:45 UTC

On 26/04/2023 14:30, The Natural Philosopher wrote:
> On 26/04/2023 14:21, Chris Elvidge wrote:
>> On 26/04/2023 13:20, The Natural Philosopher wrote:
>>> On 26/04/2023 13:07, Chris Elvidge wrote:
>>>> On 26/04/2023 08:20, R.Wieser wrote:
>>>>>
>>>>> In short : do you know of any source of info (website) which
>>>>> explains the
>>>>> network configuration, focussed on what is currently used by
>>>>> bullseye ?
>>>>>
>>>> Don't get too hung up on the raspbian/bullseye focus.
>>>> dhcpcd configuration is dhcpcd configuration no matter which distro
>>>> you're using.
>>>> Even the systemd invocation used by debian and thus raspbian is just
>>>> a straight invocation of dhcpcd.
>>>> As previous, try the archwiki.
>>>>
>>> I thought the OP was trying to set up a DHCP client, not a server?
>>>
>>
>> dhcpcd is client, isn't it?
>>
> Thought it was the server
>
> dhclient is the client. But I think there are many clients now. What
> with systemd and network manager its all a muddle.
>
>

No. See previous. dhcpcd and dhclient are *different* dhcp clients.
dhclient is supplied by the ISC. dhclient is not normally used by
debian, slackware (or any other distros I use). They all use dhcpcd.
Even the systemd implementation used in debian uses dhcpcd. See
/usr/lib/systemd/system/dhcpcd.service
https://www.isc.org/blogs/dhcp-client-relay-eom/ says "ISC plans to end
maintenance of the ISC DHCP client and relay by the end of Q1, 2022."
Hence dhclient is end-of-life (IMHO).
I don't know about NetworkManager (or nmcli), I don't use it. A quick
look on Archwiki and /usr/lib/systemd/system/NetworkManager.service says
it is dbus based.

--
Chris Elvidge
England

Re: bullseye - how to configure eth1 for LAN only ?

<u2bi6c$1eq95$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris@mshome.net (Chris Elvidge)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: bullseye - how to configure eth1 for LAN only ?
Date: Wed, 26 Apr 2023 17:06:35 +0100
Organization: A noiseless patient Spider
Lines: 40
Message-ID: <u2bi6c$1eq95$1@dont-email.me>
References: <u25mqd$ad9k$1@dont-email.me> <u25ouf$app7$1@dont-email.me>
<u25ufv$bno1$1@dont-email.me> <u266d0$cvro$1@dont-email.me>
<u26b2p$douf$1@dont-email.me> <u26dt1$e6hf$1@dont-email.me>
<u26hlu$ephu$1@dont-email.me> <u26mi8$fipf$1@dont-email.me>
<u2ajcb$19ovp$1@dont-email.me>
<20230426133620.426097443b9f9251d626b811@eircom.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 26 Apr 2023 16:06:36 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="9c9c07c25f5dac626eb4cce66955a2f5";
logging-data="1534245"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+NVli/nbhF27iXBFTagXy0LGzhCaiSL1Y="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
Thunderbird/52.2.1 Lightning/5.4
Cancel-Lock: sha1:Ol+Xr+kVvORrN13Oupt1D//7WNg=
In-Reply-To: <20230426133620.426097443b9f9251d626b811@eircom.net>
Content-Language: en-GB
 by: Chris Elvidge - Wed, 26 Apr 2023 16:06 UTC

On 26/04/2023 13:36, Ahem A Rivet's Shot wrote:
> On Wed, 26 Apr 2023 09:20:30 +0200
> "R.Wieser" <address@is.invalid> wrote:
>
>> A new question though (if you don't mind) : I've been trying to disable
>> ipv6 too, and reading the man page for dhcpcd.conf I saw that I could use
>> "ipv4only".
>>
>> I've put that just above the "interface eth1" line (assuming that it
>> would than work for all interfaces), but "ifconfig" still shows ipv6
>> adresses for both "eth1" as well as "lo" (eth0 is disconnected).
>
> What sort of ipv6 addresses ? If it is only link local ipv6
> addresses (starting fe80::) then they don't come from DHCPCD but from IPv6
> neighbour discovery and are probably quite hard to get rid of but they're
> only valid on a LAN segment so I wouldn't worry about them too much.
>

It seems there are 2 ways to totally disable ipv6
https://www.howtoraspberry.com/2020/04/disable-ipv6-on-raspberry-pi/

1) Pi only: add 'ipv6.disable=1' to end of line in /boot/cmdline.txt

2) Generally,
a) if using sysctl: put a file in /etc/sysctl.d/ containing
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
b) if not using sysctl, add
echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6
echo 1 > /proc/sys/net/ipv6/conf/default/disable_ipv6
echo 1 > /proc/sys/net/ipv6/conf/lo/disable_ipv6
to end of (for e.g.) /etc/rc.local

Both methods will disable all ipv6 including link-local
NetworkManager has a "disable" option under ipV6, too.

--
Chris Elvidge
England

Re: bullseye - how to configure eth1 for LAN only ?

<u2bj4f$19q7d$2@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Pancho.Jones@proton.me (Pancho)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: bullseye - how to configure eth1 for LAN only ?
Date: Wed, 26 Apr 2023 17:22:40 +0100
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <u2bj4f$19q7d$2@dont-email.me>
References: <u25mqd$ad9k$1@dont-email.me> <u25ouf$app7$1@dont-email.me>
<u25ufv$bno1$1@dont-email.me> <u266d0$cvro$1@dont-email.me>
<u26b2p$douf$1@dont-email.me> <u26dt1$e6hf$1@dont-email.me>
<u26hlu$ephu$1@dont-email.me> <u26mi8$fipf$1@dont-email.me>
<u2ajcb$19ovp$1@dont-email.me> <u2b464$1cg06$1@dont-email.me>
<u2b4v2$1c0t4$4@dont-email.me> <u2b8h1$1d6n1$1@dont-email.me>
<u2b92d$1d7oa$1@dont-email.me> <u2b9to$1ddsc$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 26 Apr 2023 16:22:39 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="93effcc127149cee0b95194654c0a20a";
logging-data="1370349"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19679Ia+8UlgiLn+1ZcIdDVuSdfVxbQG98="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.9.1
Cancel-Lock: sha1:F6GX+lzOZZHvaZc8etbE5bsBA+s=
Content-Language: en-GB
In-Reply-To: <u2b9to$1ddsc$1@dont-email.me>
 by: Pancho - Wed, 26 Apr 2023 16:22 UTC

On 26/04/2023 14:45, Chris Elvidge wrote:

> No. See previous. dhcpcd and dhclient are *different* dhcp clients.
> dhclient is supplied by the ISC. dhclient is not normally used by
> debian, slackware (or any other distros I use). They all use dhcpcd.
> Even the systemd implementation used in debian uses dhcpcd. See
> /usr/lib/systemd/system/dhcpcd.service
> https://www.isc.org/blogs/dhcp-client-relay-eom/ says "ISC plans to end
> maintenance of the ISC DHCP client and relay by the end of Q1, 2022."
> Hence dhclient is end-of-life (IMHO).
> I don't know about NetworkManager (or nmcli), I don't use it. A quick
> look on Archwiki and /usr/lib/systemd/system/NetworkManager.service says
> it is dbus based.
>
Ubuntu is still using dhclient, isn't it?

Re: bullseye - how to configure eth1 for LAN only ?

<u2bl4u$1f8lm$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris@mshome.net (Chris Elvidge)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: bullseye - how to configure eth1 for LAN only ?
Date: Wed, 26 Apr 2023 17:57:02 +0100
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <u2bl4u$1f8lm$1@dont-email.me>
References: <u25mqd$ad9k$1@dont-email.me> <u25ouf$app7$1@dont-email.me>
<u25ufv$bno1$1@dont-email.me> <u266d0$cvro$1@dont-email.me>
<u26b2p$douf$1@dont-email.me> <u26dt1$e6hf$1@dont-email.me>
<u26hlu$ephu$1@dont-email.me> <u26mi8$fipf$1@dont-email.me>
<u2ajcb$19ovp$1@dont-email.me> <u2b464$1cg06$1@dont-email.me>
<u2b4v2$1c0t4$4@dont-email.me> <u2b8h1$1d6n1$1@dont-email.me>
<u2b92d$1d7oa$1@dont-email.me> <u2b9to$1ddsc$1@dont-email.me>
<u2bj4f$19q7d$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 26 Apr 2023 16:57:03 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d530c5565f9fd16ec7a09eac53668459";
logging-data="1548982"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18wasOyvbFKlINn5ynLVxCBOcQkNPOXOqc="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
Thunderbird/52.2.1 Lightning/5.4
Cancel-Lock: sha1:co7BYDg3HWRDDTXa/BTrMYIxa6Y=
Content-Language: en-GB
In-Reply-To: <u2bj4f$19q7d$2@dont-email.me>
 by: Chris Elvidge - Wed, 26 Apr 2023 16:57 UTC

On 26/04/2023 17:22, Pancho wrote:
> On 26/04/2023 14:45, Chris Elvidge wrote:
>
>> No. See previous. dhcpcd and dhclient are *different* dhcp clients.
>> dhclient is supplied by the ISC. dhclient is not normally used by
>> debian, slackware (or any other distros I use). They all use dhcpcd.
>> Even the systemd implementation used in debian uses dhcpcd. See
>> /usr/lib/systemd/system/dhcpcd.service
>> https://www.isc.org/blogs/dhcp-client-relay-eom/ says "ISC plans to
>> end maintenance of the ISC DHCP client and relay by the end of Q1,
>> 2022." Hence dhclient is end-of-life (IMHO).
>> I don't know about NetworkManager (or nmcli), I don't use it. A quick
>> look on Archwiki and /usr/lib/systemd/system/NetworkManager.service
>> says it is dbus based.
>>
> Ubuntu is still using dhclient, isn't it?

No idea.
Does `ps ax | grep dhc` give a clue?
Does nmcli work? -> uses NetworkManager

--
Chris Elvidge
England

Re: bullseye - how to configure eth1 for LAN only ?

<u2bmrn$19q7d$3@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Pancho.Jones@proton.me (Pancho)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: bullseye - how to configure eth1 for LAN only ?
Date: Wed, 26 Apr 2023 18:26:15 +0100
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <u2bmrn$19q7d$3@dont-email.me>
References: <u25mqd$ad9k$1@dont-email.me> <u25ouf$app7$1@dont-email.me>
<u25ufv$bno1$1@dont-email.me> <u266d0$cvro$1@dont-email.me>
<u26b2p$douf$1@dont-email.me> <u26dt1$e6hf$1@dont-email.me>
<u26hlu$ephu$1@dont-email.me> <u26mi8$fipf$1@dont-email.me>
<u2ajcb$19ovp$1@dont-email.me> <u2b464$1cg06$1@dont-email.me>
<u2b4v2$1c0t4$4@dont-email.me> <u2b8h1$1d6n1$1@dont-email.me>
<u2b92d$1d7oa$1@dont-email.me> <u2b9to$1ddsc$1@dont-email.me>
<u2bj4f$19q7d$2@dont-email.me> <u2bl4u$1f8lm$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 26 Apr 2023 17:26:15 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="93effcc127149cee0b95194654c0a20a";
logging-data="1370349"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX198hLh/ZWMwWzMibCiay3HS0neHVPbo8KA="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.9.1
Cancel-Lock: sha1:tnnD6JKo0S9/rVvYdKD+8df7yrA=
Content-Language: en-GB
In-Reply-To: <u2bl4u$1f8lm$1@dont-email.me>
 by: Pancho - Wed, 26 Apr 2023 17:26 UTC

On 26/04/2023 17:57, Chris Elvidge wrote:
> On 26/04/2023 17:22, Pancho wrote:
>> On 26/04/2023 14:45, Chris Elvidge wrote:
>>
>>> No. See previous. dhcpcd and dhclient are *different* dhcp clients.
>>> dhclient is supplied by the ISC. dhclient is not normally used by
>>> debian, slackware (or any other distros I use). They all use dhcpcd.
>>> Even the systemd implementation used in debian uses dhcpcd. See
>>> /usr/lib/systemd/system/dhcpcd.service
>>> https://www.isc.org/blogs/dhcp-client-relay-eom/ says "ISC plans to
>>> end maintenance of the ISC DHCP client and relay by the end of Q1,
>>> 2022." Hence dhclient is end-of-life (IMHO).
>>> I don't know about NetworkManager (or nmcli), I don't use it. A quick
>>> look on Archwiki and /usr/lib/systemd/system/NetworkManager.service
>>> says it is dbus based.
>>>
>> Ubuntu is still using dhclient, isn't it?
>
> No idea.
> Does `ps ax | grep dhc` give a clue?
> Does nmcli work? -> uses NetworkManager
>

Seems my Ubuntu 22.04 systems only get nmcli with the
ubuntu-gnome-desktop package. My server versions don't have it. Both
server and desktop still have dhclient.

Do I need to learn nmcli, or can I bury my head in the sand and hope it
goes away?

Re: bullseye - how to configure eth1 for LAN only ?

<u2bpmm$1g1gi$2@dont-email.me>

  copy mid

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

  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: bullseye - how to configure eth1 for LAN only ?
Date: Wed, 26 Apr 2023 19:14:46 +0100
Organization: A little, after lunch
Lines: 34
Message-ID: <u2bpmm$1g1gi$2@dont-email.me>
References: <u25mqd$ad9k$1@dont-email.me> <u25ouf$app7$1@dont-email.me>
<u25ufv$bno1$1@dont-email.me> <u266d0$cvro$1@dont-email.me>
<u26b2p$douf$1@dont-email.me> <u26dt1$e6hf$1@dont-email.me>
<u26hlu$ephu$1@dont-email.me> <u26mi8$fipf$1@dont-email.me>
<u2ajcb$19ovp$1@dont-email.me> <u2b464$1cg06$1@dont-email.me>
<u2b4v2$1c0t4$4@dont-email.me> <u2b8h1$1d6n1$1@dont-email.me>
<u2b92d$1d7oa$1@dont-email.me> <u2b9to$1ddsc$1@dont-email.me>
<u2bj4f$19q7d$2@dont-email.me> <u2bl4u$1f8lm$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 26 Apr 2023 18:14:46 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="83faf8c678c3613cc841119c4d784a87";
logging-data="1574418"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/AHxyJps0ZExGLXLP8exyZfS7smi+H7jc="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.10.0
Cancel-Lock: sha1:ReO+fgcnCTfpjYR06wGRqNSo0So=
In-Reply-To: <u2bl4u$1f8lm$1@dont-email.me>
Content-Language: en-GB
 by: The Natural Philosop - Wed, 26 Apr 2023 18:14 UTC

On 26/04/2023 17:57, Chris Elvidge wrote:
> On 26/04/2023 17:22, Pancho wrote:
>> On 26/04/2023 14:45, Chris Elvidge wrote:
>>
>>> No. See previous. dhcpcd and dhclient are *different* dhcp clients.
>>> dhclient is supplied by the ISC. dhclient is not normally used by
>>> debian, slackware (or any other distros I use). They all use dhcpcd.
>>> Even the systemd implementation used in debian uses dhcpcd. See
>>> /usr/lib/systemd/system/dhcpcd.service
>>> https://www.isc.org/blogs/dhcp-client-relay-eom/ says "ISC plans to
>>> end maintenance of the ISC DHCP client and relay by the end of Q1,
>>> 2022." Hence dhclient is end-of-life (IMHO).
>>> I don't know about NetworkManager (or nmcli), I don't use it. A quick
>>> look on Archwiki and /usr/lib/systemd/system/NetworkManager.service
>>> says it is dbus based.
>>>
>> Ubuntu is still using dhclient, isn't it?
>
> No idea.
> Does `ps ax | grep dhc` give a clue?
> Does nmcli work? -> uses NetworkManager
>

My Mint uses neither. There is an nm-applet.
But dhcp is only used at boot time normally.

--
When plunder becomes a way of life for a group of men in a society, over
the course of time they create for themselves a legal system that
authorizes it and a moral code that glorifies it.

Frédéric Bastiat

Re: bullseye - how to configure eth1 for LAN only ?

<u2bq7p$1g1gi$3@dont-email.me>

  copy mid

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

  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: bullseye - how to configure eth1 for LAN only ?
Date: Wed, 26 Apr 2023 19:23:53 +0100
Organization: A little, after lunch
Lines: 58
Message-ID: <u2bq7p$1g1gi$3@dont-email.me>
References: <u25mqd$ad9k$1@dont-email.me> <u25ouf$app7$1@dont-email.me>
<u25ufv$bno1$1@dont-email.me> <u266d0$cvro$1@dont-email.me>
<u26b2p$douf$1@dont-email.me> <u26dt1$e6hf$1@dont-email.me>
<u26hlu$ephu$1@dont-email.me> <u26mi8$fipf$1@dont-email.me>
<u2ajcb$19ovp$1@dont-email.me> <u2b464$1cg06$1@dont-email.me>
<u2b4v2$1c0t4$4@dont-email.me> <u2b8h1$1d6n1$1@dont-email.me>
<u2b92d$1d7oa$1@dont-email.me> <u2b9to$1ddsc$1@dont-email.me>
<u2bj4f$19q7d$2@dont-email.me> <u2bl4u$1f8lm$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 26 Apr 2023 18:23:53 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="83faf8c678c3613cc841119c4d784a87";
logging-data="1574418"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19EqIl16y7LN7/BYWZOHJflA/vUHvgSY3s="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.10.0
Cancel-Lock: sha1:TJulug144KRueesj5UioPW+h5/o=
Content-Language: en-GB
In-Reply-To: <u2bl4u$1f8lm$1@dont-email.me>
 by: The Natural Philosop - Wed, 26 Apr 2023 18:23 UTC

On 26/04/2023 17:57, Chris Elvidge wrote:
> On 26/04/2023 17:22, Pancho wrote:
>> On 26/04/2023 14:45, Chris Elvidge wrote:
>>
>>> No. See previous. dhcpcd and dhclient are *different* dhcp clients.
>>> dhclient is supplied by the ISC. dhclient is not normally used by
>>> debian, slackware (or any other distros I use). They all use dhcpcd.
>>> Even the systemd implementation used in debian uses dhcpcd. See
>>> /usr/lib/systemd/system/dhcpcd.service
>>> https://www.isc.org/blogs/dhcp-client-relay-eom/ says "ISC plans to
>>> end maintenance of the ISC DHCP client and relay by the end of Q1,
>>> 2022." Hence dhclient is end-of-life (IMHO).
>>> I don't know about NetworkManager (or nmcli), I don't use it. A quick
>>> look on Archwiki and /usr/lib/systemd/system/NetworkManager.service
>>> says it is dbus based.
>>>
>> Ubuntu is still using dhclient, isn't it?
>
> No idea.
> Does `ps ax | grep dhc` give a clue?
> Does nmcli work? -> uses NetworkManager
>
Only think that looks relevant on my rig is 'NetworkManager

The config file seems to be

/etc/NetworkManager/system-connections/Wired connection 1.nmconnection
------>
[connection]
id=Wired connection 1
uuid=200b0367-8dfe-331b-b244-aa11e7de1cea
type=ethernet
autoconnect-priority=-999
interface-name=eno1
permissions=
timestamp=1674452619

[ethernet]
mac-address-blacklist=

[ipv4]
dns-search=
method=auto

[ipv6]
addr-gen-mode=stable-privacy
dns-search=
ip6-privacy=0
method=auto

[proxy]
<-------------

--
Karl Marx said religion is the opium of the people.
But Marxism is the crack cocaine.

Re: bullseye - how to configure eth1 for LAN only ?

<slrnu4it0n.ba9.jj@iridium.wf32df>

  copy mid

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

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: jj@franjam.org.uk (Jim Jackson)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: bullseye - how to configure eth1 for LAN only ?
Date: Wed, 26 Apr 2023 18:57:27 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 43
Message-ID: <slrnu4it0n.ba9.jj@iridium.wf32df>
References: <u25mqd$ad9k$1@dont-email.me> <u25ouf$app7$1@dont-email.me>
<u25ufv$bno1$1@dont-email.me> <u266d0$cvro$1@dont-email.me>
<u26b2p$douf$1@dont-email.me> <u26dt1$e6hf$1@dont-email.me>
<u26hlu$ephu$1@dont-email.me> <u26mi8$fipf$1@dont-email.me>
<u2ajcb$19ovp$1@dont-email.me>
<20230426133620.426097443b9f9251d626b811@eircom.net>
<u2bi6c$1eq95$1@dont-email.me>
Injection-Date: Wed, 26 Apr 2023 18:57:27 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="01e3f0a99405f889b6f0f67ef5a8902c";
logging-data="1587954"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/EGsSL8xxsRRT2lr8XnOBybfNbhEDbtX4="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:79yc84LW3NAyNKsH7rngTreAK30=
 by: Jim Jackson - Wed, 26 Apr 2023 18:57 UTC

On 2023-04-26, Chris Elvidge <chris@mshome.net> wrote:
> On 26/04/2023 13:36, Ahem A Rivet's Shot wrote:
>> On Wed, 26 Apr 2023 09:20:30 +0200
>> "R.Wieser" <address@is.invalid> wrote:
>>
>>> A new question though (if you don't mind) : I've been trying to disable
>>> ipv6 too, and reading the man page for dhcpcd.conf I saw that I could use
>>> "ipv4only".
>>>
>>> I've put that just above the "interface eth1" line (assuming that it
>>> would than work for all interfaces), but "ifconfig" still shows ipv6
>>> adresses for both "eth1" as well as "lo" (eth0 is disconnected).
>>
>> What sort of ipv6 addresses ? If it is only link local ipv6
>> addresses (starting fe80::) then they don't come from DHCPCD but from IPv6
>> neighbour discovery and are probably quite hard to get rid of but they're
>> only valid on a LAN segment so I wouldn't worry about them too much.
>>
>
> It seems there are 2 ways to totally disable ipv6
> https://www.howtoraspberry.com/2020/04/disable-ipv6-on-raspberry-pi/
>
> 1) Pi only: add 'ipv6.disable=1' to end of line in /boot/cmdline.txt

Just a small quibble - while the whole /boot/cmfline.txt thing is Pi
specific, the ipv6.disable=1 kernel parameter setting should work on all
Linux kernels.

> 2) Generally,
> a) if using sysctl: put a file in /etc/sysctl.d/ containing
> net.ipv6.conf.all.disable_ipv6 = 1
> net.ipv6.conf.default.disable_ipv6 = 1
> net.ipv6.conf.lo.disable_ipv6 = 1
> b) if not using sysctl, add
> echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6
> echo 1 > /proc/sys/net/ipv6/conf/default/disable_ipv6
> echo 1 > /proc/sys/net/ipv6/conf/lo/disable_ipv6
> to end of (for e.g.) /etc/rc.local
>
> Both methods will disable all ipv6 including link-local
> NetworkManager has a "disable" option under ipV6, too.
>

Re: bullseye - how to configure eth1 for LAN only ?

<20230426200052.5bebfcc724a5a263d07de6c0@eircom.net>

  copy mid

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

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: steveo@eircom.net (Ahem A Rivet's Shot)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: bullseye - how to configure eth1 for LAN only ?
Date: Wed, 26 Apr 2023 20:00:52 +0100
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <20230426200052.5bebfcc724a5a263d07de6c0@eircom.net>
References: <u25mqd$ad9k$1@dont-email.me>
<u25ouf$app7$1@dont-email.me>
<u25ufv$bno1$1@dont-email.me>
<u266d0$cvro$1@dont-email.me>
<u26b2p$douf$1@dont-email.me>
<u26dt1$e6hf$1@dont-email.me>
<u26hlu$ephu$1@dont-email.me>
<u26mi8$fipf$1@dont-email.me>
<u2ajcb$19ovp$1@dont-email.me>
<u2b464$1cg06$1@dont-email.me>
<u2b4v2$1c0t4$4@dont-email.me>
<u2b8h1$1d6n1$1@dont-email.me>
<u2b92d$1d7oa$1@dont-email.me>
<u2b9to$1ddsc$1@dont-email.me>
<u2bj4f$19q7d$2@dont-email.me>
<u2bl4u$1f8lm$1@dont-email.me>
<u2bpmm$1g1gi$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="fd7a674c7182ef96ded9fdf028bdb683";
logging-data="1600991"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+x9VsuBSQ7URZe/pRRiqUsyX1eAfmoNdA="
Cancel-Lock: sha1:t5KwFHK3L/D3T32ieZBKFrrNG2g=
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 - Wed, 26 Apr 2023 19:00 UTC

On Wed, 26 Apr 2023 19:14:46 +0100
The Natural Philosopher <tnp@invalid.invalid> wrote:

> But dhcp is only used at boot time normally.

Either dhclient or dhcpcd should persist so that it can renew the
lease when the time comes - try a ps -elf | grep dhclient or pgrep -lf
dhclient.

--
Steve O'Hara-Smith
Odds and Ends at http://www.sohara.org/

Pages:123
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor