一. 实验要求
二.实验步骤
【1】分配IP及配置区域
AR1~AR2配置如下
【2】AR2与AR4为ASBR 进行双向重发布(以AR4为例)
【3】更改环回路由网络类型
AR1
AR4
【4】更改AR1环回路由
1.抓取路由
2.更改(AR2,AR4相同)
3.结果
【4】选路(以AR1为例)
[R2]ip ip-prefix xixi permit 172.16.6.1
[R2]route-policy 1 permit node 15
[R2-route-policy]if-match ip-prefix xixi
[R2-route-policy]apply cost-type type-1 //type1优于type2
【5】过滤网段(以AR4为例)
-
[R1]ip ip-prefix 4 permit 172.16.8.1
-
[R1]int g 0/0/0
-
[R1-GigabitEthernet0/0/0]rip metricin ip-prefix 4 2
实验完成