On 2013-11-21, OCEANET - Cédric BASSAGET <[email protected]> wrote: > Hello, > > I'm trying to re-announce a received subnet from peer A to peer B. > Here's what I've done : > > #peer A > neighbor $peer4_IP { > remote-as $peer4_AS > descr $peer4_NAME > local-address $LOCAL_ADDR > holdtime 20 > holdtime min 3 > announce self > set weight 200 > set localpref 200 > } > #peer B > neighbor $peer3_IP { > remote-as $peer3_AS > descr $peer3_NAME > multihop 2 > local-address $LOCAL_ADDR > holdtime 180 > holdtime min 3 > announce self > set localpref 150 > } > > > allow to $peer3_IP prefix /< /24 prefix that I wan to redistribute to > peer A>/ prefixlen <= 32 set prepend-self 1 > > > Can anybody tell me what's wrong and how I can do that ? > > Second question : how can I check the route I'm announcing to a neighbor > with bgpctl (something like "bgpctl show neighbor NEIGH1 > advertised-routes") ? > > Thanks > C�dric > >
"announce self" restricts announcements to be only your locally originated prefixes. You need "announce all" and then filter out the ones you don't want.

