cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1211
Views
25
Helpful
5
Replies

How to advertise only default-route to single peer on XR via BGP

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


1 Accepted Solution

Accepted Solutions

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,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

View solution in original post

5 Replies 5

Harold Ritter
Cisco Employee
Cisco Employee

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,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

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?

 

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,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

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

Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul
Review Cisco Networking products for a $25 gift card