18-10 Riverstone Networks RS Switch Router User Guide Release 8.0
Configuring Simple Routing Policies Routing Policy Configuration
18.2.6 Redistributing Aggregate Routes
The aggregate parameter causes an aggregate route with the specified IP address and subnet mask to be redistributed.
Note The aggregate route must first be created using the aggr-gen command. This
command creates a specified aggregate route for routes that match the aggregate.
To redistribute aggregate routes, enter one of the following commands in Configure mode:
18.2.7 Simple Route Redistribution Example: Redistribution into RIP
For all examples given in this section, refer to the configurations shown in Figure 18-1.
The following configuration commands for router R1:
Determine the IP address for each interface
Specify the static routes configured on the router
Determine its RIP configuration
To redistribute aggregate routes
into RIP. ip-router policy redistribute from-proto
aggregate to-proto rip
To redistribute aggregate routes
into OSPF. ip-router policy redistribute from-proto
aggregate to-proto ospf
!++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
! Create the various IP interfaces.
!++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
interface create ip to-r2 address-netmask 120.190.1.1/16 port et.1.2
interface create ip to-r3 address-netmask 130.1.1.1/16 port et.1.3
interface create ip to-r41 address-netmask 140.1.1.1/24 port et.1.4
interface create ip to-r42 address-netmask 140.1.2.1/24 port et.1.5
interface create ip to-r6 address-netmask 160.1.1.1/16 port et.1.6
interface create ip to-r7 address-netmask 170.1.1.1/16 port et.1.7
!++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
! Configure a default route through 170.1.1.7
!++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ip add route default gateway 170.1.1.7
!+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
! Configure static routes to the 135.3.0.0 subnets reachable through
! R3.
!+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
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