show ip bgp rtfilter neighbors

Use this command to display the BGP Route-Target (RT) filter routes that the router either advertises to or receives from the specified BGP neighbor.

Command Syntax

Copy
show ip bgp rtfilter neighbors <PREFIX> advertised-routes
show ip bgp rtfilter neighbors <PREFIX> received-routes

Parameters

<PREFIX>

Specify the IPv4 address of the BGP neighbor. The command output is specific to this neighbor.

advertised-routes

Displays RT filter routes sent by the local router to the specified neighbor.

received-routes

Displays RT filter routes learned from the specified neighbor.

Command Mode

Execution mode and Privilege mode

Applicability

Introduced in OcNOS version 7.0.0.

Example

Copy
Display Advertised-routes
OcNOS#show ip bgp rtfilter neighbors 12.1.1.1 advertised-routes
BGP RT-Filter table version is 1, local router ID is 20.1.1.2
Status codes: s suppressed, d damped, h history, a add-path, b back-up, * valid, > best, i - internal,
              l - labeled, S Stale, x-EVPN
Origin codes: i - IGP, e - EGP, ? - incomplete

    Network            Next Hop            Metric    LocPrf   Weight Path
 *> 100:0:200:1        0.0.0.0                                32768  i
 *> 100:0:65535:1      0.0.0.0                                32768  i
 *> 100:1:1.1.1.1:100  0.0.0.0                                32768  i
 *> 100:2:65551:1      0.0.0.0                                32768  i

 Total number of route-targets 4

 Example: The format 100:2:1:1 is interpreted as ORIGIN_AS:type/subtype:Route Target
          <Origin-AS>     : Autonomous System Number.
          <Type>          : The type/subtype of the extended community attribute.
                            (0-> 2-byte ASN, 1-> IPv4-address, 2-> 4-byte ASN)
          <RT-Identifier> : Route Target itself.
Copy
Display Received-routes
OcNOS#show ip bgp rtfilter neighbors 12.1.1.1 received-routes
BGP RT-Filter table version is 1, local router ID is 20.1.1.2
Status codes: s suppressed, d damped, h history, a add-path, b back-up, * valid, > best, i - internal,
              l - labeled, S Stale, x-EVPN
Origin codes: i - IGP, e - EGP, ? - incomplete

    Network            Next Hop            Metric    LocPrf   Weight Path
 *> 100:0:100:1        0.0.0.0                                0      i

 Total number of route-targets 1

 Example: The format 100:2:1:1 is interpreted as ORIGIN_AS:type/subtype:Route Target
          <Origin-AS>     : Autonomous System Number.
          <Type>          : The type/subtype of the extended community attribute.
                            (0-> 2-byte ASN, 1-> IPv4-address, 2-> 4-byte ASN)
          <RT-Identifier> : Route Target itself.

Here is the explanation of the show output fields.

Table 41. Description of the output field for the show ip bgp rtfilter neighbors command.

Field

Description

BGP RT-Filter table version

Version number of the RT-Filter table. Increments when changes occur.

local router ID

Router ID of the local BGP process. Example: 20.1.1.2

Status codes

Symbols indicating route status: s (suppressed), d (damped), h (history), a (add-path), b (back-up), * (valid), > (best), i (internal), l (labeled), S (stale), x (EVPN).

Origin codes

Route origin information: i (IGP), e (EGP), ? (incomplete).

Network

RT filter in the extended community format <Origin-AS>:<Type>:<RT-Identifier>. Example: 100:2:1:1 - Origin-AS=100, Type=2 (4-byte ASN), RT-Identifier=1.

Next Hop

IP address of the next hop for the route. For locally originated routes, this is 0.0.0.0.

Metric

BGP metric for the route (if applicable).

LocPrf

Local preference value applied to the route.

Weight

Local router-specific weight attribute.

Path

AS path associated with the route.

Total number of route-targets

Displays the total count of RT entries advertised or received.