RIP and OSPF Redistribution
This case study addresses the issue of integrating Routing Information Protocol (RIP) networks with Open Shortest Path First (OSPF) networks. Most OSPF networks also use RIP to communicate with hosts or to communicate with portions of the internetwork that do not use OSPF. Cisco supports both the RIP and OSPF protocols and provides a way to exchange routing information between RIP and OSPF networks. This case study provides examples of how to complete the following phases in redistributing information between RIP and OSPF networks, including the following topics:
- Configuring a RIP Network
- Adding OSPF to the Center of a RIP Network
- Adding OSPF Areas
- Setting Up Mutual Redistribution
Configuring a RIP Network
Figure 14-1 illustrates a RIP network. Three sites are connected with serial lines. The RIP network uses a Class B address and an 8-bit subnet mask. Each site has a contiguous set of network numbers.
Figure 14-1: A RIP network.

Table 14-1 lists the network address assignments for the RIP network, including the network number, subnet range, and subnet masks. All interfaces indicate network 130.10.0.0; however, the specific address includes the subnet and subnet mask. For example, serial interface 0 on Router C has an IP address of 130.10.63.3 with a subnet mask of 255.255.255.0.
Table 14-1: RIP Network Address Assignments
| Network Number | Subnets | Subnet Masks |
|---|---|---|
|
130.10.0.0 |
Site A: 8 through 15 |
255.255.255.0 |
|
130.10.0.0 |
Site B: 16 through 23 |
255.255.255.0 |
|
130.10.0.0 |
Site C: 24 through 31 |
255.255.255.0 |
|
130.10.0.0 |
Serial Backbone: 62 through 64 |
255.255.255.0 |
Configuration File Examples
The following commands in the configuration file for Router A determine the IP address for each interface and enable RIP on those interfaces:
interface serial 0 ip address 130.10.62.1 255.255.255.0 interface serial 1 ip address 130.10.63.1 255.255.255.0 interface ethernet 0 ip address 130.10.8.1 255.255.255.0 interface tokenring 0 ip address 130.10.9.1 255.255.255.0 router rip network 130.10.0.0
The following commands in the configuration file for Router B determine the IP address for each interface and enable RIP on those interfaces:
interface serial 0 ip address 130.10.62.2 255.255.255.0 interface serial 1 ip address 130.10.64.2 255.255.255.0 interface ethernet 0 ip address 130.10.17.2 255.255.255.0 interface tokenring 0 ip address 130.10.16.2 255.255.255.0 router rip network 130.10.0.0
The following commands in the configuration file for Router C determine the IP address for each interface and enable RIP on those interfaces:
interface serial 0 ip address 130.10.63.3 255.255.255.0 interface serial 1 ip address 130.10.64.3 255.255.255.0 interface ethernet 0 ip address 130.10.24.3 255.255.255.0 router rip network 130.10.0.0
转载地址:http://www.net130.com/CMS/Pub/Tech/tech_config/2005_06_21_59556.htm