Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to shorten internet full bgp table (450K records) in such a way to catch all prefixes from /0 to /21 as well as all prefixes of /22 or more which are not included within /0 - /21 prefix range.

Example 1:

10.0.8.0/21
10.0.8.0/22
10.0.12.0/22

In this case we want to match only the first one (10.0.8.0/21), other two (10.0.8.0/22, 10.0.12.0/22) need to be rejected since they are included in the first one.

Example 2:

11.0.8.0/21 - is not within the table
11.0.8.0/22 - is not within the table
11.0.8.0/23
11.0.10.0/23
11.0.12.0/22

In this case we want to match the last three prefix (11.0.8.0/23, 11.0.10.0/23, 11.0.12.0/22) since first two records are missing from the table

How do I achieve this?

share|improve this question

1 Answer 1

You need to configure aggregate routes. It's not clear what version of JunOS you're running, but it is covered in the JunOS routing guide

[edit]
routing-options {
   rib **routing-table-name** {
      aggregate {
          defaults {
              **aggregate-options**;
          }
          route **destination-prefix** {
              policy **policy-name**; 
              **aggregate-options**; 
          }
      }
  }
}
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.