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

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

創(chuàng)新互聯(lián)建站專業(yè)IDC數(shù)據(jù)服務(wù)器托管提供商,專業(yè)提供成都服務(wù)器托管,服務(wù)器租用,西云機(jī)房,西云機(jī)房,成都多線服務(wù)器托管等服務(wù)器托管服務(wù)。

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

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

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

二、設(shè)計(jì)拓?fù)淙缦拢?/p>

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

三、配置(主要配置基本都在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"

!

四 驗(yàn)證

①、初始狀態(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)路由默認(rèn)一直會(huì)存在路由表中,除非當(dāng)R1路由器自身接口發(fā)生故障時(shí),默認(rèn)路由會(huì)失效。

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

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

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

當(dāng)前名稱:CiscoIPSLA和EEM:數(shù)據(jù)中心多出口優(yōu)化設(shè)計(jì)方案
分享網(wǎng)址:http://bm7419.com/article42/jjejhc.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供營(yíng)銷型網(wǎng)站建設(shè)、Google、網(wǎng)站建設(shè)、企業(yè)建站、品牌網(wǎng)站設(shè)計(jì)網(wǎng)站設(shè)計(jì)公司

廣告

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

手機(jī)網(wǎng)站建設(shè)