Step 4: Examine the IGP Cost Selection
Action
To examine a route to determine if EBGP is selected over IBGP as the selection criteria for the single, active path, enter the following JUNOS CLI operational mode command:
user@host>show routedestination-prefix< detail >Sample Output
user@R6>show route 100.100.4.0 detailinet.0: 18 destinations, 20 routes (18 active, 0 holddown, 0 hidden)100.100.4.0/24 (2 entries, 1 announced)*BGPPreference: 170/-101Source: 10.0.0.4Next hop: 10.1.46.1 via so-0/0/1.0, selectedProtocol next hop: 10.0.0.4 Indirect next hop: 864c000 276State: <Active Int Ext>Local AS: 65002 Peer AS: 65002Age: 2:16:11Metric2: 10Task: BGP_65002.10.0.0.4+4120Announcement bits (2): 0-KRT 4-Resolve inet.0AS path: 65001 ILocalpref: 100Router ID: 10.0.0.4BGP Preference: 170/-101Source: 10.0.0.2Next hop: 10.1.46.1 via so-0/0/1.0, selectedNext hop: 10.1.36.1 via so-0/0/3.0Protocol next hop: 10.0.0.2 Indirect next hop: 864c0b0 278State: <NotBest Int Ext>Inactive reason: IGP metricLocal AS: 65002 Peer AS: 65002Age: 2:16:03Metric2: 20Task: BGP_65002.10.0.0.2+179AS path: 65001 ILocalpref: 100Router ID: 10.0.0.2What It Means
The sample output shows that
R6received two instances of the100.100.4.0route: one from10.0.0.4(R4) and one from10.0.0.2(R2).R6selected the path fromR4as its active route, as indicated by the asterisk (*). The selection is based on the IGP metric, displayed in theMetric2field. The route with the lowest IGP metric is preferred. In the example, the path with the lowest IGP metric value is the path fromR4, withan IGP metric value of 10, while the path fromR2has an IGP metric of 20. Note that the two paths are from the same neighboring network: AS 65001.The reason that the inactive path was not selected is displayed in the
Inactive reasonfield, in this case,IGP metric.