Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Feb 2007 10:12:17 +0200
From:      Nikos Vassiliadis <nvass@teledomenet.gr>
To:        freebsd-questions@freebsd.org
Cc:        Thiago Esteves de Oliveira <thiago.e.o@gmail.com>
Subject:   Re: Routed and netmask...
Message-ID:  <200702051012.18339.nvass@teledomenet.gr>
In-Reply-To: <c46abf9d0702031208m1cbdf554p7fc7dddf6d5bf20a@mail.gmail.com>
References:  <c46abf9d0702031208m1cbdf554p7fc7dddf6d5bf20a@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200702051012.18339.nvass>