having trouble getting default to be added to route table, says filtered out
Ondrej Zajicek
santiago at crfreenet.org
Sat Dec 31 00:47:31 CET 2016
On Fri, Dec 30, 2016 at 12:27:13PM -0800, Jerry Scharf wrote:
> Hi,
>
> I did a quick look at the archives and didn't see exactly what I was
> trying discussed.
>
> filter load_default {
> if net = [0.0.0.0/0] then accept;
Hi
Here is the mistake - you have to use either 'net = 0.0.0.0/0' or
'net ~ [0.0.0.0/0]'. In the first case the net is compared against
the default net, in the second case a membership check is computed
(whether the net is a member of a prefix set of the default net).
Your check is always false because prefixes and a prefix sets are
different types of objects.
> function is_primary() {
> return net = [198.48.100.10/32, 198.48.100.20/32];
> }
>
> function is_secondary() {
> return net = [8.25.217.10/32, 8.25.217.21/32];
> }
The same problem here.
> function is_tertiary() {
> return net ~ [198.48.100.0/24+, 8.25.217.0/24+];
> }
While this is correct.
--
Elen sila lumenn' omentielvo
Ondrej 'Santiago' Zajicek (email: santiago at crfreenet.org)
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
"To err is human -- to blame it on a computer is even more so."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20161231/4f265a25/attachment.asc>
More information about the Bird-users
mailing list