Cisco IP SLA和EEM:数据中心多出口优化设计方案


一 本文将通过Cisco IP SLA和EEM来演示中等规模数据中心多出口的优化设计方案,数据中心构建背景介绍:1、数据中心从ISP申请了多条出口链路,本文以三条演示,其中默认启用前2条,在其中任何一条发生故障后,自动启用第三条,每条接在运营商相同或者不同设备上。2、主要使用静态路由技术。3、使用IP SLA和EEM来优化数据中心故障倒换速度。
二、设计拓扑如下:三、配置(主要配置基本都在R1)①R1接口配置interface FastEthernet0/0ip address 1.1.1.1 255.255.255.0duplex autospeed auto!interface FastEthernet1/0
no switchportip address 2.2.2.1 255.255.255.0!interface FastEthernet1/1no switchportip address 3.3.3.1 255.255.255.0shutdown①静态路由和IP SLA配置ip sla 1icmp-echo 1.1.1.2 source-interface FastEthernet0/0timeout 1000threshold 10frequency 5ip sla schedule 1 life forever start-time nowip sla 2icmp-echo 2.2.2.2 source-interface FastEthernet1/0timeout 1000threshold 10frequency 5ip sla schedule 2 life forever start-time now!track 1 rtr 1 reachability!track 2 rtr 2 reachability!ip route 0.0.0.0 0.0.0.0 1.1.1.2 track 1ip route 0.0.0.0 0.0.0.0 2.2.2.2 track 2ip route 1.1.1.2 255.255.255.255 fa0/0ip route 2.2.2.2 255.255.255.255 fa1/0③EEM配置event manager applet testevent track 1 state downaction 1 cli command “enable”action 2 cli command “conf t”action 3 cli command “int fa1/1″action 4 cli command “no sh”action 5 cli command “ip route 0.0.0.0 0.0.0.0 3.3.3.2”!event manager applet test2event track 2 state downaction 1 cli command “enable”action 2 cli command “conf t”action 3 cli command “int fa1/1″action 4 cli command “no sh”action 5 cli command “ip route 0.0.0.0 0.0.0.0 3.3.3.2”!四 验证①、初始状态R1#show ip route staticS* 0.0.0.0/0 [1/0] via 2.2.2.2 [1/0] via 1.1.1.2R1#show trackTrack 1 Response Time Reporter 1 reachability Reachability is Up 2 changes, last change 00:42:43 Latest operation return code: Over threshold Latest RTT (millisecs) 40 Tracked by: STATIC-IP-ROUTING 0 EEM applet test2Track 2 Response Time Reporter 2 reachability Reachability is Up 7 changes, last change 00:01:08 Latest operation return code: Over threshold Latest RTT (millisecs) 88 Tracked by: STATIC-IP-ROUTING 0 EEM applet test②把R4的fa1/0口down掉,并在R1开启EEM的debug*Mar 1 00:54:30.027: %TRACKING-5-STATE: 2 rtr 2 reachability Up->Down—-Track2已经down了R1# ————接下来开始执行EEM功能*Mar 1 00:54:30.063: %HA_EM-6-LOG: test : DEBUG(cli_lib) : : CTL : cli_open called.*Mar 1 00:54:30.071: %HA_EM-6-LOG: test : DEBUG(cli_lib) : : OUT : R1>*Mar 1 00:54:30.071: %HA_EM-6-LOG: test : DEBUG(cli_lib) : : IN : R1>enable*Mar 1 00:54:30.135: %HA_EM-6-LOG: test : DEBUG(cli_lib) : : OUT : R1#*Mar 1 00:54:30.139: %HA_EM-6-LOG: test : DEBUG(cli_lib) : : IN : R1#conf t*Mar 1 00:54:30.199: %HA_EM-6-LOG: test : DEBUG(cli_lib) : : OUT : Enter configuration commands, one per line. End with CNTL/Z.*Mar 1 00:54:30.199: %HA_EM-6-LOG: test : DEBUG(cli_lib) : : OUT : R1(config)#*Mar 1 00:54:30.203: %HA_EM-6-LOG: test : DEBUG(cli_lib) : : IN : R1(config)#int fa1/1*Mar 1 00:54:30.267: %HA_EM-6-LOG: test : DEBUG(cli_lib) : : OUT : R1(config-if)#*Mar 1 00:54:30.267: %HA_EM-6-LOG: test : DEBUG(cli_lib) : : IN : R1(config-if)#no sh*Mar 1 00:54:30.359: %HA_EM-6-LOG: test : DEBUG(cli_lib) : : OUT : R1(config-if)#*Mar 1 00:54:30.359: %HA_EM-6-LOG: test : DEBUG(cli_lib) : : IN : R1(config-if)#ip route 0.0.0.0 0.0.免费云主机域名0.0 3.3.3.2*Mar 1 00:54:30.451: %HA_EM-6-LOG: test : DEBUG(cli_lib) : : OUT : R1(config)#*Mar 1 00:54:30.455: %HA_EM-6-LOG: test : DEBUG(cli_lib) : : CTL : cli_close called.③查看R1的静态路由R1#show ip route staticS* 0.0.0.0/0 [1/0] via 3.3.3.2 ——————-可以看到已经把路由切换到R5上 [1/0] via 1.1.1.2五 总结①静态路由默认一直会存在路由表中,除非当R1路由器自身接口发生故障时,默认路由会失效。
②当和R1直连的接口发生故障时,默认路由并不消失,此时会发生流量异常,通过IP SLA对对端接口IP进行监控,可以有些解决这个问题发生。③当流量较高时,如果一条链路发生故障,势必会造成流量拥塞,通过EEM可以自动启用新的接口来增加带宽。④以上仅是IP SLA和EEM的简单应用,详细请参考官网指南。

相关推荐: linux能不能识别fat32

这篇“linux能不能识别fat32”文章的知识点大部分人都不太理解,所以小编给大家总结了以下内容,内容详细,步骤清晰,具有一定的借鉴价值,希望大家阅读完这篇文章能有所收获,下面我们一起来看看这篇“linux能不能识别fat32”文章吧。 linux系统默认能…

免责声明:本站发布的图片视频文字,以转载和分享为主,文章观点不代表本站立场,本站不承担相关法律责任;如果涉及侵权请联系邮箱:360163164@qq.com举报,并提供相关证据,经查实将立刻删除涉嫌侵权内容。

(0)
打赏 微信扫一扫 微信扫一扫
上一篇 01/27 11:39
下一篇 01/27 11:39