From nobody Sun Mar 2 13:09:49 2025 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 4Z5Mjs3bHzz5pKH8 for ; Sun, 02 Mar 2025 13:09:53 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Z5Mjq5H61z3L6t for ; Sun, 02 Mar 2025 13:09:51 +0000 (UTC) (envelope-from guru@unixarea.de) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=unixarea.de header.s=blu3434000 header.b=YlE65bxE; dmarc=none; spf=pass (mx1.freebsd.org: domain of guru@unixarea.de designates 178.254.4.101 as permitted sender) smtp.mailfrom=guru@unixarea.de DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=unixarea.de ; s=blu3434000; h=In-Reply-To:Content-Transfer-Encoding:Content-Type: MIME-Version:References:Reply-To:Message-ID:Subject:To:From:Date:Sender:Cc: Content-ID:Content-Description; bh=suD89IrGPg4b4YAlmgw5abA9ko0RC4F4Ac3HFfEpq1Q=; b=YlE65bxE8LGONGTVF3+joI5Y6x f84Ed47j+jFzmMFNeOShruA8sU0GuZ1x0mzIaq0ctlzPwSs52OeGkaq+7cStIY4muisaywZb+Lswl 0Tvlg6s1eRp0DWpSgtikwDRKRX0IxA0eqVI4n3imMeg1UqCcdaqz/xPJXP11l/TubNbNy+RLM+PUp LzsGceZEpfmBqyyJujvBg+tumhlK8+PlomLs1wVy7NXBnQnrUhgBLlCXWQM1kS+3f/sVAaQsji/CA Mqr2mIhc0+m90iVOrrjnni/j4mdu0fILGLZ1YvY0pInrL9otukfVAuFIvm3GfbEn4vHpf2DCwSEw6 Hi3RJYjA==; Received: from [80.130.223.153] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1toj4o-007eud-2d for freebsd-current@freebsd.org; Sun, 02 Mar 2025 14:09:50 +0100 Received: from c720-1400094.speedport.ip (c720-1400094 [127.0.0.1]) by localhost.unixarea.de (8.17.1/8.14.9) with ESMTP id 522D9nwk005123 for ; Sun, 2 Mar 2025 14:09:49 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by c720-1400094.speedport.ip (8.17.1/8.14.9/Submit) id 522D9nke005122 for freebsd-current@freebsd.org; Sun, 2 Mar 2025 14:09:49 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: c720-1400094.speedport.ip: guru set sender to guru@unixarea.de using -f Date: Sun, 2 Mar 2025 14:09:49 +0100 From: Matthias Apitz To: freebsd-current@freebsd.org Subject: Re: No working interface bce0 after updating to CURRENT of March 1 Message-ID: Reply-To: Matthias Apitz Mail-Followup-To: freebsd-current@freebsd.org References: 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 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Operating-System: FreeBSD 14.0-CURRENT r1400094 (amd64) X-message-flag: Mails in HTML will not be read! Please, only plain text. X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 80.130.223.153 X-Spamd-Result: default: False [-0.80 / 15.00]; RBL_SENDERSCORE_REPUT_5(1.50)[178.254.4.101:from]; NEURAL_HAM_SHORT(-0.99)[-0.992]; NEURAL_HAM_LONG(-0.93)[-0.928]; NEURAL_HAM_MEDIUM(-0.78)[-0.783]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_IN_DNSWL_LOW(-0.10)[178.254.4.101:from]; BAD_REP_POLICIES(0.10)[]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_DKIM_ALLOW(0.00)[unixarea.de:s=blu3434000]; RCVD_COUNT_THREE(0.00)[3]; SUSPICIOUS_AUTH_ORIGIN(0.00)[]; MIME_TRACE(0.00)[0:+]; DMARC_NA(0.00)[unixarea.de]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; DKIM_TRACE(0.00)[unixarea.de:+]; HAS_XAW(0.00)[]; MISSING_XM_UA(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; HAS_REPLYTO(0.00)[guru@unixarea.de]; HAS_XOIP(0.00)[]; R_SPF_ALLOW(0.00)[+ip4:178.254.4.101]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; ASN(0.00)[asn:42730, ipnet:178.254.0.0/19, country:DE]; RCVD_VIA_SMTP_AUTH(0.00)[]; REPLYTO_EQ_FROM(0.00)[] X-Rspamd-Queue-Id: 4Z5Mjq5H61z3L6t X-Spamd-Bar: / I had a wild guess and plug'ed in the RJ-45 into the server's 2nd port, modified /etc/rc.conf, booted and all was fine: $ ssh 192.168.178.5 $ uname -a FreeBSD jet 15.0-CURRENT FreeBSD 15.0-CURRENT #0 main-n275738-7ee310c80ea7: Sun Mar 2 01:13:00 CET 2025 guru@jet:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 /etc/rc.conf: # ifconfig_bce0="inet 192.168.178.5 netmask 255.255.255.0" ifconfig_bce1="inet 192.168.178.5 netmask 255.255.255.0" defaultrouter="192.168.178.1" $ netstat -rn Routing tables Internet: Destination Gateway Flags Netif Expire default 192.168.178.1 UGS bce1 127.0.0.1 link#3 UH lo0 192.168.178.0/24 link#2 U bce1 192.168.178.5 link#3 UHS lo0 ... $ ifconfig bce0 bce0: flags=8802 metric 0 mtu 1500 options=c01bb ether d4:ae:52:bf:79:cc media: Ethernet autoselect nd6 options=29 $ ifconfig bce1 bce1: flags=1008843 metric 0 mtu 1500 options=c01bb ether d4:ae:52:bf:79:cd inet 192.168.178.5 netmask 0xffffff00 broadcast 192.168.178.255 media: Ethernet autoselect (1000baseT ) status: active nd6 options=29 If I compare the ifconfig-values of the not working bce0 (see below) and now bce1, there is no difference. It is somewhat magic, that bce0 stopped working after the first boot of the new kernel. matthias El día domingo, marzo 02, 2025 a las 10:45:24a. m. +0100, Matthias Apitz escribió: > Hello, > > > Last night I updated a server from a > > 14.0-CURRENT amd64 1400094 #2 main-n264568-1d7ffb373c9d-dirty: Wed Sep 6 07:13:22 CEST 2023 > > to the CURRENT of March 1, 2025. > All went fine. > > # git clone https://git.freebsd.org/src.git /usr/src > > # cd /usr/src > # make -j8 buildworld > ... > --- buildworld_epilogue --- > > -------------------------------------------------------------- > >>> World build completed on Sat Mar 1 23:13:55 CET 2025 > >>> World built in 12817 seconds, ncpu: 8, make -j8 > > > # make -j8 buildkernel > ... > -------------------------------------------------------------- > >>> Kernel build for GENERIC completed on Sun Mar 2 01:13:25 CET 2025 > -------------------------------------------------------------- > >>> Kernel(s) GENERIC built in 769 seconds, ncpu: 8, make -j8 > > > This morning I ssh'ed into the server, installed the kernel and world the usual way > and now the bce0 interface (connected via RJ-45 with my router) does > not work anymore. I'm clueless. > > The data and logs are from the server, transfered via an USB gadget: > > Mar 2 07:27:17 jet kernel: bce0: mem 0xc0000000-0xc1ffffff irq 16 at device 0.0 on pci2 > Mar 2 07:27:17 jet kernel: miibus0: on bce0 > Mar 2 07:27:17 jet kernel: bce0: Using defaults for TSO: 65518/35/2048 > Mar 2 07:27:17 jet kernel: bce0: Ethernet address: d4:ae:52:bf:79:cc > Mar 2 07:27:17 jet kernel: bce0: ASIC (0x57092008); > Mar 2 07:27:17 jet kernel: bce0: link state changed to DOWN > Mar 2 07:27:19 jet kernel: bce0: Gigabit link up! > Mar 2 07:27:19 jet kernel: bce0: link state changed to UP > Mar 2 07:27:19 jet kernel: bce0: Gigabit link up! > > First boot after install kernel and world: > > Mar 2 08:49:53 jet kernel: bce0: mem 0xc0000000-0xc1ffffff irq 16 at device 0.0 on pci2 > Mar 2 08:49:53 jet kernel: miibus0: on bce0 > Mar 2 08:49:53 jet kernel: bce0: Using defaults for TSO: 65518/35/2048 > Mar 2 08:49:53 jet kernel: bce0: Ethernet address: d4:ae:52:bf:79:cc > Mar 2 08:49:53 jet kernel: bce0: ASIC (0x57092008); > Mar 2 08:49:53 jet kernel: bce0: link state changed to DOWN > Mar 2 08:49:55 jet kernel: bce0: Gigabit link up! > Mar 2 08:49:55 jet kernel: bce0: link state changed to UP > Mar 2 08:49:55 jet kernel: bce0: Gigabit link up! > Mar 2 08:56:08 jet kernel: bce0: link state changed to DOWN > Mar 2 08:56:17 jet kernel: bce0: Gigabit link up! > Mar 2 08:56:17 jet kernel: bce0: link state changed to UP > Mar 2 08:57:17 jet kernel: bce0: link state changed to DOWN > Mar 2 08:57:33 jet kernel: bce0: Gigabit link up! > Mar 2 08:57:33 jet kernel: bce0: link state changed to UP > Mar 2 08:57:56 jet kernel: bce0: link state changed to DOWN > Mar 2 08:58:00 jet kernel: bce0: Gigabit link up! > Mar 2 08:58:00 jet kernel: bce0: link state changed to UP > > A test with DHCP, the interface gets an IP addr assigned, i.e. the > RJ-45 cable is fine (was fine and connected for years): > > Mar 2 09:05:49 jet dhclient[1613]: New IP Address (bce0): 192.168.178.31 > Mar 2 09:05:49 jet dhclient[1617]: New Subnet Mask (bce0): 255.255.255.0 > Mar 2 09:05:49 jet dhclient[1621]: New Broadcast Address (bce0): 192.168.178.255 > Mar 2 09:05:49 jet dhclient[1625]: New Routers (bce0): 192.168.178.1 > > reboot, the interface gets the IP addr from /etc/rc.conf: > > # ifcpnfig bce0 > bce0: flags=1008843 metric 0 mtu 1500 > options=c01bb > ether d4:ae:52:bf:79:cc > inet 192.168.178.5 netmask 0xffffff00 broadcast 192.168.178.255 > media: Ethernet autoselect (1000baseT ) > status: active > nd6 options=29 > > # netstat -rn > Routing tables > > Internet: > Destination Gateway Flags Netif Expire > default 192.168.178.1 UGS bce0 > 127.0.0.1 link#3 UH lo0 > 192.168.178.0/24 link#2 U bce1 > 192.168.178.5 link#3 UHS lo0 > 192.168.178.6 link#3 UHS lo0 > > Internet6: > Destination Gateway Flags Netif Expire > ::/96 link#3 URS lo0 > ::1 link#3 UHS lo0 > ::ffff:0.0.0.0/96 link#3 URS lo0 > fe80::%lo0/10 link#3 URS lo0 > fe80::%lo0/64 link#3 U lo0 > fe80::1%lo0 link#3 UHS lo0 > ff02::/16 link#3 URS lo0 > > Pinging the gateway 192.168.178.1 gives: > > PING 192.168.178.1 (192.168.178.1): 56 data bytes > > --- 192.168.178.1 ping statistics --- > 3 packets transmitted, 0 packets received, 100.0% packet loss > ping: sendto: No route to host > ping: sendto: No route to host > ping: sendto: No route to host > ping: sendto: No route to host > ping: sendto: No route to host > ping: sendto: No route to host > PING 192.168.178.1 (192.168.178.1): 56 data bytes > > --- 192.168.178.1 ping statistics --- > 6 packets transmitted, 0 packets received, 100.0% packet loss > > In the admin interface of the router the server shows up as not > connected. > > IP-Adresse: 192.168.178.1 ----(disconnected) --- jet > > What can I check and do? Thanks > > matthias > > > -- > Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045 > Public GnuPG key: http://www.unixarea.de/key.pub > -- Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub