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.
04-06-2017 12:11 PM
Hello,
your static route has a destination VRF specified:
router static
address-family ipv4 unicast
0.0.0.0/0 Bundle-Ether1 1.1.1.1 permanent
Try to remove the VRF from the static route...
04-06-2017 12:11 PM
Hello,
your static route has a destination VRF specified:
router static
address-family ipv4 unicast
0.0.0.0/0 Bundle-Ether1 1.1.1.1 permanent
Try to remove the VRF from the static route...
04-06-2017 12:19 PM
Ok, I'll try that.
04-07-2017 06:43 AM
Thanks! it worked!
04-06-2017 12:14 PM
Hi,
I am not familiar with asr9ks, but according to your policy everything inbound supposed to be drooped. 1.1.1.1
route-policy filtroEntrada
drop
end-policy
So, it should be changed to pass.
HTH
04-06-2017 12:20 PM
My objective is to receive not any prefixes from 1.1.1.1 / AS 200.
04-06-2017 12:38 PM
Also this link could be useful:
Perform this task to configure BGP routing filtering by route policy.
See the Implementing Routing Policy on Cisco ASR 9000 Series Routers module of Cisco ASR 9000 Series Aggregation Services Router Routing Configuration Guide (this publication) for a list of the supported attributes and operations that are valid for inbound and outbound neighbor policy filtering.
6. address-family {ipv4 | ipv6} unicast
7. route-policy route-policy-name {in | out}
Reference: http://www.cisco.com/c/en/us/td/docs/routers/asr9000/software/routing/configuration/guide/rcasr9kbgp.html#wp1207277
04-06-2017 02:49 PM
Hi
If you are implementing eBGP between 2 ASR you need to create a PASS policy and apply it on both ASR, example:
route-policy PASS
pass
exit
router bgp 100
address-family ipv4 unicast
neighbor 1.1.1.1
remote 100
update-source <interface> <--- if you are not using the connected subnets>
ebgp-multihop <hop value> <-- if the above is applied>
address-family ipv4 unicast
no route-policy filtroEntrada in
route-policy PASS in
route-policy PASS out
exit
commit
If your neighborship is in active status, you could verify if they have router-id configured:
sh bgp neighbor detail
BGP neighbor is 100.100.100.2
Remote AS 200, local AS 100, external link
Remote router ID 0.0.0.0
BGP state = Active (Router-ID not available)
to configure the router-id
router bgp x
address-family ipv4 unicast
bgp router-id x.x.x.x
If you are configuring a normal eBGP the static route is not required. It is used when you are creating an eBGP and passing mpls labels throught it for example through an ipv4 connection.
Hope it is useful
:-)
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide