hsrp的簡單應用

實驗拓撲:
hsrp的簡單應用
實驗需求:pc0.pc1和pc2互通,單點鏈路故障不影響通訊
實驗步驟及思路:
使用Cisco 私有的協議hsrp 來實現

  1. 配置pc機ip地址,規劃各個網段ip
  2. 在路由上配置網關以及hsrp
    路由上配置:
    Router1 :
    Router(config-if)#ip add 192.168.10.254 255.255.255.0
    Router(config-if)#standby 1 ip 192.168.10.250(虛擬ip地址)
    Router(config-if)#standby 1 preempt(開啓主路由器比較優先,選出主路由器)
    會出現這個提示:
    hsrp的簡單應用
    Active表示主路由器,standby表示備份路由器
    Router(config)#rou rip
    Router(config-router)#version 2
    Router(config-router)#no auto-summary
    Router(config-router)#network 192.168.10.0
    Router(config-router)#network 192.168.20.0
    Router2 :
    Router(config-if)#ip add 192.168.10.253 255.255.255.0
    Router(config-if)#standby 1 ip 192.168.10.250
    Router(config-if)#standby 1 preempt
    Router(config-if)#router rip
    Router(config-router)#version 2
    Router(config-router)#no auto
    Router(config-router)#net 192.168.10.0
    Router(config-router)#net 192.168.30.0
    驗證,測試,保存
    Router1 :Router#show standby brief
    hsrp的簡單應用
    Router2 : Router#show standby brief
    hsrp的簡單應用
    可以看出router1是主路由器
    Ping pc 2 : ping 192.168.40.1
    hsrp的簡單應用
    斷開router1的端口gi0/0,再去ping
    hsrp的簡單應用
    斷開端口之後還是可以互通,說明備份成功
    實驗問題及總結
    **1. 隨着企業中網絡規模越來越大,爲了防止單點鏈路故障,鏈路的備份是必須的,同時也要防止環路
    1. 拓撲中路由的優先級不相同,可以設置相同,這樣就在備份的同時也是實現了負載均衡,有利於提高設備利用率**
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章