高可用性網絡的簡單配置方案(一)

 

一、實現高可用性網絡的常用方法
1.浮動靜態路由
浮動靜態路由是一種特殊的靜態路由,通過配置一個比主路由的管理距離更大的靜態路由,保證網絡中主路由失效的情況下,提供備份路由。但在主路由存在的情況下它不會出現在路由表中。浮動靜態路由主要用於拔號備份。
2.備份中心
爲了提高網絡的可靠性,VRP 使用備份中心來提供完善的備份功能:
可被備份的接口稱爲主接口。路由器上的任意一個物理接口或子接口都可以作爲主接口,任意一個接口上的某條邏輯通道如X.25 或幀中繼的虛電路也可以作爲主接口。 爲其它接口作備份的接口稱爲備用接口。路由器上的任意一個物理接口或接口上的某條邏輯通道都可以作爲其它接口或邏輯通道的備用接口。對一個主接口,可爲它提供多個備用接口;當主接口出現故障時,多個備用接口可以根據優先級來決定接替順序。具有多個物理通道的接口(如 ISDN BRI 和ISDN PRI 接口)可以通過DialerRoute 來爲多個主接口提供備份。備份中心支持備份負載分擔功能。當備份鏈中所有活動接口的流量達到設定的門限上限時,路由器啓動一個優先級最高的可用備用接口,同主接口一起進行負載分擔;當備份鏈中所有活動接口的流量小於設定的門限下限時,路由器關閉一個優先級別最低的備用接口。
3.鏈路捆綁
鏈路捆綁將多個封裝相同鏈路層協議的接口捆綁到一起,形成一條邏輯上的數據鏈路。 鏈路捆綁的作用如下: 有流量負載分擔:出/入流量可以在多個成員接口之間分擔。 有增加帶寬:鏈路捆綁接口的帶寬是各可用成員接口帶寬的總和。 提高連接可靠性:當某個成員接口出現故障時,流量會自動切換到其他可用的成員接口上,從而提高整個捆綁鏈路的連接可靠性。
二、案例
  案例描述:公司在北京有一個總部,在上海一分支機構,總部和分支機構用DDN網絡(和ISDN)連接進行通訊。
  拓撲圖:
 
 
實驗環境:
路由器 Quidway 2621 2臺
1.浮動靜態路由實現:
拓撲圖

R1的配置:
[R1]dis cu
  interface Ethernet1
    ip address 192.168.10.254 255.255.255.0
    ospf enable area 0.0.0.0      ## 配置ospf
  interface Serial0
    clock DTECLK1
    link-protocol ppp
    ip address 192.168.2.1 255.255.255.0
    ospf enable area 0.0.0.0
            
  interface Serial1
    clock DTECLK1
    link-protocol ppp
    ip address 192.168.1.1 255.255.255.0
  ospf enable
  ip route-static 192.168.20.0 255.255.255.0 192.168.1.2 preference 60 ##靜態路由
R2的配置:
[R2]dis cu
  interface Ethernet1
    ip address 192.168.20.254 255.255.255.0
    ospf enable area 0.0.0.0
  interface Serial0
    link-protocol ppp
    ip address 192.168.2.2 255.255.255.0
    ospf enable area 0.0.0.0
                                    
  interface Serial1
    link-protocol ppp
    ip address 192.168.1.2 255.255.255.0 
  ospf enable
  ip route-static 192.168.10.0 255.255.255.0 192.168.1.1 preference 60
測試

 

將s0接口斷掉 後

2.備份中心實現:
拓撲圖

R1的配置:
[R1]dis cu
  interface Ethernet1
    ip address 192.168.10.254 255.255.255.0
  interface Serial0
    clock DTECLK1
    link-protocol ppp
    standby interface Serial 1  ##備份接口
    standby timer enable-delay 5  ##啓用備份延遲時間
    standby timer disable-delay 5        ##啓用骨幹接口延遲時間  
    ip address 192.168.2.1 255.255.255.0 
    shutdown
  interface Serial1
    clock DTECLK1
    link-protocol ppp
    ip address 192.168.1.1 255.255.255.0
 
  ip route-static 192.168.20.0 255.255.255.0 192.168.1.2 preference 60 ##靜態路由
  ip route-static 192.168.20.0 255.255.255.0 192.168.2.2 preference 60
R2的配置:
[R2]dis cu
  interface Ethernet1
    ip address 192.168.20.254 255.255.255.0
  interface Serial0
    link-protocol ppp
    standby interface Serial 1
    standby timer enable-delay 5
    standby timer disable-delay 5
    ip address 192.168.2.2 255.255.255.0 
  interface Serial1
    link-protocol ppp
    ip address 192.168.1.2 255.255.255.0
 
  ip route-static 192.168.10.0 255.255.255.0 192.168.1.1 preference 60
  ip route-static 192.168.10.0 255.255.255.0 192.168.2.1 preference 60
測試
 

3.鏈路捆綁實現:
拓撲圖

R1的配置:
[R1-Serial1]dis cu
  interface Ethernet1
    ip address 192.168.10.254 255.255.255.0
  interface Serial0
    clock DTECLK1
    link-protocol ppp
    ppp mp
    ppp mp interface Virtual-Template1    ##加入Virtual-Template1 中
  interface Serial1
    clock DTECLK1
    link-protocol ppp
    ppp mp       ##協商
    ppp mp interface Virtual-Template1
 
  interface Virtual-Template1
    link-protocol ppp
    ip address 192.168.3.1 255.255.255.0
  ip route-static 192.168.20.0 255.255.255.0 192.168.3.2 preference 60  ##靜態路由
R2的配置:
[R2]dis cu
  interface Ethernet1
    ip address 192.168.20.254 255.255.255.0
  interface Serial0
    link-protocol ppp
    ppp mp
    ppp mp interface Virtual-Template1
  interface Serial1
    link-protocol ppp                    
    ppp mp
    ppp mp interface Virtual-Template1
 
  interface Virtual-Template1
    link-protocol ppp
    ip address 192.168.3.2 255.255.255.0 
  ip route-static 192.168.10.0 255.255.255.0 192.168.3.1 preference 60
測試

 
 
 
 
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章