From owner-freebsd-stable@freebsd.org Wed Mar 21 10:19:37 2018 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C93E5F5A919 for ; Wed, 21 Mar 2018 10:19:37 +0000 (UTC) (envelope-from hausen@punkt.de) Received: from kagate.punkt.de (kagate.punkt.de [217.29.33.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 44BE0879E9 for ; Wed, 21 Mar 2018 10:19:36 +0000 (UTC) (envelope-from hausen@punkt.de) Received: from hugo10.ka.punkt.de (hugo10.ka.punkt.de [217.29.44.10]) by gate2.intern.punkt.de with ESMTP id w2LAJTDL065984 for ; Wed, 21 Mar 2018 11:19:29 +0100 (CET) Received: from [217.29.44.49] ([217.29.44.49]) by hugo10.ka.punkt.de (8.14.2/8.14.2) with ESMTP id w2LAJSn4024992 for ; Wed, 21 Mar 2018 11:19:28 +0100 (CET) (envelope-from hausen@punkt.de) From: "Patrick M. Hausen" Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: IPv6 connectivity lost when combining if_bridge with a VLAN ... Message-Id: <55A61118-8BCC-4A09-9996-9EE06CB474DA@punkt.de> Date: Wed, 21 Mar 2018 11:19:28 +0100 To: freebsd-stable@freebsd.org X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Mar 2018 10:19:38 -0000 Hi all, a follow-up to my discovery that certain chipsets don't support = 100baseTX any more. ;-) We use these servers as jail hosts and use if_bridge with VIMAGE and = iocage a lot. Our tried and true setup used to be like this: ------------- sysctl net.link.bridge.inherit_mac=3D1 ------------- ifconfig_ixl0=3D"up" ifconfig_ixl1=3D"up" cloned_interfaces=3D"bridge0 bridge1" ifconfig_bridge0_name=3D"inet0" ifconfig_bridge1_name=3D"mgmt0" ifconfig_inet0=3D"up addm ixl0" ifconfig_inet0_alias0=3D"inet
/24" ifconfig_inet0_ipv6=3D"inet6
/64 auto_linklocal" ifconfig_mgmt0=3D"up addm ixl1" ifconfig_mgmt0_alias0=3D"inet
/16" ifconfig_mgmt0_ipv6=3D"inet6 auto_linklocal" defaultrouter=3D"
" ipv6_defaultrouter=3D"fe80::11%inet0" ------------- So we use link-local v6 addresses for the default gateways in every = VLAN. The last octet in the GW address is simply the VLAN number ... Now, because I had to run improvised wires to a different switch before we get to upgrading the entire rack to Gbit connectivity we tried to use a single cable and a trunk port: ------------- sysctl net.link.bridge.inherit_mac=3D1 ------------- ifconfig_ixl0=3D"up" cloned_interfaces=3D"vlan7 vlan11 bridge0 bridge1" ifconfig_vlan7=3D"up vlan 7 vlandev ixl0" ifconfig_vlan11=3D"up vlan 11 vlandev ixl0" ifconfig_bridge0_name=3D"inet0" ifconfig_bridge1_name=3D"mgmt0" ifconfig_inet0=3D"up addm vlan7" ifconfig_inet0_alias0=3D"inet
/24" ifconfig_inet0_ipv6=3D"inet6
/64 auto_linklocal" ifconfig_mgmt0=3D"up addm vlan11" ifconfig_mgmt0_alias0=3D"inet
/16" ifconfig_mgmt0_ipv6=3D"inet6 auto_linklocal" defaultrouter=3D"
" ipv6_defaultrouter=3D"fe80::11%inet0" ------------- Nothing overly fancy in my opinion, just an orthogonal combination of technologies. In principle this seems to work, but ... - IPv4 connectivity comes up reliably and stays up - external IPv6 connectivity does not come up at reboot - I can ping6 the default GW from the machine (link-local address) - I can ping6 other machines in the same VLAN (global unicast) - route -6 delete default; route -6 add default fe80::11%inet0 restores = external connectivity - external connectivity get's lost again after a couple of hours Only IPv6 seems to be affected, not IPv4. Any ideas? ;-) Thanks, Patrick --=20 punkt.de GmbH Internet - Dienstleistungen - Beratung Kaiserallee 13a Tel.: 0721 9109-0 Fax: -100 76133 Karlsruhe info@punkt.de http://punkt.de AG Mannheim 108285 Gf: Juergen Egeling