Page 1 of 1

static to ospf redistribution with access list

Posted: 04 Mar 2013 23:30
by eaglecreek
Hi ,

I have a WAN switch which multiple static routes. these routes will in turn be redistributed to OSPF.
Question 1: I need to allow a certain range of subnet to access to one internal subnet which in turn be distributed to ospf.
Question 2: I need to increase the metric of this route.

ip static-route 10.11.244.0/24 gateway 10.37.127.17 metric 1
ip static-route 10.30.42.32/28 gateway 10.37.127.17 metric 1
ip static-route 10.30.42.96/28 gateway 10.37.127.17 metric 1
ip static-route 10.30.42.128/27 gateway 10.37.127.17 metric 1
ip static-route 10.30.47.0/24 gateway 10.37.127.17 metric 1
ip static-route 10.37.18.0/23 gateway 10.37.127.17 metric 1
ip static-route 10.37.20.0/22 gateway 10.37.127.17 metric 1
ip static-route 10.37.24.0/21 gateway 10.37.127.17 metric 1
ip static-route 10.37.32.0/19 gateway 10.37.127.17 metric 1
ip static-route 10.37.64.0/19 gateway 10.37.127.17 metric 1
ip static-route 10.37.96.0/20 gateway 10.37.127.17 metric 1
ip static-route 10.37.112.0/21 gateway 10.37.127.17 metric 1
ip static-route 10.37.120.0/22 gateway 10.37.127.17 metric 1
ip static-route 10.37.124.0/23 gateway 10.37.127.17 metric 1
ip static-route 10.37.126.0/24 gateway 10.37.127.17 metric 1
ip static-route 10.37.127.0/25 gateway 10.37.127.17 metric 1
ip static-route 10.37.127.128/26 gateway 10.37.127.17 metric 1
ip static-route 10.37.127.192/27 gateway 10.37.127.17 metric 1
ip static-route 10.37.127.224/28 gateway 10.37.127.17 metric 1
ip static-route 10.38.32.0/22 gateway 10.37.127.17 metric 1
ip static-route 10.38.36.0/24 gateway 10.37.127.17 metric 1
ip static-route 10.22.4.0/23 gateway 10.37.127.17 metric 50
ip route-map "Static-OSPF-WAN" sequence-number 50 action permit
ip route-map "Static-OSPF-WAN" sequence-number 50 set metric-type external type1
ip redist static into ospf route-map "Static-OSPF-WAN" status enable


policy network group vlan-64 10.64.0.0 mask 255.255.0.0
policy network group vlan-22 10.22.4.0 mask 255.255.253.0
policy network group vlan-internal 10.0.0.0 mask 255.0.0.0
policy condition vlan64-22 source network group vlan-64 destination network group vlan-22
policy condition all-22 source network group vlan-internal destination network group vlan-22
policy action allow
policy action deny disposition deny
policy rule vlan64-22 precedence 150 condition vlan64-22 action allow
policy rule all-22 precedence 200 condition all-22 action deny
qos apply

Re: static to ospf redistribution with access list

Posted: 05 Mar 2013 20:53
by eaglecreek
forgot to mention. the route that that I'll be broadcasting to allow certain source subnet to my internal subnet is as follows.
10.64.0.0/16 to 10.22.4.0/23
henceforth um broadcasting ip static-route 10.22.4.0/23 gateway 10.37.127.17 metric 50 and using policy group to filter the broadcast.

Re: static to ospf redistribution with access list

Posted: 07 Mar 2013 07:49
by one6f
Hi,
It will maybe help:
here are commonly examples. route map can also deny subnets. here how to block certain local routes from redistributed into ospf