Cisco笔记6-静态路由的负载均衡
2010-10-10 15:02
260 查看
实验拓扑如下:
![](http://img1.51cto.com/attachment/201010/143756895.png)
R2 Loopback :2.2.2.2
R3 Loopback :3.3.3.3
配置如下:
(1)各路由器ip地址
R1#c
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 192.168.1.1 YES NVRAM up up
FastEthernet0/1 192.168.2.1 YES NVRAM up up
R2#C
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 192.168.3.1 YES NVRAM up up
FastEthernet0/1 192.168.1.2 YES NVRAM up up
Loopback0 2.2.2.2 YES NVRAM up up
R3#C
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 192.168.3.2 YES NVRAM up up
FastEthernet0/1 192.168.2.2 YES NVRAM up up
Loopback0 3.3.3.3 YES NVRAM up up
(2)配置静态路由
R1
ip route 2.2.2.0 255.255.255.0 192.168.1.2
ip route 3.3.3.0 255.255.255.0 192.168.2.2
R2
ip route 3.3.3.0 255.255.255.0 192.168.3.2
ip route 3.3.3.0 255.255.255.0 192.168.1.1
R3
ip route 2.2.2.0 255.255.255.0 192.168.2.1
ip route 2.2.2.0 255.255.255.0 192.168.3.1
(3)测试
打开R2上的debug ip packet,用扩展ping来看报的send和receive情况即可是否实现了负载
R2#ping
Protocol [ip]:
Target IP address: 3.3.3.3
Repeat count [5]:
Datagram size [100]:
Timeout in seconds [2]:
Extended commands
: y
Source address or interface: 2.2.2.2
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
:
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/12/16 ms
R2#
00:10:17: IP: s=2.2.2.2 (local), d=3.3.3.3 (FastEthernet0/1), len 100, sending
00:10:17: IP: s=3.3.3.3 (FastEthernet0/0), d=2.2.2.2, len 100, rcvd 4
00:10:17: IP: s=2.2.2.2 (local), d=3.3.3.3 (FastEthernet0/0), len 100, sending
00:10:17: IP: s=3.3.3.3 (FastEthernet0/1), d=2.2.2.2, len 100, rcvd 4
00:10:17: IP: s=2.2.2.2 (local), d=3.3.3.3 (FastEthernet0/1), len 100, sending
00:10:17: IP: s=3.3.3.3 (FastEthernet0/0), d=2.2.2.2, len 100, rcvd 4
00:10:17: IP: s=2.2.2.2 (local), d=3.3.3.3 (FastEthernet0/0), len 100, sending
00:10:17: IP: s=3.3.3.3 (FastEthernet0/1), d=2.2.2.2, len 100, rcvd 4
00:10:17: IP: s=2.2.2.2 (local), d=3.3.3.3 (FastEthernet0/1), len 100, sending
00:10:17: IP: s=3.3.3.3 (FastEthernet0/0), d=2.2.2.2, len 100, rcvd 4
R3上同理,这里就不贴出来了。要全通只需在各路由器上加到未知网段的静态路由即可,写的比较粗糙只写出了主要的步骤,嘿嘿!!!
本文出自 “jaymimijay” 博客,请务必保留此出处http://jaymimijay.blog.51cto.com/1007218/403315
![](http://img1.51cto.com/attachment/201010/143756895.png)
R2 Loopback :2.2.2.2
R3 Loopback :3.3.3.3
配置如下:
(1)各路由器ip地址
R1#c
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 192.168.1.1 YES NVRAM up up
FastEthernet0/1 192.168.2.1 YES NVRAM up up
R2#C
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 192.168.3.1 YES NVRAM up up
FastEthernet0/1 192.168.1.2 YES NVRAM up up
Loopback0 2.2.2.2 YES NVRAM up up
R3#C
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 192.168.3.2 YES NVRAM up up
FastEthernet0/1 192.168.2.2 YES NVRAM up up
Loopback0 3.3.3.3 YES NVRAM up up
(2)配置静态路由
R1
ip route 2.2.2.0 255.255.255.0 192.168.1.2
ip route 3.3.3.0 255.255.255.0 192.168.2.2
R2
ip route 3.3.3.0 255.255.255.0 192.168.3.2
ip route 3.3.3.0 255.255.255.0 192.168.1.1
R3
ip route 2.2.2.0 255.255.255.0 192.168.2.1
ip route 2.2.2.0 255.255.255.0 192.168.3.1
(3)测试
打开R2上的debug ip packet,用扩展ping来看报的send和receive情况即可是否实现了负载
R2#ping
Protocol [ip]:
Target IP address: 3.3.3.3
Repeat count [5]:
Datagram size [100]:
Timeout in seconds [2]:
Extended commands
: y
Source address or interface: 2.2.2.2
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
:
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/12/16 ms
R2#
00:10:17: IP: s=2.2.2.2 (local), d=3.3.3.3 (FastEthernet0/1), len 100, sending
00:10:17: IP: s=3.3.3.3 (FastEthernet0/0), d=2.2.2.2, len 100, rcvd 4
00:10:17: IP: s=2.2.2.2 (local), d=3.3.3.3 (FastEthernet0/0), len 100, sending
00:10:17: IP: s=3.3.3.3 (FastEthernet0/1), d=2.2.2.2, len 100, rcvd 4
00:10:17: IP: s=2.2.2.2 (local), d=3.3.3.3 (FastEthernet0/1), len 100, sending
00:10:17: IP: s=3.3.3.3 (FastEthernet0/0), d=2.2.2.2, len 100, rcvd 4
00:10:17: IP: s=2.2.2.2 (local), d=3.3.3.3 (FastEthernet0/0), len 100, sending
00:10:17: IP: s=3.3.3.3 (FastEthernet0/1), d=2.2.2.2, len 100, rcvd 4
00:10:17: IP: s=2.2.2.2 (local), d=3.3.3.3 (FastEthernet0/1), len 100, sending
00:10:17: IP: s=3.3.3.3 (FastEthernet0/0), d=2.2.2.2, len 100, rcvd 4
R3上同理,这里就不贴出来了。要全通只需在各路由器上加到未知网段的静态路由即可,写的比较粗糙只写出了主要的步骤,嘿嘿!!!
本文出自 “jaymimijay” 博客,请务必保留此出处http://jaymimijay.blog.51cto.com/1007218/403315
相关文章推荐
- F5内网大二层负载均衡业务访问故障解析(CISCO OTV+LISP-MTU问题导致)
- 网络结构设计——负载均衡之LVS学习笔记(二)
- Spring Cloud微服务开发笔记5——Ribbon负载均衡策略规则定制
- 04.Spring Cloud学习笔记之客户端负载均衡组件Ribbon
- 静态路由实现负载均衡与备份
- 网络结构设计——负载均衡之LVS学习笔记(三)
- 网络结构设计——负载均衡之LVS学习笔记(四)
- EIGRP综合小实验(负载均衡,默认路由重分布,手工路由汇总,含端口映射,DHCP等)--CCNP学习笔记
- Cisco笔记5-静态路由基础配置
- 路由交换笔记(十七)---EIGRP等价负载均衡的实现方法
- 集群与负载均衡技术学习笔记一 负载均衡策略
- 接入层负载均衡笔记
- Cisco 路由器HSRP负载均衡的配置
- 微信公号“架构师之路”学习笔记(二)-高可用高并发负载均衡的架构设计(冗余+自动故障转移、水平扩展等)
- 静态路由配置、浮动静态路由 负载均衡
- 静态路由实现负载均衡和高可用 推荐
- 用静态路由来实现负载均衡。。(问题)
- Kafka中topic的Partition,Kafka为什么这么快,Consumer的负载均衡及consumerGroup的概念(来自学习笔记)
- nginx 负载均衡的配置笔记