
2-24 Release Note
Software Version 2.7.5
C613-10454-00 REV A
Filtering when copying routes to OSPF
OSPF:
■ can import BGP routes, with or without filtering
■ can import RIP routes, with or without filtering
■ automatically imports interface routes, without filtering
■ can import statically-configured routes, with or without filtering.
The following table shows how to filter routes from RIP, BGP and static routes.
From How to filter
Static
routes
1. For finest control, tag each route you want to include (or each route you want
exclude), using one of the commands:
add ip route=ipadd interface=interface nexthop=ipadd tag=1..65535
[other-options]
or
set ip route=ipadd interface=interface mask=mask nexthop=ipadd
tag=1..65535 [other-options]
2. Create a route map, matching on tag, metric, or routetype. Static routes are
either External Type 1 or External Type 2.
3. Apply the route map, using the command:
add ospf redistribute protocol=static routemap=routemap
BGP 1. Create an IP filter with filter ID from 300 to 399, matching on source address
or prefix
2. Apply the filter, using the command:
set ospf /jointfilesconvert/427458/bgpfilter=300..399
RIP 1. Turn on importing of RIP routes into OSPF, by using the command:
set ospf rip=import [other-options]
2. Create IP route filters to determine which RIP routes are copied into the LSA
database, by using the command:
add ip route filter[=filter-id] ip=ipadd mask=ipadd
action={include|exclude} protocol=ospf direction=send [other-options]
The router or switch automatically applies the filter when importing routes
into the LSA database, because protocol=ospf.
Comentarios a estos manuales