41
# Use IP prefix lists on Router B to filter received and redistributed routes.
[RouterB] ip prefix-list aaa index 10 permit 2.1.1.0 24
[RouterB] ip prefix-list bbb index 10 permit 10.1.1.0 24
[RouterB] rip 1
[RouterB-rip-1] filter-policy prefix-list aaa import
[RouterB-rip-1] filter-policy prefix-list bbb export
[RouterB-rip-1] quit
# Display the RIP routing table on Router A.
[RouterA] display rip 1 route
Route Flags: R - RIP
A - Aging, S - Suppressed, G - Garbage-collect, D – Direct
O - Optimal, F - Flush to RIB
----------------------------------------------------------------------------
Peer 1.1.1.2 on GigabitEthernet1/0
Destination/Mask Nexthop Cost Tag Flags Sec
10.1.1.0/24 1.1.1.2 1 0 RAOF 19
Local route
Destination/Mask Nexthop Cost Tag Flags Sec
1.1.1.0/24 0.0.0.0 0 0 RDOF -
10.1.1.0/24 0.0.0.0 0 0 RDOF -
10.2.1.0/24 0.0.0.0 0 0 RDOF -
# Display the RIP routing table on Router B.
[RouterB] display rip 1 route
Route Flags: R - RIP
A - Aging, S - Suppressed, G - Garbage-collect, D – Direct
O - Optimal, F - Flush to RIB
----------------------------------------------------------------------------
Peer 1.1.1.1 on GigabitEthernet1/0
Destination/Mask Nexthop Cost Tag Flags Sec
2.1.1.0/24 1.1.1.1 1 0 RAOF 19
Local route
Destination/Mask Nexthop Cost Tag Flags Sec
1.1.1.0/24 0.0.0.0 0 0 RDOF -
10.1.1.0/24 0.0.0.0 0 0 RDOF -
10.2.1.0/24 0.0.0.0 0 0 RDOF -
Configuring RIP route redistribution
Network requirements
As shown in
Figure 8
, Router B communicates with Router A through RIP 100 and with Router C through
RIP 200.
Configure RIP 200 to redistribute direct routes and routes from RIP 100 on Router B so Router C can learn
routes destined for 10.2.1.0/24 and 11.1.1.0/24. Router A cannot learn routes destined for 12.3.1.0/24
and 16.4.1.0/24.