1、因为r1/r2存在两个换回,所以供7个网段
对其进行ip划分
2、设置换回地址
R3
[Huawei]interface LoopBack ?
<0-1023> LoopBack interface number
[Huawei]interface LoopBack 3
Huawei-LoopBack3]ip address 3.3.3.1 24
R1
[Huawei]interface LoopBack 1
[Huawei-LoopBack1]ip address 192.168.1.1 27[Huawei]interface LoopBack 2
[Huawei-LoopBack2]ip address 192.168.1.33 27
R2
[Huawei]interface LoopBack 1
[Huawei-LoopBack1]ip address 192.168.1.129 27[Huawei]interface LoopBack 2
[Huawei-LoopBack2]ip address 192.168.1.161 27
4、设置每个接口的IP地址
R1
[Huawei-GigabitEthernet0/0/0]ip address 192.168.65.1 27
R2
[Huawei-GigabitEthernet0/0/0]ip address 192.168.193.1 27
[Huawei-GigabitEthernet0/0/0]ip address 192.168.193.2 27
5、设置动态路由
R1
[Huawei-rip-1]version 2
[Huawei-rip-1]network
[Huawei-rip-1]network 192.168.65.0
R2
[Huawei-rip-1]version 2
[Huawei-rip-1]network
[Huawei-rip-1]network 192.168.129.0