Supported Platforms
show route next-hop
Syntax
Syntax (EX Series Switches)
Release Information
Command introduced before Junos OS Release 7.4.
Command introduced in Junos OS Release 9.0 for EX Series switches.
Description
Display the entries in the routing table that are being sent to the specified next-hop address.
Options
brief | detail | extensive | terse | — | (Optional) Display the specified level of ouput. |
logical-system (all | logical-system-name) | — | (Optional) Perform this operation on all logical systems or on a particular logical system. |
next-hop | — | Next-hop address. |
Required Privilege Level
view
List of Sample Output
show route next-hopshow route next-hop detail
show route next-hop extensive
show route next-hop terse
Output Fields
For information about output fields, see the output field tables for the show route command, the show route detail command, the show route extensive command, or the show route terse command.
Sample Output
show route next-hop
user@host> show route next-hop 192.168.71.254
inet.0: 18 destinations, 18 routes (17 active, 0 holddown, 1 hidden) Restart Complete + = Active Route, - = Last Active, * = Both 10.10.0.0/16 *[Static/5] 06:26:25 > to 192.168.71.254 via fxp0.0 10.209.0.0/16 *[Static/5] 06:26:25 > to 192.168.71.254 via fxp0.0 172.16.0.0/12 *[Static/5] 06:26:25 > to 192.168.71.254 via fxp0.0 192.168.0.0/16 *[Static/5] 06:26:25 > to 192.168.71.254 via fxp0.0 192.168.102.0/23 *[Static/5] 06:26:25 > to 192.168.71.254 via fxp0.0 207.17.136.0/24 *[Static/5] 06:26:25 > to 192.168.71.254 via fxp0.0 207.17.136.192/32 *[Static/5] 06:26:25 > to 192.168.71.254 via fxp0.0 private1__.inet.0: 2 destinations, 3 routes (2 active, 0 holddown, 0 hidden) red.inet.0: 4 destinations, 5 routes (4 active, 0 holddown, 0 hidden) Restart Complete iso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden) Restart Complete mpls.0: 4 destinations, 4 routes (4 active, 0 holddown, 0 hidden) Restart Complete inet6.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden) Restart Complete private1__.inet6.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
show route next-hop detail
user@host> show route next-hop 192.168.71.254
detail
inet.0: 18 destinations, 18 routes (17 active, 0 holddown, 1 hidden) Restart Complete 10.10.0.0/16 (1 entry, 1 announced) *Static Preference: 5 Next-hop reference count: 36 Next hop: 192.168.71.254 via fxp0.0, selected State: <Active NoReadvrt Int Ext> Local AS: 1 Age: 6:27:41 Task: RT Announcement bits (3): 0-KRT 3-Resolve tree 1 5-Resolve tree 2 AS path: I 10.209.0.0/16 (1 entry, 1 announced) *Static Preference: 5 Next-hop reference count: 36 Next hop: 192.168.71.254 via fxp0.0, selected State: <Active NoReadvrt Int Ext> Local AS: 1 Age: 6:27:41 Task: RT Announcement bits (3): 0-KRT 3-Resolve tree 1 5-Resolve tree 2 AS path: I 172.16.0.0/12 (1 entry, 1 announced) *Static Preference: 5 Next-hop reference count: 36 Next hop: 192.168.71.254 via fxp0.0, selected State: <Active NoReadvrt Int Ext> Local AS: 1 Age: 6:27:41 Task: RT Announcement bits (3): 0-KRT 3-Resolve tree 1 5-Resolve tree 2 AS path: I 192.168.0.0/16 (1 entry, 1 announced) *Static Preference: 5 Next-hop reference count: 36 Next hop: 192.168.71.254 via fxp0.0, selected State: <Active NoReadvrt Int Ext> Local AS: 1 Age: 6:27:41 Task: RT Announcement bits (3): 0-KRT 3-Resolve tree 1 5-Resolve tree 2 AS path: I 192.168.102.0/23 (1 entry, 1 announced) *Static Preference: 5 Next-hop reference count: 36 Next hop: 192.168.71.254 via fxp0.0, selected State: <Active NoReadvrt Int Ext> Local AS: 1 Age: 6:27:41 Task: RT Announcement bits (3): 0-KRT 3-Resolve tree 1 5-Resolve tree 2 AS path: I 207.17.136.0/24 (1 entry, 1 announced) *Static Preference: 5 Next-hop reference count: 36 Next hop: 192.168.71.254 via fxp0.0, selected State: <Active NoReadvrt Int Ext> Local AS: 1 Age: 6:27:41 Task: RT Announcement bits (3): 0-KRT 3-Resolve tree 1 5-Resolve tree 2 AS path: I 207.17.136.192/32 (1 entry, 1 announced) *Static Preference: 5 Next-hop reference count: 36 Next hop: 192.168.71.254 via fxp0.0, selected State: <Active NoReadvrt Int Ext> Local AS: 1 Age: 6:27:41 Task: RT Announcement bits (3): 0-KRT 3-Resolve tree 1 5-Resolve tree 2 AS path: I private1__.inet.0: 2 destinations, 3 routes (2 active, 0 holddown, 0 hidden) red.inet.0: 4 destinations, 5 routes (4 active, 0 holddown, 0 hidden) Restart Complete iso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden) Restart Complete mpls.0: 4 destinations, 4 routes (4 active, 0 holddown, 0 hidden) Restart Complete inet6.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden) Restart Complete private1__.inet6.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
show route next-hop extensive
user@host> show route next-hop 192.168.71.254
extensive
inet.0: 18 destinations, 18 routes (17 active, 0 holddown, 1 hidden) 10.10.0.0/16 (1 entry, 1 announced) TSI: KRT in-kernel 10.10.0.0/16 -> {192.168.71.254} *Static Preference: 5 Next-hop reference count: 22 Next hop: 192.168.71.254 via fxp0.0, selected State: <Active NoReadvrt Int Ext> Local AS: 69 Age: 2:02:28 Task: RT Announcement bits (1): 0-KRT AS path: I 10.209.0.0/16 (1 entry, 1 announced) TSI: KRT in-kernel 10.209.0.0/16 -> {192.168.71.254} *Static Preference: 5 Next-hop reference count: 22 Next hop: 192.168.71.254 via fxp0.0, selected State: <Active NoReadvrt Int Ext> Local AS: 69 Age: 2:02:28 Task: RT Announcement bits (1): 0-KRT AS path: I 172.16.0.0/12 (1 entry, 1 announced) TSI: KRT in-kernel 172.16.0.0/12 -> {192.168.71.254} *Static Preference: 5 Next-hop reference count: 22 Next hop: 192.168.71.254 via fxp0.0, selected State: <Active NoReadvrt Int Ext> Local AS: 69 Age: 2:02:28 Task: RT Announcement bits (1): 0-KRT AS path: I 192.168.0.0/16 (1 entry, 1 announced) TSI: KRT in-kernel 192.168.0.0/16 -> {192.168.71.254} *Static Preference: 5 Next-hop reference count: 22 Next hop: 192.168.71.254 via fxp0.0, selected State: <Active NoReadvrt Int Ext> Local AS: 69 Age: 2:02:28 Task: RT Announcement bits (1): 0-KRT AS path: I 192.168.102.0/23 (1 entry, 1 announced) TSI: KRT in-kernel 192.168.102.0/23 -> {192.168.71.254} *Static Preference: 5 Next-hop reference count: 22 Next hop: 192.168.71.254 via fxp0.0, selected State: <Active NoReadvrt Int Ext> Local AS: 69 Age: 2:02:28 Task: RT Announcement bits (1): 0-KRT AS path: I 207.17.136.0/24 (1 entry, 1 announced) TSI: KRT in-kernel 207.17.136.0/24 -> {192.168.71.254} *Static Preference: 5 Next-hop reference count: 22 Next hop: 192.168.71.254 via fxp0.0, selected State: <Active NoReadvrt Int Ext> Local AS: 69 Age: 2:02:28 Task: RT Announcement bits (1): 0-KRT AS path: I 207.17.136.192/32 (1 entry, 1 announced) TSI: KRT in-kernel 207.17.136.192/32 -> {192.168.71.254} *Static Preference: 5 Next-hop reference count: 22 Next hop: 192.168.71.254 via fxp0.0, selected State: <Active NoReadvrt Int Ext> Local AS: 69 Age: 2:02:28 Task: RT Announcement bits (1): 0-KRT AS path: I private1__.inet.0: 2 destinations, 3 routes (2 active, 0 holddown, 0 hidden) iso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden) mpls.0: 3 destinations, 3 routes (3 active, 0 holddown, 0 hidden) inet6.0: 5 destinations, 5 routes (5 active, 0 holddown, 0 hidden) private1__.inet6.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden) green.l2vpn.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden) red.l2vpn.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
show route next-hop terse
user@host> show route next-hop 192.168.71.254
terse
inet.0: 25 destinations, 26 routes (24 active, 0 holddown, 1 hidden) Restart Complete + = Active Route, - = Last Active, * = Both A Destination P Prf Metric 1 Metric 2 Next hop AS path * 10.10.0.0/16 S 5 >192.168.71.254 * 10.209.0.0/16 S 5 >192.168.71.254 * 172.16.0.0/12 S 5 >192.168.71.254 * 192.168.0.0/16 S 5 >192.168.71.254 * 192.168.102.0/23 S 5 >192.168.71.254 * 207.17.136.0/24 S 5 >192.168.71.254 * 207.17.136.192/32 S 5 >192.168.71.254 private1__.inet.0: 2 destinations, 3 routes (2 active, 0 holddown, 0 hidden) red.inet.0: 4 destinations, 5 routes (4 active, 0 holddown, 0 hidden) Restart Complete iso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden) Restart Complete mpls.0: 4 destinations, 4 routes (4 active, 0 holddown, 0 hidden) Restart Complete inet6.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden) Restart Complete private1__.inet6.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)