I am new to freeBSD, and usually use Fedora or Ubuntu. I have a typical home installation: ethernet and router. Not able to ping network sites.
Setup
ethernet: em0
IP addr: 192.168.1.18
subnet mask: 255.255.255.0
default router: 192.168.1.1
did not initialize ipv6
Can ping the loopback and 192.168.1.18 (IP address) addresses ok
cannot ping the router (192.168.1.1) ( On fedora 29 I can ping the router). Get message: host is down
cannot ping 8.8.8.8. Get message: ping:send:no route to host
The book absolute freeBSD 3rd edition does not seem to cover my situation.
UPDATE
I have 2 ethernet ports and using netstat -4 -r -n showed that the route to the router was using the unconnected port.
I could not change this using bsdconfig. I used route to delete the default route table and added a new default route and specified the ethernet port.
I could then ping 8.8.8.8
I could not ping the router ("host is down"), but the router is working and I can ping internet addresses.
Problem closed.
Setup
ethernet: em0
IP addr: 192.168.1.18
subnet mask: 255.255.255.0
default router: 192.168.1.1
did not initialize ipv6
Can ping the loopback and 192.168.1.18 (IP address) addresses ok
cannot ping the router (192.168.1.1) ( On fedora 29 I can ping the router). Get message: host is down
cannot ping 8.8.8.8. Get message: ping:send:no route to host
The book absolute freeBSD 3rd edition does not seem to cover my situation.
UPDATE
I have 2 ethernet ports and using netstat -4 -r -n showed that the route to the router was using the unconnected port.
I could not change this using bsdconfig. I used route to delete the default route table and added a new default route and specified the ethernet port.
I could then ping 8.8.8.8
I could not ping the router ("host is down"), but the router is working and I can ping internet addresses.
Problem closed.