实验题目
拓扑图:
实验分析:
如拓扑IP地址分配,左边为RIP,右边为OSPF area0
2,2,2,2和4.4.4.4环回可能会存在32位掩码和24位掩码的路由,所以进环回接口,将环回接口改为broadcast类型
备份路径需将某些路由的Cost值修改在ASBR上进行即可,路由回馈在OSPF中已经解决
防止出现环路,将ASBR上面的直连接口重发布入RIP和OSPF区域
最后添加路由规则
R1:
[Huawei]sysname r1
[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]ip add 12.1.1.1 255.255.255.0
[r1-GigabitEthernet0/0/0]int g0/0/1
[r1-GigabitEthernet0/0/1]ip add 14.1.1.1 255.255.255.0
[r1-GigabitEthernet0/0/1]int l0
[r1-LoopBack0]ip add 1.1.1.1 255.255.255.0
[r1-LoopBack0]int l1
[r1-LoopBack1]ip add 172.16.1.1 24
[r1-LoopBack1]int l2
[r1-LoopBack2]ip add 172.16.2.1 24
[r1-LoopBack2]int l3
[r1-LoopBack3]ip add 172.16.4.1 24
[r1-LoopBack3]rip 1
[r1-rip-1]version 2
[r1-rip-1]network 12.0.0.0
[r1-rip-1]network 1.0.0.0
[r1-rip-1]network 14.0.0.0
[r1-rip-1]network 172.16.0.0
[r1-rip-1]q
[r1]ip ip-prefix 23 permit 23.1.1.0 24
[r1]int g0/0/01
[r1-GigabitEthernet0/0/1]rip metricout ip-prefix 23 2
[r1-GigabitEthernet0/0/1]q
[r1]ip ip-p