Cisco Systems OL-14356-01 Network Router User Manual


 
Implementing Routing Policy on Cisco IOS XR Software
Information About Implementing Routing Policy on Cisco IOS XR Software
RC-396
Cisco IOS XR Routing Configuration Guide
OL-14356-01
Area-in
The area-in attach point within OSPF allows you to filter inbound OSPF type-3 summary link-state
advertisements (LSAs). The attach point provides prefix-based matching and hence increased control for
filtering type-3 summary LSAs.
The following example shows how to configure the prefix for OSPF summary LSAs. If the prefix
matches any of 111.105.3.0/24, 111.105.7.0/24, 111.105.13.0/24, it is accepted. If the prefix matches
any of 111.106.3.0/24, 111.106.7.0/24, 111.106.13.0/24, it is dropped.
route-policy OSPF-area-in
if destination in (111.105.3.0/24, 111.105.7.0/24, 111.105.13.0/24) then
drop
endif
if destination in (111.106.3.0/24, 111.106.7.0/24, 111.106.13.0/24) then
pass
endif
end-policy
router ospf 1
area 1
route-policy OSPF-area-in in
Area-out
The area-out attach point within OSPF allows you to filter outbound OSPF type-3 summary LSAs. The
attach point provides prefix-based matching and, hence, increased control for filtering type-3 summary
LSAs.
The following example shows how to configure the prefix for OSPF summary LSAs. If the prefix
matches any of 211.105.3.0/24, 211.105.7.0/24, 211.105.13.0/24, it is announced. If the prefix matches
any of .105.3.0/24, 212.105.7.0/24, 212.105.13.0/24, it is dropped and not announced.
route-policy OSPF-area-out
if destination in (211.105.3.0/24, 211.105.7.0/24, 211.105.13.0/24) then
drop
endif
if destination in (212.105.3.0/24, 212.105.7.0/24, 212.105.13.0/24) then
pass
endif
end-policy
router ospf 1
area 1
route-policy OSPF-area-out out
OSPF Attributes and Operators
Table 3 summarizes the OSPF attributes and operators.
Table 3 OSPF Attributes and Operators
Attach Point Attribute Match Set
default-information
originate
ospf-metric n/a set
metric-type n/a set
tag n/a set
rib-has-route in n/a