My Internet wasn't working properly, and I wasn't able to ping my router. Some Internet sites worked, while others didn't. Used a live Linux CD, and the Internet was fine, and I could ping my router from it. That showed that the problem wasn't my router or the Ethernet cable.
It turns out that sites that used IPv6 worked, while IPv4 wasn't functioning on my FreeBSD 13.1-RELEASE machine. ping6 and
DHCP gave error messages in the bootup. A similar error message from trying to load it from the command line was:
Setting it manually with CIDR notation without DHCP got it to work.Manually setting it wouldn't work without CIDR notation anymore.
rc.conf:
Then loading it on the command line:
This last line also allowed it to be restarted without a reboot. Then, it worked.
Not sure if I messed up a setting for DHCP without realizing it for it to stop working. The error message gives a depreciation warning. I recompiled the kernel, but don't remember making a recent base update. dhclient(8) is relevant for DHCP. Maybe this will help someone figure out what to do if their Internet from FreeBSD stops working correctly.
It turns out that sites that used IPv6 worked, while IPv4 wasn't functioning on my FreeBSD 13.1-RELEASE machine. ping6 and
traceroute6
worked from FreeBSD. ifconfig
showed the IPv6 information, but lacked the IPv4 information.DHCP gave error messages in the bootup. A similar error message from trying to load it from the command line was:
Code:
ifconfig: WARNING: setting interface address without mask is deprecated,
default mask may not be correct.
Setting it manually with CIDR notation without DHCP got it to work.
rc.conf:
Code:
ifconfig_re0="inet 192.168.1.115/16"
ifconfig re0 inet 192.168.1.115/16
service netif restart
service routing restart
This last line also allowed it to be restarted without a reboot. Then, it worked.
Not sure if I messed up a setting for DHCP without realizing it for it to stop working. The error message gives a depreciation warning. I recompiled the kernel, but don't remember making a recent base update. dhclient(8) is relevant for DHCP. Maybe this will help someone figure out what to do if their Internet from FreeBSD stops working correctly.