cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
803
Views
9
Helpful
1
Replies

Filter routes in OSPF

arpportoPereira
Level 1
Level 1

Hi

can i filter routes with ospf this way?

interface Vlan510
ip address 172.16.100.13 255.255.255.0
no shutdown

interface Vlan520
ip address 172.16.110.13 255.255.255.0
no shutdown

interface Vlan112
ip address 10.200.192.1 255.255.255.0
no shutdown

interface Vlan146
ip address 10.200.224.1 255.255.255.0
no shutdown

router ospf 10
     distribute-list route-map teste1 out vlan 510
     distribute-list route-map teste2 out vlan 520
     network 10.200.0.0 0.0.255.255 area 0
     network 172.16.100.0
     network 172.16.110.0

access-list 11 permit 10.200.192.0 0.0.31.255
access-list 12 permit 10.200.224.0 0.0.31.255

route-map teste1 permit 10
     match ip address 11
route-map teste2 permit 15
     match ip address 12

thanks

1 Reply 1

Ganesh Hariharan
VIP Alumni
VIP Alumni

can i filter routes with ospf this way?

interface Vlan510
ip address 172.16.100.13 255.255.255.0
no shutdown

interface Vlan520
ip address 172.16.110.13 255.255.255.0
no shutdown

interface Vlan112
ip address 10.200.192.1 255.255.255.0
no shutdown

interface Vlan146
ip address 10.200.224.1 255.255.255.0
no shutdown

router ospf 10
     distribute-list route-map teste1 out vlan 510
     distribute-list route-map teste2 out vlan 520
     network 10.200.0.0 0.0.255.255 area 0
     network 172.16.100.0
     network 172.16.110.0

access-list 11 permit 10.200.192.0 0.0.31.255
access-list 12 permit 10.200.224.0 0.0.31.255

route-map teste1 permit 10
     match ip address 11
route-map teste2 permit 15
     match ip address 12

thanks


Hi,

Check out the below link for ospf filtering option best way with distribution or route maps.

http://www.cisco.com/en/US/docs/ios/12_0s/feature/guide/routmap.html

Hope to Help !!

Ganesh.H

Remember to rate the helpful post