show route advertising-protocol
Syntax
show route advertising-protocolprotocol neighbor-address<detail>Description
Display the routing information as it has been prepared for advertisement to a particular neighbor of a particular dynamic routing protocol. The information displayed reflects the routes that the routing table has exported into the routing protocol and that were filtered by that protocol's
exportrouting policy statements. (In the figure "Importing and Exporting Routing Policies" in the section "How to Construct Routing Policy" in the JUNOS Internet Software Configuration Guide: Routing and Routing Protocols, these are the routes shown in the right "Protocol" box.)Options
neighbor-address—Address of the neighboring router to which the route entry is being transmitted.
protocol—Protocol transmitting the route. It can bebgp,dvmrp,msdp,pim,orrip.
detail—(Optional) Display additional information that was advertised to the neighbor. For example, for BGP, this option displays information about any other BGP path attributes that were advertised, including communities, route reflection, and aggregator.Required Privilege Level
Output Fields
routing-table-name—Name of the routing table; for example,inet.0.
destinations—Number of destinations for which there are routes in the routing table.
routes—Number of routes in the routing table:
active—Number of routes that are active.holddown—Number of routes that are in the hold-down state prior to being declared inactive.hidden—Number of routes not used because of routing policy.
Nexthop—Address of the next hop to the address.
MED—MED value included in the route.
Lclpref—Local preference value included in the route.
AS path—AS path included in the route.
Route-distinguisher—The unique route distinguisher associated with this routing instance.
VPN Label—Name of label assigned to this VPN.
Communities—Community path attribute of the route.Sample Output
user@host>show route advertising-protocol bgp 111.222.1.3inet.0: 46498 destinations, 46498 routes (46496 active, 0 holddown, 2 hidden)Prefix Next hop MED Lclpref AS path15.0.0.1/32 111.222.1.1 69 IGPSample Output
user@host>show route advertising-protocol bgp 111.222.1.3 detailbgp20.inet.0: 4 destinations, 4 routes (4 active, 0 holddown, 0 hidden)Prefix Nexthop MED Lclpref AS path111.222.1.11/32 (1 entry, 1 announced)BGP group pe-pe type InternalRoute Distinguisher: 111.255.14.11:69Advertised Label: 100000Nexthop: SelfLocalpref: 100AS path: 2 ICommunities: target:69:20111.8.0.0/16 (1 entry, 1 announced)BGP group pe-pe type InternalRoute Distinguisher: 111.255.14.11:69Advertised Label: 100000Nexthop: SelfLocalpref: 100AS path: 2 ICommunities: target:69:20