Solved Networking problem in Realtek RTL8111/8168/8211/8411

Hello. I've configured a freebsd server, sadly, network doesn't work. By default the network is not working.
The network works if I do the following command after login as root:
ifconfig down re0
ifconfig up re0
dhclient re0.

I don't know what's happening and I need network working to use the server well :(.

Do you know what can be happening?
 
What's in rc.conf?

I think that is fine (I changed the hostname).

Code:
hostname="REDACTED"
keymap="us.macbook.kbd"
moused_nondefault_enable="NO"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
zfs_enable="YES"
ifconfig_re0="DHCP"
background_dhclient="YES"
netif_enable="YES"
 
Remove that netif_enable="YES" line. It's already enabled in /etc/defaults/rc.conf. Speaking of /etc/defaults/rc.conf, you haven't modified it I hope?
 
Remove that netif_enable="YES" line. It's already enabled in /etc/defaults/rc.conf. Speaking of /etc/defaults/rc.conf, you haven't modified it I hope?
Yes, I haven't modified /etc/defaults/rc.conf.
Ok I can remove this line from /etc/rc.conf.
I think the problem is that I was searching solutions and it must be part of one that doesn't work and I've fogoten remove it.
 
Don't think net/realtek-re-kmod is actually needed. I mean it works if the OP configures the network card from the command line. In other words, re(4) seems to work but for some reason it's not configured after a boot.
 
Don't think net/realtek-re-kmod is actually needed. I mean it works if the OP configures the network card from the command line. In other words, re(4) seems to work but for some reason it's not configured after a boot.
Not needed for OP case but I had sometime stock re(4) hang with sustained network traffic. Perhaps don't need anymore with more recent FreeBSD releases. Something to try but it works like that since FreeBSD 13.0-RELEASE when I first put this board in use.
 
Back
Top