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 match-prefix

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
show route match-prefix match-prefix;

Description

Allows you to search for routes using regular expressions based on the extended (modern) regular expressions as defined in POSIX 1003.2.

Options

match-prefix

Regular expression to match formatted prefix.

Additional Information

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 match-prefix *:10.255.2.200:6:* (Show all routes matching route distributor 10.255.2.200:6)

content_copy zoom_out_map
user@host> show route match-prefix *:10.255.2.200:6:*

show route match-prefix 2* (Show all mvpn type-2 routes)

content_copy zoom_out_map
user@host> show route table vrf1.inet.0 match-prefix 2*
content_copy zoom_out_map
vrf1.inet.0: 3 destinations, 3 routes (3 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

20.1.1.0/24        *[Direct/0] 00:48:39
                    >  via ge-3/0/8.0
20.1.1.1/32        *[Local/0] 00:48:39
                       Local via ge-3/0/8.0

show route match-prefix *:224.* (Show all routes matching group 224/4)

content_copy zoom_out_map
user@host> show route match-prefix *:224.*

Release Information

Command introduced in Junos OS Release 11.4.

footer-navigation