2011/11/16 Alexander Shikoff <minotaur@crete.org.ua>
Firstly, the term "announce" usually applies to BGP, but I cannot see
anny configuration related to BGP.

Secondly, every route being announced via BGP should be confirmed with some
IGP protocol, for example, static. Thus if you have no 11.11.11.0/24
in IGP then 11.11.11.0/24 will not be announced via BGP. It seems
you do not have 11.11.11.0/24 in IGP.

Thirdly, if you want to announce only two /24 networks then make a
outbound BGP filter and include them into it.


I omitted bgp configuration and filters because it is not my problem.
Outgoing filtr is:
#+
function net_local() { return net ~ [ 11.11.11.0/24+, 12.12.12.0/24+ ]; }

function rt_export() {
if proto = "static_bgp" then return true;
if source != RTS_BGP then return false;
if net_martian() then return false;
if bgp_path.len > 45 then return false;
return bgp_path.first ~ [ 111 ];
}

filter bgp_out_222 { if net_local() then accept; else reject;
if ! rt_export() then reject; accept; }
#v-

I dont know how to announce two /24 to test-peer AS222

--
damkol@gmail.com