From nobody Wed Dec 22 15:39:07 2021 X-Original-To: freebsd-net@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id B21EB1905783 for ; Wed, 22 Dec 2021 15:39:08 +0000 (UTC) (envelope-from SRS0=zwTi=RH=klop.ws=ronald-lists@realworks.nl) Received: from smtp-relay-int.realworks.nl (smtp-relay-int.realworks.nl [194.109.157.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4JJyDC6m0gz4tPc for ; Wed, 22 Dec 2021 15:39:07 +0000 (UTC) (envelope-from SRS0=zwTi=RH=klop.ws=ronald-lists@realworks.nl) Date: Wed, 22 Dec 2021 16:39:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=klop.ws; s=rw2; t=1640187547; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: references:references; bh=h3P4RNOCGmFJzDzLUMd8UJbETiWRDNizmMAG2+zAHDI=; b=uBgIDpDNwAvAQWaMtIBygZJvR/DsjTCrQKtnUvEkThRifYqK1V8BIrOOzqoAqvmK3spWX9 u4bMijo6Qh7J4VNkKvWd0sxazrNeUCVlenGhf3lpp+tsxeAdrNn0tgoU60JYcyfaX9Y9e0 AUgj27Diz1sIMeD7Xqf2vrZOGna726s8LVXBmRRGSgQdJPyHodu2jakbyR96oz3t9jkmom o6A+3+I8oupDiIEUAMHir+5ajye/gYQVlXirv0RBvBRE4IhHaWAplFU9wAVTdj+zde5L1b 8msETt54rUcJ55oX6yHofkWY995JuM3PZZMO8mLZHF5MU7nBsTa0BWAe39Bwfg== To: freebsd-net@FreeBSD.org Message-ID: <1964077845.708.1640187547120@localhost> References: <297610586.526.1640181235676@localhost> Subject: ipv6 on genet0 + bridge not configuring List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_707_1889223815.1640187547115" X-Mailer: Realworks (589.200.e94892b) Importance: Normal X-Priority: 3 (Normal) X-Rspamd-Queue-Id: 4JJyDC6m0gz4tPc X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=klop.ws header.s=rw2 header.b=uBgIDpDN; dmarc=pass (policy=quarantine) header.from=klop.ws; spf=pass (mx1.freebsd.org: domain of "SRS0=zwTi=RH=klop.ws=ronald-lists@realworks.nl" designates 194.109.157.24 as permitted sender) smtp.mailfrom="SRS0=zwTi=RH=klop.ws=ronald-lists@realworks.nl" X-Spamd-Result: default: False [-3.20 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[klop.ws:s=rw2]; FROM_HAS_DN(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[194.109.157.24:from]; R_SPF_ALLOW(-0.20)[+ip4:194.109.157.0/24:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCPT_COUNT_ONE(0.00)[1]; DKIM_TRACE(0.00)[klop.ws:+]; DMARC_POLICY_ALLOW(-0.50)[klop.ws,quarantine]; HAS_X_PRIO_THREE(0.00)[3]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FORGED_SENDER(0.30)[ronald-lists@klop.ws,SRS0=zwTi=RH=klop.ws=ronald-lists@realworks.nl]; RCVD_COUNT_ZERO(0.00)[0]; MIME_TRACE(0.00)[0:+,1:+,2:~]; MID_RHS_NOT_FQDN(0.50)[]; ASN(0.00)[asn:3265, ipnet:194.109.0.0/16, country:NL]; FROM_NEQ_ENVFROM(0.00)[ronald-lists@klop.ws,SRS0=zwTi=RH=klop.ws=ronald-lists@realworks.nl] Reply-To: ronald-lists@klop.ws From: Ronald Klop via freebsd-net X-Original-From: Ronald Klop X-ThisMailContainsUnwantedMimeParts: N ------=_Part_707_1889223815.1640187547115 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit I hope somebody on this list has more insights into this issue below. NB: I can repeat the rtsol command and error from the command line. Regards, Ronald. Van: Ronald Klop via freebsd-arm Datum: woensdag, 22 december 2021 14:53 Aan: freebsd-arm@freebsd.org Onderwerp: ipv6 on genet0 + bridge not configuring > > Hi, > > My RPI4 is running pretty happy with some VNET jails on it. > # uname -a > FreeBSD rpi4 14.0-CURRENT FreeBSD 14.0-CURRENT #15 main-9c0287e092: Fri Nov 5 10:48:20 CET 2021 ronald@rpi4:/home/ronald/dev/obj/home/ronald/dev/freebsd/arm64.aarch64/sys/GENERIC-NODEBUG arm64 > > # cat /etc/rc.conf > hostname="rpi4" > cloned_interfaces="bridge0" > ifconfig_bridge0="addm genet0 SYNCDHCP" > ifconfig_genet0="up" > > I now added this line to rc.conf: > ifconfig_bridge0_ipv6="inet6 accept_rtadv" > > This does trigger some ipv6 negotiation on start up, but also some errors. > bridge0: Ethernet address: 58:9c:fc:00:3e:aa > Created cloe interfaces: bridge0. > lo0: link state changed to UP > genet0: link state changed to DOWN > genet0: promiscuous mode enabled > bridge0: link state changed to DOWN > rtsol: cap_llflags_get() failed, anyway I'll try > rtsol: sendmsg on bridge0: Can't assign requested address > genet0: link state changed to UP > bridge0: link state changed to UP > rtsol: sendmsg on bridge0: Can't assign requested address > rtsol: sendmsg on bridge0: Can't assign requested address > Starting dhclient. > > Dhclient for ipv4 works well and assigns an address. > > Similar setup on another FreeBSD 14 works well with ipv6. But that does not have a bridge. It just enables IPv6 on the interface. > > What am I missing? Something obvious? > > Regards, > Ronald. > ------=_Part_707_1889223815.1640187547115 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit I hope somebody on this list has more insights into this issue below.

NB: I can repeat the rtsol command and error from the command line.

Regards,
Ronald.
 

Van: Ronald Klop via freebsd-arm <freebsd-arm@freebsd.org>
Datum: woensdag, 22 december 2021 14:53
Aan: freebsd-arm@freebsd.org
Onderwerp: ipv6 on genet0 + bridge not configuring

Hi,

My RPI4 is running pretty happy with some VNET jails on it.
# uname -a
FreeBSD rpi4 14.0-CURRENT FreeBSD 14.0-CURRENT #15 main-9c0287e092: Fri Nov  5 10:48:20 CET 2021     ronald@rpi4:/home/ronald/dev/obj/home/ronald/dev/freebsd/arm64.aarch64/sys/GENERIC-NODEBUG  arm64

# cat /etc/rc.conf
hostname="rpi4"
cloned_interfaces="bridge0"
ifconfig_bridge0="addm genet0 SYNCDHCP"
ifconfig_genet0="up"

I now added this line to rc.conf:
ifconfig_bridge0_ipv6="inet6 accept_rtadv"

This does trigger some ipv6 negotiation on start up, but also some errors.
bridge0: Ethernet address: 58:9c:fc:00:3e:aa
Created cloe interfaces: bridge0.
lo0: link state changed to UP
genet0: link state changed to DOWN
genet0: promiscuous mode enabled
bridge0: link state changed to DOWN
rtsol: cap_llflags_get() failed, anyway I'll try
rtsol: sendmsg on bridge0: Can't assign requested address
genet0: link state changed to UP
bridge0: link state changed to UP
rtsol: sendmsg on bridge0: Can't assign requested address
rtsol: sendmsg on bridge0: Can't assign requested address
Starting dhclient.

Dhclient for ipv4 works well and assigns an address.

Similar setup on another FreeBSD 14 works well with ipv6. But that does not have a bridge. It just enables IPv6 on the interface.

What am I missing? Something obvious?

Regards,
Ronald.
 
------=_Part_707_1889223815.1640187547115--