立即注册 登录
雏鹰部落 返回首页

子杰的个人空间 https://bbs.spoto.net/?131778 [收藏] [复制] [分享] [RSS]

日志

EIGRP的手动汇总配置案例

已有 354 次阅读2013-2-21 23:13

1     案例配置拓扑

   

             

2     IP地址规划

 

Fastethernet0/0

Fastethernet1/0

Fastethernet2/0

R1

12.12.12.1/24

N/A

N/A

R2

12.12.12.2/24

23.23.23.2/24

N/A

R3

23.23.23.3/24

N/A

N/A

 

Loopback 0

Loopback 1

Loopback 2

R1

10.1.0.1/24

10.1.1.1/24

10.1.2.1/24

3     案例配置需求

l  R1R2R3三台路由器运行EIGRP协议,进程为1

l  并在R1上开启环回接口Loopback 0Loopback 1 Loopback 2

l  将环回接口的地址网段在R1上汇总后传递给R2R3

l  查看EIGRP汇总前后的R2路由表的变化。

4     案例配置思路

1)     先配R1R2R3运行EIGRP协议,并配置环回接口地址,实现设备互通。

(config)#router eigrp x                            //开启EIGRP进程//     

(config-router)#no auto-summary                 //关闭自动汇总//

(config-router)#network x.x.x.x x.x.x.x               //宣告网段//

(config)#interface Loopback x         

(config-if)#ip address x.x.x.x x.x.x.x                  //配置环回接口地址//

2)     R1F0/0(与R2相连的接口)上做EIGRP汇总配置

(config)# interface fastethernet 0/0

(config-if)#ip summary-address eigrp x x.x.x.x x.x.x.x   //汇总EIGRP进程为x的路由条目 //

5     案例检验结果

1)     在没有汇总前,R2的路由表:

      

      上图表明有三条明细路由能被R2接收到。

2)     在有汇总后,R2的路由表:

      

上图表明明细路由已经没有了,但有条汇总路由被R2接收。

3)     汇总后查看R1的路由表:

     

 上图表明产生了一条汇总的路由条目为Null 0

4)     汇总后,验证R3能否与R1的任一个环回接口地址通信

       

上图表明汇总后,R3仍能与明细路由条目通信。

6     案例配置文件

R1:

enable
conf t
hostname R1
interface Loopback0
 ip address 10.1.0.1 255.255.255.0
!
interface Loopback1
 ip address 10.1.1.1 255.255.255.0
!
interface Loopback2
 ip address 10.1.2.1 255.255.255.0
!
interface FastEthernet0/0
 ip address 12.12.12.1 255.255.255.0
 ip summary-address eigrp 1 10.1.0.0 255.255.252.0 5
 no shutdown
 exit
!
router eigrp 1
 network 10.1.0.0 0.0.3.255
 network 12.12.12.0 0.0.0.255
 no auto-summary
!
end

R2:

enable
conf t
hostname R2
interface FastEthernet0/0
 ip address 12.12.12.2 255.255.255.0
 no shutdown
 exit
!
interface FastEthernet1/0
 ip address 23.23.23.2 255.255.255.0
 no shutdown
 exit
!
router eigrp 1
 network 12.12.12.0 0.0.0.255
 network 23.23.23.0 0.0.0.255
 no auto-summary
!
end

R3:

enalbe
conf t
hostname R3
interface FastEthernet0/0
 ip address 23.23.23.3 255.255.255.0
 no shutdown
 exit
!
router eigrp 1
 network 23.23.23.0 0.0.0.255
 no auto-summary
!
end

7     案例总结及其它

1)     EIGRP的汇总只能在接口下做汇总,不能在EIGRP进程下做汇总。

2)     注意汇总的路由条目网段的划分以及子网掩码的规划

 如:10.1.0.1/24

     10.1.1.1/24

     10.1.2.1/24

     以上三条路由条目汇总成一条路由,可通过10.1.0.0/22实现,此时这条汇总路由条目只能包含10.1.0.0/24 10.1.1.0/24 10.1.2.0/24 10.1.3.0/24这四条路由条目。

 具体:interface f0/0

        ip summary-address eigrp 1 10.1.0.0 255.255.252.0 //别忘写EIGRP的进程号//

3)     在做汇总的设备上会产生一条具有Null0的汇总路由条目,EIGRP的汇总路由条目的AD值变为5

 

 

 

 

 

 

 

       -----------------------------------------------------------------------------------------

       SPOTO 我们共创未来


您的朋友 周俊杰(Jay)
 
Email:zhoujj@spoto.net
新浪微博:http://weibo.com/zhoujj0130
新浪博客:http://blog.sina.com.cn/zhoujj0130
持续付出不亚于任何人的努力
-----------------------------------------------------------------------------------------

 

 


路过

雷人

握手

鲜花

鸡蛋

评论 (0 个评论)

facelist

您需要登录后才可以评论 登录 | 立即注册

QQ|熊猫同学技术论坛|小黑屋| 网络工程师论坛 ( 沪ICP备09076391 )

GMT+8, 2024-4-19 18:31 , Processed in 0.054462 second(s), 18 queries , Gzip On.

返回顶部