[j-nsp] Searching by prefix length

Bill Blackford bblackford at gmail.com
Thu May 5 17:51:42 EDT 2011


I want to be able to search the route table for prefixes announced
from a certain peer and of a range of lengths. ex, give me all routes
announced from and through HE but filter by 'upto' /19.

so,

show route aspath-regex .*6939.* terse  <upto /19>

or,

show route receive-protocol bgp ###.###.###.### aspath-regex .*6939.*
terse <upto /19>

Is there way to do this?

The best I've come up with is 'sh route aspath-regex .*6939.* | except
/2' This is obviously not a very flexible approach.

Thank you,

-b


-- 
Bill Blackford
Network Engineer

Logged into reality and abusing my sudo privileges.....


More information about the juniper-nsp mailing list