Page 1 of 1

filter route table by Route Target in a vprn

Posted: 13 Feb 2023 12:12
by xuan
Hello guys,

Equipment: TiMOS-C-16.0.R10 cpm/hops64 Nokia 7450 ESS

VPRN: "vprn_name"
Route Target: target:yyyy:zzzzzzz for import/export

# show router service-name "vprn_name" route-table
192.168.1.0/24 Remote BGP VPN 01d16h55m 170
192.168.2.0/24 Remote RIP 0151d22h 100
... [ several routes]

What command would let me see ONLY the routes of that vrpn that comply with the Route Target?


Thanks in advance

Re: filter route table by Route Target in a vprn

Posted: 13 Feb 2023 12:45
by paramount
Hi,

Not sure there is a command specifically linked to the VPRN, but you can certainly see the BGP routes with the matching route-target.

/show router bgp routes vpn-ipv4 community target:yyyy:zzzzzz

This will show you all of the prefixes matching that target.
You could add the detail keyword and it will show you at the end of each prefix which VPRNs it's been imported into.

Hope this helps,

Paramount.
A:PE-ASBR# show router bgp routes vpn-ipv4
===============================================================================
BGP Router ID:3.3.3.3 AS:65001 Local AS:65001
===============================================================================
Legend -
Status codes : u - used, s - suppressed, h - history, d - decayed, * - valid
Origin codes : i - IGP, e - EGP, ? - incomplete, > - best, b - backup

===============================================================================
BGP VPN-IPv4 Routes
===============================================================================
Flag Network LocalPref MED
Nexthop Path-Id Label
As-Path
-------------------------------------------------------------------------------
u*>i 65001:3000:10.0.200.0/30 100 None
1.1.1.1 None 131071
No As-Path
u*>i 65001:3000:10.10.11.0/24 100 None
1.1.1.1 None 131071
No As-Path
-------------------------------------------------------------------------------
Routes : 2
===============================================================================

Re: filter route table by Route Target in a vprn

Posted: 13 Feb 2023 13:32
by xuan
Hi,
This command is what I was looking for.
Thanks a lot