1》分别在R1、R2、R3、R4上开启EIGRP进程
R2(config)#router eigrp 1
R2(config-router)#no auto-summary
R2(config-router)#network 192.168.12.0 0.0.0.255
用同样的方法,开启R2、R3、R4的EIGRP进程
2》R2#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

     1.0.0.0/24 is subnetted, 1 subnets
D       1.1.1.0 [90/20640000] via 192.168.12.1, 00:00:35, Serial0/3/0
     4.0.0.0/24 is subnetted, 1 subnets
D       4.4.4.0 [90/21152000] via 192.168.23.2, 00:00:18, Serial0/2/0
C    192.168.12.0/24 is directly connected, Serial0/3/0
C    192.168.23.0/24 is directly connected, Serial0/2/0
D    192.168.34.0/24 [90/21024000] via 192.168.23.2, 00:02:54, Serial0/2/0
注意:cost=【10000000/此路由器到目标网络的链路所有入口的带宽最小值(kbps)+所经过链路中入口
的延迟之和(us)/10】*256
例如上面调试的结果中的第一条路由:D       1.1.1.0 [90/20640000] via 192.168.12.1, 00:00:35, Serial0/3/0
20640000就是cost值,就是采用该方法计算出来的,而90是EIGRP这个协议的管理距离。

3》R2#show ip protocols

Routing Protocol is "eigrp  1 "
  Outgoing update filter list for all interfaces is not set
  Incoming update filter list for all interfaces is not set
  Default networks flagged in outgoing updates 
  Default networks accepted from incoming updates
  EIGRP metric weight K1=1, K2=0, K3=1, K4=0, K5=0
// 显示度量值时所用的K值
  EIGRP maximum hopcount 100
// EIGRP所支持的最大条数
  EIGRP maximum metric variance 1
//variance 值默认的情况下为1,即默认时只支持等价路径的负载均衡
Redistributing: eigrp 1
  Automatic network summarization is not in effect
// 表示自动汇总已经关闭,默认自动汇总是开的 
  Maximum path: 4
  Routing for Networks: 
     192.168.12.0
     192.168.23.0
  Routing Information Sources: 
    Gateway         Distance      Last Update
    192.168.12.1    90            311039    
    192.168.23.2    90            337820    
  Distance: internal 90 external 170