cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
706
Views
0
Helpful
3
Replies

Does a route-policy override BGP split-horizon rule in IOS-XR?

carlopez79
Level 1
Level 1

If I receive a default route from a non-client, can I turn around and send it to another non client if I have the following applied to the non-client?

prefix-set send-default
  0.0.0.0/0
end-set
!
route-policy DEFAULT-POLICY
  if destination in send-default then
    pass
  else
    drop
  endif
end-policy

!

 neighbor-group BLAH
  remote-as XXXXX
  password encrypted XXXXXXX
  description iBGP to Decryptors
  update-source Loopback0
  address-family ipv4 unicast
   route-policy DEFAULT-POLICY out
   soft-reconfiguration inbound always
  !
 !
 neighbor X.X.X.X
  use neighbor-group BLAH
!

end

 

1 Accepted Solution

Accepted Solutions

xthuijs
Cisco Employee
Cisco Employee

Hi Carlopez,

For BGP to inject a default rotue you need the "default-information originate" command, unfortunately, you can't redistribute or regenerate a route via the RPL method you described.

regards

xander

View solution in original post

3 Replies 3

carlopez79
Level 1
Level 1
I tested this in our lab and got it to work by adding "default-originate" under the address family. This would not work with out the above command entered. Which is what we expect due to the bgp rr non-client-to-non-clinet rule.

xthuijs
Cisco Employee
Cisco Employee

Hi Carlopez,

For BGP to inject a default rotue you need the "default-information originate" command, unfortunately, you can't redistribute or regenerate a route via the RPL method you described.

regards

xander

Thanks for the response, Xander! Much appreciated.