Junos OS

 View Only
last person joined: 2 days ago 

Ask questions and share experiences about Junos OS.

OSPF router filter based on Advertise router

  • 1.  OSPF router filter based on Advertise router

    Posted 12-01-2021 05:45
    Hi
    I am testing some complex scenarios and I need to filter OSPF advertised route (Not LSA obviously )based on Route-Source IP address. In IOS there is a command for filtering based route source. The configuration example can be something like this:
     
    ip access-list standard OSPF-ROUTE-SOURCE
    permit 10.234.247.5
    !
    route-map OSPF1-FILTER deny 10
    match ip route-source OSPF-ROUTE-SOURCE
    route-map OSPF1-FILTER permit 1000
    !
    router ospf 1
    router-id 10.234.248.2
    redistribute connected subnets route-map Connected->OSPF1
    redistribute ospf 2 subnets route-map OSPF2->OSPF1
    network 10.10.23.2 0.0.0.0 area 0
    network 10.10.24.2 0.0.0.0 area 0
    network 10.10.52.2 0.0.0.0 area 0
    default-information originate metric-type 1
    distribute-list route-map OSPF1-FILTER in
                   mpls ldp autoconfig

    I wonder is there any configuration method in JunOS for this purpose or not?
    For the record, I am using Junos: 18.1R1.9 on vMX
    Thank you for your help and support



    ------------------------------
    Ali Soltan
    ------------------------------