Junos OS

last person joined: 6 days ago 

Ask questions and share experiences about Junos OS.
  • 1.  Route Filter

    Posted 02-08-2015 22:46

    I need help with the question below, thanks in advanced!

     

    user@router> show route
    inet.0: 9 destinations, 9 routes (9 active, 0 holddown, 0 hidden)
    + = Active Route, - = Last Active, * = Both

    10.10.10.91/32 *[Direct/0] 00:09:40
    >via lo0.0

    10.10.10.92/32 *[OSPF/10] 00:01:50, metric 1
    >to 172.16.1.2 via ge-0/0/2.0

    100.100.1.0/24 *[Static/5] 00:01:50
    Reject

    172.16.1.0/24 *[Direct/0] 00:06:09
    >via ge-0/0/2.0

    172.16.1.1/32 *[Local/0] 00:06:09
    Local via ge-0/0/2.0

    192.168.0.0/16 *[Aggregate/130] 00:00:06
    Reject

    192.168.0.0/17 *[Aggregate/130] 00:00:06
    >to 172.16.1.2 via ge-0/0/2.0

    192.168.50.0/24 *[Static/5] 00:00:06
    >to 172.16.1.2 via ge-0/0/2.0

    192.168.51.0/24 *[Static/5] 00:00:06
    >to 172.16.1.2 via ge-0/0/2.0

    user@router> show configuration policy-options
    policy-statement demo {
    term 1 {
    from {
    protocol static;
    route-filter 192.168.0.0/16 orlonger accept;
    }
    then accept;
    }
    }
    user@router> show configuration protocols ospf
    export demo;
    area 0.0.0.0 {
    interface ge-0/0/2.0;
    }

    Which routes will be advertised to OSPF neighbors because of the demo policy?

    A. 192.168.0.0/16 only
    B. 192.168.50.0/24 only
    C. 192.168.50.0/24 and 192.168.51.0/24
    D. 192.168.0.0/17, 192.168.50.0/24, and 192.168.51.0/24

     

    From this statement below

    route-filter 192.168.0.0/16 orlonger accept;

    What is the correct answer?

     



  • 2.  RE: Route Filter
    Best Answer

     
    Posted 02-08-2015 23:10

    C is the correct answer. The route-filter is applied only to static routes, not also to aggregate routes.




    =====

    If this worked for you please flag my post as an "Accepted Solution" so others can benefit. A kudo would be cool if you think I earned it.