[c-nsp] IOS XR OSPF redistribute to eBGP
Ahmed Sharif
ahmed.sharif at ericsson.com
Fri Apr 22 20:05:10 EDT 2016
Hi Aaron,
Let's focus on outbound only. Yes you are correct, I am not using RTs and I want it to be achieved using route-policy just like you mentioned below.
For out bound you defined the route-policy "ipv4-allow-out" in which you referenced "send-to-isp".
Can you show me the example configuration of "send-to-isp" ? Kindly note that the prefix I want to advertise is an ospf route.
route-policy ipv4-allow-out
if destination in send-to-isp then
pass
else
drop
endif
end-policy
Regards,
Ahmed
-----Original Message-----
From: Aaron [mailto:aaron1 at gvtc.com]
Sent: den 23 april 2016 01:50
To: Ahmed Sharif; cisco-nsp at puck.nether.net
Subject: RE: [c-nsp] IOS XR OSPF redistribute to eBGP
Since you are talking about vrf routes into bgp I guess you don't need RT's but I'm not entirely sure... I see you don't have RT's in your vrf.
I wonder if you need the network/23 in the vrf context under bgp... like...
router bgp 65201
vrf OM_InBand_TME_PE
Network x.x.x.x/23
...here's my vrf context under my bgp for network's I advertise to my isp...
router bgp 64512
vrf one
rd 10.101.101.101:1
address-family ipv4 unicast
aggregate-address 1.2.3.0/20 summary-only
aggregate-address 2.4.6.0/19 summary-only
neighbor 3.1.3.1
remote-as 6789
local-as 1369 no-prepend replace-as
address-family ipv4 unicast
route-policy ipv4-allow-in in
route-policy ipv4-allow-out out
...also, I'm not sure of the difference between "done" and "pass" in a route-policy... but I use "pass"
RP/0/RSP0/CPU0:eng-lab-9k-1(config-rpl)#if destination in testit then ?
....
done Accept this route with no further processing
....
pass Pass this route for further processing
...
...here's my outbound...
route-policy ipv4-allow-out
if destination in send-to-isp then
pass
else
drop
endif
end-policy
!
RP/0/RSP0/CPU0:grdn-9k#sh run prefix-set send-to-isp Fri Apr 22 18:30:47.346 CDT prefix-set send-to-isp
1.2.3.0/19,
2.4.6.0/20,
end-set
I don't see your inbound route-policy.... so maybe that's a problem too for getting the 0/0 route from your isp...
Here's my inbound to allow 0/0 from my isp...
route-policy ipv4-allow-in
pass
end-policy
!
- Aaron
More information about the cisco-nsp
mailing list