国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 網絡通信 > 正文

Cisco路由器的備份配置

2019-11-05 00:11:28
字體:
來源:轉載
供稿:網友
  
  2514的配置
  2514# sho run
  Building configuration...
  !
  Current configuration:
  !
  version 11.2
  no service udp-small-servers
  no service tcp-small-servers
  !
  hostname 2514
  !
  enable secret 5 $1$uoHU$Vks/1YCRi33z4TXs4qekI0
  !
  frame-relay switching
  !
  interface Ethernet0
  no ip address
  !
  interface Ethernet1
  no ip address
  shutdown
  !
  interfacc Serial0
  ip address 192.3.1.2 255.255.255.0
  encapsulation frame-relay IETF
  ip ospf message-digest-key 1 md5 kim
  bandwidth 2000
  clockrate 2000000
  frame-relay map ip 192.3.1.1 100 broadcast
  frame-relay intf-type dce
  !
  interface Serial1
  ip address 192.8.1.1 255.255.255.0
  no ip mroute-cache
  enthpsulation x25 dce
  ip ospf message-digest-key 2 md5 cisco
  bandwidth 64
  x25 address 1234
  x25 htc 16
  x25 nvc 4
  x25 map ip 192.8.1.2 5678 broadcast
  clockrate 64000
  !
  router ospf 1
  passive-interface Ethernet0
  network 192.3.1.0 0.0.0.255 area 0
  network 192.8.1.O 0.0.0.255 area 0
  neighbor 192.8.l.2 PRiority 1
  neighbor 192.3.1.1 priority 1
  area 0 authentication message-digest
  !
  no ip classless
  !
  line con 0
  line aux 0
  line vty 0 4
  login
  !
  end
  
  2505的配置
  building configuraiion...
  Current configuration:!
  version 11.2
  no service udp-small-servers
  no service tcp-small-servers
  !
  hostname 2505
  !
  enable secret 5 $1$b43o$CpEYSTc2EPwnRlQGDvIm//
  !
  username 2511-1 passWord 7 1511021F0725
  !
  hub ether 0 1
  link-test
  auto-polarity
  !
  hub ether O 2
  link-test
  auto-polarity
  !
  hub ether 0 3
  link-test
  auto-polarity
  !
  hub ether 0 4
  link-test
  auto-polarity
  !
  hub ether 0 5
  link-test
  auto-polarity
  !
  hub ether 0 6
  link-test
  auto-polarity
  !
  hub ether 0 7
  link-test
  auto-polarity
  !
  hub ether 0 8
  link-test
  auto-polarity
  !
  interface Ethernet0
  ip address 192.1.4.1 255.255.255.0
  !
  interfacc Serial0
  ip address 192.l.2.1 255.255.255.0
  ip ospf message-digest-key 1 md5 cisco
  ip ospf network non-broadcast
  bandwidth 2000
  clockrate 2000000
  !
  interface Serial1
  ip address 192.7.1.2 255.255.255.0
  encapsulation ppp
  ip ospf message-digdest-key 1 md5 kim
  ip ospf network non-broadcast
  bandwidth 64
  clockrate 64000
  ppp authentication chap
  !
  router ospf 1
  passive-interface Ethernet0
  network 192.l.2.0 0.0.0.255 area 2
  network 192.l.4.O 0.0.0.255 area 2
  network 192.7.1.0 0.0.0.255 area 0

  neighbor 192.7.l.1 priority 1
  neighbor 192.1.2.2 priority 1
  area 0 authentication message-digest
  area 2 authentication message-digest
  area 2 range 192.1.0.0 255.255.0.0
  !
  no ip classless
  ip ospf name-lookup
  !
  line con 0
  line aux 0
  Iine vty 0 4
  login
  !
    end線路備份 其實,在廣域網連接中,最不可靠的因素大多數情況下是出在線路、端口及外接的設備上。相對來說線路備份更為重要。
    線路備份一般有幾種主要方法:
    · 采用動態(tài)路由自動進行備份
    · 采用顯示backup(備份)方法進入備份
    · 采用浮動的靜態(tài)路由方法進行備份
  
    方法1是在網絡中含有多條冗余線路,路由器通過動態(tài)路由學習到所有線路工作情況.根據路由算法選擇最優(yōu)的路徑作為主干線路,一旦某條主干線路出現故障,路由器將在一段時間過后,自動刪除通過該條線路的路徑,重新進行最優(yōu)路徑計算,重新選擇一條通過某條冗余線路的最優(yōu)的路徑。所有這些過程,都由動態(tài)路由協議自動完成,無須任何其它設置。
  
    方法2 顯示backup備份方法
    該種方法顯示的指明哪條主干線路,哪一條是備份線路。假如主干線路出現故障,則在指定的時間內,備份線路會代替主干線路工作。假如主干線路恢復正常,則在指定的時間過后,會自動切換回主干線路備份線路重新處于備份狀態(tài)。
    設置為顯示備份后,路由器將監(jiān)測CD信號,一旦CD信號消失,則路由器便認為該線路出現故障。假如CD 信號始終存在,則路由器認為主干線路工作正常。
    這種備方法適用于DDN專線作主干線路的情況。因為對于DDN專線,假如線路斷掉,則兩邊的路由器的CD信號都會消失,而該種方去不適用于X.25線路上,因為X.25線路上出現故障時,大多數情況下都是建立不起來虛電路,而CD信號則往往存在。而且,假如一端X.25線路出現故障,而另一端X.25線路往往是正常的,這樣,假如正常一端的路由器有數據傳送給不正常一端時,路由器認為X.25線路工作正常。因此根本不會起備份線路。
  
  顯示備份方法配置步驟
  
  1.正確配置主干線路能正常通信
  2.然后正確配置備份線路能正常通信
  3.在主干線路所連接的端口中顯示指出哪一條線路為備份線路
  backup interface 備份線路端口號
  4.指定在主干線路出現故障多長時間后啟用備份線路及在主干線路恢復正常多長時間后切換回主干線路。備份線路恢復到備份狀態(tài)
  backup delay 時間參數1(秒) 時間參數字2(秒)
  
    時間參數1指定在主干線路出現故障多長時間后啟用備份線路,時間參數2指定在主干線路恢復正常多長時間后切換回主干線路,備份線路恢復到備份狀態(tài)。
  
    設置備份線路的路由可以起任何方式的路由,但備份線路一般帶寬相對主干線路較低,且假如起動態(tài)路由會有額外費用。因此,一般在備份線路上使用靜態(tài)路由。
  在全局設置模式下
    ip route 目地子網地址 子網掩碼 相鄰路由器相鄰端口地址
    原則上講,備份線路可以為任何線路。但一般都是用帶寬相對較低,費用較低的線路作為備份線路。
    一般的,可以用X.25或PSTN作DDN線路的備份。
    以下實例為用Cisco2501 AUX口作模擬DDN專線的撥號備份.
  
  實例:
  
  Cisco 2501-above 的配置
  Current configuration:
  !
  version 11.2
  no service udp-small-servers
  no service tcp-small-servers
  !
  hostname above
  !
  Current configuration:
  !
  version 11.2
  no service udp-small-servers
  no service tcp-small-servers
  !
  hostname above
  !
  enable secret 5 $1$O1aq$Kxgp1A0Eulqug8SbCm6rdl
  enable password cisco
  !
  username down password 7 095C5E19
  chat-script lab ABORT ERROR ABORT BUSY ABORT "NO ANSWER" "" "AT H" OK "ATDT /T"
  TIMEOUT 60 CONNECT /c
  !
  interface Ethernet0
  ip address 192.192.193.1 255.255.255.0
  !interface Serial0
  ip address 192.192.192.1 255.255.255.0
  bandwidth 64
  clockrate 64000
  !
  interface Serial1
  no ip address
  shutdown
  !
  interface Async1
  ip address 166.71.70.1 255.255.255.0
  encapsulation ppp
  async dynamic address
  async dynamic routing
  async mode dedicated
  dialer in-band
  dialer map ip 167.71.70.2 name down moden-script lab broadcast 3631
  dialer-group 1
  no cdp enable
  ppp authentication chap

  !
  router rip
  network l92.192.192.0
  nctwork 192.192.193.0
  !
  no ip classless
  ip route 0.0.0.0 0.0.0.0 166.71.70.2
  ip routc 192.192.191.0 255.255.255.0 166.71.70.2
  dialer-list 1 protocol ip permit
  !
  line con 0
  line aux 0
  modem InOut
  modem autoconfigure discovery
  stopbits 1
  rxspeed 38400
  txspeed 38400
  flowcontrol hardware
  line vty 0 4
  no login
  !
  end
  
  
  !Cisco 2501 named down configuration
  Cisco 2501-down 的配置
  Current configuration:
  !
  version 11.2
  no service udp-small-servers
  no servicc tcp-small-servers
  !
  hostname down
  !
  enable secret 5 $1$m8S4$lnrkhnJDtCVtSvTpXO8v/0
  enable password cisco
  !
  username above password 7 095C5E19
  chat-script lab ABORT ERROR ABORT BUSY ABORT "NO ANSWER" "" "AT H" OK "ATDT /T" TIMEOUT 60 CONNECT /C
  !
  interface Ethernet 0
  ip address 192.192.191.1 255.255.255.0
  !
  interface Serial0
  backup delay 10 10
  backup interface Async1
  ip address 192.192.192.3 255.255.255.0
  !interface Seriall
  no ip address
  shutdown
  !
  interface Async1
  ip address 166.71.70.2 255.255.255.0
  encapsulation ppp
  async dynamic address
  async dynamic routing
  async mode dedicated
  dialer in-band
  dialer map ip 166.71.70.1 name above modem-script lab broadcast 3621
  dialer-group 1
  no cdp enable
  ppp authentication chap
  !
  router rip
  net work 192.192.192.0
  net work 192.192.191.0
  !
  no ip classless
  ip route 0.0.0.0 0.0.0.0 166.71.70.1
  ip route 192.192.193.0 255.255.255.0 166.71.70.1
  dialer-list 1 protocol ip permit
  !
  line con 0
  line aux 0
  modem InOut
  modem autoconfigure discovery
  stopbits 1
  rxspeed 38400
  txspeed 38400
  flowcontrol hardware
  line vty 0 4
  no login
  
    !方法3:浮動的靜態(tài)路由作備份。缺省狀態(tài)下,Cisco路由器選擇路由的順序為靜態(tài)路由,動態(tài)路由,缺省路由,這是由各種路由的權值決定的。
    可以手動改變靜態(tài)路由的權值大小,使得其可以在動態(tài)路由之后,該靜態(tài)路由就成為浮動的靜態(tài)路由。假如在動態(tài)路由表中找不到相應有路由時,浮動的靜態(tài)路由才可以被選中,以傳輸數據。一般的,對于X.25線路用浮動的靜態(tài)路由作撥號備份,非凡適合。不過,用浮動的靜態(tài)路由可以用任何線路備份其他任何線路。
  
    注重:用浮動的靜態(tài)路由作X.25線路的備份線路則X.25線路必須起動態(tài)路由,否則無法實現雙向備份。
    浮動靜態(tài)路由配置步驟:
    1、正確配置主干線路,保證其能正常通信
    2、配置主干線路的動態(tài)路由
    3、正確配置備份線路,保證其能正常通信
    4、配置通過備份線路的浮動靜態(tài)路由
    ip route 目地子網地址 子網掩碼 相鄰路由器相鄰端口地址 權值
    其中,權值數值越高其路由優(yōu)先權越低權值范圍在1-255之間
  
  
  實例:
  
  
  
  
  
  
  
  COSCO 2501-above的配置
  Current confignration:
  !
  version 11.2
  no service udp-small-servers
  no service tcp-small-servers
  !
  hostname above
  !
  enable secret 5 $1$O1aq$KxgpIA0Eulqug8SbCm6rd1
  enable password cisco
  !
  username down password 7 095C5E19
  chat-scrip lab ABORT ERROR ABORT BUSY ABORT "NO ANSWER" "" "AT H" OK "ATDT /T" TIMEOUT 60 CONNECT /c

  !
  interface Ethernet0
  ip address 192.192.193.1 255.255.255.0
  !
  interface Serial0
  iu address 192.192.192.1 255.255.255.0
  bandwidth 64
  clockrate 64000
  !
  interface Scrial1
  no ip address
  shutdown
  interface Asyncl
  ip address 166.71.70.1 255.255.255.0
  encapsulation ppp
  async dynamic address
  async dynamic routing
  async mode dedicated
  dialer in-band
  dialer ip 166.71.70.2 name down modem-script lab broadcast 3631
  dialer-group 1
  no cdp enable
  ppp authentication chap
  !
  router rip
  network 192.192.192.0
  network 192.192.193.0
  !
  no ip classless
  ip route 0.0.0.0 0.0.0.0 166.71.70.2 150
  ip route 192.192.191.0 255.255.255.0 166.71.70.2 150
  dialer-list 1 protocol ip permit
  !
  line con 0
  line aux 0
  modem InOut
  modem autoconfigure discovery
  stopbits 1
  rxspeed 38400
  txspeed 38400
  flowcontrol hardware
  line vty 0 4
  no login
  !
  end
  
  
  Cisco 2501-down 的配置
  
  Current configuration:
  !
  version 11.2
  no service udp-small-servers
  no service tep-small-servers
  !
  hostname down
  !
  enable secret 5 $1$m8S4$InrkhnJDtCVtSvTpXO8v/0
  enable password cisco
  !
  username above password 7 095C5E19
  chat-script lab ABORT ERROR ABORT BUSY ABORT "NO ANSWER" "" "AT H" OK "ATDT /T" TIMEOUT 60 CONNECT /c
  !
  interface Ethernet0
  ip address 192.192.191.1 255.255.255.0
  !
  interface Serial0
  ip address 192.192.192.3 255.255.255.0
  
  !
  interface Serial1
  no ip address
  shutdown
  !
  interface Asyncl
  ip address 166.71.70.2 255.255.255.0
  encapsulation ppp
  async dynamic address
  async dynamic routing
  async mode dedicated
  dialer in-band
  dialer map ip 166.71.70.1 name above modem-script lab broadcast 3621
  dialer-group 1
  no cdp enable
  ppp authentication chap
  !
  router rip
  network 192.192.192.0
  network 192.192.191.0
  !
  no ip classless
  ip route 0.0.0.0 0.0.0.0 166.71.70.1 150
  ip route 192.192.193.0 255.255.255.0 166.71.70.1 150
  dialer-list 1 protocol ip permit
  !
  line con 0
  line aux 0
  modem InOut
  modem autoconfigure discovery
  stopbits 1
  rxspeed 38400
  txspeed 38400
  flowcontrol hardware
  line vty 0 4
  no login
  !

發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 奉贤区| 西贡区| 长沙县| 赣州市| 莱阳市| 依安县| 利川市| 珠海市| 荣成市| 游戏| 边坝县| 淳安县| 廊坊市| 噶尔县| 丹凤县| 循化| 米泉市| 昌都县| 龙里县| 和平县| 营山县| 锡林浩特市| 靖州| 耒阳市| 印江| 广饶县| 青铜峡市| 托克逊县| 东台市| 贵定县| 清徐县| 鹤岗市| 蓝山县| 叙永县| 岱山县| 方正县| 元谋县| 开平市| 隆化县| 治县。| 宁明县|