一,高可用性概述
高可用性H.A.(High Availability)指的是通過儘量縮短因日常維護操作(計劃)和突發的系統崩潰(非計劃)所導致的停機時間,以提高系統和應用的可用性。它與被認爲是不間斷操作的容錯技術有所不同。HA系統是目前企業防止核心計算機系統因故障停機的最有效手段。
隨着IT信息系統的不斷髮展,數據在企業的應用越來越廣,如何提高IT系統的高可用性成爲建設穩健的計算機算系統的首要任務之一。構成計算機網絡系統的三大要素是:網絡系統,服務器系統,存儲系統。網絡系統包括防火牆,路由器等網絡設備,服務器系統主要指用戶使用的各種服務器系統,存儲系統,則是用戶最主要的數據存儲放的地點。
因此IT系統的高可用建設應包括網絡設備高可用性,服務器設備高可用性,及存儲設備的高可用性三個方面。
二,應用實例
1.路由設備 HSRP VRRP詳見本人其他文章內容 http://jinxiang1988.blog.51cto.com/4999286/965169
2.網絡接口 bond 詳見本人其他文章內容 http://jinxiang1988.blog.51cto.com/4999286/962682
3.鏈路 LAN stp rstp mstp 聚合
廣域網wan
利用華爲設備實現
拓撲:
浮動靜態路由:
[Router]sysname r6
[r6]int s0
[r6-Serial0]ip address 192.168.3.1 24
[r6-Serial0]int s1
[r6-Serial1]ip address 192.168.4.1 24
[r6-Serial1]int s0
[r6-Serial0]shut
[r6-Serial0]undo shut
[r6-Serial0]int s1
[r6-Serial1]shut
[r6-Serial1]undo shut
[r6]ospf enable 動態路由協議
[r6-ospf]int e0
[r6-Ethernet0]ospf enable area 0
[r6-Ethernet0]int s0
[r6-Serial0]ospf enable area 0
[r6]ip route-static 192.168.2.0 24 192.168.4.2
[R10]int s0
[R10-Serial0]ip add 192.168.3.2 24
[R10-Serial0]int s1
[R10-Serial1]ip add 192.168.4.2 24
[R10]ospf enable ##開啓ospf
[R10]int e0
[R10-Ethernet0]ospf enable area 0 ##將e0加入骨幹區域
Interface has already been enabled
[R10-Ethernet0]int s0
[R10-Serial0]ospf enable area 0 ##將s0加入骨幹區域
Interface has already been enabled
[R10]ip route-static 192.168.1.0 24 192.168.4.1 ##配置靜態路由
查看路由表
[r6]int s0
[r6-Serial0]shutdown
測試
Standby interface:
[r6]undo ospf enable
[r6]ip route 192.168.2.0 24 192.168.3.2
[r6-Serial0]standby interface s1
[r6-Serial0]standby timer enable-delay 10啓用備份延遲
[r6-Serial0]standby timer disable-delay 10啓用骨幹延遲
[R10]undo ospf enable ##取消ospf
Terminate OSPF task...
OSPF disabled
[R10]ip route 192.168.1.0 24 192.168.3.1 ##配置靜態路由
[R10]int s0 ##骨幹接口
[R10-Serial0]standby int s1 ##備份接口
[R10-Serial0]standby timer enable-delay 10 ##啓用備份接口的延遲
[R10-Serial0]standby timer disable-delay 10 ##啓用骨幹接口的延遲
[r6]int s0
[r6-Serial0]shutdown
鏈路捆綁:
[r6]int s0
[r6-Serial0]undo standby int s1
[r6-Serial0]int s0
[r6-Serial0]undo ip add
[r6-Serial0]int s1
[r6-Serial1]undo ip add
[r6-Serial1]int virtual-template 1開啓虛擬接口
[r6-Virtual-Template1]ip address 192.168.6.1 24
[r6-Virtual-Template1]int s0
[r6-Serial1]ppp mp interface virtual-template 1
[r6-Serial0]int s1
[r6-Serial1]ppp mp interface virtual-template 1
[r6-Serial1]int s0啓用PPP鏈路協商
[r6-Serial0]ppp mp
[r6-Serial0]int s1
[r6-Serial1]ppp mp
[r6-Serial1]quit
[r6]undo ip route-static all
[r6]ip route-static 192.168.2.0 24 192.168.6.2
[R10]int s0
[R10-Serial0]undo standby int s1
[R10]undo ip route-static all
[R10]int s0
[R10-Serial0]un ip add
[R10-Serial0]
%01:41:51: Line protocol ip on the interface Serial0 is DOWN
[R10-Serial0]int s1
[R10-Serial1]un ip add
[R10-Serial1]int virtual-template 1
[R10-Virtual-Template1]ip add 192.168.6.2 24
[R10-Virtual-Template1]int s0
[R10-Serial0]ppp mp int vir 1
[R10-Serial0]int s1
[R10-Serial1]ppp mp int vir 1
[R10-Serial1]int s0
[R10-Serial0]ppp mp
[R10-Serial0]
%01:45:13: Line protocol ip on the interface Virtual-Template1(Virtual-Template1:0) is UP
[R10-Serial0]int s1
[R10-Serial1]ppp mp
[R10]ip route 192.168.1.0 24 192.168.6.1
[r6]int s0
[r6-Serial0]shutdown
4. 服務器 羣集 【LB HA HP】 未完待續…