Support Support Downloads Knowledge Base Service Request Manager My Juniper Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[MX] Inconsistent output for "show route advertising-protocol bgp" with "rd-prefix" knob



Article ID: KB34905 KB Last Updated: 24 Aug 2019Version: 1.0

This article explains why customers may get inconsistent output when they use the knob rd-prefix with the show route advertising-protocol bgp command.


Inconsistent output or no output may be seen when the rd-prefix knob is used with the show route advertising-protocol bgp command.

The following example demonstrates the problem with no output:

show route advertising-protocol bgp rd-prefix 36351:268540309:0/0  
<no output>

The following VRF table, however, has local routes that get advertised to the mb-bgp neighbors (remote PE or route reflectors).

show route advertising-protocol bgp table GT-GC-ACCT.inet                                
GT-GC-ACCT.inet.0: 2006 destinations, 8012 routes (2006 active, 0 holddown, 0 hidden)
  Prefix    Nexthop        MED     Lclpref    AS path
*         Self                         100        I
*         Self                         100        I

The above problem is caused by the missing advertise-from-main-vpn-tables configuration under protocols bgp, which is required to see the advertised routes by using the rd-prefix knob.

With the knob advertise-from-main-vpn-tables, routes are advertised from main VPN tables instead of the routing instance tables. When this knob is configured, the routes in the routing instance tables are first leaked into the bgp.l3vpn.0 global table and path-selection is run.

Further, VPN route advertisements happen from this bgp.l3vpn.0 table. Because the advertisements are done by using the bgp.l3vpn.0 table, filtering with rd-prefix will work. However, the routes need to be in the bgp.l3vpn.0 table for the rd-prefix knob to work with the command show route advertising-protocol bgp.


To resolve this problem, add the following configuration under protocols bgp:

set protocols bgp advertise-from-main-vpn-tables

Observe the following output after adding the command under protocols bgp:

show route advertising-protocol bgp rd-prefix 36351:1015:0/0  >shows output correctly for routes being advertised
bgp.l3vpn.0: 112 destinations, 177 routes (112 active, 0 holddown, 0 hidden)
  Prefix                     Nexthop                     MED     Lclpref    AS path
*                         Self                 0       200        I
*                         Self                 0       200        I
Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Security Alerts and Vulnerabilities

Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search