CCNP_重發布實驗

實驗拓撲與要求:
在這裏插入圖片描述
先對R1,R2,R3,R4間配好地址和環回
在這裏插入圖片描述
在這裏插入圖片描述
在這裏插入圖片描述
在這裏插入圖片描述
在這裏插入圖片描述
在這裏插入圖片描述
在這裏插入圖片描述
在這裏插入圖片描述
在這裏插入圖片描述
左邊起RIP協議,R2環回起RIP協議裏,右邊起OSPF協議,R3環回起OSPF協議裏
R1:
在這裏插入圖片描述
R2:
在這裏插入圖片描述
在這裏插入圖片描述
R3:
在這裏插入圖片描述
在這裏插入圖片描述
R4:
在這裏插入圖片描述
在ASBR(R2,R3)上進行多點雙向重發布
R2:

R2(config)#router rip
R2(config-router)#redistribute ospf 1 metric 1
R2(config)#router ospf 1
R2(config-router)#redistribute rip  subnets

R3:

R3(config)#router rip
R3(config-router)#redistribute ospf 1 metric 1
R3(config)#router ospf 1
R3(config-router)#redistribute rip subnets

在R3,R4中環回改爲ptp模式,會負載均衡
R3:

R3(config)#int lo 1
R3(config)#ip ospf network point-to-point

R4:

R4(config)#int lo 1
R4(config)#ip ospf network point-to-point

在R3上修改管理距離

R3(config)#router ospf 1
R3(config)#distance 121 2.2.2.2 0.0.0.0

在R2上修改管理距離

R2(config)#router ospf 1
R2(config)#distance 121 3.3.3.3 0.0.0.0

用偏移列表-----僅適用於DV(RIP/EIGRP)協議,在控制層面流量的入或出口上抓取路由條目,增大度量值,可以疊加;只能使用ACL爲其服務;

R3(config)#access-list 1 permit 2.2.2.0
R3(config)#router rip
R3(config)#offset-list 1 out 2 serial 2/1

在這裏插入圖片描述
在這裏插入圖片描述
在R2上用前綴列表來抓取流量

R2(config)#ip prefix-list aa permit 34.1.1.0/24
R2(config)#ip prefix-list a permit 3.0.0.0/24
R2(config)#router-map aa permit 10
R2(config)#match ip adress prefix-list aa
R2(config)#router-map aa permit 10
R2(config)#set metric 5
R2(config)#router-map aa permit 20
R2(config)#router rip
R2(config)#redistribute ospf 1 route-map aa

可以在R1上看到不負載了
在這裏插入圖片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章