负载均衡-浮动静态路由_第1页
负载均衡-浮动静态路由_第2页
负载均衡-浮动静态路由_第3页
负载均衡-浮动静态路由_第4页
负载均衡-浮动静态路由_第5页
已阅读5页,还剩5页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、精选优质文档-倾情为你奉上CCNA扩展实验:路由链路负载均衡,浮动静态路由 发布时间:2008-05-23 实验内容:1.配置静态2.建立负载均衡链路,3.启用浮动静态,保证在一条链路shut down后启用另一条链路。实验目的:学会应用静态,动态,了解管理距离。实验环境:cisco7200器3台(模拟)一、名词概念静态 静态是指由网络管理员手工配置的信息。当网络的拓扑结构或链路的状态发生变化时,网络管理员需要手工去修改表中相关的静态信息。静态信息在缺省情况下是私有的,不会传递给其他的器。当然,网管员也可以通过对器进行设置使之成为共享的。静态一般适用于比较简单的网络环境,在这样的环境中,网络管

2、理员易于清楚地了解网络的拓扑结构,便于设置正确的信息。 在一个支持DDR(dial-on-demand routing)的网络中,拨号链路只在需要时才拨通,因此不能为动态信息表提供信息的变更情况。在这种情况下,网络也适合使用静态。 使用静态的另一个好处是网络安全保密性高。动态因为需要器之间频繁地交换各自的表,而对表的分析可以揭示网络的拓扑结构和网络地址等信息。因此,网络出于安全方面的考虑也可以采用静态。 大型和复杂的网络环境通常不宜采用静态。一方面,网络管理员难以全面地了解整个网络的拓扑结构;另一方面,当网络的拓扑结构和链路状态发生变化时,器中的静态信息需要大范围地调整,这一工作的难度和复杂程

3、度非常高。管理距离 管理距离是指一种协议的可信度。每一种协议按可靠性从高到低,依次分配一个信任等级,这个信任等级就叫管理距离。对于两种不同的协议到一个目的地的信息,器首先根据管理距离决定相信哪一个协议。一些常见协议的管理距离Route Source -Default Distance ValuesConnected interface -0Static route* -1Enhanced Interior Gateway Routing Protocol (EIGRP) summary route-5External Border Gateway Protocol(BGP)-20Interna

4、l EIGRP- 90IGRP -100OSPF -110Intermediate System-to-Intermediate System (IS-IS)-115Routing Information Protocol (RIP) -120Exterior Gateway Protocol (EGP) -140On Demand Routing (ODR) -160External EIGRP -170Internal BGP -200Unknown* -255/管理距离是可以更改的。链路负载均衡解决电信与网通之间、不同链路之间互联互通的问题,除此之外,双线路可以互为备份,如一条链路出现故

5、障时,可以自动切换到其它链路;并在一条链路流量大时自动分配其余流量到其他的链路上等等。浮动静态不同于其他的静态,浮动静态不能永久的保存于表中。它仅仅只会在主链路DOWN时,才回UP起来。它是被做为主链路的备份链路来使用的。实验拓扑:如下 1. 分别登陆三台器,进行预配置Routeren Router#conf tRouter(config)#host R1 /其它器分别为R2、R3R1(config)#enable password ciscoR1(config)#no ip domain-lookup 打错命令禁止查找2、配置普通用户登录密码R1(config)#line con 0R1(c

6、onfig-line)#password ciscoR1(config-line)#login - - 激活密码3、配置普通用户连接时间R1(config-line)#logging synchronous R1(config-line)#exec-timeout 0 04、配置管理员远程登录密码R1(config-line)#line vty 0 4R1(config-line)#password ciscoR1(config-line)#login5、远程连接时间R1(config-line)#logging synchronous R1(config-line)#exec-timeout

7、 0 02. 配置三台器的链路,接口及地址参见拓扑图一3. 配置静态R1上R1(config)#ip route 20.20.20.20 255.255.255.255 192.168.1.2R1(config)#ip route 192.168.2.2 255.255.255.255 192.168.1.2R1(config)#ip route 20.20.20.20 255.255.255.255 199.99.1.2 R1(config)#ip route 192.168.2.2 255.255.255.255 199.99.1.2R1(config)#ip route 0.0.0.0

8、0.0.0.0 192.168.1.2R1(config)#ip route 0.0.0.0 0.0.0.0 199.99.1.2在R1上show ip route,出现负载均衡链路,红色标记 20.0.0.0/32 is subnetted, 1 subnetsS 20.20.20.20 1/0 via 192.168.1.2 1/0 via 199.99.1.2C 199.99.1.0/24 is directly connected, FastEthernet0/0C 10.0.0.0/8 is directly connected, Loopback0C 192.168.1.0/24

9、is directly connected, Serial1/0 192.168.2.0/32 is subnetted, 1 subnetsS 192.168.2.2 1/0 via 192.168.1.2 1/0 via 199.99.1.2S* 0.0.0.0/0 1/0 via 192.168.1.2 1/0 via 199.99.1.2R2上R2(config)#ip route 20.20.20.20 255.255.255.255 192.168.2.2R2(config)#ip route 10.10.10.10 255.255.255.255 192.168.1.1R3上R3

10、(config)#ip route 10.10.10.10 255.255.255.255 192.168.2.1R3(config)#ip route 192.168.1.1 255.255.255.255 192.168.2.1R3(config)#ip route 192.168.1.1 255.255.255.255 199.99.1.1 R3(config)#ip route 10.10.10.10 255.255.255.255 199.99.1.1R3(config)#ip route 0.0.0.0 0.0.0.0 192.168.2.1R3(config)#ip route

11、0.0.0.0 0.0.0.0 199.99.1.1在R3上show ip route,出现负载均衡链路,红色标记C 20.0.0.0/8 is directly connected, Loopback0C 199.99.1.0/24 is directly connected, FastEthernet0/0 10.0.0.0/32 is subnetted, 1 subnetsS 10.10.10.10 1/0 via 192.168.2.1 1/0 via 199.99.1.1 192.168.1.0/32 is subnetted, 1 subnetsS 192.168.1.1 1/0

12、 via 192.168.2.1 1/0 via 199.99.1.1C 192.168.2.0/24 is directly connected, Serial1/1S* 0.0.0.0/0 1/0 via 192.168.2.1 1/0 via 199.99.1.1从R1上使用扩展ping命令来查看R1#ping Protocol ip: Target IP address: 20.20.20.20Repeat count 5: Datagram size 100: Timeout in seconds 2: Extended commands n: ySource address or

13、interface: 10.10.10.10Type of service 0: Set DF bit in IP header? no: Validate reply data? no: Data pattern 0xABCD: Loose, Strict, Record, Timestamp, Verbosenone: rNumber of hops 9 : Loose, Strict, Record, Timestamp, VerboseRV: Sweep range of sizes n: Type escape sequence to abort.Sending 5, 100-byt

14、e ICMP Echos to 20.20.20.20, timeout is 2 seconds:Packet sent with a source address of 10.10.10.10 Packet has IP options: Total option bytes= 39, padded length=40Record route: (0.0.0.0) (0.0.0.0) (0.0.0.0) (0.0.0.0) (0.0.0.0) (0.0.0.0) (0.0.0.0) (0.0.0.0) (0.0.0.0)Reply to request 0 (724 ms). Receiv

15、ed packet has optionsTotal option bytes= 40, padded length=40/第一条链路Record route: (192.168.1.1) /出发 (192.168.2.1) /经过 (20.20.20.20) /到达 (192.168.2.2) /回来路过 (192.168.1.2) /回来路过 (10.10.10.10) /回来 (0.0.0.0) (0.0.0.0) (0.0.0.0)End of listReply to request 1 (280 ms). Received packet has optionsTotal optio

16、n bytes= 40, padded length=40/第二条链路Record route: (199.99.1.1) /出发 (20.20.20.20) /到达 (199.99.1.2) /返回路过 (10.10.10.10) /回来 (0.0.0.0) (0.0.0.0) (0.0.0.0) (0.0.0.0) (0.0.0.0)End of listReply to request 2 (712 ms). Received packet has optionsTotal option bytes= 40, padded length=40Record route: (192.168.

17、1.1) (192.168.2.1) (20.20.20.20) (192.168.2.2) (192.168.1.2) (10.10.10.10) (0.0.0.0) (0.0.0.0) (0.0.0.0)End of listReply to request 3 (280 ms). Received packet has optionsTotal option bytes= 40, padded length=40Record route: (199.99.1.1) (20.20.20.20) (199.99.1.2) (10.10.10.10) (0.0.0.0) (0.0.0.0) (

18、0.0.0.0) (0.0.0.0) (0.0.0.0)End of listReply to request 4 (568 ms). Received packet has optionsTotal option bytes= 40, padded length=40Record route: (192.168.1.1) (192.168.2.1) (20.20.20.20) (192.168.2.2) (192.168.1.2) (10.10.10.10) (0.0.0.0) (0.0.0.0) (0.0.0.0)End of listSuccess rate is 100 percent

19、 (5/5), round-trip min/avg/max = 280/512/724 ms三、浮动静态实验过程1. 先no掉R1上的3条静态R1(config)# no ip route 20.20.20.20 255.255.255.255 199.99.1.2R1(config)# no ip route 192.168.2.2 255.255.255.255 199.99.1.2R1(config)# no ip route 0.0.0.0 0.0.0.0 199.99.1.22. 利用协议的管理距离(distance)重新在R1上写3条静态,并将管理距离增大到120R1(confi

20、g)# ip route 20.20.20.20 255.255.255.255 199.99.1.2 120R1(config)# ip route 192.168.2.2 255.255.255.255 199.99.1.2 120R1(config)# ip route 0.0.0.0 0.0.0.0 199.99.1.2 120 / R1(config)# ip route 20.20.20.20 255.255.255.255 199.99.1.2 ? Distance metric for this routename Specify name of the next hopper

21、manent permanent routetag Set tag for this route3. 用show ip route命令查看表,发现所写的上面3条静态在表里不可见 20.0.0.0/32 is subnetted, 1 subnetsS 20.20.20.20 1/0 via 192.168.1.2C 199.99.1.0/24 is directly connected, FastEthernet0/0C 10.0.0.0/8 is directly connected, Loopback0C 192.168.1.0/24 is directly connected, Serial1/0 192.168.2.0/32 is subnetted, 1 subnetsS 192.168.2.2 1/0 via 192.168.1.2S* 0.0.0.0/0 1/0 via 192.168.1.24. 测试链路是否正常进入R1的S1/0口 做shut down 操作,然后在R1上ping R3的回环地址20.20.20.20发现是通的,用扩展ping发现的路线是(199.99.1.1)(20.20.20.20)(199.99.1.2)(10.10.10.10) 说明上面

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论