Protocol-Independent Routing


Table 13.10. Protocol-Independent Routing Monitoring Commands
Information to Monitor Command Example
Information about the entries in the routing tables. show route
 user@host>  show route brief  inet.0: 14 destinations, 14 routes (13 active, 0 holddown, 1 hidden) + = Active Route, - = Last Active, * = Both 0.0.0.0/0          *[Static/5] 00:00:08                     > to 111.222.5.254 via fxp0.0 1.0.0.1/32         *[Direct/0] 00:00:09                     > via at-5/3/0.0 1.0.0.2/32         *[Local/0] 00:00:09                      Local ... 
Routes transmitted by a particular routing protocol. show route advertising-protocol
 user@host>  show route advertising-protocol bgp 111.222.1.   3  inet.0: 46498 destinations, 46498 routes (46496 active, 0 holddown, 2 hidden) Prefix             Next hop           MED        Lclpref    AS path 15.0.0.1/32        111.222.1.1                        69 IGP 
Routes containing a specified AS path. show route aspath-regex
 user@host>  show route aspath-regex 65477  inet.0: 46411 destinations, 46411 routes (46409 active, 0  holddown, 2 hidden) + = Active Route, - = Last Active, * = Both 111.222.1.0/25     *[BGP/170] 00:08:48, localpref 100, from 111.222.2.24                    AS Path: [65477] ({65488 65535}) IGP                      to 111.222.18.225 via fpa0.0(111.222.18.233) 111.222.1.128/25   *[IS-IS/15] 09:15:37, metric 37, tag 1                      to 111.222.18.225 via fpa0.0(111.222.18.233)                     [BGP/170] 00:08:48, localpref 100, from 111.222.2.24                    AS Path: [65477] ({65488 65535}) IGP                      to 111.222.18.225 via fpa0.0(111.222.18.233) ... 
Best route to the specified address or range of addresses. show route best
 user@host>  show route best 111.222/24  inet.0: 12 destinations, 12 routes (11 active, 0 holddown, 1  hidden) + = Active Route, - = Last Active, * = Both 0.0.0.0/0          *[Static/5] 00:09:41                     > to 111.222.5.254 via so-2/0/1 
Routes containing members of a BGP community. show route community
 user@host>  show route community 234:80  inet.0: 46511 destinations, 46511 routes (46509 active, 0  holddown, 2 hidden) + = Active Route, - = Last Active, * = Both 4.0.0.0/8           *[BGP/170] 03:33:07, localpref 100, from  131.103.20.49                     AS Path: {666}234 2548 1 IGP                       to 192.156.169.1 via 192.156.169.14(so-0/0/ 0) 6.0.0.0/8          *[BGP/170] 03:33:07, localpref 100, from  131.103.20.49                    AS Path: {666}234 2548 568 721 Incomplete                      to 192.156.169.1 via 192.156.169.14(so-0/0/ 0) ... inet.1: 728 destinations, 728 routes (545 active, 0 holddown, 183  hidden) + = Active Route, - = Last Active, * = Both ... inet.2: 7367 destinations, 7360 routes (7307 active, 53 holddown,  0 hidden) + = Active Route, - = Last Active, * = Both ... 
Routes that have been damped. show route damping
 user@host>  show route damping detail  inet.0: 21 destinations, 21 routes (15 active, 0 holddown, 6  hidden)      + = Active Route, - = Last Active, * = Both      1.1.1.0/24 (1 entry, 0 announced)               BGP    Preference: /-101                      Nexthop: 10.12.1.2 via en0.0, selected                      State: <Hidden Ext>                      Local AS:   911 Peer AS:   922                      Age: 11:50                      Task: BGP_922.10.12.1.2+179                      AS path: 922 I                      Localpref: 100                      Router ID: 111.222.1.46                      Merit (last update/now): 4833/2796                      Default damping parameters used                      Last update:       00:11:50                      First update:       01:01:43                      Flaps: 10                      Suppressed.  Reusable in:       00:28:40                      Preference will be: 170 ... 
Routes that exactly match the specified address or range of addresses. show route exact
 user@host>  show route exact 24.226.160.0/19  inet.0: 53294 destinations, 53294 routes (53293 active, 0  holddown, 1 hidden) + = Active Route, - = Last Active, * = Both 24.226.160.0/19    *[BGP/170] 00:31:04, MED 0, localpref 100, from 208.197.169.14                    AS path: 2914 701 3493 11290 I                     > to 111.222.5.254 via fxp0.0 
Routes that are currently inactive. show route inactive
 user@host>  show route inactive  inet.0: 12 destinations, 12 routes (11 active, 0 holddown, 1  hidden) + = Active Route, - = Last Active, * = Both 127.0.0.1/32        [Direct/0] 19:40:17                     > via lo0.0 
Routing instance information. show route instance
 user@host>  show route instance summary  Instance           Type                 Primary rib      Active/ holddown/hidden yellow-vpn         vrf                  yellow-vp.inet.0 5/0/0 pink-vpn           vrf                  pink-vpn.inet.0  4/0/0 green-vpn          vrf                  green-vpn.inet.0 6/0/0 blue-vpn           vrf                  blue-vpn.inet.0  5/0/0 master             forwarding           inet.0           29/0/1 
Routes that form a label-switched path. show route label-switched-path
 user@host>  show route label-switched-path sf-to-ny  inet.0: 29 destinations, 29 routes (29 active, 0 holddown, 0  hidden) + = Active Route, - = Last Active, * = Both 1.1.1.1/32          [MPLS/7] 00:00:06, metric 0                     > to 111.222.1.9 via s0-0/0/0, label- switched-path sf-to-ny 3.3.3.3/32         *[MPLS/7] 00:00:06, metric 0                     > to 111.222.1.9 via s0-0/0/0, label- switched-path sf-to-ny inet.3: 3 destinations, 3 routes (3 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 2.2.2.2/32         *[MPLS/7] 00:00:06, metric 0                     > to 111.222.1.9 via s0-0/0/0, label- switched-path sf-to-ny 111.222.1.9/32      [MPLS/7] 00:00:06, metric 0                     > to 111.222.1.9 via s0-0/0/0, label- switched-path sf-to-ny iso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both mpls.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 
Routes that contain the specified next hop. show route next-hop
 user@host>  show route next-hop 111.222.5.25  4 inet.0: 12 destinations, 12 routes (11 active, 0 holddown, 1  hidden) + = Active Route, - = Last Active, * = Both 0.0.0.0/0          *[Static/5] 00:43:39                     > to 111.222.5.254 via fxp0.0 
Routes exiting the router through the specified interface. show route output
 user@host>  show route output interface t3-5/2/1  inet.0: 12 destinations, 12 routes (11 active, 0 holddown, 1  hidden) + = Active Route, - = Last Active, * = Both 13.13.13.13/32     *[Direct/0] 00:44:55                     > via t3-5/2/1.0 iso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 
Routes learned by the specified protocol. show route protocol
 user@host>  show route protocol direct  inet.0: 35 destinations, 35 routes (34 active, 0 holddown, 1  hidden) + = Active Route, - = Last Active, * = Both 127.0.0.1/32        [Direct/0] 14:36:24                     > via lo0.0 111.222.5.0/24     *[Direct/0] 14:36:24                     > via fxp0.0 111.222.8.16/28    *[Direct/0] 14:36:24                     > via at-5/3/0.0 ... iso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 47.0005.80ff.f800.0000.0108.0001.1921.6800.5081.00/160                    *[Direct/0] 14:36:24                     > via lo0.0 
Routes in a range of destination prefixes. show route range
 user@host>  show route range  inet.0: 27 destinations, 27 routes (26 active, 0 holddown, 1  hidden) + = Active Route, - = Last Active, * = Both 0.0.0.0/0          *[Static/5] 06:03:18                      Discard 10.255.245.87/32   *[Direct/0] 06:03:19                     > via lo0.0 123.16.1.0/24      *[Static/5] 06:03:18                     > to 111.222.4.254 via fxp0.0 123.16.14.0/24     *[Static/5] 06:03:18                     > to 111.222.4.254 via fxp0.0 ... 
Routes received by a particular routing protocol. show route receive-protocol
 user@host>  show route receive-protocol bgp 10.255.245.63 extensive  inet.0: 244 destinations, 244 routes (243 active, 0 holddown, 1 hidden)      Prefix             Nexthop                MED    Lclpref AS  path      1.1.1.0/24 (1 entry, 1 announced)           Nexthop: 10.0.50.3           Localpref: 100           AS path: I <Originator>           Cluster list:  10.2.3.1           Originator ID: 10.255.245.45      165.3.0.0/16 (1 entry, 1 announced)           Nexthop: 111.222.5.254           Localpref: 100           AS path: I <Originator>           Cluster list:  10.2.3.1           Originator ID: 10.255.245.68      165.4.0.0/16 (1 entry, 1 announced)           Nexthop: 111.222.5.254           Localpref: 100           AS path: I <Originator>           Cluster list:  10.2.3.1           Originator ID: 10.255.245.45      195.1.2.0/24 (1 entry, 1 announced)           Nexthop: 111.222.5.254           Localpref: 100           AS path: I <Originator>           Cluster list:  10.2.3.1           Originator ID: 10.255.245.68      inet.2: 63 destinations, 63 routes (63 active, 0 holddown, 0  hidden)      Prefix             Nexthop                MED    Lclpref AS  path      inet.3: 10 destinations, 10 routes (10 active, 0 holddown, 0  hidden)      Prefix             Nexthop                MED    Lclpref AS  path      iso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0  hidden)      Prefix             Nexthop                MED    Lclpref AS  path      mpls.0: 48 destinations, 48 routes (48 active, 0 holddown, 0  hidden) 
Entries in the next-hop resolution database. show route resolution
 user@host>  show route resolution detail  Table inet.0 Nodes 111590 0.0.0.0/0 Originating RIB: inet.0   Metric: 0  Forwarding nexthops: 0         Next hop type: Discard 1.0.0.0/8 Originating RIB: inet.0   Metric: 2  Indirect nexthops: 1         Protocol nexthop: 10.255.14.181 Metric: 2 Indirect nexthop: 84cc770 104         Indirect path forwarding nexthops: 1                 Nexthop: 10.19.2.2 via t1-0/2/0.0         10.255.14.181/32 Originating RIB: inet.0           Metric: 2       Forwarding nexthops: 1                 Nexthop: 10.19.2.2 via t1-0/2/0.0   Has inactive paths with indirect nexthops:   Indirect nexthops: 1         Protocol nexthop: 10.255.14.175 Metric: 4 Indirect nexthop: 84cc6e8 103         Indirect path forwarding nexthops: 1                 Nexthop: 10.19.4.2 via t3-0/3/0.0         10.255.14.175/32 Originating RIB: inet.0           Metric: 4       Forwarding nexthops: 1                 Nexthop: 10.19.4.2 via t3-0/3/0.0 ... 
Routes learned from the specified source. show route source-gateway
 user@host>  show route source-gateway 131.103.20.49  inet.0: 46035 destinations, 46035 routes (46033 active, 0  holddown, 2 hidden) + = Active Route, - = Last Active, * = Both 4.0.0.0/8          *[BGP/170] 04:43:40, from 131.103.20.49                    AS Path: {666}234 2548 1 IGP                      to 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.49                    AS Path: {666}234 2548 568 721 Incomplete                      to 192.156.169.1 via 192.156.169.14(de0.0) ... 
Statistics about routes in all routing tables. show route summary
 user@host>  show route summary  inet.0: 66452 destinations, 66452 routes (66452 active, 0  holddown, 0 hidden)               Direct:      3 routes,      3 active                Local:      2 routes,      2 active                  BGP:  84654 routes,  64536 active                IS-IS:   1904 routes,   1903 active inet.3: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)               Static:      1 routes,      1 active iso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)               Direct:      1 routes,      1 active 
Routes in a particular routing table. show route table
 user@host>  show route table inet.0  inet.0: 12 destinations, 12 routes (11 active, 0 holddown, 1 hidden) + = Active Route, - = Last Active, * = Both 0.0.0.0/0          *[Static/5] 00:51:57                     > to 111.222.5.254 via fxp0.0 1.0.0.1/32         *[Direct/0] 00:51:58                     > via at-5/3/0.0 1.0.0.2/32         *[Local/0] 00:51:58                      Local ... 
High-level summary of routing table information. show route terse
 user@host>  show route terse  inet.0: 12 destinations, 12 routes (11 active, 0 holddown, 1  hidden) + = Active Route, - = Last Active, * = Both A Destination        P Prf Metric 1   Metric 2    Next hop         AS path * 0.0.0.0/0          S   5                       >111.222.5.254 * 1.0.0.1/32         D   0                       >at-5/3/0.0 * 1.0.0.2/32         L   0                        Local ... 
Information about the entries in the kernel's forwarding table. show route forwarding-table
 user@host>  show route forwarding-table  Internet: Destination             Type RtRef Nexthop           Type Index  NhRef Netif ... 123.456.0.0/18          user     0 111.222.5.254     ucst    19  55371 fxp0.0 123.457.0.0/18          user     0 111.222.5.254     ucst    19  55371 fxp0.0 123.123.0.0/17          user     0 111.222.5.254     ucst    19  55371 fxp0.0 ... 
Clear a route entry from the kernel's forwarding table. clear route forwarding-table
 user@host>  clear route forwarding-table 123.456.0.0  user@host> show route forwarding-table Internet: Destination             Type RtRef Nexthop           Type Index  NhRef Netif ... 123.457.0.0/18          user     0 111.222.5.254     ucst    19  55371 fxp0.0 123.123.0.0/17          user     0 111.222.5.254     ucst    19  55371 fxp0.0 ... 
Information about martian addresses. show route martians
 user@host>  show route martians  inet.0: 0.0.0.0/0          Match: Exact, Advertise: <none> 0.0.0.0/8          Match: <none>, Advertise: <none> 127.0.0.0/8        Match: <none>, Advertise: Restrict 128.0.0.0/16       Match: <none>, Advertise: Restrict 191.255.0.0/16     Match: <none>, Advertise: Restrict 192.0.0.0/24       Match: <none>, Advertise: Restrict 223.255.255.0/24   Match: <none>, Advertise: Restrict 240.0.0.0/4        Match: <none>, Advertise: Restrict inet.1: 0.0.0.0/0          Match: Exact, Advertise: <none> 0.0.0.0/8          Match: <none>, Advertise: <none> 127.0.0.0/8        Match: <none>, Advertise: Restrict 128.0.0.0/16       Match: <none>, Advertise: Restrict ... 
AS paths. show as-path
 user@host>  show as-path  Total AS paths: 24744 Path: 234 234 3561 6503 278 3596 I         Refs: 2 ASes: 6 Segments: 1 Overhead: 64 Path: 267 234 3561 4926 4926 4926 10834 5648 I <ASLoop>         Refs: 2 ASes: 8 Segments: 1 Overhead: 64 ... 


Juniper Networks Field Guide and Reference
Juniper Networks Field Guide and Reference
ISBN: 0321122445
EAN: 2147483647
Year: 2002
Pages: 185

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net