Accept only /32 prefixes from all neighbors:
- [edit]
- protocols {
-
- ldp {
- import only-32;
- ...
- }
- }
- policy-options {
-
- policy-statement only-32 {
-
- term first {
-
- from {
- route-filter 0.0.0.0/0 upto /31;
- }
- then reject;
- }
- then accept;
- }
- }
Accept 131.108/16 or longer from router ID 10.10.255.2 and accept all prefixes from all other neighbors:
- [edit]
- protocols {
-
- ldp {
- import nosy-neighbor;
- ...
- }
- }
- policy-options {
-
- policy-statement nosy-neighbor {
-
- term first {
-
- from {
- neighbor 10.10.255.2;
- route-filter 131.108.0.0/16 orlonger accept;
- route-filter 0.0.0.0/0 orlonger reject;
- }
- }
- then accept;
- }
- }