This article describes in detail the basic configuration of the route redistribution technology, as well as the application of OSPF and RIP technology. The following article gives a detailed introduction.
In practice, we will encounter a network that uses multiple IP routing protocols. To make the entire network work normally, routes must be successfully distributed among multiple routing protocols.
The following is an example of how to re-allocate routes between OSPF and RIP:
Run OSPF on ports 0 of Router1 and Serial 0 of Router2, RIP 2 on port 0 of Router1, and RIP2 on Router3, router2 has a static route pointing to Router4's 192.168.2.0/24 network. Router4 uses the default static route. OSPF and RIP routes need to be re-allocated between Router1 and Router3, and static routes and directly connected routes need to be re-allocated on Router2.
Commands involved in the example
Task commands
Redistribute connected
Redistribute static
Re-allocate the ospf route redistribute ospf process-id metric-value
Re-allocate the rip route redistribute rip metric-value
Router1:
Interface ethernet 0
Ip address 192.168.1.1 255.255.255.0
!
Interface serial 0
Ip address 192.200.10.5 255.255.255.252
!
Router ospf 100
Redistribute rip metric 10
Network 192.200.10.4 0.0.3 area 0
!
Router rip
Version 2
Redistribute ospf 100 metric 1
Network 192.168.1.0
!
Router2:
Interface loopback 1
Ip address 192.168.3.2 255.255.255.0
!
Interface ethernet 0
Ip address 192.168.0.2 255.255.255.0
!
Interface serial 0
Ip address 192.200.10.6 255.255.255.252
!
Router ospf 200
Redistribute connected subnet
Redistribute static subnet
Network 192.200.10.4 0.0.3 area 0
!
Ip route 192.168.2.0 255.255.255.0 192.168.0.1
!
Router3:
Interface ethernet 0
Ip address 192.168.1.2 255.255.255.0
!
Router rip
Version 2
Network 192.168.1.0
!
Router4:
Interface ethernet 0
Ip address 192.168.0.1 255.255.255.0
!
Interface ethernet 1
Ip address 192.168.2.1 255.255.255.0
!
Ip route 0.0.0.0 0.0.0.0 192.168.0.2
!