1. 程式人生 > >31-高級路由:BGP匯總:實驗二 重分發外部路由

31-高級路由:BGP匯總:實驗二 重分發外部路由

conf ext term 主類 技術 con image 分發 roc

一、實驗拓撲:
技術分享圖片
二、實驗要求:
1、R3創建環回口171.168.8.1~171.168.11.1地址,並將地址通告進入eigrp 90;
2、R2中BGP進程內重分發R3 的EIGRP 90;
3、驗證:R2的鄰居R1收到的路由條目是否是主類路由,並且這些路由條目下一跳為:0.0.0.0?

三、命令部署:
1、R3部署171.168.8.1~171.168.11.1環回口:
R3(config)#int lo2
R3(config-if)#ip add 171.168.8.1 255.255.255.0
R3(config-if)#int lo3
R3(config-if)#ip add 171.168.9.1 255.255.255.0

R3(config-if)#int lo4
R3(config-if)#ip add 171.168.10.1 255.255.255.0
R3(config-if)#int lo5
R3(config-if)#ip add 171.168.11.1 255.255.255.0

2、R3在EIGRP 90進程下通告171.168.8.1~171.168.11.1:
R3(config)#router eigrp 90
R3(config-router)#network 171.168.8.0 0.0.0.255
R3(config-router)#network 171.168.9.0 0.0.0.255
R3(config-router)#network 171.168.10.0 0.0.0.255

R3(config-router)#network 171.168.11.0 0.0.0.255

3、R2在BGP 24中重分發EIGRP 90
R2(config)#router bgp 24
R2(config-router)#redistribute eigrp 90

四、驗證:
1、R2的鄰居R1收到的路由條目是否是主類路由,並且這些路由條目下一跳為:0.0.0.0?
R1#show ip route
171.168.0.0/24 is subnetted, 4 subnets
B 171.168.11.0 [20/156160] via 12.1.1.2, 00:01:13
B 171.168.10.0 [20/156160] via 12.1.1.2, 00:01:13

B 171.168.9.0 [20/156160] via 12.1.1.2, 00:01:13
B 171.168.8.0 [20/156160] via 12.1.1.2, 00:01:13

 R1#show ip bgp
       Network          Next Hop          Metric       LocPrf      Weight Path

> 171.168.8.0/24 12.1.1.2 156160 0 24 ?
> 171.168.9.0/24 12.1.1.2 156160 0 24 ?
> 171.168.10.0/24 12.1.1.2 156160 0 24 ?
> 171.168.11.0/24 12.1.1.2 156160 0 24 ?

31-高級路由:BGP匯總:實驗二 重分發外部路由