您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 管理学资料 > eigrp协议配置及路由重发布静态路由
Eigrp的配置以及路由的重发布目的:掌握路由Eigrp的配置以及路由重发布准备:先配置一条以eigrp协议运行的链路PC1——R1——R2——R3——PC2设备基础配置:PC1的配置如下:路由器R1的配置如下:Router1enRouter1#conftEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Router1(config)#intf0/0Router1(config-if)#ipaddress192.168.1.2255.255.255.0Router1(config-if)#nosh%LINK-5-CHANGED:InterfaceFastEthernet0/0,changedstatetoup%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceFastEthernet0/0,changedstatetoupRouter1(config-if)#intf0/1Router1(config-if)#ipadd172.168.1.1255.255.255.0Router1(config-if)#nosh%LINK-5-CHANGED:InterfaceFastEthernet0/1,changedstatetoup路由器R2的配置如下:Router2enRouter2#conftEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Router2(config)#intf0/0Router2(config-if)#ipadd172.168.1.2255.255.255.0Router2(config-if)#nosh%LINK-5-CHANGED:InterfaceFastEthernet0/0,changedstatetoup%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceFastEthernet0/0,changedstatetoupRouter2(config-if)#intf0/1Router2(config-if)#ipadd172.168.2.1255.255.255.0Router2(config-if)#noshRouter2(config-if)#%LINK-5-CHANGED:InterfaceFastEthernet0/1,changedstatetoup路由器R3的配置如下:Router3enRouter3#conftEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Router3(config)#intf0/1Router3(config-if)#ipadd172.168.2.2255.255.255.0Router3(config-if)#nosh%LINK-5-CHANGED:InterfaceFastEthernet0/1,changedstatetoup%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceFastEthernet0/1,changedstatetoupRouter3(config-if)#intf0/0Router3(config-if)#ipadd192.168.2.2255.255.255.0Router3(config-if)#nosh%LINK-5-CHANGED:InterfaceFastEthernet0/0,changedstatetoup%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceFastEthernet0/0,changedstatetoupPC2的配置如下:下面先验证下相邻设备之间是否可以通行经检验以上设置可以使PC1——R1——R2——R3——PC2链路中的相邻设备间互相通信接下来在R1,R2,R3三台路由器中配置eigrp路由协议配置EIGRP语法:在全局模式下输入routeeigrp【as-number】R1配置如下:Router1(config-if)#exitRouter1(config)#routeeigrp100Router1(config-router)#net192.168.1.00.0.0.255Router1(config-router)#net172.168.1.00.0.0.255配置完R1看下配置是否生效:Router1(config-router)#end%SYS-5-CONFIG_I:ConfiguredfromconsolebyconsoleRouter1#showrunBuildingconfiguration...Currentconfiguration:519bytes!version12.2noservicetimestampslogdatetimemsecnoservicetimestampsdebugdatetimemsecnoservicepassword-encryption!hostnameRouter1!!!!!!!!!!!!!!!!!!interfaceFastEthernet0/0ipaddress192.168.1.2255.255.255.0duplexautospeedauto!interfaceFastEthernet0/1ipaddress172.168.1.1255.255.255.0duplexautospeedauto!routereigrp100network192.168.1.0network172.168.1.00.0.0.255auto-summary!ipclassless!!!!!!!linecon0linevty04login!!!End看见运行配置中以上配置eigrp协议生效同理在R2,R3中配置eigrp协议R2的配置如下:Router2#conftEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Router2(config)#routeeig100Router2(config-router)#net172.168.1.00.0.0.255%DUAL-5-NBRCHANGE:IP-EIGRP100:Neighbor172.168.1.1(FastEthernet0/0)isup:newadjacencyRouter2(config-router)#net172.168.2.00.0.0.255R3的配置如下:Router3(config)#routeigrp100Router3(config-router)#net192.168.2.00.0.0.255Router3(config-router)#net172.168.2.00.0.0.255Router3(config-router)#%DUAL-5-NBRCHANGE:IP-EIGRP100:Neighbor172.168.2.1(FastEthernet0/1)isup:newadjacencyeigrp协议配置好后。任选一台路由器观看其路由表是否收敛完毕R3路由表:showiprouteCodes:C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGPD-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaN1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2E1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGPi-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,ia-IS-ISinterarea*-candidatedefault,U-per-userstaticroute,o-ODRP-periodicdownloadedstaticrouteGatewayoflastresortisnotset172.168.0.0/16isvariablysubnetted,3subnets,2masksD172.168.0.0/16isasummary,00:03:57,Null0D172.168.1.0/24[90/30720]via172.168.2.1,00:03:57,FastEthernet0/1C172.168.2.0/24isdirectlyconnected,FastEthernet0/1D192.168.1.0/24[90/33280]via172.168.2.1,00:03:57,FastEthernet0/1C192.168.2.0/24isdirectlyconnected,FastEthernet0/0下面测试下连通性经测试PC1与PC2可以互相通信下面在R2中添加一条新的链路R2——R4——PC3但是在R2中不添加对于网段172.168.3.0的发送协议看看结果如何R2F1/0:172.168.3.1R4F0/0:172.168.3.2R4F0/1:192.168.3.2PC3:192.168.3.1在配置好端口后。先不在配置其他先观察R2与R1的路由表对比R2的路由表Router2#showiprouteCodes:C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGPD-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaN1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2E1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGPi-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,ia-IS-ISinterarea*-candidatedefault,U-per-userstaticroute,o-ODRP-periodicdownloadedstaticrouteGatewayoflastresortisnotset172.168.0.0/24issubnetted,3subnetsC172.168.1.0isdirectlyconnected,FastEthernet0/0C172.168.2.0isdirectlyconnected,FastEthernet0/1C172.168.3.0isdirectlyconnected,FastEthernet1/0D192.168.1.0/24[90/30720]via172.168.1.1,00:18:23,FastEthernet0/0D192.168.2.0/24[90/30720]via172.168.2.2,00:16:37,FastEthernet0/1R1的路由表Router1#showiprouteCodes:C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGPD-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaN1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2E1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGPi-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,ia-IS-ISinterarea*-candidatedefault,U-per-userstaticroute,o-ODRP-periodicdownloadedstaticrouteGatewayoflastresortisnotset172.168.0.0/16isvariablysu
本文标题:eigrp协议配置及路由重发布静态路由
链接地址:https://www.777doc.com/doc-2871796 .html