试验文档.docx
《试验文档.docx》由会员分享,可在线阅读,更多相关《试验文档.docx(12页珍藏版)》请在冰豆网上搜索。
![试验文档.docx](https://file1.bdocx.com/fileroot1/2023-2/21/4f0eff36-a6f7-4117-bb50-d47d4727ffbe/4f0eff36-a6f7-4117-bb50-d47d4727ffbe1.gif)
试验文档
试验:
EIGRP的配置
一、实验目的:
路由器上设置EIGRP路由协议:
负载,手动汇总和认证
二、实验拓扑:
三、实验步骤:
(1)对路由器R1的配置:
r1#conft
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
r1(config)#ints1/0
r1(config-if)#ipadd10.1.1.1255.255.255.0
r1(config-if)#nosh
*Mar1119:
23:
39.615:
%LINK-3-UPDOWN:
InterfaceSerial1/0,changedstatetoup
r1(config-if)#ipadd
*Mar1516:
25:
06.387:
%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceLoopback0,changedstatetoup1.1.1.1255.25
*Mar1516:
25:
12.567:
%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceSerial1/0,changedstatetodown5.255.0
r1(config-if)#exit
r1(config)#intlo1
r1(config-if)#ipadd
*Mar1516:
25:
30.403:
%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceLoopback1,changedstatetoup11.1.1.1255.255.255.0
r1(config-if)#exit
r1(config)#intlo2
r1(config-if)#ipadd
*Mar1516:
25:
50.367:
%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceLoopback2,changedstatetoup11.1.2.1255.255.255.0
r1(config-if)#exit
r1(config)#intlo3
r1(config-if)#ipadd
*Mar1516:
26:
08.607:
%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceLoopback3,changedstatetoup11.1.3.1255.255.255.0
r1(config-if)#end
r1#
*Mar1516:
26:
21.231:
%SYS-5-CONFIG_I:
Configuredfromconsolebyconsole
*Mar1516:
26:
52.559:
%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceSerial1/0,changedstatetoup
r1(config)#routereigrp100
r1(config-router)#network10.1.1.00.0.0.255
r1(config-router)#network1.1.1.00.0.0.255
r1(config-router)#network11.1.0.00.0.255.255
r1(config-router)#end
手动汇总配置:
r1(config)#routereigrp100
r1(config-router)#noauto-summary
*Mar1516:
32:
23.219:
%DUAL-5-NBRCHANGE:
IP-EIGRP(0)100:
Neighbor10.1.1.2(Serial1/0)isresync:
summaryconfigured
*Mar1516:
32:
39.415:
%DUAL-5-NBRCHANGE:
IP-EIGRP(0)100:
Neighbor10.1.1.2(Serial1/0)isresync:
peergraceful-restart
r1(config-router)#exit
r1(config)#ints1/0
r1(config-if)#ipsummary-addresseigrp10011.1.0.0255.0.0.0
r1(config-if)#end
认证配置:
r1#conft
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
r1(config)#keychainzhao
r1(config-keychain)#key1
r1(config-keychain-key)#key-string123
r1(config-keychain-key)#exit
r1(config-keychain)#exit
r1(config)#ints1/0
r1(config-if)#ipauthenticationmodeeigrp100md5
*Mar1516:
36:
24.707:
%DUAL-5-NBRCHANGE:
IP-EIGRP(0)100:
Neighbor10.1.1.2(Serial1/0)isdown:
authenticationmodechanged
r1(config-if)#ipauthenticationkey-chaineigrp100zhao
r1(config-if)#end
(2)对路由器R2的配置:
r2#conft
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
r2(config)#ints1/0
r2(config-if)#ipadd10.1.1.2255.255.255.0
r2(config-if)#nosh
*Mar1516:
26:
42.975:
%LINK-3-UPDOWN:
InterfaceSerial1/0,changedstatetoupe
*Mar1516:
26:
42.979:
%ENTITY_ALARM-6-INFO:
CLEARINFOSe1/0PhysicalPortAdministrativeStateDownxit
*Mar1516:
26:
43.987:
%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceSerial1/0,changedstatetoup
r2(config)#ints1/1
r2(config-if)#ipadd192.168.1.2255.255.255.0
r2(config-if)#nosh
*Mar1516:
27:
05.247:
%LINK-3-UPDOWN:
InterfaceSerial1/1,changedstatetoupxit
*Mar1516:
27:
05.251:
%ENTITY_ALARM-6-INFO:
CLEARINFOSe1/1PhysicalPortAdministrativeStateDown
r2(config)#
*Mar1516:
27:
06.255:
%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceSerial1/1,changedstatetoupintlo0
r2(config-if)#ipadd
*Mar1516:
27:
14.307:
%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceLoopback0,changedstatetoup2.2.2.2255.255.255.0
r2(config-if)#end
r2#conft
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
r2(config)#routereigrp100
r2(config-router)#network10.1.1.00.0.0.255
*Mar1516:
30:
07.675:
%DUAL-5-NBRCHANGE:
IP-EIGRP(0)100:
Neighbor10.1.1.1(Serial1/0)isup:
newadjacency
r2(config-router)#network192.168.1.00.0.0.255
r2(config-router)#network2.2.2.20.0.0.255
r2(config-router)#end
手动汇总配置:
r2(config)#routereigrp100
r2(config-router)#noau
r2(config-router)#noauto-summary
r2(config-router)#exit
r2(config)#ints1/1
r2(config-if)#ipsummary-addresseigrp10011.1.0.0255.0.0.0
r2(config-if)#end
认证配置:
r2(config)#keychainzhao
r2(config-keychain)#key1
r2(config-keychain-key)#key-string123
r2(config-keychain-key)#exit
r2(config-keychain)#exit
r2(config)#ints1/0
r2(config-if)#ipauthenticationkey-chaineigrp100zhao
r2(config-if)#ipauthenticationkey-chaineigrp100zhao
r2(config)#ints1/1
r2(config-if)#ipauthenticationkey-chaineigrp100zhao
r2(config-if)#ipauthenticationkey-chaineigrp100zhao
(3)对路由器R3的配置:
r3#conft
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
r3(config)#ints1/1
r3(config-if)#ipadd192.168.1.3255.255.255.0
r3(config-if)#nosh
r3(config)#end
r3(config)#
*Mar1516:
27:
58.763:
%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceSerial1/1,changedstatetoup
r3(config)#intlo0
r3(config-if)#ipadd
*Mar1516:
28:
06.335:
%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceLoopback0,changedstatetoup3.3.3.3255.255.255.0
r3(config-if)#end
r3#conft
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
r3(config)#routereigrp100
r3(config-router)#network192.168.1.00.0.0.255
*Mar1516:
31:
01.899:
%DUAL-5-NBRCHANGE:
IP-EIGRP(0)100:
Neighbor192.168.1.2(Serial1/1)isup:
newadjacencynet
r3(config-router)#network3.3.3.00.0.0.255
r3(config-router)#end
手动汇总配置:
r2(config)#routereigrp100
r2(config-router)#noau
r2(config-router)#noauto-summary
r2(config-router)#exit
认证配置:
R3(config)#keychainzhao
R3(config-keychain)#key1
R3(config-keychain-key)#key-string123
R3(config-keychain-key)#exit
R3(config-keychain)#exit
r2(config)#ints1/1
r2(config-if)#ipauthenticationkey-chaineigrp100zhao
r2(config-if)#ipauthenticationkey-chaineigrp100zhao
四、实验调试:
R1:
r1#ping3.3.3.3
Typeescapesequencetoabort.
Sending5,100-byteICMPEchosto3.3.3.3,timeoutis2seconds:
!
!
!
!
!
Successrateis100percent(5/5),round-tripmin/avg/max=12/57/140ms
r1#ping192.168.1.3
Typeescapesequencetoabort.
Sending5,100-byteICMPEchosto192.168.1.3,timeoutis2seconds:
!
!
!
!
!
Successrateis100percent(5/5),round-tripmin/avg/max=68/80/96ms
r1#shiproute
Codes:
C-connected,S-static,R-RIP,M-mobile,B-BGP
D-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterarea
N1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2
E1-OSPFexternaltype1,E2-OSPFexternaltype2
i-IS-IS,su-IS-ISsummary,L1-IS-ISlevel-1,L2-IS-ISlevel-2
ia-IS-ISinterarea,*-candidatedefault,U-per-userstaticroute
o-ODR,P-periodicdownloadedstaticroute
Gatewayoflastresortisnotset
1.0.0.0/8isvariablysubnetted,2subnets,2masks
C1.1.1.0/24isdirectlyconnected,Loopback0
D1.0.0.0/8isasummary,00:
01:
44,Null0
D2.0.0.0/8[90/2297856]via10.1.1.2,00:
00:
43,Serial1/0
D3.0.0.0/8[90/2809856]via10.1.1.2,00:
00:
09,Serial1/0
10.0.0.0/8isvariablysubnetted,2subnets,2masks
C10.1.1.0/24isdirectlyconnected,Serial1/0
D10.0.0.0/8isasummary,00:
01:
45,Null0
11.0.0.0/8isvariablysubnetted,4subnets,2masks
C11.1.2.0/24isdirectlyconnected,Loopback2
C11.1.3.0/24isdirectlyconnected,Loopback3
C11.1.1.0/24isdirectlyconnected,Loopback1
D11.0.0.0/8isasummary,00:
01:
29,Null0
D192.168.1.0/24[90/2681856]via10.1.1.2,00:
01:
28,Serial1/0
r1#
R2:
r2#shiproute
Codes:
C-connected,S-static,R-RIP,M-mobile,B-BGP
D-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterarea
N1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2
E1-OSPFexternaltype1,E2-OSPFexternaltype2
i-IS-IS,su-IS-ISsummary,L1-IS-ISlevel-1,L2-IS-ISlevel-2
ia-IS-ISinterarea,*-candidatedefault,U-per-userstaticroute
o-ODR,P-periodicdownloadedstaticroute
Gatewayoflastresortisnotset
D1.0.0.0/8[90/2297856]via10.1.1.1,00:
01:
19,Serial1/0
2.0.0.0/8isvariablysubnetted,2subnets,2masks
C2.2.2.0/24isdirectlyconnected,Loopback0
D2.0.0.0/8isasummary,00:
00:
52,Null0
D3.0.0.0/8[90/2297856]via192.168.1.3,00:
00:
19,Serial1/1
10.0.0.0/8isvariablysubnetted,2subnets,2masks
C10.1.1.0/24isdirectlyconnected,Serial1/0
D10.0.0.0/8isasummary,00:
01:
06,Null0
D11.0.0.0/8[90/2297856]via10.1.1.1,00:
01:
19,Serial1/0
C192.168.1.0/24isdirectlyconnected,Serial1/1
r2#
r2#shiproute
Codes:
C-connected,S-static,R-RIP,M-mobile,B-BGP
D-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterarea
N1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2
E1-OSPFexternaltype1,E2-OSPFexternaltype2
i-IS-IS,su-IS-ISsummary,L1-IS-ISlevel-1,L2-IS-ISlevel-2
ia-IS-ISinterarea,*-candidatedefault,U-per-userstaticroute
o-ODR,P-periodicdownloadedstaticroute
Gatewayoflastresortisnotset
1.0.0.0/24issubnetted,1subnets
D1.1.1.0[90/2297856]via10.1.1.1,00:
02:
53,Serial1/0
2.0.0.0/24issubnetted,1subnets
C2.2.2.0isdirectlyconnected,Loopback0
3.0.0.0/24issubnetted,1subnets
D3.3.3.0[90/2297856]via192.168.1.3,00:
02:
21,Serial1/1
10.0.0.0/24issubnetted,1subnets
C10.1.1.0isdirectlyconnected,Serial1/0
D11.0.0.0/8[90/2297856]via10.1.1.1,00:
00:
48,Serial1/0
C192.168.1.0/24isdirectlyconnected,Serial1/1
r2#
r2#debugeigrppackets
EIGRPPacketsdebuggingison
(UPDATE,REQUEST,QUERY,REPLY,HELLO,IPXSAP,PROBE,ACK,STUB,SIAQUERY,SIAREPLY)
r2#
*Mar1516:
40:
42.471:
EIGRP:
receivedpacketwithMD5authentication,keyid=1
R3:
r3#ping10.1.1.1
Typeescapesequencetoabort.
Sending5,100-byteICMPEchosto10.1.1.1,timeoutis2seconds:
!
!
!
!
!
Successrateis100percent(5/5),round-tripmin/avg/max=36/60/100ms
r3#shiproute
Codes:
C-connected,S-static,R-RIP,M-mobile,B-BGP
D-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OS