Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Line Printer paper is strongest at the perforations.


computers / alt.os.linux.ubuntu / Re: Systemd-networkd and IPv6Token in 20.04

SubjectAuthor
* Systemd-networkd and IPv6Token in 20.04Anssi Saari
`* Re: Systemd-networkd and IPv6Token in 20.04Marco Moock
 `* Re: Systemd-networkd and IPv6Token in 20.04Anssi Saari
  `* Re: Systemd-networkd and IPv6Token in 20.04Marco Moock
   `- Re: Systemd-networkd and IPv6Token in 20.04Anssi Saari

1
Systemd-networkd and IPv6Token in 20.04

<sm0a659a1cj.fsf@lakka.kapsi.fi>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=3028&group=alt.os.linux.ubuntu#3028

  copy link   Newsgroups: alt.os.linux.ubuntu
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: as@sci.fi (Anssi Saari)
Newsgroups: alt.os.linux.ubuntu
Subject: Systemd-networkd and IPv6Token in 20.04
Date: Wed, 02 Nov 2022 16:16:12 +0200
Organization: An impatient and LOUD arachnid
Lines: 24
Message-ID: <sm0a659a1cj.fsf@lakka.kapsi.fi>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: reader01.eternal-september.org; posting-host="6c53c5f4805ab9d7e8cb0479f5ed56aa";
logging-data="1265473"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/nh8xSWLQMjsERwpvLa0Sn"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:K6ly1s1ePPiH0bpDHRaxSYCKzGk=
sha1:Af73hcOxMbrGll0ryxClXQuo8f4=
 by: Anssi Saari - Wed, 2 Nov 2022 14:16 UTC

I've been recently playing with IPv6 but I have a vexing problem with my
little Ubuntu box. Systemd-networkd (from systemd 245.4) is supposed to
understand a directive like this:

IPv6Token=prefixstable:my_prefix

where my_prefix is exactly what my router sends in its RA, 64 bits,
ending in a double colon (::), verified by tcpdump. And what I wish to
get out of this is an IPv6 address generated as described in RFC7217,
i.e. a stable address where the lower 64 bits are not based on my MAC
address.

Unfortunately systemd-networkd does not seem to agree. It accepts the
directive without comment but I still get the EUI-64 address. Even if I
set log level to debug there's nothing in the log about this. I've tried
other forms in my_prefix but then networkd eagerly tells me it's wrong
but not what would be correct and actually *work*.

I can work around this in a bunch of ways so not looking for that,
but getting this to work would be easiest.

I looked but I haven't found any bug reports about this so I have a
feeling it should work. Any ideas?

Re: Systemd-networkd and IPv6Token in 20.04

<tjtvcj$11db4$10@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=3029&group=alt.os.linux.ubuntu#3029

  copy link   Newsgroups: alt.os.linux.ubuntu
Path: i2pn2.org!i2pn.org!paganini.bofh.team!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: mo01@posteo.de (Marco Moock)
Newsgroups: alt.os.linux.ubuntu
Subject: Re: Systemd-networkd and IPv6Token in 20.04
Date: Wed, 2 Nov 2022 15:38:11 +0100
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <tjtvcj$11db4$10@dont-email.me>
References: <sm0a659a1cj.fsf@lakka.kapsi.fi>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 2 Nov 2022 14:38:11 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="854da0a28b9fc0887d9a030d6631225a";
logging-data="1095012"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+gvYqv8Bou9/PVLk46QhTV"
Cancel-Lock: sha1:IELUTqmM6PLNuX7EYtQM4Hyjcw0=
 by: Marco Moock - Wed, 2 Nov 2022 14:38 UTC

Am 02.11.2022 um 16:16:12 Uhr schrieb Anssi Saari:

> where my_prefix is exactly what my router sends in its RA, 64 bits,
> ending in a double colon (::), verified by tcpdump. And what I wish to
> get out of this is an IPv6 address generated as described in RFC7217,
> i.e. a stable address where the lower 64 bits are not based on my MAC
> address.
>
> Unfortunately systemd-networkd does not seem to agree. It accepts the
> directive without comment but I still get the EUI-64 address. Even if
> I set log level to debug there's nothing in the log about this. I've
> tried other forms in my_prefix but then networkd eagerly tells me
> it's wrong but not what would be correct and actually *work*.

Is netplan still active?
Please show your netplan config.

Re: Systemd-networkd and IPv6Token in 20.04

<sm0edul8jub.fsf@lakka.kapsi.fi>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=3030&group=alt.os.linux.ubuntu#3030

  copy link   Newsgroups: alt.os.linux.ubuntu
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: as@sci.fi (Anssi Saari)
Newsgroups: alt.os.linux.ubuntu
Subject: Re: Systemd-networkd and IPv6Token in 20.04
Date: Wed, 02 Nov 2022 17:19:40 +0200
Organization: An impatient and LOUD arachnid
Lines: 50
Message-ID: <sm0edul8jub.fsf@lakka.kapsi.fi>
References: <sm0a659a1cj.fsf@lakka.kapsi.fi> <tjtvcj$11db4$10@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: reader01.eternal-september.org; posting-host="6c53c5f4805ab9d7e8cb0479f5ed56aa";
logging-data="1274310"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+RiMpmmw/Zq/+T0Uiin4aS"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:eu8/WRGq0H8N5cEKElSe13P4Glw=
sha1:goWUzx8Vk6/IpeuGFexTbgcVeHI=
 by: Anssi Saari - Wed, 2 Nov 2022 15:19 UTC

Marco Moock <mo01@posteo.de> writes:

> Is netplan still active?
> Please show your netplan config.

I know next to nothing about netplan so it probably has a default
config. I guess it's active since I have a
/run/systemd/network/10-netplan-eth0.network with this content:

[Match]
Name=eth0

[Link]
RequiredForOnline=no

[Network]
DHCP=ipv4
LinkLocalAddressing=ipv6

[DHCP]
RouteMetric=100
UseMTU=true

Does this override whatever I have in /etc/systemd/network/eth0.network
or? Or in fact, I don't really have anything there, except for
IPv6Token=.

There's also /etc/netplan/50-cloud-init.yaml with this:

# This file is generated from information provided by the datasource. Changes
# to it will not persist across an instance reboot. To disable cloud-init's
# network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
ethernets:
eth0:
dhcp4: true
optional: true
version: 2

These seem to somewhat match what was put into
/run/systemd/network/10-netplan-eth0.network.

So what happens if I remove the netplan package(s)? Nothing works or
things actually start working the way I expect? Assuming I have a
complete /etc/systemd/network/eth0.network, that is.

Can I edit that file under /run for testing and restart
systemd-networkd?

Re: Systemd-networkd and IPv6Token in 20.04

<tju23t$11db4$12@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=3031&group=alt.os.linux.ubuntu#3031

  copy link   Newsgroups: alt.os.linux.ubuntu
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: mo01@posteo.de (Marco Moock)
Newsgroups: alt.os.linux.ubuntu
Subject: Re: Systemd-networkd and IPv6Token in 20.04
Date: Wed, 2 Nov 2022 16:24:45 +0100
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <tju23t$11db4$12@dont-email.me>
References: <sm0a659a1cj.fsf@lakka.kapsi.fi>
<tjtvcj$11db4$10@dont-email.me>
<sm0edul8jub.fsf@lakka.kapsi.fi>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 2 Nov 2022 15:24:45 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="854da0a28b9fc0887d9a030d6631225a";
logging-data="1095012"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19SEjl5XLMD0LtObXOHVLVk"
Cancel-Lock: sha1:ejP39iOB7Re2Zm/gdbBACHtbB1U=
 by: Marco Moock - Wed, 2 Nov 2022 15:24 UTC

Am 02.11.2022 um 17:19:40 Uhr schrieb Anssi Saari:

> There's also /etc/netplan/50-cloud-init.yaml with this:
>
> # This file is generated from information provided by the datasource.
> Changes # to it will not persist across an instance reboot. To
> disable cloud-init's # network configuration capabilities, write a
> file # /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the
> following: # network: {config: disabled}
> network:
> ethernets:
> eth0:
> dhcp4: true
> optional: true
> version: 2

Only place the following in /etc/netplan/50-cloud-init.yaml

network:
version: 2
renderer: networkd

Then "sudo netplan try".
Then restart the OS and check if networkd does what you like.

Re: Systemd-networkd and IPv6Token in 20.04

<sm0a6588mds.fsf@lakka.kapsi.fi>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=3032&group=alt.os.linux.ubuntu#3032

  copy link   Newsgroups: alt.os.linux.ubuntu
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: as@sci.fi (Anssi Saari)
Newsgroups: alt.os.linux.ubuntu
Subject: Re: Systemd-networkd and IPv6Token in 20.04
Date: Thu, 03 Nov 2022 10:37:03 +0200
Organization: An impatient and LOUD arachnid
Lines: 18
Message-ID: <sm0a6588mds.fsf@lakka.kapsi.fi>
References: <sm0a659a1cj.fsf@lakka.kapsi.fi> <tjtvcj$11db4$10@dont-email.me>
<sm0edul8jub.fsf@lakka.kapsi.fi> <tju23t$11db4$12@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: reader01.eternal-september.org; posting-host="fca127eac45224a680dfbc351f1a4f55";
logging-data="1513126"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+2OpdaUCQCSrPYJ1Kl7wyo"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:jN8LX7d0GvBBQz9S/mWHIXj5RTk=
sha1:Z9ovTRketL/1dowOMF49ENcX+hA=
 by: Anssi Saari - Thu, 3 Nov 2022 08:37 UTC

Marco Moock <mo01@posteo.de> writes:

> Am 02.11.2022 um 17:19:40 Uhr schrieb Anssi Saari:

> Only place the following in /etc/netplan/50-cloud-init.yaml
>
> network:
> version: 2
> renderer: networkd
>
> Then "sudo netplan try".
> Then restart the OS and check if networkd does what you like.

Brilliant, thanks. At least temporarily it's exactly what I needed and
IPv6Token=prefixstable:myprefix works exactly as the manual says.

I'll save the reboot for when I'm at the system and can access the
serial console, just in case.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor