Solved 15.0-RELEASE - Ethernet internet not working.

Hello Team,

I installed FreeBSD 15, during installation the same network interface has worked and using same I continued with my installation. Post installation, I cant managed to get it working.

### Release
Code:
root@ntng:~ # freebsd-version

15.0-RELEASE


### Output of `pciconf`

Code:
root@ntng:~ # pciconf -lv | grep -i -A2 -B3 network
none4@pci0:6:0:0:    class=0x020000 rev=0x05 hdr=0x00 vendor=0x10ec device=0x8125 subvendor=0x1bdf subdevice=0xa276
    vendor     = 'Realtek Semiconductor Co., Ltd.'
    device     = 'RTL8125 2.5GbE Controller'
    class      = network
    subclass   = ethernet
rtw890@pci0:8:0:0:    class=0x028000 rev=0x00 hdr=0x00 vendor=0x10ec device=0xb852 subvendor=0x17aa subdevice=0x4853
    vendor     = 'Realtek Semiconductor Co., Ltd.'
    device     = 'RTL8852BE PCIe 802.11ax Wireless Network Controller'
    class      = network
xhci1@pci0:10:0:0:    class=0x0c0330 rev=0x01 hdr=0x00 vendor=0x1022 device=0x43f9 subvendor=0x1b21 subdevice=0x1142
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
--
re0@pci0:12:0:1:    class=0x020000 rev=0x1a hdr=0x00 vendor=0x10ec device=0x8168 subvendor=0x17aa subdevice=0x3317
    vendor     = 'Realtek Semiconductor Co., Ltd.'
    device     = 'RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet Controller'
    class      = network
    subclass   = ethernet
vgapci0@pci0:13:0:0:    class=0x030000 rev=0xd0 hdr=0x00 vendor=0x1002 device=0x15bf subvendor=0x17aa subdevice=0x3317

### output of `ifconfig`

Code:
root@ntng:~ # ifconfig re0
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
    options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
    ether 18:3d:2d:ea:21:5f
    inet 192.168.1.150 netmask 0xffffff00 broadcast 192.168.1.255
    inet6 fe80::1a3d:2dff:feea:215f%re0 prefixlen 64 scopeid 0x1
    media: Ethernet autoselect (none)
    status: no carrier
    nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
root@ntng:~ #

output of 'sysctl.conf'
Code:
root@ntng:~ # cat /etc/sysctl.conf
#
#  This file is read when going to multi-user and its contents piped thru
#  ``sysctl'' to adjust kernel values.  ``man 5 sysctl.conf'' for details.
#

# Uncomment this to prevent users from seeing information about processes that
# are being run under another UID.
#security.bsd.see_other_uids=0
security.bsd.see_other_uids=0
security.bsd.see_other_gids=0
security.bsd.see_jail_proc=0
security.bsd.unprivileged_read_msgbuf=0
security.bsd.unprivileged_proc_debug=0
kern.randompid=1
root@ntng:~ # cat /etc/rc.conf
syslogd_flags="-ss"
hostname="ntng"
ifconfig_re0="inet 192.168.1.150 netmask 255.255.255.0"
ifconfig_re0_ipv6="inet6 accept_rtadv"
sshd_enable="YES"
ntpd_enable="YES"
local_unbound_enable="YES"
powerd_enable="YES"
moused_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
kld_list="amdgpu"
dbus_enable="YES"
root@ntng:~ #

Please help me, what I am missing here.

Thank you.
 
Hello,
Issue Resolved.
After giving all this data to Google Gemini, it suggested me installing the missing driver package, and issue got solved. Here is what I have done

Code:
# installing pkg realtek-re-kmod
pkg install realtek-re-kmod
# update bootloader.conf with

 if_re_load= "YES"
 if_re_name="/boot/modules/if_re.ko"


post restart I found that `defaultrouter` missing, so I added that to sysctl.conf and now I am able to access the internet via Ethernet.

During installation BSD automatically took care of everything, but post install I had to struggle to get this far, any reason why here its acting differently ?

Thank you.
Raja
 
any reason why here its acting differently ?
You have two Realtek ethernet interfaces, one gigabit and one 2.5Gbit. The 2.5Gbit isn't supported, the gigabit is. So I'm thinking you plugged it in on the gigabit interface during the installation (that driver works) but later on you plugged it in on the 2.5Gbit interface, which isn't supported.

By installing the net/realtek-re-kmod the 2.5Gbit interface works.
 
Back
Top