Step 2: Verify That a Neighbor is Advertising a Particular Route
Purpose
You can determine if a particular route that you have configured is being advertised by a neighbor.
Action
To verify that a neighbor is advertising a particular route, enter the following JUNOS CLI operational mode command:
user@host>show route advertising-protocol bgpneighbor-addressSample Output
user@R2>show route advertising-protocol bgp 10.0.0.4inet.0: 20 destinations, 22 routes (20 active, 0 holddown, 0 hidden)Prefix Nexthop MED Lclpref AS path* 100.100.1.0/24 Self 5 200 65001 I* 100.100.2.0/24 Self 5 100 65001 I* 100.100.3.0/24 Self 100 65001 I* 100.100.4.0/24 Self 100 65001 IWhat It Means
The sample output shows the BGP routes advertised from
R2to its neighbor,10.0.0.4(R4). Out of 22 total routes in theinet.0routing table, 20 are active destinations . No routes arehiddenor in thehold-downstate. Routes reside in thehold-downstate prior to being declared active, and routes rejected by a routing policy can be placed into thehiddenstate. The information displayed reflects the routes that the routing table exported to the BGP routing protocol.