Hello, all.
I am facing with this issue where the ip address and the default gateway are on different networks. FreeBSD just won't allow setting the default route.
This host ip is 10.0.2.100/24. The GW is 10.0.0.254. There is no GW for 10.0.2.0.
I got this error when adding the default GW with rc.conf or route add
As you might know that Windows and Linux OSes are ok with using the gateway that is different from its network.
How can I fix this problem on a FreeBSD box?
Thanks.
I am facing with this issue where the ip address and the default gateway are on different networks. FreeBSD just won't allow setting the default route.
This host ip is 10.0.2.100/24. The GW is 10.0.0.254. There is no GW for 10.0.2.0.
I got this error when adding the default GW with rc.conf or route add
Code:
(route: writing to routing socket: Network is unreachable
add net default: gateway 10.0.0.254: Network is unreachable
As you might know that Windows and Linux OSes are ok with using the gateway that is different from its network.
How can I fix this problem on a FreeBSD box?
Thanks.