Change gateway

Reid Linnemann lreid at cs.okstate.edu
Thu Apr 24 16:50:46 UTC 2008


Written by Aguiar Magalhaes on 04/24/08 11:42>>
> Hi list,
> 
> 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
> 
> How can I do it ?
> 
> Aguiar

your mask on 10.0.253.161 specifies the interfaces network spans
addresses 10.0.253.160 - 10.0.253.167. 10.0.253.1 is not in that range.


More information about the freebsd-questions mailing list