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<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=c01bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,VLAN_HWTSO,LINKSTATE>
ether d4:ae:52:bf:79:cc
media: Ethernet autoselect
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
$ ifconfig bce1
bce1: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0
mtu 1500
options=c01bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,VLAN_HWTSO,LINKSTATE>
ether d4:ae:52:bf:79:cd
inet 192.168.178.5 netmask 0xffffff00 broadcast 192.168.178.255
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
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: <QLogic NetXtreme II BCM5716 1000Base-T
> (C0)> mem 0xc0000000-0xc1ffffff irq 16 at device 0.0 on pci2
> Mar 2 07:27:17 jet kernel: miibus0: <MII bus> 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: <QLogic NetXtreme II BCM5716 1000Base-T
> (C0)> mem 0xc0000000-0xc1ffffff irq 16 at device 0.0 on pci2
> Mar 2 08:49:53 jet kernel: miibus0: <MII bus> 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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0
> mtu 1500
>
> options=c01bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,VLAN_HWTSO,LINKSTATE>
> ether d4:ae:52:bf:79:cc
> inet 192.168.178.5 netmask 0xffffff00 broadcast 192.168.178.255
> media: Ethernet autoselect (1000baseT <full-duplex>)
> status: active
> nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
>
> # 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, ✉ [email protected], http://www.unixarea.de/ +49-176-38902045
> Public GnuPG key: http://www.unixarea.de/key.pub
>
--
Matthias Apitz, ✉ [email protected], http://www.unixarea.de/ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub