From nobody Wed Dec 22 13:53:55 2021 X-Original-To: freebsd-arm@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 7A0CA18E73B1 for ; Wed, 22 Dec 2021 13:54:04 +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 4JJvtz2C5Pz4Ytl for ; Wed, 22 Dec 2021 13:54:03 +0000 (UTC) (envelope-from SRS0=zwTi=RH=klop.ws=ronald-lists@realworks.nl) Date: Wed, 22 Dec 2021 14:53:55 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=klop.ws; s=rw2; t=1640181236; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=LFLditZOUd2fjgCBgJ+zQbbI/lKYbz3KbGITb0JtWfc=; b=h4cEeBYKatUKdFlVL+G2iEJQt4JXyLZG2CT9l/D/E0qZ/3Hfjnr5lfUvykF71WThsOUl4W Iw6Y60pYNStgalyJyW24w1y3O1hWT9trTyHBg605ZZ0eFdCa2sUInO9TL35IlEYu0Hx499 MyMrRl40vP3eSHPjnGzgEa51JjfqYp3Z5dXINt1z0uZyBcb5UjFchKf2NkLVvvw0yw82k9 i+DP1KAv56F2Csb4dhoYfITrVtilna7+AnRhTj/FK0KrgaPBioUpZOAs41MrwEmAUYQ2Wn JVHwTggshBkEgPHfjP48bRDIaBR+aQFqT/529o2HATy9zV3AIUqMgRQlOJJL/A== To: freebsd-arm@freebsd.org Message-ID: <297610586.526.1640181235676@localhost> Subject: ipv6 on genet0 + bridge not configuring List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_525_337538973.1640181235578" X-Mailer: Realworks (589.200.e94892b) Importance: Normal X-Priority: 3 (Normal) X-Rspamd-Queue-Id: 4JJvtz2C5Pz4Ytl X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=klop.ws header.s=rw2 header.b=h4cEeBYK; 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.18 / 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]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:194.109.157.0/24]; 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(-0.98)[-0.984]; 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-arm X-Original-From: Ronald Klop X-ThisMailContainsUnwantedMimeParts: N ------=_Part_525_337538973.1640181235578 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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_525_337538973.1640181235578 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit 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_525_337538973.1640181235578--