11 import policies example: importing from ospf, Import policies example: importing from ospf -21 – Riverstone Networks WICT1-12 User Manual

Page 451

Advertising
background image

Riverstone Networks RS Switch Router User Guide Release 8.0 18-21

Routing Policy Configuration

Configuring Advanced Routing Policies

2.

Create a RIP import source with the gateway as 140.1.1.41 since we would like to import all routes
except the 10.51.0.0/16 route from this gateway.

3.

Create the Import-Policy, importing all routes except the 10.51.0.0/16 route from gateway
140.1.1.41.

Importing a Selected Subset of Routes from All RIP Peers Accessible Over a Certain Interface

Router R1 has several RIP peers. Router R41 has an interface on the network 10.51.0.0. By default, router R41
advertises network 10.51.0.0/16 in its RIP updates. Router R1 would like to import all routes except the 10.51.0.0/16
route from all its peer which are accessible over interface 140.1.1.1.

1.

Create a RIP import source with the interface as 140.1.1.1, since we would like to import all routes
except the 10.51.0.0/16 route from this interface.

2.

Create the Import-Policy importing all routes except the 10.51.0.0/16 route from interface 140.1.1.1

18.3.11

Import Policies Example: Importing from OSPF

Due to the nature of OSPF, only the importation of ASE routes may be controlled. OSPF intra-and inter-area routes
are always imported into the RS routing table with a preference of 10. If a tag is specified, the import clause will only
apply to routes with the specified tag.

It is only possible to restrict the importation of OSPF ASE routes when functioning as an AS border router.

Like the other interior protocols, preference cannot be used to choose between OSPF ASE routes. That is done by the
OSPF costs. Routes that are rejected by policy are stored in the table with a negative preference.

ip-router policy create rip-import-source ripImpSrc144 gateway 140.1.1.41

ip-router policy import source ripImpSrc144 network all

ip-router policy import source ripImpSrc144 network 10.51.0.0/16 restrict

ip-router policy create rip-import-source ripImpSrc140 interface 140.1.1.1

ip-router policy import source ripImpSrc140 network all

ip-router policy import source ripImpSrc140 network 10.51.0.0/16 restrict

Advertising