5

I don't understand some data of the show route:

admin@MX-RE0# run show route 36.250.236.6

inet.0: 736608 destinations, 806660 routes (736608 active, 0 holddown, 7 hidden)
+ = Active Route, - = Last Active, * = Both

36.248.0.0/14      *[BGP/170] 9w4d 13:49:30, localpref 190
                      AS path: 4134 4837 I, validation-state: unverified
                    > to 218.30.54.97 via ae1.0
                    [BGP/170] 4d 19:24:55, localpref 180
                      AS path: 1299 4837 I, validation-state: unverified
                    > to 62.115.15.6 via ae3.0
                    [BGP/170] 9w4d 13:49:02, localpref 170
                      AS path: 4809 4134 4837 I, validation-state: unverified
                    > to 218.30.49.57 via ae2.0
  1. What's the meaning of inet.0: 736608 destinations, 806660 routes (736608 active, 0 holddown, 7 hidden)? what's the inet.0? what's the difference between destinations and routes?

  2. How to understand the + = Active Route, - = Last Active, * = Both and *[BGP/170]?

  3. What's the the 170 of [BGP/170]? and what's the difference between localpref 180?

  4. Why the nearest AS number is I? such as AS path: 4809 4134 4837 I?

1
  • Can you be specific in what you do not understand?
    – Teun Vink
    Commented Mar 25, 2019 at 8:40

2 Answers 2

6

What information does the summary line contain?

inet.0: 736608 destinations, 806660 routes (736608 active, 0 holddown, 7 hidden)

A JunOS router imports routes into one or more routing tables. inet.0 is the main routing table for IPv4 routes. Its IPv6 equivalent is inet6.0. Routes from all routing protocols and statically / connected routes are collected in these tables. Juniper has more information about routing tables on their site.

The destinations number is the amount of unique destinations the system can reach. Right now we have around 740k of routes in the global routing table (the Internet) so this number is about right.

The amount of routes is the number of... well... routes the system can choose from to reach a destination. In your case it's not a lot more (maybe you have an upstream which gives you a full table and an IXP/peering port) but for example if you have two upstreams this number will be twice the number under destinations because the router knows two routes for each destination reachable via the two upstream providers. So in short: A router can possibly reach a single destination over many routes.

active routes are routes that are currently deemed the "best path" for a route by the router and so these are installed in the forwarding table of the router and used for traffic forwarding.

holddown routes are routes that were active before but for some reason are no longer active. The router keeps them in the routing table a bit longer if some process needs them. If no process has any more interest in these routes they are removed completely.

hidden routes are routes that were rejected by routing policy or other mechanisms on the system. You can show what routes are hidden in the table by using show route hidden table inet.0.


What does Active, Last Active and Both mean?

As said a router can have multiple routes to a destination. Normally it will choose the "best path" and this becomes the active route/path. If this best path changes for some reason the "old" best path becomes the Last Active and the new best path becomes the Active route. After a while it will be Both again. (I'm not 100% sure when that happens but it is a relatively short time.) In your example the first route is the best and so it has an asterisk in front of it.


What does the number 170 besides BGP mean?

This is what Juniper somewhat ambiguous calls "Route Preference". I would rather call it Protocol Preference. Other vendors call it Administrative Distance. It simply means in which preference routes from different routing protocols are evaluated in the routing table. Routes for a destination learned from a routing protocol with a smaller number (connected and static routes are routing protocols as well) will be used in preference of routes learned from a protocol with a higher number. For example BGP has a preference of 170 while static routes have a preference of 5. So whenever you have a destination that is reachable either by a route learned from BGP and a static route the static route will be the better one. All route preferences are listed on the Juniper Website.


What's the difference between route preference and BGP local-preference?

Route preference gets evaluated first. This decides which routing protocol will be preferred if both have information for the same destination. If the router must choose between two routes learned by BGP (and so route preference is the same) local-preference is evaluated (among other metrics) to choose the best path to the destination. Juniper lists this decision process on their site as well.


What does the I at the end of the as-path mean?

The letter at the end of the AS-Path stands for the BGP origin information. It has three possible values:

  • I - Route was learned from an IGP at the origin AS
  • E - Route was learned by EGP at the origin AS (This should never be used)
  • ? - Route origin is unknown by the origin AS

This setting is freely configurable by the origin AS and has no real connection to how the route was actually learned there.

1
  • Unicast Routes (Ipv4)
  • BGP/170 is a Administrative distance

  • Active Routing- It combines routing information from multiple routing protocols (and optionally multiple instances of each
    protocol) to generate an integrated master routing table for IPv4 or IPv6 addresses, and populates the corresponding forwarding tables with active routes.

  • BGP attribute local preference is the second BGP attribute and it can be used to choose the exit path for an autonomous system

  • Nearest AS is I is Internal

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.