Chapter 13: Routing Policy Configuration Guide

!+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ip add route 135.3.1.0/24 gateway 130.1.1.3

ip add route 135.3.2.0/24 gateway 130.1.1.3 ip add route 135.3.3.0/24 gateway 130.1.1.3

!+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

!Configure default routes to the other subnets reachable through R2. !+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

ip add route 202.1.0.0/16 gateway 120.190.1.2 ip add route 160.1.5.0/24 gateway 120.190.1.2

!++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

!RIP Box Level Configuration !++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ rip start

rip set default-metric 2 !++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

!RIP Interface Configuration. Create a RIP interfaces, and set

!their type to (version II, multicast). !++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

rip add interface to-r41 rip add interface to-r42 rip add interface to-r6

rip set interface to-r41 version 2 type multicast rip set interface to-r42 version 2 type multicast rip set interface to-r6 version 2 type multicast

Exporting a Given Static Route to All RIP Interfaces

Router R1 has several static routes, of which one is the default route. We would export this default route over all RIP interfaces.

1.Create a RIP export destination since we would like to export routes into RIP.

ip-router policy create rip-export-destination ripExpDst

2.Create a Static export source since we would like to export static routes.

ip-router policy create static-export-source statExpSrc

As mentioned above, if no export policy is specified, RIP and interface routes are exported into RIP. If any policy is specified, the defaults are overridden; it is necessary to explicitly specify everything that should be exported.

Since we would also like to export/redistribute RIP and direct routes into RIP, we would also create export-sources for those protocols.

3.Create a RIP export source since we would like to export RIP routes.

ip-router policy create rip-export-source ripExpSrc

188

SmartSwitch Router User Reference Manual

Page 214
Image 214
Cabletron Systems 9032578-05 manual 188