EIGRP基础配置
By  zhaopeng 发表于 2008-8-18 15:05:45 

基础EIGRP基本实验


预配置如下:

R1配置:

r1(config)#int lo0
r1(config-if)#ip ad 1.1.1.1 255.255.255.0
r1(config-if)#int s1/3
r1(config-if)#ip ad 192.168.0.1 255.255.255.0
r1(config-if)#no sh
r1(config)#int e0/0
r1(config-if)#ip ad 172.16.0.1 255.255.255.0
r1(config-if)#no sh
r1(config-if)#exit 
r1(config)#
r1(config)#^Z

R2配置:

r2(config)#int lo0
r2(config-if)#ip ad 2.2.2.2 255.255.255.0
r2(config-if)#int s3/1
r2(config-if)#ip ad 192.168.0.2 255.255.255.0
r2(config-if)#no sh
r2(config-if)#exit
r2(config)#

R3配置:

r3(config)#int lo0
r3(config-if)#ip ad 3.3.3.3 255.255.255.0
r3(config-if)#int e0/0
r3(config-if)#ip ad 172.16.0.3 255.255.255.0
r3(config-if)#no sh
r3(config-if)#exit
r3(config)#^Z

配置eigrp:

在R1上如下:

r1(config)#router eigrp 100
r1(config-router)#network 1.1.1.1
r1(config-router)#network 192.168.0.1
r1(config-router)#network 172.16.0.1
r1(config-router)#^Z

在R2上如下:

r2(config)#router eigrp 100
r2(config-router)#network 2.2.2.2
r2(config-router)#network 192.168.0.2
r2(config-router)#exit
r2(config)#^Z

在R3上如下:

r3(config)#router eigrp 100
r3(config-router)#network 3.3.3.3
r3(config-router)#network 172.16.0.3
r3(config-router)#exit

查看一下:

show ip protocols
Routing Protocol is "eigrp 100"
  Outgoing update filter list for all interfaces is
  Incoming update filter list for all interfaces is
  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
  Automatic network summarization is in effect
  Automatic address summarization:
    1.0.0.0/8 for Serial1/3, Ethernet0/0
      Summarizing with metric 128256
    192.168.0.0/24 for Loopback0, Ethernet0/0
    172.16.0.0/16 for Serial1/3, Loopback0
      Summarizing with metric 281600
  Routing for Networks:
    1.0.0.0
    172.16.0.0
    192.168.0.0

  Routing Information Sources:
    Gateway         Distance      Last Update
    (this router)          5      00:01:52
  Distance: internal 90 external 170

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, * - candidate default
       U - per-user static route, o - ODR
       T - traffic engineered route

Gateway of last resort is not set

     1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
D       1.0.0.0/8 is a summary, 00:03:36, Null0
C       1.1.1.0/24 is directly connected, Loopback0
     172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
D       172.16.0.0/16 is a summary, 00:03:25, Null0  //发现此地址自动汇总生成路由
C       172.16.0.0/24 is directly connected, Ethernet0/0

关闭自动汇总后产生的信息

r1(config)#router eigrp 100
r1(config-router)#no auto-summary
r1(config-router)#^Z
r1#sh
00:17:34: %SYS-5-CONFIG_I: Configured from console by console
r1#show ip protocols
Routing Protocol is "eigrp 100"
  Outgoing update filter list for all interfaces is
  Incoming update filter list for all interfaces is
  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
  Automatic network summarization is not in effect  \\已关闭自动汇总
  Routing for Networks:
    1.0.0.0
    172.16.0.0
    192.168.0.0
  Routing Information Sources:
    Gateway         Distance      Last Update
    (this router)          5      00:05:21
  Distance: internal 90 external 170

r1#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, * - candidate default
       U - per-user static route, o - ODR
       T - traffic engineered route

Gateway of last resort is not set

     1.0.0.0/24 is subnetted, 1 subnets
C       1.1.1.0 is directly connected, Loopback0
     172.16.0.0/24 is subnetted, 1 subnets
C       172.16.0.0 is directly connected, Ethernet0/0

\\此处也未看到汇总产生的路由
r1#

 
阅读全文 | 回复(0) | 引用通告 | 编辑

发表评论:

    昵称:
    密码:
    主页:
    标题:

 
站点公告
站点日历
最新日志
最新评论
最新留言
友情链接
站点统计
日志搜索
用户登陆

 
Powered by Oblog.