Routed and netmask...

Nikos Vassiliadis nvass at teledomenet.gr
Mon Feb 5 08:09:33 UTC 2007


On Saturday 03 February 2007 22:08, Thiago Esteves de Oliveira wrote:
> Hi,
> 
> I'm using "FreeBSD 6.2 Stable" with routed to connect networks(gateway)....
> 
> 
>    THE INTERNET
>              |
>              |
> --------------------------------
> |  eee.eee.eee.0/26  |
> --------------------------------
>              |
>              |
>        eee.eee.eee.11/26
>        ROUTER
>        iii.iii.iii.1
>              |
>              |
>      --------------------
>      |  iii.iii.iii.0/24 |  "My Network"
>      --------------------
> 
> 
> The problem...
> 
> The system is routing, but only to iii.iii.iii.0/26 .
> 
> Look... my rc.conf
> 
> ifconfig_em0="inet iii.iii.iii.1 netmask 255.255.255.0"
> ifconfig_sk0="inet eee.eee.eee.11 netmask 255.255.255.192"
> 
> defaultrouter="eee.eee.eee.1"
> router_enable="YES"
> router_flags="-s"
> gateway_enable="YES"
> router="/sbin/routed"
> 

routed uses by default ripv1, which is clasful.
That means that your net/26 surely won't work.
I doubt your other_net/24 is a C class network,
(from 192.0.0.0/24 to 223.255.255.0/24).

Use explicitly ripv2("-P ripv2") and see what's
going on. You can use rtquery to query routed.
Check the neighbour routeds as well. Be sure
to check the in-kernel routing table using
"netstat -r".

Hope this helps, Nikos


More information about the freebsd-questions mailing list