Feb. 15th, 2016

victor_sudakov: (Default)
Сабж делается так

protocol static pool1 {
        route x.x.x.x/24 unreachable ;
}
protocol ospf MyOSPF {
        export filter {
                ospf_metric1 = 200;
                if proto = "pool1" then accept; else reject;
        };
...
}


Вообще семантика import и export в BIRD неинтуитивная. Export пишется в секции протокола, но означает экспорт маршрутов из routing table в данный протокол. IMHO интуитивно было бы наоборот.

import all | none | filter name | filter { filter commands } | where filter expression

Specify a filter to be used for filtering routes coming from the protocol to the routing table. all is shorthand for where true and none is shorthand for where false. Default: all.

export filter

This is similar to the import keyword, except that it works in the direction from the routing table to the protocol. Default: none.

Profile

victor_sudakov: (Default)
Виктор Судаков

December 2024

S M T W T F S
1234567
891011121314
15161718192021
22232425262728
293031    

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Aug. 19th, 2025 09:45 am
Powered by Dreamwidth Studios