We have recently migrated from 7600 to a ASR9010 with xr-os 4.2.0 and in the 7600 we had two different ibgp peers where we set an administrative distance for all traffic from one of those ibgp peers to 10, to make those routes more disareable than OSPF.
In the 7600 this command was "global" (not per neighbor) in the router bgp configuration, but with the possibility to specify the neighbor.
In the ASR9010 the command is still global but now changed so you can only specify administrative distance for all external, internal and local routes, with no possibility to specify neighbor. If we set internal routes to 10 it will also affect the other ibgp peer and that is not an option in my case.
Also, as far as I can see, there is no way to change administrative distance in a route-policy.
Have I missed something completely or has Cisco succesfully blocked the feature of setting administrative distance on a bgp route per neighbor?
By setting distance to 50 on all routes coming from peer x.x.x.x those routes gets prefered over the same routes coming in from OSPF. Works like a charm.
In the ASR9K we can only set distance for external, internal and local routes. In the case above that would force routes coming in from the y.y.y.y peer to distance 50 aswell, and that could potentially be worse than bad.
Any idea if it is intentional to remove this "feature" in the ASR or if we could expect it to come back in a future soft?
Correct, this “distance 50 x.x.x.x 0.0.0.0” is not supported on XR. There are no plans to have it. In general, that is considered a risky operation playing with bgp admin distance and not recommended to use.
As another alternative, you could also use a route-policy and match on any routes from that neighbor and set the administrative distance in the route-policy. Then you could apply that route-policy to the neighbor in your BGP configuration.
1. Introduction Internet security is important with the increasing
attacks that are happening every day. Many internet and browsing
security solutions exist, but some are not very easy to use or maybe the
question is how can I enable them? In this referen...
Cisco Software Manager Server API Guide This document describes the
programmatic interfaces, RESTful APIs, which are supported by Cisco
Software Manager Server (CSM Server). Overview CSM Server supports a set
of finite RESTful APIs. The first step to use ...
If you are using Cisco's new linux-based Cisco Software Manager server,
then you probably want to make sure there is a startup service for
it.I'll assume that you've already installed the CSM server on a
systemd-based linux system. The commands given belo...