Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

show route protocol

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
show route protocol protocol   
<brief | detail | extensive | terse>
<logical-system (all | logical-system-name)>

Syntax (EX Series Switches)

content_copy zoom_out_map
show route protocol protocol   
<brief | detail | extensive | terse>

Syntax (PTX and ACX Series Switches)

content_copy zoom_out_map
show route protocol protocol 
(index index | prefix prefix)
<brief | detail | extensive | terse>

Operational mode

cli mode

cli-pfe mode.

Description

Display the route entries in the routing table that were learned from a particular protocol. Displays details about routes installed in cli-pfe mode after FIB compression of FIB compression statistics (PTX and ACX series devices only).

Options

brief | detail | extensive | terse

(Optional) Display the specified level of output. If you do not specify a level of output, the system defaults to brief.

logical-system (all | logical-system-name)

(Optional) Perform this operation on all logical systems or on a particular logical system.

protocol

Protocol from which the route was learned:

  • access—Access route for use by DHCP application

  • access-internal—Access-internal route for use by DHCP application

  • aggregate—Locally generated aggregate route

  • arp—Route learned through the Address Resolution Protocol

  • atmvpn—Asynchronous Transfer Mode virtual private network

  • bgp—Border Gateway Protocol

  • ccc—Circuit cross-connect

  • direct—Directly connected route

  • dvmrp—Distance Vector Multicast Routing Protocol

  • esis—End System-to-Intermediate System

  • flow—Locally defined flow-specification route

  • frr—Precomputed protection route or backup route used when a link goes down

  • isis—Intermediate System-to-Intermediate System

  • ldp—Label Distribution Protocol

  • l2circuit—Layer 2 circuit

  • l2vpn—Layer 2 virtual private network

  • local—Local address

  • mpls—Multiprotocol Label Switching

  • msdp—Multicast Source Discovery Protocol

  • ospf—Open Shortest Path First versions 2 and 3

  • ospf2—Open Shortest Path First versions 2 only

  • ospf3—Open Shortest Path First version 3 only

  • pim—Protocol Independent Multicast

  • rip—Routing Information Protocol

  • ripng—Routing Information Protocol next generation

  • rsvp—Resource Reservation Protocol

  • rtarget—Local route target virtual private network

  • static—Statically defined route

  • tunnel—Dynamic tunnel

  • vpn—Virtual private network

Note:

EX Series switches run a subset of these protocols. See the switch CLI for details.

Required Privilege Level

view

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 protocol access

content_copy zoom_out_map
user@host> show route protocol access    
inet.0: 30380 destinations, 30382 routes (30379 active, 0 holddown, 1 hidden)
+ = Active Route, - = Last Active, * = Both

13.160.0.3/32      *[Access/13] 00:00:09
                    > to 13.160.0.2 via fe-0/0/0.0
13.160.0.4/32      *[Access/13] 00:00:09
                    > to 13.160.0.2 via fe-0/0/0.0
13.160.0.5/32      *[Access/13] 00:00:09
                    > to 13.160.0.2 via fe-0/0/0.0

show route protocol arp

content_copy zoom_out_map
user@host>  show route protocol arp
inet.0: 43 destinations, 43 routes (42 active, 0 holddown, 1 hidden)

inet.3: 3 destinations, 3 routes (3 active, 0 holddown, 0 hidden)

cust1.inet.0: 1033 destinations, 2043 routes (1033 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

20.20.1.3/32        [ARP/4294967293] 00:04:35, from 20.20.1.1
                      Unusable
20.20.1.4/32        [ARP/4294967293] 00:04:35, from 20.20.1.1
                      Unusable
20.20.1.5/32        [ARP/4294967293] 00:04:32, from 20.20.1.1
                      Unusable
20.20.1.6/32        [ARP/4294967293] 00:04:34, from 20.20.1.1
                      Unusable
20.20.1.7/32        [ARP/4294967293] 00:04:35, from 20.20.1.1
                      Unusable
20.20.1.8/32        [ARP/4294967293] 00:04:35, from 20.20.1.1
                      Unusable
20.20.1.9/32        [ARP/4294967293] 00:04:35, from 20.20.1.1
                      Unusable
20.20.1.10/32       [ARP/4294967293] 00:04:35, from 20.20.1.1
                      Unusable
20.20.1.11/32       [ARP/4294967293] 00:04:33, from 20.20.1.1
                      Unusable
20.20.1.12/32       [ARP/4294967293] 00:04:33, from 20.20.1.1
                      Unusable
20.20.1.13/32       [ARP/4294967293] 00:04:33, from 20.20.1.1
                      Unusable
...

show route protocol bgp

content_copy zoom_out_map
user@host> show route protocol bgp 192.168.64.0/21    
inet.0: 335832 destinations, 335833 routes (335383 active, 0 holddown, 450 hidden)
+ = Active Route, - = Last Active, * = Both

192.168.64.0/21       *[BGP/170] 6d 10:41:16, localpref 100, from 192.168.69.71
                      AS path: 10458 14203 2914 4788 4788 I
                    > to 192.168.167.254 via fxp0.0

show route protocol direct

content_copy zoom_out_map
user@host> show route protocol direct   

inet.0: 335843 destinations, 335844 routes (335394 active, 0 holddown, 450 hidden)
+ = Active Route, - = Last Active, * = Both

172.16.8.0/24         *[Direct/0] 17w0d 10:31:49
                    > via fe-1/3/1.0
10.255.165.1/32    *[Direct/0] 25w4d 04:13:18
                    > via lo0.0
172.16.30.0/24      *[Direct/0] 17w0d 23:06:26
                    > via fe-1/3/2.0
192.168.164.0/22   *[Direct/0] 25w4d 04:13:20
                    > via fxp0.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.0102.5516.5001/152               
                   *[Direct/0] 25w4d 04:13:21
                    > via lo0.0

inet6.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

2001:db8::10:255:165:1/128
                   *[Direct/0] 25w4d 04:13:21
                    > via lo0.0
fe80::2a0:a5ff:fe12:ad7/128
                   *[Direct/0] 25w4d 04:13:21
                    > via lo0.0

show route protocol frr

content_copy zoom_out_map
user@host> show route protocol frr
inet.0: 43 destinations, 43 routes (42 active, 0 holddown, 1 hidden)

inet.3: 3 destinations, 3 routes (3 active, 0 holddown, 0 hidden)

cust1.inet.0: 1033 destinations, 2043 routes (1033 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

20.20.1.3/32       *[FRR/200] 00:05:38, from 20.20.1.1
                    > to 20.20.1.3 via ge-4/1/0.0
                      to 10.10.15.1 via ge-0/2/4.0, Push 16, Push 299792(top)
20.20.1.4/32       *[FRR/200] 00:05:38, from 20.20.1.1
                    > to 20.20.1.4 via ge-4/1/0.0
                      to 10.10.15.1 via ge-0/2/4.0, Push 16, Push 299792(top)
20.20.1.5/32       *[FRR/200] 00:05:35, from 20.20.1.1
                    > to 20.20.1.5 via ge-4/1/0.0
                      to 10.10.15.1 via ge-0/2/4.0, Push 16, Push 299792(top)
20.20.1.6/32       *[FRR/200] 00:05:37, from 20.20.1.1
                    > to 20.20.1.6 via ge-4/1/0.0
                      to 10.10.15.1 via ge-0/2/4.0, Push 16, Push 299792(top)
20.20.1.7/32       *[FRR/200] 00:05:38, from 20.20.1.1
                    > to 20.20.1.7 via ge-4/1/0.0
                      to 10.10.15.1 via ge-0/2/4.0, Push 16, Push 299792(top)
20.20.1.8/32       *[FRR/200] 00:05:38, from 20.20.1.1
                    > to 20.20.1.8 via ge-4/1/0.0
                      to 10.10.15.1 via ge-0/2/4.0, Push 16, Push 299792(top)
20.20.1.9/32       *[FRR/200] 00:05:38, from 20.20.1.1
                    > to 20.20.1.9 via ge-4/1/0.0
                      to 10.10.15.1 via ge-0/2/4.0, Push 16, Push 299792(top)
20.20.1.10/32      *[FRR/200] 00:05:38, from 20.20.1.1
...

show route protocol ldp

content_copy zoom_out_map
user@host> show route protocol ldp   
inet.0: 12 destinations, 13 routes (12 active, 0 holddown, 0 hidden)

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

192.168.16.1/32    *[LDP/9] 1d 23:03:35, metric 1
                    > via t1-4/0/0.0, Push 100000
192.168.17.1/32    *[LDP/9] 1d 23:03:35, metric 1
                    > via t1-4/0/0.0

private1__.inet.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden)

mpls.0: 6 destinations, 6 routes (6 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

100064             *[LDP/9] 1d 23:03:35, metric 1
                    > via t1-4/0/0.0, Pop      
100064(S=0)        *[LDP/9] 1d 23:03:35, metric 1
                    > via t1-4/0/0.0, Pop      
100080             *[LDP/9] 1d 23:03:35, metric 1
                    > via t1-4/0/0.0, Swap 100000

show route protocol ospf (Layer 3 VPN)

content_copy zoom_out_map
user@host> show route protocol ospf   
inet.0: 40 destinations, 40 routes (39 active, 0 holddown, 1 hidden)
+ = Active Route, - = Last Active, * = Both

10.39.1.4/30       *[OSPF/10] 00:05:18, metric 4
                    > via t3-3/2/0.0
10.39.1.8/30        [OSPF/10] 00:05:18, metric 2
                    > via t3-3/2/0.0
10.255.14.171/32   *[OSPF/10] 00:05:18, metric 4
                    > via t3-3/2/0.0
10.255.14.179/32   *[OSPF/10] 00:05:18, metric 2
                    > via t3-3/2/0.0
172.16.233.5/32       *[OSPF/10] 20:25:55, metric 1

VPN-AB.inet.0: 5 destinations, 5 routes (5 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
                    
10.39.1.16/30       [OSPF/10] 00:05:43, metric 1
                    > via so-0/2/2.0
10.255.14.173/32   *[OSPF/10] 00:05:43, metric 1
                    > via so-0/2/2.0
172.16.233.5/32       *[OSPF/10] 20:26:20, metric 1

show route protocol rip

content_copy zoom_out_map
user@host> show route protocol rip   
inet.0: 26 destinations, 27 routes (25 active, 0 holddown, 1 hidden)
+ = Active Route, - = Last Active, * = Both

VPN-AB.inet.0: 5 destinations, 5 routes (5 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
10.255.14.177/32   *[RIP/100] 20:24:34, metric 2
                    > to 10.39.1.22 via t3-0/2/2.0
172.16.233.9/32       *[RIP/100] 00:03:59, metric 1

show route protocol rsvp extensive

content_copy zoom_out_map
user@host> show route protocol rsvp extensive
inet.0: 37 destinations, 37 routes (36 active, 0 holddown, 1 hidden)
 
inet.3: 3 destinations, 4 routes (3 active, 0 holddown, 0 hidden)
192.168.4.4/32 (2 entries, 1 announced)
        State: <FlashAll>
        *RSVP   Preference: 7/1
                Next hop type: Router, Next hop index: 0
                Address: 0xaad4fbc
                Next-hop reference count: 2, key opaque handle: 0x0, non-key opaque handle: 0x0
                Next hop: 192.168.0.1 via ge-0/0/0.0 weight 0x1, selected
                Label-switched-path PE1_to_PE2_1
                Label operation: Push 299920
                Label TTL action: prop-ttl
                Load balance label: Label 299920: None; 
                Label element ptr: 0x9938be8
                Label parent element ptr: 0x0
                Label element references: 3
                Label element child references: 1
                Label element lsp id: 2
                Session Id: 0
                Next hop: 192.168.1.1 via ge-0/0/1.0 weight 0x8001 uflags Mark connection protection tlv
                Label-switched-path Bypass->192.168.0.1
                Label operation: Push 299920
                Label TTL action: prop-ttl
                Load balance label: Label 299920: None; 
                Label element ptr: 0x9938eb8
                Label parent element ptr: 0x9938be8
                Label element references: 2
                Label element child references: 0
                Label element lsp id: 2
                Session Id: 0
                State: <Active Int>
                Local AS:   100 
                Age: 1:20       Metric: 100 
                Validation State: unverified 
                Actual IGP metric: 2                
                Task: RSVP
                Announcement bits (2): 0-Resolve tree 3 3-Resolve tree 1 
                AS path: I 
                Thread: junos-main 

show route protocol index prefix detail (ACX7100-32C, ACX7100-48L, and ACX7509 Devices)

Displays if a route is installed or not when FIB compression is enabledIf the route is not installed, the command displays the details of the parent route installed, that compressed the route.

content_copy zoom_out_map
user@root:pfe> show route proto 2 index 0 prefix 200.1.0.16 detail
Protocol: 2
Protocol     : IPv4
Table        : default
Prefix       : 200.1.0.16 (primary)
NH           : 25035 (software)
Flags        : 0x00008000
Details      :
guid          : 889058232562
type          :  user
nhid          :  25035
Forwarding state:
installed?    :  no
(Installed parent: 200.1.0/23)                          

Release Information

Command introduced before Junos OS Release 7.4.

ospf2 and ospf3 options introduced in Junos OS Release 9.2.

ospf2 and ospf3 options introduced in Junos OS Release 9.2 for EX Series switches.

flow option introduced in Junos OS Release 10.0.

flow option introduced in Junos OS Release 10.0 for EX Series switches.

footer-navigation