Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Guide That Contains This Content
[+] Expand All
[-] Collapse All

    match distance


    match distance distance [ distance ]*

    no match distance [ distance ]

    Release Information

    Command introduced before JunosE Release 7.1.0.


    Matches any routes that have the specified administrative distance. The no version removes the match clause from a route map unless you specify a value, in which case only that value is removed from the match clause.

    Note: Matching a distance is useful only when applied to a route being redistributed out of a routing table. Distance is used to determine the relative preference between routes to the same prefix in order to pick the best route to that prefix in the routing table. Distance has no meaning in any other circumstance and any attempt to match distance will fail.


    • distance—Administrative distance in the range 0–255
    • *—Indicates that one or more parameters can be repeated multiple times in a list in the command line


    Policy List Configuration, Route Map Configuration

    Published: 2014-08-14