CCNA培训课总结笔记--配置EIGRP实验(十)

简介:
实验目的:
熟悉掌握 EIGRP 的配置及相关命令 . 学会如何验证 EIGRP 的过程 .
实验拓扑图:
实验内容:
路由器的配置
先来看 R1 上的配置
Router>en
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
粘贴上基本命令
Router(config)#enable password cisco
Router(config)#no ip domain-lookup
Router(config)#line con 0
Router(config-line)# exec-timeout 0 0
Router(config-line)# logging synchronous
Router(config-line)#
Router(config-line)#line aux 0
Router(config-line)# exec-timeout 0 0
Router(config-line)# logging synchronous
Router(config-line)#line vty 0 4
Router(config-line)#
Router(config-line)#
Router(config-line)# exec-timeout 0 0
Router(config-line)# password cisco
Router(config-line)#
Router(config-line)# login
Router(config-line)#
Router(config-line)#
Router(config-line)#alias exec a sh ip int bri
Router(config)#alias exec b sh ip route
Router(config)#alias exec c sh ip route rip
Router(config)#alias exec d sh run
Router(config)#
Router(config)#host R1
R1(config)#interface e0/0
R1(config-if)#ip address 172.16.1.1 255.255.255.0
R1(config-if)#no shutdown
接下来配置名称 , 各接口地址
R1(config-if)#exit
R1(config)#interface s1/0
R1(config-if)#ip address  10.1.1 .1 255.255.255.0
R1(config-if)#clock rate 64000
R1(config-if)#no shutdown
同理 R2 上的配置 , 粘贴命令部分省略
Router(config)#host R2
R2(config)#interface s1/1
R2(config-if)#ip address  10.1.1 .2 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#interface s1/0
R2(config-if)#ip address  10.2.2 .2 255.255.255.0
R2(config-if)#clock rate 64000
R2(config-if)#no shutdown
R3 上的配置
Router(config)#host R3
R3(config)#interface s1/1
R3(config-if)#ip address  10.2.2 .3 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#interface e0/0
R3(config-if)#ip address 192.168.1.1 255.255.255.0
R3(config-if)#no shutdown
好了 , 现在开始配置 EIGRP
先从 R1 上开始
R1(config)#router eigrp 100
R1(config-router)#network 172.16.0.0
R1(config-router)#network  10.0.0 .0
R1(config-router)#exit
R2 上的配置
R2(config)#router eigrp 100
R2(config-router)#network  10.0.0 .0
R3 上的配置
R3(config)#router eigrp 100
R3(config-router)#network 192.168.1.0
R3(config-router)#network  10.0.0 .0
最后让我们来验证一下 EIGRP 的配置是否生效
看下 R1 的上
R1#show ip eigrp neighbors
IP-EIGRP neighbors for process 100
H   Address                 Interface       Hold Uptime   SRTT   RTO  Q  Seq
                                            (sec)         (ms)       Cnt Num
0    10.1.1 .2                Se1/0             12 00:01:11   81   486  0  5
这命令是查看 EIGRP 的邻居的
R1#show ip eigrp topology
IP-EIGRP Topology Table for AS(100)/ID(172.16.1.1)
 
Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,
       r - reply Status, s - sia Status
 
P 10.2.2 .0/24, 1 successors, FD is 2681856
        vi a 10.1.1 .2 (2681856/2169856), Serial1/0
P 10.0.0 .0/8, 1 successors, FD is 2169856
        via Summary (2169856/0), Null0
P 10.1.1 .0/24, 1 successors, FD is 2169856
        via Connected, Serial1/0
P 192.168.1.0/24, 1 successors, FD is 2707456
        vi a 10.1.1 .2 (2707456/2195456), Serial1/0
P 172.16.0.0/16, 1 successors, FD is 281600
        via Summary (281600/0), Null0
P 172.16.1.0/24, 1 successors, FD is 281600
        via Connected, Ethernet0/0
R1#show ip route eigrp
     172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
D       172.16.0.0/16 is a summary, 00:02:21, Null0
      10.0.0 .0/8 is variably subnetted, 3 subnets, 2 masks
D        10.2.2 .0/24 [90/2681856] vi a 10.1.1 .2, 00:01:43, Serial1/0
D        10.0.0 .0/8 is a summary, 00:02:21, Null0
D    192.168.1.0/24 [90/2707456] vi a 10.1.1 .2, 00:01:23, Serial1/0
该命令查看 EIGRP 的拓扑路由表的 , 上面可以看出 R1 已经学习到了 R2,R3 上的 EIGRP 信息
R1#show ip protocols
Routing Protocol is "eigrp 100"
  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
  EIGRP maximum hopcount 100
  EIGRP maximum metric variance 1
  Redistributing: eigrp 100
  EIGRP NSF-aware route hold timer is 240s
  Automatic network summarization is in effect
  Automatic address summarization:
    172.16.0.0/16 for Serial1/0
      Summarizing with metric 281600
     10.0.0 .0/8 for Ethernet0/0
      Summarizing with metric 2169856
  Maximum path: 4
  Routing for Networks:
     10.0.0 .0
    172.16.0.0
  Routing Information Sources:
    Gateway         Distance      Last Update
    (this router)         90      00:02:34
     10.1.1 .2              90      00:01:43
  Distance: internal 90 external 170
   这命令即详细地显示了运行的 EIGRP 协议的信息 , 还有运行着的路由状态信息 .
R1#show ip eigrp traffic
IP-EIGRP Traffic Statistics for AS 100
  Hellos sent/received: 73/29
  Updates sent/received: 5/4
  Queries sent/received: 0/0
  Replies sent/received: 0/0
  Acks sent/received: 1/3
  Input queue high water mark 2, 0 drops
  SIA-Queries sent/received: 0/0
  SIA-Replies sent/received: 0/0
  Hello Process ID: 128
  PDM Process ID: 127
最后这条命令即是查看有关 EIGRP 协议的数据包发送和接收的数量 .
看完 R1 , 再看一下 R2
R2#show ip eigrp topology
IP-EIGRP Topology Table for AS(100)/ID( 10.2.2 .2)
 
Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,
       r - reply Status, s - sia Status
 
P 10.1.1 .0/24, 1 successors, FD is 2169856
        via Connected, Serial1/1
P 10.2.2 .0/24, 1 successors, FD is 2169856
        via Connected, Serial1/0
P 192.168.1.0/24, 1 successors, FD is 2195456
        vi a 10.2.2 .3 (2195456/281600), Serial1/0
P 172.16.0.0/16, 1 successors, FD is 2195456
        vi a 10.1.1 .1 (2195456/281600), Serial1/1
R2#show ip route eigrp
D    172.16.0.0/16 [90/2195456] vi a 10.1.1 .1, 00:04:57, Serial1/1
D    192.168.1.0/24 [90/2195456] vi a 10.2.2 .3, 00:04:39, Serial1/0
R2#show ip route
Codes: C - connected, S - static, 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
       i - IS-IS, su - IS-IS summary, 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
 
D    172.16.0.0/16 [90/2195456] vi a 10.1.1 .1, 00:05:04, Serial1/1
      10.0.0 .0/24 is subnetted, 2 subnets
       10.2.2 .0 is directly connected, Serial1/0
C        10.1.1 .0 is directly connected, Serial1/1
D    192.168.1.0/24 [90/2195456] vi a 10.2.2 .3, 00:04:46, Serial1/0
可以看到 , 其实也差不多的 . 根据拓扑图来看就会明白 .
最后看下 R3 上的
R3#show ip route
Codes: C - connected, S - static, 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
       i - IS-IS, su - IS-IS summary, 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
 
D    172.16.0.0/16 [90/2707456] vi a 10.2.2 .2, 00:05:04, Serial1/1
      10.0.0 .0/8 is variably subnetted, 3 subnets, 2 masks
C        10.2.2 .0/24 is directly connected, Serial1/1
D        10.1.1 .0/24 [90/2681856] vi a 10.2.2 .2, 00:05:04, Serial1/1
D        10.0.0 .0/8 is a summary, 00:05:09, Null0
C    192.168.1.0/24 is directly connected, Ethernet0/0
R3#
*Mar  1 00:11:42.791: %SYS-5-CONFIG_I: Configured from console by console
R3#show ip eigrp topology
IP-EIGRP Topology Table for AS(100)/ID(192.168.1.1)
 
Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,
       r - reply Status, s - sia Status
 
P 10.1.1 .0/24, 1 successors, FD is 2681856
        vi a 10.2.2 .2 (2681856/2169856), Serial1/1
P 10.0.0 .0/8, 1 successors, FD is 2169856
        via Summary (2169856/0), Null0
P 10.2.2 .0/24, 1 successors, FD is 2169856
        via Connected, Serial1/1
P 192.168.1.0/24, 1 successors, FD is 281600
        via Connected, Ethernet0/0
P 172.16.0.0/16, 1 successors, FD is 2707456
        vi a 10.2.2 .2 (2707456/2195456), Serial1/1
R3#show ip eigrp traffif
                       ^
% Invalid input detected at '^' marker.
 
R3#show ip eigrp traffic
IP-EIGRP Traffic Statistics for AS 100
  Hellos sent/received: 144/70
  Updates sent/received: 2/4
  Queries sent/received: 0/0
  Replies sent/received: 0/0
  Acks sent/received: 2/0
  Input queue high water mark 1, 0 drops
  SIA-Queries sent/received: 0/0
  SIA-Replies sent/received: 0/0
  Hello Process ID: 128
  PDM Process ID: 127
其实配置 EIGRP 很简单的 , 注意一下它的衡量是根据带宽和时延来计算的 . 至于计算的过程比较复杂 .
 


本文转自 独钩寒江雪 51CTO博客,原文链接:http://blog.51cto.com/bennie/102003,如需转载请自行联系原作者
相关文章
|
网络协议
HCIP之BGP基础实验
除R5的5.5.5.0环回外,其他所有的环回均可以互相访问
57 0
|
Shell 数据安全/隐私保护 网络架构
|
网络协议 网络虚拟化 网络架构

相关实验场景

更多