show route table
Syntax
show route table routing-table-name <brief | detail | extensive | terse> <logical-system (all | logical-system-name)>
Syntax (EX Series Switches, QFX Series Switches)
show route table routing-table-name <brief | detail | extensive | terse>
Description
Display the route entries in a particular routing table.
Options
brief | detail | extensive | terse | (Optional) Display the specified level of output. |
logical-system (all | logical-system-name) | (Optional) Perform this operation on all logical systems or on a particular logical system. This option is only supported on Junos OS. |
routing-table-name | Display route entries for all routing tables whose
names begin with this string (for example, inet.0 and inet6.0 are
both displayed when you run the |
Required Privilege Level
view
Output Fields
Table 1 describes
the output fields for the show route table
command. Output
fields are listed in the approximate order in which they appear.
Field Name |
Field Description |
---|---|
routing-table-name |
Name of the routing table (for example, inet.0). |
Restart complete |
All protocols have restarted for this routing table. Restart state:
For example, if the output shows-
|
number destinations |
Number of destinations for which there are routes in the routing table. |
number routes |
Number of routes in the routing table and total number of routes in the following states:
|
route-destination (entry, announced) |
Route destination (for example:10.0.0.1/24).
The
|
label stacking |
|
[protocol, preference] |
Protocol from which the route was learned and the preference value for the route.
In every routing metric except for the BGP |
Level |
(IS-IS only). In IS-IS, a single AS can be divided into smaller groups called areas. Routing between areas is organized hierarchically, allowing a domain to be administratively divided into smaller areas. This organization is accomplished by configuring Level 1 and Level 2 intermediate systems. Level 1 systems route within an area. When the destination is outside an area, they route toward a Level 2 system. Level 2 intermediate systems route between areas and toward other ASs. |
Route Distinguisher |
IP subnet augmented with a 64-bit prefix. |
PMSI |
Provider multicast service interface (MVPN routing table). |
Next-hop type |
Type of next hop. For a description of possible values for this field, see Table 2. |
Next-hop reference count |
Number of references made to the next hop. |
Flood nexthop branches exceed maximum message |
Indicates that the number of flood next-hop branches exceeded the system limit of 32 branches, and only a subset of the flood next-hop branches were installed in the kernel. |
Source |
IP address of the route source. |
Next hop |
Network layer address of the directly reachable neighboring system. |
via |
Interface used to reach the next
hop. If there is more than one interface available to the next hop,
the name of the interface that is actually used is followed by the
word
|
Label-switched-path lsp-path-name |
Name of the LSP used to reach the next hop. |
Label operation |
MPLS label and operation occurring
at this routing device. The operation can be |
Interface |
(Local only) Local interface name. |
Protocol next hop |
Network layer address of the remote routing device that advertised the prefix. This address is used to derive a forwarding next hop. |
Indirect next hop |
Index designation used to specify the mapping between protocol next hops, tags, kernel export policy, and the forwarding next hops. |
State |
State of the route (a route can be in more than one state). See Table 3. |
Local AS |
AS number of the local routing devices. |
Age |
How long the route has been known. |
AIGP |
Accumulated interior gateway protocol (AIGP) BGP attribute. |
Metricn |
Cost value of the indicated route. For routes within an AS, the cost is determined by IGP and the individual protocol metrics. For external routes, destinations, or routing domains, the cost is determined by a preference value. |
MED-plus-IGP |
Metric value for BGP path selection to which the IGP cost to the next-hop destination has been added. |
TTL-Action |
For MPLS LSPs, state of the TTL propagation attribute. Can be enabled or disabled for all RSVP-signaled and LDP-signaled LSPs or for specific VRF routing instances. |
Task |
Name of the protocol that has added the route. |
Announcement bits |
The
number of BGP peers or protocols to which Junos OS has announced this
route, followed by the list of the recipients of the announcement.
Junos OS can also announce the route to the kernel routing table (KRT)
for installing the route into the Packet Forwarding Engine, to a resolve
tree, a Layer 2 VC, or even a VPN. For example,
|
AS path |
AS path through which the route was learned. The letters at the end of the AS path indicate the path origin, providing an indication of the state of the route at the point at which the AS path originated:
When AS path numbers are included in the route, the format is as follows:
Note:
In Junos OS Release 10.3 and later, the AS path field displays an unrecognized attribute and associated hexadecimal value if BGP receives attribute 128 (attribute set) and you have not configured an independent domain in any routing instance. |
validation-state |
(BGP-learned routes) Validation status of the route:
|
FECs bound to route |
Indicates point-to-multipoint root address, multicast source address, and multicast group address when multipoint LDP (M-LDP) inband signaling is configured. |
Primary Upstream |
When multipoint LDP with multicast-only fast reroute (MoFRR) is configured, indicates the primary upstream path. MoFRR transmits a multicast join message from a receiver toward a source on a primary path, while also transmitting a secondary multicast join message from the receiver toward the source on a backup path. |
RPF Nexthops |
When multipoint LDP with MoFRR is configured, indicates the reverse-path forwarding (RPF) next-hop information. Data packets are received from both the primary path and the secondary paths. The redundant packets are discarded at topology merge points due to the RPF checks. |
Label |
Multiple MPLS labels are used to control MoFRR stream selection. Each label represents a separate route, but each references the same interface list check. Only the primary label is forwarded while all others are dropped. Multiple interfaces can receive packets using the same label. |
weight |
Value used to distinguish MoFRR primary and backup routes. A lower weight value is preferred. Among routes with the same weight value, load balancing is possible. |
VC Label |
MPLS label assigned to the Layer 2 circuit virtual connection. |
MTU |
Maximum transmission unit (MTU) of the Layer 2 circuit. |
VLAN ID |
VLAN identifier of the Layer 2 circuit. |
Prefixes bound to route |
Forwarding equivalent class (FEC) bound to this route. Applicable only to routes installed by LDP. |
Communities |
Community path attribute for the route. See Table 4 for all possible values for this field. |
Layer2-info: encaps |
Layer 2 encapsulation (for example, VPLS). |
control flags |
Control flags: |
mtu |
Maximum transmission unit (MTU) information. |
Label-Base, range |
First label in a block of labels and label block size. A remote PE routing device uses this first label when sending traffic toward the advertising PE routing device. |
status vector |
Layer 2 VPN and VPLS network layer reachability information (NLRI). |
Accepted Multipath |
Current active path when BGP multipath is configured. |
Accepted LongLivedStale |
The LongLivedStale flag indicates that the route was marked LLGR-stale by this router, as part of the operation of LLGR receiver mode. Either this flag or the LongLivedStaleImport flag might be displayed for a route. Neither of these flags is displayed at the same time as the Stale (ordinary GR stale) flag. |
Accepted LongLivedStaleImport |
The LongLivedStaleImport flag indicates that the route was marked LLGR-stale when it was received from a peer, or by import policy. Either this flag or the LongLivedStale flag might be displayed for a route. Neither of these flags is displayed at the same time as the Stale (ordinary GR stale) flag. Accept all received BGP long-lived graceful restart (LLGR) and LLGR stale routes learned from configured neighbors and import into the inet.0 routing table |
ImportAccepted LongLivedStaleImport |
Accept all received BGP long-lived graceful restart (LLGR) and LLGR stale routes learned from configured neighbors and imported into the inet.0 routing table The LongLivedStaleImport flag indicates that the route was marked LLGR-stale when it was received from a peer, or by import policy. |
Accepted MultipathContrib |
Path currently contributing to BGP multipath. |
Localpref |
Local preference value included in the route. |
Router ID |
BGP router ID as advertised by the neighbor in the open message. |
Primary Routing Table |
In a routing table group, the name of the primary routing table in which the route resides. |
Secondary Tables |
In a routing table group, the name of one or more secondary tables in which the route resides. |
Table 2 describes all possible values for the Next-hop Types output field.
Next-Hop Type |
Description |
---|---|
Broadcast (bcast) |
Broadcast next hop. |
Deny |
Deny next hop. |
Discard |
Discard next hop. |
Flood |
Flood next hop. Consists of components called branches, up to a maximum of 32 branches. Each flood next-hop branch sends a copy of the traffic to the forwarding interface. Used by point-to-multipoint RSVP, point-to-multipoint LDP, point-to-multipoint CCC, and multicast. |
Hold |
Next hop is waiting to be resolved into a unicast or multicast type. |
Indexed (idxd) |
Indexed next hop. |
Indirect (indr) |
Used with applications that have a protocol next hop address that is remote. You are likely to see this next-hop type for internal BGP (IBGP) routes when the BGP next hop is a BGP neighbor that is not directly connected. |
Interface |
Used for a network address assigned to an interface. Unlike the router next hop, the interface next hop does not reference any specific node on the network. |
Local (locl) |
Local address on an interface. This next-hop type causes packets with this destination address to be received locally. |
Multicast (mcst) |
Wire multicast next hop (limited to the LAN). |
Multicast discard (mdsc) |
Multicast discard. |
Multicast group (mgrp) |
Multicast group member. |
Receive (recv) |
Receive. |
Reject (rjct) |
Discard. An ICMP unreachable message was sent. |
Resolve (rslv) |
Resolving next hop. |
Routed multicast (mcrt) |
Regular multicast next hop. |
Router |
A specific node or set of nodes to which the routing device forwards packets that match the route prefix. To qualify as a next-hop type router, the route must meet the following criteria:
|
Table |
Routing table next hop. |
Unicast (ucst) |
Unicast. |
Unilist (ulst) |
List of unicast next hops. A packet sent to this next hop goes to any next hop in the list. |
Table 3 describes
all possible values for the State output field. A route can be in
more than one state (for example, <Active NoReadvrt
Int Ext>
).
Value |
Description |
---|---|
Accounting |
Route needs accounting. |
Active |
Route is active. |
Always Compare MED |
Path with a lower multiple exit discriminator (MED) is available. |
AS path |
Shorter AS path is available. |
Cisco Non-deterministic MED selection |
Cisco nondeterministic MED is enabled, and a path with a lower MED is available. |
Clone |
Route is a clone. |
Cluster list length |
Length of cluster list sent by the route reflector. |
Delete |
Route has been deleted. |
Ex |
Exterior route. |
Ext |
BGP route received from an external BGP neighbor. |
FlashAll |
Forces all protocols to be notified of a change to any route, active or inactive, for a prefix. When not set, protocols are informed of a prefix only when the active route changes. |
Hidden |
Route not used because of routing policy. |
IfCheck |
Route needs forwarding RPF check. |
IGP metric |
Path through next hop with lower IGP metric is available. |
Inactive reason |
Flags for this route, which was not selected as best for a particular destination. |
Initial |
Route being added. |
Int |
Interior route. |
Int Ext |
BGP route received from an internal BGP peer or a BGP confederation peer. |
Interior > Exterior > Exterior via Interior |
Direct, static, IGP, or EBGP path is available. |
Local Preference |
Path with a higher local preference value is available. |
Martian |
Route is a martian (ignored because it is obviously invalid). |
MartianOK |
Route exempt from martian filtering. |
Next hop address |
Path with lower metric next hop is available. |
No difference |
Path from neighbor with lower IP address is available. |
NoReadvrt |
Route not to be advertised. |
NotBest |
Route not chosen because it does not have the lowest MED. |
Not Best in its group |
Incoming BGP AS is not the best of a group (only one AS can be the best). |
NotInstall |
Route not to be installed in the forwarding table. |
Number of gateways |
Path with a greater number of next hops is available. |
Origin |
Path with a lower origin code is available. |
Pending |
Route pending because of a hold-down configured on another route. |
Release |
Route scheduled for release. |
RIB preference |
Route from a higher-numbered routing table is available. |
Route Distinguisher |
64-bit prefix added to IP subnets to make them unique. |
Route Metric or MED comparison |
Route with a lower metric or MED is available. |
Route Preference |
Route with lower preference value is available. |
Router ID |
Path through a neighbor with lower ID is available. |