Quantcast
Channel: All Routing posts
Viewing all articles
Browse latest Browse all 8688

Re: cut static to ospf area 0

$
0
0

Hi, 

 

The static routes will be exported into OSPF area 10 as Type 5 External LSA. Because, its a Type 5 LSA, it will be flooded to the OSPF domain except for stub areas if any. In this case, it will be flooded to all the neighbors in area 0.0.0.0.

Thus, I believe its not possible to filter the Type 5 LSA advertisement from the MX to the Cisco.

 

One solution could be filtering imported ospf routes on the Cisco devices. You could tag the exported static routes at the ASBR and then filter by using the tag as matching condition on each cisco device.

Example of export policy on MX:

protocols {
    ospf {
        export EXPORT-OSPF;
        .....
    }
}
policy-options {
    policy-statement EXPORT-OSPF {
        term static {
            from protocol static;
            then {
                tag 999;
                accept;
            }
        }
        then reject;
    }
}

Example of import filter on Cisco:

route-map tag-filter deny 10
  match tag 999
 route-map tag-filter permit 20
 !
 router ospf 1
  log-adjacency-changes
  distribute-list route-map tag-filter in

The equivalent of this filter on Juniper:

policy-options {
    policy-statement IMPORT-OSPF {
        term REJECT-TAG666 {
            from {
                protocol ospf;
                external;
                tag 999;
            }
            then reject;
        }
        then accept;
    }
}

Hope this helps.

Cheers,

Ashvin


Viewing all articles
Browse latest Browse all 8688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>