设为首页 收藏本站
查看: 1416|回复: 0

[经验分享] EIGRP基本配置和常用show命令复习

[复制链接]
累计签到:1 天
连续签到:1 天
发表于 2015-3-5 12:58:08 | 显示全部楼层 |阅读模式
QQ截图20150305125755.png
10.1.0.1 255.255.255.0R1(config-if)#interlo 1
R1(config-if)#ipadd 10.1.1.1 255.255.255.0

R2(config)#interfa0/0
R2(config-if)#ipadd 192.168.12.2 255.255.255.0
R2(config-if)#noshut
R2(config-if)#inters1/1
R2(config-if)#ipadd 192.168.23.1 255.255.255.0
R2(config-if)#noshut
R2(config-if)#interlo 0
R2(config-if)#ipadd 172.16.0.1 255.255.255.0
R2(config-if)#interlo 1
R2(config-if)#ipadd 172.16.1.1 255.255.255.0

R3(config)#inters1/0
R3(config-if)#ipadd 192.168.23.2 255.255.255.0
R3(config-if)#noshut
R3(config-if)#interlo 0
R3(config-if)#ipadd 192.168.0.1 255.255.255.0
R3(config-if)#interlo 1
R3(config-if)#ipadd 192.168.1.1 255.255.255.0

2:配置EIGRP
R1(config-if)#do show ip inter bri
Interface                  IP-Address      OK? Method Status                Protocol
FastEthernet0/0            192.168.12.1    YES manual up                    up      
Serial1/0                  unassigned      YES unset administratively down down   
Serial1/1                  unassigned      YES unset administratively down down   
Serial1/2                  unassigned      YES unset administratively down down   
Serial1/3                  unassigned      YES unset administratively down down   
Loopback0                  10.1.0.1        YES manual up                    up      
Loopback1                  10.1.1.1        YES manual up                    up      

R1(config-if)#do ping 192.168.12.2
Typeescape sequence to abort.
Sending5, 100-byte ICMP Echos to 192.168.12.2, timeout is 2 seconds:
.!!!!
Successrate is 80 percent (4/5), round-trip min/avg/max = 80/127/152 ms

R1(config)#routereigrp 100
R1(config-router)#noauto-summary
R1(config-router)#network192.168.12.0
R1(config-router)#network10.0.0.0

R1(config)#routereigrp 100
R1(config-router)#nonet 10.0.0.0
R1(config-router)#net10.1.0.0
R1(config-router)#
R1(config-router)#do show run | section router eigrp 100
routereigrp 100
network 10.0.0.0
network 192.168.12.0
no auto-summary

R2(config)#routereigrp 100
R2(config-router)#noauto-summary
R2(config-router)#net192.168.12.0
R2(config-router)#net192.168.23.0
R2(config-router)#net172.16.0.0 0.0.0.255
R2(config-router)#net172.16.1.0 0.0.0.255

R2(config)#routereigrp 100
R2(config-router)#nonet 172.16.1.0 0.0.0.255
R2(config-router)#net172.16.1.0 255.255.255.0
R2(config-router)#do show run | section router eigrp 100
routereigrp 100
network 172.16.0.0 0.0.0.255
network 172.16.1.0 0.0.0.255
network 192.168.12.0
network 192.168.23.0
no auto-summary



R3(config)#routereigrp 100
R3(config-router)#eigrprouter-id 3.3.3.3
R3(config-router)#noauto-summary
R3(config-router)#net192.168.23.0
R3(config-router)#net192.168.0.0
R3(config-router)#net192.168.1.0

其它配置方法:(下面的三种配置方法,show run的结果是一样的)
R2(config)#routereigrp 100
R2(config-router)#noauto-summary
R2(config-router)#net0.0.0.0

R2(config)#routerei 100
R2(config-router)#noauto-summary
R2(config-router)#net0.0.0.0 255.255.255.255

R2(config)#routerei 100
R2(config-router)#noauto-summary
R2(config-router)#net0.0.0.0 0.0.0.0

此种配置方法的问题:

1:会把本地所有接口通告出去

2:如果本地存在出口配置的静态默认路由,也会被通告给邻居

R2(config)#iproute 0.0.0.0 0.0.0.0 s1/1  (只能是出口配置的静态路由)

R1#show ip route eigrp
     172.16.0.0/24 is subnetted, 2 subnets
D       172.16.0.0 [90/156160] via 192.168.12.2,00:03:17, FastEthernet0/0
D       172.16.1.0 [90/156160] via 192.168.12.2,00:03:17, FastEthernet0/0
D    192.168.23.0/24 [90/2172416] via192.168.12.2, 00:03:17, FastEthernet0/0
D    192.168.0.0/24 [90/2300416] via192.168.12.2, 00:03:17, FastEthernet0/0
D    192.168.1.0/24 [90/2300416] via192.168.12.2, 00:03:17, FastEthernet0/0
D*   0.0.0.0/0 [90/2172416] via 192.168.12.2,00:00:17, FastEthernet0/0

3:查看动态路由协议的运行
R2#show ip protocols
RoutingProtocol is "eigrp 100"
  Outgoing update filter list for allinterfaces is not set
  Incoming update filter list for allinterfaces is not set
  Default networks flagged in outgoing updates
  Default networks accepted from incomingupdates
  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 not in effect
  Maximum path: 4
  Routing for Networks:
    0.0.0.0
  Routing Information Sources:
    Gateway         Distance      Last Update
    192.168.12.1          90      00:05:19
    192.168.23.2          90      00:05:19
  Distance: internal 90 external 170

4:查看EIGRP邻居表
R2#show ip eigrp neighbors
IP-EIGRPneighbors for process 100
H   Address                 Interface       Hold Uptime   SRTT  RTO  Q  Seq
                                           (sec)         (ms)       Cnt Num
1   192.168.23.2            Se1/1             14 00:04:17   55  330  0  55
0   192.168.12.1            Fa0/0             14 00:04:17   87  522  0  63

5:查看EIGRP拓扑表
R2#show ip eigrp topology
IP-EIGRPTopology 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

P0.0.0.0/0, 1 successors, FD is 2169856
        via Rstatic (2169856/0)
P10.1.1.0/24, 1 successors, FD is 156160
        via 192.168.12.1 (156160/128256),FastEthernet0/0
P10.1.0.0/24, 1 successors, FD is 156160
        via 192.168.12.1 (156160/128256),FastEthernet0/0
P192.168.12.0/24, 1 successors, FD is 28160
        via Connected, FastEthernet0/0
P192.168.0.0/24, 1 successors, FD is 2297856
        via 192.168.23.2 (2297856/128256),Serial1/1
P192.168.1.0/24, 1 successors, FD is 2297856
        via 192.168.23.2 (2297856/128256),Serial1/1
P192.168.23.0/24, 1 successors, FD is 2169856
        via Connected, Serial1/1
P172.16.0.0/24, 1 successors, FD is 128256
        via Connected, Loopback0
P172.16.1.0/24, 1 successors, FD is 128256
        via Connected, Loopback1


6:查看EIGRP路由表
R2#show ip route eigrp
     10.0.0.0/24 is subnetted, 2 subnets
D       10.1.1.0 [90/156160] via 192.168.12.1,00:05:05, FastEthernet0/0
D       10.1.0.0 [90/156160] via 192.168.12.1,00:05:05, FastEthernet0/0
D    192.168.0.0/24 [90/2297856] via192.168.23.2, 00:05:04, Serial1/1
D    192.168.1.0/24 [90/2297856] via192.168.23.2, 00:05:04, Serial1/1



运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-43636-1-1.html 上篇帖子: 单臂路由的原理及实验 下篇帖子: EIGRP邻居关系建立的条件分析
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表