DGS-3610(config-if)# ip address 200.168.23.2 255.255.255.0
#Configure OSPF and set the redistribution route type
DGS-3610(config)# router ospf
DGS-3610(config-router)# redistribute rip metric 100 metric-type 1 subnets
DGS-3610(config-router)# network 192.168.12.0 0.0.0.255 area 0
#Configure the RIP and use the distribute list to filter the redistributed routes
DGS-3610(config)# router rip
DGS-3610(config-router)# redistribute ospf metric 2
DGS-3610(config-router)# network 200.168.23.0
DGS-3610(config-router)# distribute-list 10 out ospf
DGS-3610(config-router)# no auto-summary
#Define an access list
DGS-3610(config)# access-list 10 per
mit 192.168.10.0
Configuration of router C:
DGS-3610(config)# interface gigabitEthernet 0/0
DGS-3610(config-if)# ip address 200.168.30.1 255.255.255.0
!
DGS-3610(config)# interface gigabitEthernet 0/1
DGS-3610(config-if)# ip address 200.168.3.1 255.255.255.0
!
DGS-3610(config)# interface Serial 1/0
DGS-3610(config-if)# ip address 200.168.23.3 255.255.255.0
DGS-3610(config)# router rip
DGS-3610(config-router)# network 200.168.23.0
DGS-3610(config-router)# network 200.168.3.0
DGS-3610(config-router)# network 200.168.30.0
OSPF routes found by router A:
O E1 200.168.30.0/24 [110/101] via 192.168.12.5, 00:04:07, FastEthernet0/1
O E1 200.168.3.0/24 [110/101] via 192.168.12.5, 00:04:07, FastEthernet0/1
RIP routes found by Router C:
R 192.168.10.0/24 [120/2] via 200.168.23.2, 00:00:00, Serial1/0
30.2.3.3 Example of Configuring the Route Map
The route map can be configured very flexibly to be used on the route redistribution and
policy-based routing. No matter how the route map is used, the configuration principle is the
same, except that different command sets are used. Even if it is used on the route
redistribution, different routing protocols can use different commands with the route map.
In the following example, the OSPF routing protocol redistributes only the RIP routes whose
hops are 4. In the OSPF routing area, the type of the routes is external route type-1, the
initial metric is 40, and the route tag is 40.