Tuesday, August 19, 2014

Filtering routes in Juniper


protocols {
    rip {
        group RIP-PROTOCOL {
            neighbor em0.0;
            neighbor em1.0 {
                import RIP-FILTER;
            }
        }
    }
}

    }
 
    policy-statement RIP-FILTER {
        term FL-ROUTES {
            from {
                protocol rip;
                route-filter 8.8.8.0/24 exact;
            }
            then reject;
        }
    }
}



set policy-options policy-statement RIP-FILTER term FL-ROUTES from protocol rip
set policy-options policy-statement RIP-FILTER term FL-ROUTES from route-filter 8.8.8.0/24 exact
set policy-options policy-statement RIP-FILTER term FL-ROUTES then reject

set protocols rip group RIP-PROTOCOL neighbor em1.0 import RIP-FILTER


No comments:

Post a Comment