04-06-2017 09:22 AM - edited 03-05-2019 08:18 AM
Hello,
I'm trying a simple BGP example here with asr9k ios 6.0.2
router bgp 100
address-family ipv4 unicast
network 10.10.10.0/24
neighbor 1.1.1.1
remote-as 200
address-family ipv4 unicast
route-policy filtroEntrada in
route-policy ANUNCIO_200 out
!
prefix-set PREFIXOS_200
10.10.10.0/24
end-set
route-policy filtroEntrada
drop
end-policy
route-policy ANUNCIO_200
if destination in PREFIXOS_200 then
prepend as-path 200 1
pass
endif
end-policy
router static
address-family ipv4 unicast
0.0.0.0/0 Bundle-Ether1 1.1.1.1 permanent
So basically, the bgp session is established, I'm filtering all routes delivered by AS 200 as expected, and I'm advertising 10.10.10.0/24 prefix with aspath modified. I have a static default route via neighbor 1.1.1.1.
The problem I'm seeing is I can't communicate with anything through this neighbor. The behavior changes when I change route-policy filtroEntrada to pass everything, then I can communicate with any host via neighbor 1.1.1.1.
What am I missing?
Thanks
Solved! Go to Solution.