今天在公司有點時間來對各種路由協議的重分佈和過濾做個總結吧,純屬個人總結,如有雷同,純屬巧合!
首先說明一下,上面這張拓撲圖其中的路由器IP都是以爲172.8.AB.x來規劃的,比如R1和R2那麼就是172.8.12.X直連的網段。
需求:
1.上圖中的RIP/EIGRP/OSPF路由協議中,配置使得RIP只對自己的區域的IP路由器發送更新,R4和R6做雙向重分佈,在重分佈到EIGRP的metric值是一致的。
2.A1區域中有一臺 HTTP SERVER,IP爲55.55.55.100/24配置使的它只對1和2區開放,對3區實行隱藏。
3.R4上面配置,EIGRP重分佈道OSPF時,B區的metric值是100,類型爲E1,C區的metric值爲200,類型爲1.其他路由按照默認配置。
4.R1有11.11.1.0/24 、11.11.2.0/24 、11.11.3.0/24,在R2上做一個彙總條目,讓其他每個區域都能訪問到這個網段。
5.R4上配置要求R4訪問G區的時候走I區III區線路其他照常
關鍵配置:
(1.1)配置使得RIP只對自己的區域IP路由器更新RIP信息
R2:
config-route)#router rip
config-route)#passive-interface default
config-route)#no passive-interface serial1/0/允許區域內的進行更新
R6:
config)#router rip
config-route)#passive-interface default
config-route)#no passive-interface serial1/1/允許區域內的進行更新
(1.2)R4和R6做雙向重分佈,在重分佈到EIGRP的metric值是一致
R4:
config)#router eigrp 100
config-route)#redistribute ospf 2011 metric 10000 100 255 1 1500
config-route)#no auto-summary
config)#router ospf 1
R6:
config)#router eigrp 100
config-route)#redistribute rip metric 10000 100 255 1 1500 route-map summary-rip
config-route)#no auto-summary
(1.3)A1區域中有一臺 HTTP SERVER,IP爲55.55.55.100/2讓它對III區隱藏
R2:
config)#router rip
config-route)#redistribute ospf 1 metric 1
config-route)#distribute-list 2 out ospf 1
config)#access-list 2 deny 55.55.55.0/拒絕從OSPF1重分佈進來的網段
config)#access-list 2 permit any
(1.4)R4上面配置,EIGRP重分佈道OSPF時,B區的metric值是100,類型爲E1,C區的metric值爲200
R4:
config)#router ospf 1
config-router)#redistribute eigrp 100 subnets route-map e2o
config)#route-map E2O permit 10
config-route-map)#set metric 100/指定爲100
config-route-map)#set metric-type type-1/指定類型爲E1
config)#route-map e2o permit 20\
config-route-map#match ip address 4
config-route-map)#set metric 200/指定爲200
config-route-map#set metric-type type-1/指定類型爲E1
(1.5)R1有11.11.1.0/24 、11.11.2.0/24 、11.11.3.0/24,在R2上做一個彙總條目,讓其他每個區域都能訪問到這個網段。
R2:
interface serial1/0
ip add 172.8.23.2 255.255.255.0
ip summary-address rip 11.11.0.0 255.255.255.0/接口彙總
好,完工!!