show route match-prefix
Syntax
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)
- show route match-prefix 2* (Show all mvpn type-2 routes)
- show route match-prefix *:224.* (Show all routes matching group 224/4)
show route match-prefix *:10.255.2.200:6:* (Show all routes matching route distributor 10.255.2.200:6)
user@host> show route match-prefix *:10.255.2.200:6:*
show route match-prefix 2* (Show all mvpn type-2 routes)
user@host> show route table vrf1.inet.0 match-prefix 2*
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.0show route match-prefix *:224.* (Show all routes matching group 224/4)
user@host> show route match-prefix *:224.*
Release Information
Command introduced in Junos OS Release 11.4.