Chapter 11: Routing Policy Configuration Guide
162
DIGITAL GIGAswitch/Router User Reference Manual
Importing a Selected Subset of Routes from One RIP Trusted Gateway
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 its peer R41.
1.
Add the peer 140.1.1.41 to the list of trusted and source gateways.
2.
Create a RIP import source with the gateway as 140.1.1.4 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.4
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
rip add source-gateways 140.1.1.41
rip add trusted-gateways 140.1.1.41
ip-router policy create rip-import-source ripImpSrc144 gateway
140.1.1.4
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