[c-nsp] Is there a command to check which BGP ingress policy drops the received prefix in Cisco ASR routers?

Mark Tinka mark.tinka at seacom.mu
Sat Aug 8 01:53:40 EDT 2015



On 7/Aug/15 17:52, Martin T wrote:
> Hi,
>
> according to "sh bgp ipv4 unicast neighbors <neighbor-address>
> received routes"(displays received prefixes before route policies)
> command I receive a /32 IPv4 prefix from eBGP neighbor. However,
> according to "sh bgp ipv4 unicast neighbors <neighbor-address>
> routes"(displays learned prefixes after route policies) command this
> /32 prefix is not learned. This prefix has accessible next-hop and AS
> path does not include local ASN. This probably means that this /32
> prefix is not accepted because one of the ingress policies. Is there a
> convenient command in IOS-XR which allows one to see which BGP ingress
> policy drops the received prefix?

Well, it would most likely be the inbound policy you applied to that
particular neighbor session.

At any rate, a "sh bgp neighbor x.x.x.x" will show you data about the
session, including the policies applied on inbound and outbound.

Mark.


More information about the cisco-nsp mailing list