Change gateway
Steve Bertrand
iaccounts at ibctech.ca
Thu Apr 24 16:47:39 UTC 2008
> I'm trying to set the gateway 10.0.253.1 to the host 10.0.253.161/27 but i've received the answer:
>
> # route flush
> # route add default 10.0.253.1
>
> route: writing to routing socket: Network is unreachable
>
> The gateway and the host are connected in the same switch
Even though the physical connection is the same, the .1 address is in a
different subnet entirely than .161, due to the /27 prefix length.
10.0.253.160/27 encompasses 161-190. It's a good thing FreeBSD breaks in
this case ;)
You will need to change your prefix length to /24 on the host, or add a
secondary IP from the 160/27 range to the gateway to make this work.
Regards,
Steve
More information about the freebsd-questions
mailing list