From nobody Mon Nov 22 17:33:36 2021 X-Original-To: freebsd-current@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 4889718AAAEB for ; Mon, 22 Nov 2021 17:33:50 +0000 (UTC) (envelope-from bsd-lists@bsdforge.com) Received: from udns.ultimatedns.net (static-24-113-41-81.wavecable.com [24.113.41.81]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "ultimatedns.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HyZBP6ggHz4fGh for ; Mon, 22 Nov 2021 17:33:49 +0000 (UTC) (envelope-from bsd-lists@bsdforge.com) Received: from ultimatedns.net (localhost [127.0.0.1]) by udns.ultimatedns.net (8.16.1/8.16.1) with ESMTP id 1AMHXar1030871 for ; Mon, 22 Nov 2021 09:33:42 -0800 (PST) (envelope-from bsd-lists@bsdforge.com) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Date: Mon, 22 Nov 2021 09:33:36 -0800 From: Chris To: freebsd-current@freebsd.org Subject: Re: problem with re(4) interface In-Reply-To: References: User-Agent: UDNSMS/17.0 Message-ID: X-Sender: bsd-lists@bsdforge.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4HyZBP6ggHz4fGh X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [0.00 / 15.00]; ASN(0.00)[asn:11404, ipnet:24.113.0.0/16, country:US]; local_wl_ip(0.00)[24.113.41.81] X-ThisMailContainsUnwantedMimeParts: N On 2021-11-22 08:47, Chuck Tuffli wrote: > Running on a recent-ish -current > # uname -a > FreeBSD stargate.tuffli.net 14.0-CURRENT FreeBSD 14.0-CURRENT > main-81b22a9892 GENERIC amd64 > > I'm having trouble using the second NIC interface in a bridge to provide > network connectivity to bhyve VMs and need some help figuring out what is > wrong. > > The system is an AMD Ryzen mini-pc (UM250) with two RealTek gigabit NICs > (8168/8111). The second NIC (re1) is a member of a bridge. A configuration > similar to this works on a different system with Intel NICs, but on this > system, the VMs aren't able to connect to the network. I've done the easy > things and verified, for example, the interface can pass traffic (i.e. > hardware, cable, switch are fine). There are some additional "odd" things. > For example, ifconfig doesn't configure an address or even enable the > interface. E.g., > > # ifconfig re1 10.0.0.10/24 up > # ifconfig re1 > re1: flags=8902 metric 0 mtu 1500 > > options=82099 > ether 1c:83:41:28:c9:e4 > media: Ethernet autoselect (1000baseT ) > status: active > nd6 options=29 > > The command does appear to enable/disable the port: > # tail -f /var/log/messages > Nov 22 08:31:03 stargate kernel: re1: link state changed to DOWN > Nov 22 08:31:11 stargate kernel: re1: link state changed to UP > > Note that setting the interface's address from rc.conf works, but after the > system boots, setting the address from the command line doesn't. What else > should I check? > > # ifconfig -a -G lo > re0: flags=8843 metric 0 mtu 1500 > > options=8209b > ether 1c:83:41:28:c9:e3 > inet 192.168.5.10 netmask 0xffffff00 broadcast 192.168.5.255 > media: Ethernet autoselect (1000baseT ) > status: active > nd6 options=29 > re1: flags=8902 metric 0 mtu 1500 > > options=82099 > ether 1c:83:41:28:c9:e4 > media: Ethernet autoselect (1000baseT ) > status: active > nd6 options=29 > vm-public: flags=8843 metric 0 mtu > 1500 > ether 46:76:29:af:7b:fa > id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 > maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200 > root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 > member: tap0 flags=143 > ifmaxaddr 0 port 5 priority 128 path cost 2000000 > member: re1 flags=143 > ifmaxaddr 0 port 2 priority 128 path cost 20000 > groups: bridge vm-switch viid-4c918@ > nd6 options=9 > tap0: flags=8943 metric 0 > mtu 1500 > description: vmnet-freebsd-0-public > options=80000 > ether 58:9c:fc:10:ff:f6 > groups: tap vm-port > media: Ethernet autoselect > status: active > nd6 options=29 > Opened by PID 38298 Because there's subtle differences between them; are you using the re driver from base, or from ports? > > --chuck --Chris