On 08/27/2013 01:11 PM, OCEANET - Cédric BASSAGET wrote:
Hi,
We used to have two cisco routers for BGP, ans we changed for openbsd
servers with bgpd.
I'm looking for a feature that was simple on cisco : re-announce a
learner subnet to a neighbor.
In cisco, I had :
####
router bgp MY_AS
bgp router-id 46.226.x.x
neighbor 46.18.x.x remote-as NEIGH1_AS
neighbor 46.18.x.x description neigh1
address-family ipv4
neighbor 46.18.x.x activate
neighbor 46.18.x.x route-map neigh1_voip_in in
neighbor 46.18.x.x route-map neigh1_voip_out out
####
route-map neigh1_voip_in permit 10
match ip address prefix-list neigh1_subnets_voip
route-map neigh1_voip_in deny 100
match ip address prefix-list REFUSE_ALL
route-map neigh1_voip_out permit 10
match ip address prefix-list voice_subnets
set as-path prepend MY_AS
route-map neigh1_voip_out deny 100
match ip address prefix-list REFUSE_ALL
####
ip prefix-list voice_subnets seq 9 permit 91.213.x.x/24 le 32
<== the subnet I want to redistribute to neigh1
ip prefix-list neigh1_subnets_voip seq 10 permit 46.18.x.x/26 le 32 <==
the subnet that neigh1 announces to me
ip prefix-list REFUSE_ALL seq 10 permit 0.0.0.0/0 le 32
I'm trying to do the same thing with bgpd, but I can't find how.
Any idea ?
like this:
REFUSE_ALL= "{....}"
deny prefix $REFUSE_ALL
allow from 46.18.x.x prefix 46.18.x.x/24 prefixlen <= 32
allow to 46.18.x.x prefix 91.213.x.x/24 prefixlen <= 32 set prepend-self 1
--
With best regards,
Gregory Edigarov