BGP route policy simulator
Runs in your browser. Nothing you enter is sent anywhere, and the page’s security policy stops it from contacting other sites.Paste route-maps from a Cisco IOS-XE or NX-OS configuration, with the prefix-lists, AS-path lists and community lists they use. Then give a BGP route and see which sequence decides it, why each match line matches or not, and what the route looks like when it leaves.
Route
Test several routes
The prefix, then any of path, community, lp,med, weight, origin, tag, nhand peer, each followed by its value.
What it reads, and what it follows
Findings
Never matches: no route can meet the sequence’s match lines.Shadowed: earlier sequences take every route it matches first, with a different action or different set lines, so its own never apply.Redundant: earlier sequences already do exactly what it would. A finding is shown only when it is proven. Prefixes and their lengths, tags, local preference and MED are compared exactly; AS-path, community and next-hop matches, and lists that are missing, only count as covered by an earlier sequence with the same lists or more. A finding marked “IPv4” comes from a sequence that matches only on IPv4 prefix-lists, because what it does with IPv6 routes is not documented.
After a sequence with continue, a route can arrive having skipped earlier sequences and with its attributes changed, so the sequences after it are not analyzed. Lists that nothing in the paste uses are listed too; they may be used elsewhere in the full configuration, for example by a neighbor statement that was not pasted.
Based on Cisco’s documentation
The simulator follows Cisco’s configuration guides for IOS-XE and NX-OS, not a test on a router. Where the documentation does not say what the router does, the answer is “cannot tell”, with the reason, and never a guess. If your router does something different from what is shown here, I would like to hear about it.
How a route-map is read
Sequences run in order of their number, and a sequence entered without one is 10. In a sequence, every kind of match must agree; several names or values of one kind, on one line or on several, need only one to match. A sequence with no match lines matches every route. The first sequence that matches decides: deny drops the route, permit applies its set lines. A route that matches no sequence is denied.
On IOS-XE, continue takes a route that matched a permit sequence on to the named sequence, or to the next one, skipping those in between. If that sequence does not match, the route falls through to the ones after it. Prepends and additive communities build up along the way, and other set lines keep the last value. A route permitted on the way is not dropped by the implicit deny at the end, but a deny sequence it reaches still drops it. Cisco does not document how NX-OS evaluates continue, so there it is not modelled.
What it reads
Matches: ip address prefix-list, ipv6 address prefix-list,ip next-hop prefix-list, ipv6 next-hop prefix-list,as-path, community (with exact-match for a list of one line), local-preference, metric and tag. Sets:local-preference, weight, metric (with + and −),origin, as-path prepend (with last-as),community (with additive or none), comm-list delete, tag, ip next-hop and ipv6 next-hop (an address, peer-address or unchanged).
AS-path lists use Cisco’s regular expressions, in which _ matches a space, a comma, a brace, a parenthesis or either end of the path. Syntax that is not in Cisco’s documentation, such as \d or counts in braces, is refused. Community lists may use aa:nn, decimal numbers and the names no-export, no-advertise,local-AS and gshut.
Cannot tell
A decision that depends on any of these is shown as “cannot tell”: a list that is not in the paste; an expanded community list; extended or large communities; a match on an attribute that an earlier sequence changed through continue; exact-match with a list of more than one line; and an IPv4 match on an IPv6 route or the other way round. Cisco recommends a separate sequence for each address family but does not document what the other family’s match does, so a route-map that mixes them is often clearer split into one for IPv4 and one for IPv6.
The configuration and routes are read in your browser, in a separate worker. They are not sent anywhere, kept on this device or put in the address bar.