In the reality of the network, the network connection is linked to the link protocol, but the Protocol is not the same, can not directly connect to use, our common in the reality of the Protocol is the RIP protocol and OSPF protocol. Today's experiment is about using the two protocols together.
Experiment shows: This experiment is to do the OSPF routing and RIP routing connection, because the two are different protocols, not directly connected, assuming that OSPF is a large network area. RIP is a very small area of the network, then we can redistribute rip to OSPF, and the RIP directly connected to OSPF.
Configure the appropriate ports and routing protocols as shown in the above figure
In R1
[Huawei]int ETH 0/0/0
[Huawei-ethernet0/0/0]ip Add 192.168.1.1 24
[Huawei-ethernet0/0/0]loopback Local
[Huawei-ethernet0/0/0]int s 0/0/0
[Huawei-serial0/0/0]ip Add 192.168.2.1 24
In R2
[Huawei]int s 0/0/0
[Huawei-serial0/0/0]ip Add 192.168.2.2 24
[Huawei-serial0/0/0]int s 0/0/1
[Huawei-serial0/0/1]ip Add 192.168.3.1 24
[Huawei-serial0/0/3]int s 0/0/2
[Huawei-serial0/0/2]ip Add 192.168.6.1 24
In R3
[Huawei-serial0/0/2]int s 0/0/1
[Huawei-serial0/0/1]ip Add 192.168.3.2 24
[Huawei-serial0/0/1]int s 0/0/0
[Huawei-serial0/0/0]ip Add 192.168.4.1 24
In R4
[Huawei]int s 0/0/0
[Huawei-serial0/0/0]ip Add 192.168.4.2 24
[Huawei-serial0/0/0]int ETH 0/0/0
[Huawei-ethernet0/0/0]ip Add 192.168.5.1 24
[Huawei-ethernet0/0/0]loopback Local