


全文预览已结束
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
策略路由双出口配置实验要求:1、R1连接本地子网,R2为边缘策略路由器,R3模拟双ISP接入的Internet环境。2、要求R1所连接的局域网部分流量走R2-R3间上条链路(ISP1链路),部分流量走R2-R3间下条链路(ISP2链路)从而实现基于源的供应商链路选择和网络负载均衡。各路由器配置如下:R1(config)#int lo0 /模拟子网一:192.168.1.0/24R1(config-if)#ip add 192.168.1.1 255.255.255.0 /模拟子网中第一台主机R1(config-if)#ip add 192.168.1.2 255.255.255.0 secondary /模拟子网中第二台主机R1(config-if)#int lo1R1(config-if)#ip add 192.168.2.1 255.255.255.0R1(config-if)#ip add 192.168.2.2 255.255.255.0 secondary R1(config-if)#int f0/0R1(config-if)#ip add 12.0.0.1 255.255.255.0R1(config-if)#no shutR1(config-if)#exitR1(config)#router ripR2(config-router)#version 2R1(config-router)#net 192.168.1.0R1(config-router)#net 192.168.2.0R1(config-router)#net 12.0.0.0策略路由器R2的配置R2(config)#int f0/0R2(config-if)#ip add 12.0.0.2 255.255.255.0R2(config-if)#no shutR2(config-if)#int s1/1R2(config-if)#ip add 123.0.0.1 255.255.255.0R2(config-if)#no shutR2(config-if)#int s1/3R2(config-if)#ip add 223.0.0.1 255.255.255.0R2(config-if)#no shutR2(config-if)#exitR2(config)#router rip R2(config-router)#version 2R2(config-router)#net 12.0.0.0R2(config-router)#net 123.0.0.0R2(config-router)#net 223.0.0.0R2(config-router)#no auR2(config)#access-list 101 per ip 192.168.1.0 0.0.0.255 host 100.100.100.100R2(config)#access-list 102 per ip 192.168.2.0 0.0.0.255 host 100.100.100.100R2(config)#route-map isp-test permit 10 /定义route-map,取名为isp-test,序列为10R2(config-route-map)#match ip address 101 /检查源地址,匹配acl 101R2(config-route-map)#set ip default next-hop 123.0.0.3 /指定下一跳地址R2(config)#route-map isp-test per 20 /定义isp-test的第二条语句,序列号为20R2(config-route-map)#match ip address 102 /检查源地下,匹配acl102R2(config-route-map)#set ip default next 223.0.0.3R2(config-route-map)#exitR2(config)#route-map isp-test per 30 /定义isp-test的第三条语句,序列号为30R2(config-route-map)#set default interface null 0 /丢弃不匹配规定标准的包R2(config-route-map)#exitR2(config)#int f0/0R2(config-if)#ip policy route-map isp-test /在接口上启用策略路由isp-test进行流量控制R3(config)#int lo0 /模拟一个连接目标R3(config-if)#ip add 100.100.100.100 255.255.255.0R3(config-if)#no shutR3(config-if)#int s1/1 /模拟ISP1的接入端口R3(config-if)#ip add 123.0.0.3 255.255.255.0R3(config-if)#no shutR3(config-if)#int s1/3 /模拟ISP2的接入端口R3(config-if)#ip add 223.0.0.3 255.255.255.0R3(config-if)#no shutR3(config-if)#exitR3(config)#router ripR3(config-router)#ver 2R3(config-router)#net 100.100.100.0R3(config-router)#net 123.0.0.0R3(config-router)#net 223.0.0.0R3(config-router)#no au调试R2#sh ip policy /显示应用的策略R2#sh route-map isp-test /显示配置的路由映射图R1#traceroute /路由跟踪Protocol ip: /ip流量Target IP address: 100.100.100.100 /目标地址Source address: 192.168.1.1 /源地址为子网一的第一台主机Type escape sequence to abort.Tracing the route to 100.100.100.1001 12.0.0.2 72 msec 216 msec 276 msec2 123.0.0.3 288 msec 360 msec * /ISP1入口-R1# tracerouteProtocol ip:Target IP address: 100.100.100.100Source address: 192.168.1.2 /源地址为子网一的第二台主机Type escape sequence to abort.Tracing the route to 100.100.100.1001 12.0.0.2 92 msec 188 msec 52 msec2 123.0.0.3 416 msec 436 msec * /ISP1入口-R1#tracerouteProtocol ip:Target IP address: 100.100.100.100Source address: 192.168.2.1 /源地址为子网二的第一台主机Type escape sequence to abort.Tracing the route to 100.100.100.1001 12.0.0.2 136 msec 40 msec 144 msec2 223.0.0.3 356 msec * 132 msec /ISP2入口-R1#tracerouteProtocol ip:Target IP address: 100.100.100.100Source address: 192.168.2.2 /源地址为子网二中第二台主机Type escape sequence to abort.Tracing the route to 100.100.100.1001 12.0.0.2 28 msec 104 msec 200 msec2 223.0.0.3 300 msec * 196 msec /ISP2入口通过以上实验,可以看到子网一(192.168.1.0/24)的流量都经过R2-R3的上一条链路选择了ISP1链路,子网二(192.168.2.0/24)的流量都经过R2-R3的下一条链路选择了ISP2链路。所以通过策略路由实现基于源的供应商选择和网络的负载均衡。基于策略的路由允许应用一个策略控制数据包应如何走而非基于路由表选路。IP路由基于目标地,而PBR允许基于源的路由,即来自何处而应到哪去,从而根据需要走一条特殊的路径。在网络中实施
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 产品质量问题追溯体系缺陷产品管理工具
- 合作社农民互助合同
- 小区公共绿化与园艺服务协议
- 2025年钳工(高级)考试试卷:综合技能与创新能力
- 2025年美容师(初级)美容师美容院绿色环保技能鉴定试卷
- 日语餐饮知识培训课件
- 2024年新网银行招聘笔试真题
- 秦淮区高一数学试卷
- 山西忻州忻府区社区专职工作者招聘考试真题2024
- 青岛版初三数学试卷
- 传播学概论课件
- 小学生品德发展与道德教育PPT完整全套教学课件
- 酒店住宿水单模板
- 普通心理学第六版PPT完整全套教学课件
- 员工个人职业健康监护档案
- 《护理伦理学》教学大纲
- 老年学概论(第3版)PPT完整全套教学课件
- (完整版)Hamilton汉密尔顿焦虑量表
- 检验科实验室安全应急预案
- 浙江大学高分子化学第章课件绪论
- 教育教学理论试题与答案
评论
0/150
提交评论