收藏 分销(赏)

CCNP-EIGRP 实验.doc

上传人:pc****0 文档编号:6532166 上传时间:2024-12-11 格式:DOC 页数:29 大小:608.50KB 下载积分:10 金币
下载 相关 举报
CCNP-EIGRP 实验.doc_第1页
第1页 / 共29页
CCNP-EIGRP 实验.doc_第2页
第2页 / 共29页


点击查看更多>>
资源描述
CCNP-EIGRP实验报告 CCNP EIGRP实验 Matrix QQ:42194766 EMAIL:Matrix.zj@ 目录 1 实验拓扑 4 2 实验配置 4 2.1 路由器R1上的配置 4 2.2 路由器R2上的配置 5 2.3 路由器R3上的配置 5 2.4 路由器R4上的配置 6 2.5 路由器R5上的配置 8 2.6 帧中继交换机FR1上的配置 9 2.7 虚拟终端机C1上的配置 9 3 实验任务一:通过bandwidth控制路由选择 9 3.1 实验思路 9 3.2 实验配置 10 3.3 实验验证 10 3.4 实验结论 11 4 实验任务二:使用passive interfaces配置,降低网络负载 11 4.1 实验思路 11 4.2 实验配置 11 4.2.1 在路由器R1上的配置 11 4.2.2 在路由器R3上的配置 11 4.2.3 在路由器R4上的配置 12 4.2.4 在路由器R5上的配置 12 4.3 实验验证 12 4.3.1 在路由器R1上的实验验证 12 4.3.2 在路由器R3上的实验验证 13 4.3.3 在路由器R4上的实验验证 13 4.3.4 在路由器R5上的实验验证 14 4.4 实验结论 14 5 实验任务三:缺省路由 14 5.1 实验思路 14 5.2 实验配置 15 5.2.1 在路由器R1上的配置 15 5.2.2 在路由器R2上的配置 15 5.3 实验验证 15 5.4 实验结论 16 6 实验任务四:路由手工汇总 16 6.1 实验思路 16 6.2 实验配置 17 6.3 实验验证 17 6.4 实验结论 18 7 实验任务五:对称负载均衡 18 7.1 实验思路 18 7.2 实验配置 18 7.3 实验验证 18 7.4 实验结论: 19 8 实验任务六:非对称负载均衡 19 8.1 实验思路 20 8.2 实验配置 20 8.3 实验验证 20 8.4 实验结论 21 9 实验任务七:身份验证 21 9.1 实验思路 21 9.2 实验配置 22 9.2.1 在路由器R1上的配置 22 9.2.2 在路由器R2上的配置 22 9.3 实验验证 22 9.3.1 在路由器R1上的实验验证 22 9.3.2 在路由器R2上的实验验证 23 10 实验任务十:stub routers 23 10.1 状态receive-only测试 23 10.1.1 实验思路 23 10.1.2 实验配置 24 10.1.3 实验验证 24 10.1.4 实验结论 24 10.2 状态connected测试 25 10.2.1 实验思路 25 10.2.2 实验配置 25 10.2.3 实验验证 25 10.2.4 实验结论 26 10.3 状态static测试 26 10.3.1 实验思路 26 10.3.2 实验配置 27 10.3.3 实验验证 27 10.3.4 实验结论 27 10.4 状态summary测试 28 10.4.1 实验思路 28 10.4.2 实验配置 28 10.4.3 实验验证 28 10.4.4 实验结论 29 1 实验拓扑 2 实验配置 2.1 路由器R1上的配置 Router>en Router#conf t Router(config)#hostname R1 R1(config)#int s0/0 R1(config-if)#ip add 16.16.16.1 255.255.255.252 R1(config-if)#no shut R1(config-if)#exit R1(config)#int f1/0 R1(config-if)#ip add 202.1.1.1 255.255.255.252 R1(config-if)#no shut R1(config-if)#exit R1(config)#router eigrp 110 R1(config-router)#no auto R1(config-router)#network 16.16.16.0 0.0.0.3 R1(config-router)#network 202.1.1.0 0.0.0.3 R1(config-router)#end R1#copy run start 2.2 路由器R2上的配置 Router>en Router#conf t Router(config)#hostname R2 R2(config)#int s0/0 R2(config-if)#encapsulation frame-relay R2(config-if)#no shut R2(config-if)#int s0/0.1 point-to-point R2(config-subif)#ip address 10.1.1.1 255.255.255.252 R2(config-subif)#frame-relay interface-dlci 101 R2(config-subif)#no shut R2(config-subif)#exit R2(config)#int s0/0 R2(config-if)#int s0/0.2 point-to-point R2(config-subif)#ip address 10.1.1.5 255.255.255.252 R2(config-subif)#frame-relay interface-dlci 102 R2(config-subif)#no shut R2(config-subif)#exit R2(config)#int s0/0 R2(config-if)#int s0/0.3 point-to-point R2(config-subif)#ip address 10.1.1.9 255.255.255.252 R2(config-subif)#frame-relay interface-dlci 103 R2(config-subif)#no shut R2(config-subif)#exit R2(config)#int s0/1 R2(config-if)#ip address 16.16.16.2 255.255.255.252 R2(config-if)#no shut R2(config-if)#exit R2(config)#router eigrp 110 R2(config-router)#no auto R2(config-router)#network 10.1.1.0 0.0.0.3 R2(config-router)#network 10.1.1.4 0.0.0.3 R2(config-router)#network 10.1.1.8 0.0.0.3 R2(config-router)#network 16.16.16.0 0.0.0.3 R2(config-router)#end R2#copy run start 2.3 路由器R3上的配置 Router>en Router#conf t Router(config)#hostname R3 R3(config)#int loopback1 R3(config-if)#ip address 192.168.1.1 255.255.255.240 R3(config-if)#no shut R3(config-if)#exit R3(config)#int loopback2 R3(config-if)#ip address 192.168.1.17 255.255.255.240 R3(config-if)#no shut R3(config-if)#exit R3(config)#int loopback3 R3(config-if)#ip address 192.168.1.33 255.255.255.240 R3(config-if)#no shut R3(config-if)#exit R3(config)#int s0/1 R3(config-if)#ip address 172.16.1.1 255.255.255.252 R3(config-if)#no shut R3(config-if)#exit R3(config)#int s0/0 R3(config-if)#encapsulation frame-relay R3(config-if)#ip address 10.1.1.2 255.255.255.252 R3(config-if)#frame-relay interface-dlci 202 R3(config-if)#no shut R3(config-if)#exit R3(config)#router eigrp 110 R3(config-router)#no auto R3(config-router)#network 10.1.1.0 0.0.0.3 R3(config-router)#network 172.16.1 0 0.0.0.3 R3(config-router)#network 192.168.1.0 0.0.0.15 R3(config-router)#network 192.168.1.16 0.0.0.15 R3(config-router)#network 192.168.1.32 0.0.0.15 R3(config-router)#end R3#copy run start 2.4 路由器R4上的配置 Router>en Router#conf t Router(config)#hostname R4 R4(config)#int loopback1 R4 (config-if)#ip address 192.168.2.1 255.255.255.240 R4 (config-if)#no shut R4 (config-if)#exit R4 (config)#int loopback2 R4 (config-if)#ip address 192.168.2.17 255.255.255.240 R4 (config-if)#no shut R4 (config-if)#exit R4 (config)#int loopback3 R4 (config-if)#ip address 192.168.2.33 255.255.255.240 R4 (config-if)#no shut R4 (config-if)#exit R4 (config)#int s0/1 R4 (config-if)#ip address 172.16.1.2 255.255.255.252 R4 (config-if)#no shut R4 (config-if)#exit R4 (config)#int s0/2 R4 (config-if)#ip address 172.16.2.1 255.255.255.252 R4 (config-if)#no shut R4 (config-if)#exit R4 (config)#int s0/0 R4 (config-if)#encapsulation frame-relay R4 (config-if)#ip address 10.1.1.6 255.255.255.252 R4 (config-if)#frame-relay interface-dlci 303 R4 (config-if)#no shut R4 (config-if)#exit R4 (config)#router eigrp 110 R4 (config-router)#no auto R4 (config-router)#network 10.1.1.4 0.0.0.3 R4 (config-router)#network 172.16.1.0 0.0.0.3 R4 (config-router)#network 172.16.2.0 0.0.0.3 R4 (config-router)#network 192.168.2.0 0.0.0.15 R4 (config-router)#network 192.168.2.16 0.0.0.15 R4 (config-router)#network 192.168.2.32 0.0.0.15 R4 (config-router)#end R4#copy run start 2.5 路由器R5上的配置 Router>en Router#conf t Router(config)#hostname R5 R5(config)#int loopback1 R5 (config-if)#ip address 192.168.3.1 255.255.255.240 R5 (config-if)#no shut R5 (config-if)#exit R5 (config)#int loopback2 R5 (config-if)#ip address 192.168.3.17 255.255.255.240 R5 (config-if)#no shut R5 (config-if)#exit R5 (config)#int loopback3 R5 (config-if)#ip address 192.168.3.33 255.255.255.240 R5 (config-if)#no shut R5 (config-if)#exit R5 (config)#int s0/1 R5 (config-if)#ip address 172.16.2.2 255.255.255.252 R5 (config-if)#no shut R5 (config-if)#exit R5 (config)#int s0/0 R5 (config-if)#encapsulation frame-relay R5 (config-if)#ip address 10.1.1.10 255.255.255.252 R5 (config-if)#frame-relay interface-dlci 404 R5 (config-if)#no shut R5 (config-if)#exit R5 (config)#router eigrp 110 R5 (config-router)#no auto R5 (config-router)#network 10.1.1.8 0.0.0.3 R5 (config-router)#network 172.16.2.0 0.0.0.3 R5 (config-router)#network 192.168.3.0 0.0.0.15 R5 (config-router)#network 192.168.3.16 0.0.0.15 R5 (config-router)#network 192.168.3.32 0.0.0.15 R5 (config-router)#end R5#copy run start 2.6 帧中继交换机FR1上的配置 2.7 虚拟终端机C1上的配置 3 实验任务一:通过bandwidth控制路由选择 3.1 实验思路 如下图所示,路由器R4上到达网段202.1.1.0/30是通过接口s0/0。在路由器R4的接口上配置bandwidth,使到达网段网段202.1.1.0/30的路由改为通过接口s0/1。 3.2 实验配置 R4>en R4#conf t R4(config)#int s0/0 R4(config-if)#bandwidth 64 R4(config-if)#no shut R4(config-if)#exit R4(config)#int s0/2 R4(config-if)#bandwidth 64 R4(config-if)#no shut R4(config-if)#exit 3.3 实验验证 R4#sh ip route eigrp 3.4 实验结论 通过设置bandwidth,改变了metric值,最终达到了控制路由选择的目的。 4 实验任务二:使用passive interfaces配置,降低网络负载 4.1 实验思路 将直连主机的接口配置为passive interfaces,将不再通过这些接口发送hello包,降低网络负载 4.2 实验配置 4.2.1 在路由器R1上的配置 R1>en R1#conf t R1(config)#router eigrp 110 R1(config-router)#passive-interface default R1(config-router)#no passive-interface s0/0 R1(config-router)#end R1#copy run start 4.2.2 在路由器R3上的配置 R3>en R3#conf t R3(config)#router eigrp 110 R3(config-router)#passive-interface default R3(config-router)#no passive-interface s0/0 R3(config-router)#no passive-interface s0/1 R3(config-router)#end R3#copy run start 4.2.3 在路由器R4上的配置 R4>en R4#conf t R4(config)#router eigrp 110 R4(config-router)#passive-interface default R4(config-router)#no passive-interface s0/0 R4(config-router)#no passive-interface s0/1 R4(config-router)#no passive-interface s0/2 R4(config-router)#end R4#copy run start 4.2.4 在路由器R5上的配置 R5>en R5#conf t R5(config)#router eigrp 110 R5(config-router)#passive-interface default R5(config-router)#no passive-interface s0/0 R5(config-router)#no passive-interface s0/1 R5(config-router)#end R5#copy run start 4.3 实验验证 4.3.1 在路由器R1上的实验验证 R1#sh ip pro 4.3.2 在路由器R3上的实验验证 R3#sh ip pro 4.3.3 在路由器R4上的实验验证 R4#sh ip pro 4.3.4 在路由器R5上的实验验证 R5#sh ip pro 4.4 实验结论 通过passive interfaces设置,将路由器R1上的f1/0,R3上的loopback1、loopback2、loopback3,R4上的loopback1、loopback2、loopback3,R5上的loopback1、loopback2、loopback3等接口设置为passive interface,不在这些接口发送hello包等EIGRP数据包,达到降低网络负载的目的。 5 实验任务三:缺省路由 5.1 实验思路 将路由器R1与R2的邻居关系断开,在路由器R2上做缺省路由,让R3、R4、R5学习到缺省路由,并可以访问R1。 5.2 实验配置 5.2.1 在路由器R1上的配置 R1>en R1#conf t R1(config)#no router eigrp 110 R1(config)#ip route 0.0.0.0 0.0.0.0 s0/0 R1(config)#end R1#copy run start 5.2.2 在路由器R2上的配置 R2>en R2#conf t R2(config)#ip default network 16.0.0.0 //ip default-network是一个classful命令 R2(config)#ip route 16.16.16.0 255.255.255.252 s0/1 R2(config)#end R2#copy run start 5.3 实验验证 在路由器R3上验证 R3#sh ip route 5.4 实验结论 通过在R2上配置ip default-network,成功的让整个自治系统中所有的路由器学习到了一条缺省路由,简化了配置和管理。在配置过程中需要注意的是ip default-network是一个classful命令,以此配置为例,即默认16为A类地址,带有掩码255.0.0.0。ip default-network设置的网段必须在eigrp中宣告这一网段,其他路由器才能通过EIGRP学习到这条缺省路由。 6 实验任务四:路由手工汇总 6.1 实验思路 在路由器R2上做路由手工汇总,减少用于路由更新的数据传输,减轻网络负载。汇总前R1上有关EIGRP的路由表如下图示: 6.2 实验配置 在路由器R2上配置 R2>en R2#conf t R2(config)#int s0/1 R2(config-if)#ip summary-address eigrp 110 192.168.1.0 255.255.255.192 R2(config-if)#ip summary-address eigrp 110 192.168.2.0 255.255.255.192 R2(config-if)#ip summary-address eigrp 110 192.168.3.0 255.255.255.192 R2(config-if)#ip summary-address eigrp 110 10.1.1.0 255.255.255.240 R2(config-if)#end R2#copy run start 6.3 实验验证 在路由器R1上验证 R1#sh ip route eigrp 6.4 实验结论 对比手工汇总前后路由器R1上的路由表,可以看到R1通过EIGRP学习到的路由明显减少,减轻了网络对于EIGRP路由更新的负载。 7 实验任务五:对称负载均衡 7.1 实验思路 通过在路由器R2上配置maximum-paths,实现对称负载均衡。(因为Maximum-paths默认为4,所以先关闭负载均衡,查看路由表,再打开,对比路由表的变化) 7.2 实验配置 在路由器R2上配置 R2>en R2#conf t R2(config)#router eigrp 110 R2(config)#maximum-paths 1 R2(config)#end R2#sh ip route eigrp R2#conf t R2(config)#router eigrp 110 R2(config)#maximum-paths 2 R2(config)#end R2#sh ip route eigrp R2#copy start run 7.3 实验验证 当配置maximum-paths为1(即关闭负载均衡)时,路由表如下图示: 当配置maximum-paths为2(即关闭负载均衡)时,路由表如下图示 7.4 实验结论: 对比路由表可知,当配置maximum-paths为2后,R2到达网段172.16.1.0/30和172.16.2.0/30的路由均为2条,实现了负载均衡。 8 实验任务六:非对称负载均衡 8.1 实验思路 在路由器R2上修改R2到R3和R2到R4的bandwidth,使两段链接metric值不相等。再配置variance,实现非对称负载均衡。 8.2 实验配置 在路由器R2上配置 R2>en R2#conf t R2(config)#int s0/0.1 R2(config-subif)#bandwidth 256 R2(config-subif)#exit R2(config)# int s0/0.2 R2(config-subif)#bandwidth 128 R2(config-subif)#exit R2(config)#router eigrp 110 R2(config-router)#maximum 4 R2(config-router)#variance 8 R2(config-router)#end R2#copy run start 8.3 实验验证 当配置maximum-paths为4,variance为8时,路由表如下图示: 8.4 实验结论 在修改了R2到R3和R2到R4的bandwidth之后,由路由表可知,当配置maximum-paths为4,variance为8后,R2到达网段172.16.1.0/30的路由为FD值不同的3条路由,实现了非对称负载均衡。 9 实验任务七:身份验证 9.1 实验思路 在路由器R1和R2上配置keychain,使用md5加密方式进行身份验证。 9.2 实验配置 9.2.1 在路由器R1上的配置 R1>en R1#conf t R1(config)#key chain R1KeyChain R1(config-keychain)#key 1 R1(config- keychain-key)#key-string cisco1 R1(config- keychain-key)#exit R1(config-keychain)#key 2 R1(config- keychain-key)#key-string cisco2 R1(config- keychain-key)#exit R1(config-keychain)#exit R1(config)#int s0/0 R1(config-if)#ip authentication mode eigrp 110 md5 R1(config-if)#ip authentication key-chain eigrp 110 R1KeyChain R1(config-if)#end R1#copy run start 9.2.2 在路由器R2上的配置 R2>en R2#conf t R2(config)#key chain R2KeyChain R2(config-keychain)#key 1 R2(config- keychain-key)#key-string cisco1 R2(config- keychain-key)#exit R2(config-keychain)#key 2 R2(config- keychain-key)#key-string cisco2 R2(config- keychain-key)#exit R2(config-keychain)#exit R2(config)#int s0/1 R2(config-if)#ip authentication mode eigrp 110 md5 R2(config-if)#ip authentication key-chain eigrp 110 R2KeyChain R2(config-if)#end R2#copy run start 9.3 实验验证 9.3.1 在路由器R1上的实验验证 R1#sh key chain R1#debug eigrp packets 9.3.2 在路由器R2上的实验验证 R2#sh key chain R2#debug eigrp packets 10 实验任务十:stub routers 10.1 状态receive-only测试 10.1.1 实验思路 将路由器R3配置为stub router,且状态为receive-only,其他路由器将无法学习到在R3上声明的网络192.168.1.0/28, 192.168.1.16/28, 192.168.1.32/28。 10.1.2 实验配置 在路由器R3上的配置 R3>en R3#conf t R3(config)#router eigrp 110 R3(config-router)#eigrp stub receive-only R3(config-router)#end R3#copy run start 10.1.3 实验验证 在路由器R2上的实验验证 R2#sh ip route eigrp 10.1.4 实验结论 由R2上的路由信息可知,路由器R3设置为stub router,且状态设置为receive-only后,其他路由器无法学习到在R3上声明的网络192.168.1.0/28, 192.168.1.16/28, 192.168.1.32/28。 10.2 状态connected测试 10.2.1 实验思路 在上一个实验的基础上将路由器R3的状态改为connected,其他路由器将可以重新学习到在R3上声明的网络192.168.1.0/28, 192.168.1.16/28, 192.168.1.32/28。 10.2.2 实验配置 在路由器R3上的配置 R3>en R3#conf t R3(config)#router eigrp 110 R3(config-router)#eigrp stub connected R3(config-router)#end R3#copy run start 10.2.3 实验验证 在路由器R2上的实验验证 R2#sh ip route eigrp 10.2.4 实验结论 由R2上的路由信息可知,路由器R3状态改为connected后,其他路由器将可以重新学习到在R3上声明的网络192.168.1.0/28, 192.168.1.16/28, 192.168.1.32/28。 10.3 状态static测试 10.3.1 实验思路 将路由器R1与R2的邻居关系中断,在R2上配置一条到达网段201.1.1.0/30的静态路由,配置R2为stub router,且状态为static。路由器R3、R4、R5将可以学习到这条静态路由。 10.3.2 实验配置 10.3.2.1 在路由器R1上的配置 R1>en R1#conf t R1(config)#no router eigrp 110 R1(config)#ip route 0.0.0.0 0.0.0.0 s0/0 R1(config)#router eigrp 110 R1(config-router)#no network 16.16.16.0 0.0.0.3 R1(config-router)#end R1#copy run start 10.3.2.2 在路由器R2上的配置 R2>en R2#conf t R2(config)#ip route 202.1.1.0 0.0.0.3 s0/1 R2(config)#router eigrp 110 R2(config-router)#eigrp stub static R2(config-router)#redistribute static R2(config-router)#end R2#copy run start 10.3.3 实验验证 在路由器R3上的实验验证 R3#sh ip route eigrp 10.3.4 实验结论 由R3上有关EIGRP的路由信息可知,路由器R2设置为stub router,且状态为static,路由器R3将无法学习到在R2上EIGRP公告的16.16.16.0/30的路由,但可以学习到R2上到达202.1.1.0/30网段的静态路由。 10.4 状态summary测试 10.4.1 实验思路 将路由器R2配置为stub router,且状态为summary,路由器R1将无法通过R2学习到有关172.16.1.0/30,172.16.2.0/30的路由,只能学习到R2上有关10.1.1.0/28,192.168.1.0/26,192.168.2.0/26,192.168.3.0/26的汇总路由 10.4.2 实验配置 在路由器R2上的配置 R2>en R2#conf t R2(config)#router eigrp 110 R2(config-router)#eigrp stub summary R2(config-router)#end R2#copy run start 10.4.3 实验验证 在路由器R1上的实验验证 R1#sh ip route eigrp 10.4.4 实验结论 由R1上有关EIGRP的路由信息可知,路由器R2设置为stub router,且状态为summary,路由器R1将无法通过R2学习到有关172.16.1.0/30,172.16.2.0/30的路由,只能学习到R2上有关10.1.1.0/28,192.168.1.0/26,192.168.2.0/26,192.168.3.0/26的汇总路由。 29
展开阅读全文

开通  VIP会员、SVIP会员  优惠大
下载10份以上建议开通VIP会员
下载20份以上建议开通SVIP会员


开通VIP      成为共赢上传

当前位置:首页 > 包罗万象 > 大杂烩

移动网页_全站_页脚广告1

关于我们      便捷服务       自信AI       AI导航        抽奖活动

©2010-2026 宁波自信网络信息技术有限公司  版权所有

客服电话:0574-28810668  投诉电话:18658249818

gongan.png浙公网安备33021202000488号   

icp.png浙ICP备2021020529号-1  |  浙B2-20240490  

关注我们 :微信公众号    抖音    微博    LOFTER 

客服