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
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
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.
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.
|
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: |
|
Origin codes |
Route origin information: |
|
Network |
RT filter in the extended community format |
|
Next Hop |
IP address of the next hop for the route. For locally originated routes, this is |
|
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. |