Documentation

peerrouterrerunindex

Name

bgp router record-route -  record the AS-level route towards a prefix

Synopsis

record-route [--exact-match] [--preserve-dups] <prefix> 

Arguments

--exact-match
optionally performs exact-match
--preserve-dups
optionally keep duplicate ASNs in paths
prefix
destination prefix

Description

This command records the AS-level route from one router towards the given prefix. The command works as follows. Starting from the source router, it performs a best-match lookup in the router's BGP RIB. If a route is found, it jumps to the next-hop router and, again, performs a lookup for the same prefix. The algorithm stops when the next-hop router is the router itself (locally originated route). For each traversed router, the ASN of the router is appended to the resulting trace. By default, duplicate ASNs are not added, but it is possible to keep them using the --preserve-dups option.

It is possible to make use of an exact-match lookup instead of the default best-match lookup by mentionning the --exact-match option.

Output format: <source> <destination> <status> <AS-Path>

Example: cbgp> bgp router 0.0.0.1 record-route 0.1.0.1/32
0.0.0.1 0.1.0.1/32 SUCCESS 0 2 1