Step 3: Verify That a Particular BGP Route Is Received on Your Router
Purpose
Display the routing information as it is received through a particular BGP neighbor and advertised by the local router to the neighbor.
Action
To verify that a particular BGP route is received on your router, enter the following JUNOS CLI operational mode command:
user@host>show route receive-protocol bgpneighbor-addressSample Output
user@R6>show route receive-protocol bgp 10.0.0.2inet.0: 18 destinations, 20 routes (18 active, 0 holddown, 0 hidden)Prefix Nexthop MED Lclpref AS path* 100.100.1.0/24 10.0.0.2 5 200 65001 I* 100.100.2.0/24 10.0.0.2 5 100 65001 I100.100.3.0/24 10.0.0.2 100 65001 I100.100.4.0/24 10.0.0.2 100 65001 Iiso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)user@R6>show route receive-protocol bgp 10.0.0.4inet.0: 18 destinations, 20 routes (18 active, 0 holddown, 0 hidden)Prefix Nexthop MED Lclpref AS path* 100.100.3.0/2410.0.0.4 100 65001 I* 100.100.4.0/2410.0.0.4 100 65001 Iiso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)What It Means
The sample output shows four BGP routes from
R2and two fromR4. Of the four routes fromR2, only two are active in the routing table, as indicated by the asterisk (*), while both routes received fromR4are active in the routing table. All BGP routes came through AS 65001.