10-04-2022
10:28 AM
- last edited on
10-05-2022
10:00 AM
by
Translator
Hello I am trying to advertise a single default route to a BGP peer. I know how to configure this on XE but am a bit confused on how to configure XR. I have provided what my goal is in XE code and have also provided what I have thus far on XR however the code I have provided is not working in XR. Could someone let me know what I am doing wrong here, thanks?
What I am trying to deploy (XE Code):
ip prefix-list default-route seq 10 permit 0.0.0.0/0
route-map OCI-OUT permit
match ip address prefis-list default-route
router bgp 64443
neighbor 10.92.127.249 remote-as XXXX
neighbor 10.92.127.249 route-map OCI-OUT out
What I have on XR Box currently, however, it is still advertising the full BGP table:
prefix-set DEFAULT-ONLY
0.0.0.0/0
end-set
!
route-policy LOTTERY-OCI-INFILTER
set local-preference 200
pass
end-policy
!
route-policy LOTTERY-OCI-OUTFILTER
if destination in DEFAULT-ONLY then
pass
endif
end-policy
!
neighbor 10.92.127.249
remote-as 31898
address-family ipv4 unicast
route-policy LOTTERY-OCI-INFILTER in
route-policy LOTTERY-OCI-OUTFILTER out
soft-reconfiguration inbound
Solved! Go to Solution.
10-04-2022
11:48 AM
- last edited on
10-05-2022
10:08 AM
by
Translator
Hi @CarsonDavis56998 ,
What XR version do you run?
Can you do a
show configuration fail
after getting the error and provide the output?
You can also originate the default using a network statement:
router bgp xxx
address-family ipv4 unicast
network 0.0.0.0/0
and if you do not have a default route present in the routing table, you need to add the following for the network statement to work:
router static
address-family ipv4 uni
0.0.0.0/0 null0
Regards,
10-04-2022 10:50 AM - edited 10-04-2022 10:56 AM
10-04-2022
11:09 AM
- last edited on
10-05-2022
10:03 AM
by
Translator
Hi @CarsonDavis56998 ,
Your
route-policy
looks good. You also need to originate the default route somehow. You could use the
default-originate
statement to do that.
neighbor 10.92.127.249
addess-family ipv4 unicast
default-originate
Regards,
10-04-2022
11:29 AM
- last edited on
10-05-2022
10:06 AM
by
Translator
Thanks for your response, sir. When adding the
default-originate
command to the neighbor I get the following error: % Failed to commit one or more configuration items during a pseudo-atomic operation. All changes made have been reverted. Please issue
show configuration failed
from this session to view the errors. I assume that this is an XR bug that exists on older versions of code?
10-04-2022
11:48 AM
- last edited on
10-05-2022
10:08 AM
by
Translator
Hi @CarsonDavis56998 ,
What XR version do you run?
Can you do a
show configuration fail
after getting the error and provide the output?
You can also originate the default using a network statement:
router bgp xxx
address-family ipv4 unicast
network 0.0.0.0/0
and if you do not have a default route present in the routing table, you need to add the following for the network statement to work:
router static
address-family ipv4 uni
0.0.0.0/0 null0
Regards,
10-04-2022
01:09 PM
- last edited on
10-05-2022
10:09 AM
by
Translator
Helllo
Add the originate under the actual neighbour, on either IOS-XE router you need a default RPL to allow in advertisments
rtr to advertsie a neigbour default
route-policy ALL
pass
end-policy
router bgp 64443
address-family ipv4 unicast
neighbor 10.92.127.249
address-family ipv4 unicast
route-policy ALL in
route-policy ALL out
default-originate
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