CiscoIPSLA和EEM:數(shù)據(jù)中心多出口優(yōu)化設(shè)計方案-創(chuàng)新互聯(lián)

一 本文將通過Cisco IP SLA和EEM來演示中等規(guī)模數(shù)據(jù)中心多出口的優(yōu)化設(shè)計方案,數(shù)據(jù)中心構(gòu)建背景介紹:

創(chuàng)新互聯(lián)-專業(yè)網(wǎng)站定制、快速模板網(wǎng)站建設(shè)、高性價比冊亨網(wǎng)站開發(fā)、企業(yè)建站全套包干低至880元,成熟完善的模板庫,直接使用。一站式冊亨網(wǎng)站制作公司更省心,省錢,快速模板網(wǎng)站建設(shè)找我們,業(yè)務(wù)覆蓋冊亨地區(qū)。費用合理售后完善,10余年實體公司更值得信賴。

1、數(shù)據(jù)中心從ISP申請了多條出口鏈路,本文以三條演示,其中默認啟用前2條,在其中任何一條發(fā)生故障后,自動啟用第三條,每條接在運營商相同或者不同設(shè)備上。

2、主要使用靜態(tài)路由技術(shù)。

3、使用IP SLA和EEM來優(yōu)化數(shù)據(jù)中心故障倒換速度。

二、設(shè)計拓撲如下:

Cisco IP SLA和EEM:數(shù)據(jù)中心多出口優(yōu)化設(shè)計方案

三、配置(主要配置基本都在R1)

①R1接口配置

interface FastEthernet0/0

 ip address 1.1.1.1 255.255.255.0

 duplex auto

 speed auto

!

interface FastEthernet1/0

 no switchport

 ip address 2.2.2.1 255.255.255.0

!

interface FastEthernet1/1

 no switchport

 ip address 3.3.3.1 255.255.255.0

 shutdown

①靜態(tài)路由和IP SLA配置

ip sla 1

 icmp-echo 1.1.1.2 source-interface FastEthernet0/0

 timeout 1000

 threshold 10

 frequency 5

ip sla schedule 1 life forever start-time now

ip sla 2

 icmp-echo 2.2.2.2 source-interface FastEthernet1/0

 timeout 1000

 threshold 10

 frequency 5

ip 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 1

ip route 0.0.0.0 0.0.0.0 2.2.2.2 track 2

ip route 1.1.1.2 255.255.255.255 fa0/0

ip route 2.2.2.2 255.255.255.255 fa1/0

③EEM配置

event manager applet test

 event track 1 state down

 action 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 test2

 event track 2 state down

 action 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"

!

四 驗證

①、初始狀態(tài)

R1#show ip route static

S*  0.0.0.0/0 [1/0] via 2.2.2.2

        [1/0] via 1.1.1.2

R1#show track

Track 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 test2

Track 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已經(jīng)down了

R1#                  ------------接下來開始執(zhí)行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的靜態(tài)路由

R1#show ip route static

S*  0.0.0.0/0 [1/0] via 3.3.3.2  -------------------可以看到已經(jīng)把路由切換到R5上

        [1/0] via 1.1.1.2

五 總結(jié)

①靜態(tài)路由默認一直會存在路由表中,除非當R1路由器自身接口發(fā)生故障時,默認路由會失效。

②當和R1直連的接口發(fā)生故障時,默認路由并不消失,此時會發(fā)生流量異常,通過IP SLA對對端接口IP進行監(jiān)控,可以有些解決這個問題發(fā)生。

③當流量較高時,如果一條鏈路發(fā)生故障,勢必會造成流量擁塞,通過EEM可以自動啟用新的接口來增加帶寬。

④以上僅是IP SLA和EEM的簡單應(yīng)用,詳細請參考官網(wǎng)指南。

另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務(wù)器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國服務(wù)器、虛擬主機、免備案服務(wù)器”等云主機租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務(wù)可用性高、性價比高”等特點與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場景需求。

網(wǎng)站題目:CiscoIPSLA和EEM:數(shù)據(jù)中心多出口優(yōu)化設(shè)計方案-創(chuàng)新互聯(lián)
文章分享:http://muchs.cn/article30/pcjso.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站制作云服務(wù)器、網(wǎng)站策劃小程序開發(fā)、ChatGPT、標簽優(yōu)化

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

成都app開發(fā)公司