show route source-gateway
Syntax
show route source-gatewayaddressDescription
Display the entries in the routing table that were learned from a particular address. The
Sourcefield in theshow route detailcommand output lists the source for each route, if known.Options
address—IP address of the system.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.
[protocol/preference]—Protocol from which the route was learned and the route's preference value.
+—A plus sign before[protocol/preference]indicates the active route, which is the route installed from the routing table into the forwarding table.
-—A hyphen before[protocol/preference]indicates the last active route.
*—An asterisk before[protocol/preference]indicates that the route is both the active and the last active route. An asterisk before atoline indicates the best subpath to the route.
time—How long the route has been known.
from—Address and interface from which route was learned.
AS Path—AS path included in the route.
[ ]—Brackets enclose the local AS number associated with the AS path if more than one AS number is configured on the router.
{ }—Braces enclose AS sets, which are groups of AS numbers in which the order does not matter. A set commonly results from route aggregation. The numbers in each AS set are displayed in ascending order.
( )—Parentheses enclose a confederation.
( [ ] )—Enclose a confederation set.Sample Output
user@host>show route source-gateway 131.103.20.49inet.0: 46035 destinations, 46035 routes (46033 active, 0 holddown, 2 hidden)+ = Active Route, - = Last Active, * = Both4.0.0.0/8 *[BGP/170] 04:43:40, from 131.103.20.49AS Path: {666} 234 2548 1 IGPto 192.156.169.1 via 192.156.169.14(de0.0)6.0.0.0/8 *[BGP/170] 04:43:40, from 131.103.20.49AS Path: {666} 234 2548 568 721 Incompleteto 192.156.169.1 via 192.156.169.14(de0.0)...