SOLVED /23 static routing question

Paul Macdonald paul at ifdnrg.com
Wed Mar 13 15:37:27 UTC 2013


On 13/03/2013 14:59, Paul Macdonald wrote:
>
> Hi,
>
> I have added an IP of the 2nd group of 254 addresses in a /23.
>
> let's call them            100.100.98.0           and 100.100.99.0
>
> what's the correct way to set up the routing table for this and how my 
> rc.conf should look
>
> Currently netstat shows something like the below
>
> Destination        Gateway            Flags    Refs      Use Netif Expire
> default            100.100.98.254     UGS         0 111301074 bge0
> 100.100.98.0       link#1             U           0 1470707172 bge0
>
> But  i suspect i want:
>
> Internet:
> Destination        Gateway            Flags    Refs      Use Netif Expire
> default            100.100.98.254     UGS         0 111301074 bge0
> 100.100.98.0       link#1             U           0 1470707172 bge0
> 100.100.99.0       link#1             U           0 1470707172 bge0
>
> or
> 100.100.98.0/23       link#1             U           0 1470707172 bge0
>
>

restarting routing seemed to do this fine...:P

/" FreeBSD will automatically identify any hosts (//test0//in the 
example) on the local Ethernet and add a route for that host, directly 
to it over the Ethernet interface, //ed0"//
/http://www.freebsd.org/doc/handbook/network-routing.html


More information about the freebsd-questions mailing list