首页 | 互联网 | IT动态 | IT培训 | Cisco | Windows | Linux | Java | .Net | Oracle | 软件测试 | C/C++ | 嵌入式开发 | 存储世界 | 服务器
网络设备 | IDC | 安全 | 求职招聘 | 数字网校 | 网页设计 | 平面设计 | 技术专题 | 电子书下载 | 教学视频 | 源码下载 | 搜索 | 博客 | 论坛
欢迎光临中国IT实验室思科频道
Google
您现在的位置: 中国IT实验室 >> Cisco >> 网络协议 >> RIP >> 正文

RIP实现等开销负载均衡的配置

 

  在R2的S0和S1上使用进程交换方式

r2(config)#int s0
r2(config)#no ip route-cache
r2(config)#int s1
r2(config)#no ip route-cache
r2#sh ip int s0
Serial0 is up, line protocol is up
  Internet address is 192.168.1.1/24
  Broadcast address is 255.255.255.255
  Address determined by setup command
  MTU is 1500 bytes
  Helper address is not set
  Directed broadcast forwarding is disabled
  Multicast reserved groups joined: 224.0.0.9
  Outgoing access list is not set
  Inbound  access list is not set
  Proxy ARP is enabled
  Security level is default
  Split horizon is enabled
  ICMP redirects are always sent
  ICMP unreachables are always sent
  ICMP mask replies are never sent
  IP fast switching is disabled         
  //快速交换方式已经关闭,现在为进程交换方式
  IP fast switching on the same interface is disabled
  IP Flow switching is disabled
  IP Null turbo vector
  IP multicast fast switching is disabled
  IP multicast distributed fast switching is disabled
  IP route-cache flags are None
  Router Discovery is disabled
  IP output packet accounting is disabled
  IP access violation accounting is disabled
  TCP/IP header compression is disabled
  RTP/IP header compression is disabled
  Probe proxy name replies are disabled
  Policy routing is disabled
  Network address translation is disabled
  WCCP Redirect outbound is disabled
  WCCP Redirect exclude is disabled
BGP Policy Mapping is disabled

  检验负载均衡的效果

r2#debug ip packet
r2#ping
Protocol [ip]:
Target IP address: 10.0.0.1
Repeat count [5]:
Datagram size [100]:
Timeout in seconds [2]:
Extended commands [n]: y
Source address or interface: 192.168.3.1
Type of service [0]:
Set DF bit in IP header? [no]:
Validate reply data? [no]:
Data pattern [0xABCD]:
Loose, Strict, Record, Timestamp, Verbose[none]:
Sweep range of sizes [n]:
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/31/32 ms
00:59:05: IP: s=192.168.3.1 (local), d=10.0.0.1 (Serial0), len 100, sending
00:59:05: IP: s=10.0.0.1 (Serial0), d=192.168.3.1, len 100, rcvd 4
00:59:05: IP: s=192.168.3.1 (local), d=10.0.0.1 (Serial1), len 100, sending
00:59:05: IP: s=10.0.0.1 (Serial0), d=192.168.3.1, len 100, rcvd 4
00:59:05: IP: s=192.168.3.1 (local), d=10.0.0.1 (Serial0), len 100, sending
00:59:05: IP: s=10.0.0.1 (Serial0), d=192.168.3.1, len 100, rcvd 4
00:59:05: IP: s=192.168.3.1 (local), d=10.0.0.1 (Serial1), len 100, sending
00:59:05: IP: s=10.0.0.1 (Serial0), d=192.168.3.1, len 100, rcvd 4
00:59:05: IP: s=192.168.3.1 (local), d=10.0.0.1 (Serial0), len 100, sending
00:59:05: IP: s=10.0.0.1 (Serial0), d=192.168.3.1, len 100, rcvd 4

  经过仔细的查找,终于找到了ping请求和应答产生的debug信息。查找分组发送时所经过的接口,我们看到R2的S0和S2被交替使用,可见RIP已经实现负载均衡。

上一页  [1] [2] [3] 下一页

【责编:Kittoy】
中国IT教育
相关产品和培训
文章评论
 友情推荐精华
 专题推荐

 ·节省成本才是“王道” VOIP案例应用…
 ·巧用网络流量 打造健康内网…
 ·无线路由器设置从入门到精通
 ·企业网管如何部署你的网络监控系统?
 ·负载均衡技术方案攻略
 ·中国IT实验室2007年技术热点盘点
 ·利用路由实现VPN的配置方法
 ·让你的局域网网速更上一层楼
 ·小命令大作用---Ping
 ·OSPF路由协议专题
 今日更新
 认证培训
 频道精选
 思科频道导航