天天看點

EIGRP路由彙總--CCNP學習筆記

 <b>EIGRP路由彙總</b>

拓撲圖

<a href="http://blog.51cto.com/attachment/201202/162921505.png" target="_blank"></a>

在R1上建立若幹條明細路由

192.168.1.1/24

192.168.2.1/24

192.168.3.1/24

4個要點

在路由傳播方向出接口配置

産生null0???這點不是很清楚

所有明細路由down了才删除彙總路由

metric值取明細路由中最小的值

基本配置

R1配置

R1#sh running-config

Building configuration...

Current configuration : 1018 bytes

!

version 12.4

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

hostname R1

boot-start-marker

boot-end-marker

enable password cisco

no aaa new-model

memory-size iomem 5

ip cef

no ip domain lookup

!!

interface Loopback0

 ip address 192.168.1.1 255.255.255.0

interface Loopback1

 ip address 192.168.2.1 255.255.255.0

interface Loopback2

 ip address 192.168.3.1 255.255.255.0

interface Serial0/0

 no ip address

 shutdown

 serial restart-delay 0

interface Serial0/1

 ip address 13.1.1.1 255.255.255.0

interface Serial0/2

interface Serial0/3

router eigrp 90

 network 13.1.1.0 0.0.0.255

 network 192.168.0.0 0.0.255.255

 auto-summary

ip http server

control-plane

line con 0

 exec-timeout 0 0

 logging synchronous

line aux 0

line vty 0 4

 login

end

R3配置

R3#sh running-config

Current configuration : 879 bytes

service timestamps l<b>og datetime msec</b>

<b>no service password-encryption</b>

<b>!</b>

<b>hostname R3</b>

<b>boot-start-marker</b>

<b>boot-end-marker</b>

<b>enable password cisco</b>

<b>no aaa new-model</b>

<b>memory-size iomem 5</b>

<b>ip cef</b>

<b>no ip domain lookup</b>

<b>interface Serial0/0</b>

<b> ip address 35.1.1.5 255.255.255.0</b>

<b> serial restart-delay 0</b>

<b> clock rate 64000</b>

<b>interface Serial0/1</b>

<b> ip address 13.1.1.3 255.255.255.0</b>

<b>interface Serial0/2</b>

<b> no ip address</b>

<b> shutdown</b>

<b>interface Serial0/3</b>

<b>router eigrp 90</b>

<b> network 13.1.1.0 0.0.0.255</b>

<b> network 35.1.1.0 0.0.0.255</b>

<b> auto-summary</b>

<b>ip http server</b>

<b> </b>

<b>!        </b>

<b>control-plane</b>

<b>line con 0</b>

<b> exec-timeout 0 0</b>

<b> logging synchronous</b>

<b>line aux 0</b>

<b>line vty 0 4</b>

<b> login</b>

<b>end</b>

R5配置

R5#sh running-config

Current configuration : 805 bytes

hostname R5

 ip address 35.1.1.5 255.255.255.0

 network 35.1.1.0 0.0.0.255

手工彙總

首先計算彙總的IP位址和子網路遮罩

需要彙總的是

将第三個位元組提取出來,轉換成二進制

00000001為1

00000010為2

00000011為3

提取前6位元組為子網号,即192.168.0.0/22

然後進入R1的S0/1 針對S0/1通告手工彙總後的路由

ip summary-address eigrp 90 192.168.0.0 255.255.252.0

R1的路由表

手工彙總前

<a href="http://blog.51cto.com/attachment/201202/162947130.png" target="_blank"></a>

手工彙總後

<a href="http://blog.51cto.com/attachment/201202/163004210.png" target="_blank"></a>

R3的路由表

<a href="http://blog.51cto.com/attachment/201202/163019528.png" target="_blank"></a>

<a href="http://blog.51cto.com/attachment/201202/163043964.png" target="_blank"></a>

無論手工還是自動彙總後管理距離都為5

本文轉自lustlost 51CTO部落格,原文連結:http://blog.51cto.com/lustlost/770590,如需轉載請自行聯系原作者

繼續閱讀