1、實驗拓撲
張家港網(wǎng)站制作公司哪家好,找創(chuàng)新互聯(lián)公司!從網(wǎng)頁設(shè)計、網(wǎng)站建設(shè)、微信開發(fā)、APP開發(fā)、響應(yīng)式網(wǎng)站建設(shè)等網(wǎng)站項目制作,到程序開發(fā),運營維護。創(chuàng)新互聯(lián)公司從2013年成立到現(xiàn)在10年的時間,我們擁有了豐富的建站經(jīng)驗和運維經(jīng)驗,來保證我們的工作的順利進行。專注于網(wǎng)站建設(shè)就選創(chuàng)新互聯(lián)公司。
Hot Standby Router Protocol
兩臺路由器之間虛擬出一個網(wǎng)關(guān),一臺為active路由器,另一臺為standby路由器,當active路由器down后,standby路由器10s內(nèi)收到不hello信息,就取代active路由器。
2、基礎(chǔ)配置
R1配置
interface Serial0/0
ip address 12.1.1.1 255.255.255.0
interface Serial0/1
ip address 13.1.1.1 255.255.255.0
interface Serial0/2
ip address 15.1.1.1 255.255.255.0
router ospf 110
router-id 1.1.1.1
log-adjacency-changes
network 12.1.1.0 0.0.0.255 area 0
network 13.1.1.0 0.0.0.255 area 0
network 15.1.1.0 0.0.0.255 area 0
R2配置
interface Serial0/0
ip address 12.1.1.2 255.255.255.0
interface FastEthernet1/0
ip address 100.1.1.2 255.255.255.0
router ospf 110
router-id 2.2.2.2
network 12.1.1.0 0.0.0.255 area 0
network 100.1.1.0 0.0.0.255 area 0
R3配置
interface Serial0/1
ip address 13.1.1.3 255.255.255.0
interface FastEthernet1/0
ip address 100.1.1.3 255.255.255.0
router ospf 110
router-id 3.3.3.3
network 13.1.1.0 0.0.0.255 area 0
network 100.1.1.0 0.0.0.255 area 0
R4配置
no ip routing
interface FastEthernet1/0
ip address 100.1.1.4 255.255.255.0
ip default-gateway 100.1.1.254
R5配置
interface Serial0/2
ip address 15.1.1.5 255.255.255.0
router ospf 110
router-id 5.5.5.5
network 15.1.1.0 0.0.0.255 area 0
3、配置HSRP
R2配置
interface FastEthernet1/0
standby 1 ip 100.1.1.254
standby 1 priority 105
standby 1 preempt
standby 1 track Serial0/0
R3配置
interface FastEthernet1/0
standby 1 ip 100.1.1.254
standby 1 preempt
standby 1 track Serial0/1
3、測試HSRP
由于R2的優(yōu)先級高于R3,所以此時R2位Active路由器,R3位Standby路由器。
虛擬網(wǎng)關(guān)IP對應(yīng)的MAC地址格式為
0000.0c 07.ac 01
OUI HSRP HSRP組
此后無論是R2的f1/0或s0/0關(guān)閉之后,R3都會轉(zhuǎn)為active路由器,當f1/0或s0/0恢復(fù)后,由于配置了搶占,R2重新成為active路由器。
這種情況下,都只有一臺路由器在轉(zhuǎn)發(fā)數(shù)據(jù),為了更好的利用這兩臺路由器,我們可以配置兩組HSRP。一組默認網(wǎng)關(guān)為R2,另一種默認網(wǎng)關(guān)為R3,這樣就可以實現(xiàn)負載均衡的效果了。
新聞標題:82、冗余網(wǎng)關(guān)配置實驗之HSRP
標題URL:http://chinadenli.net/article26/gidijg.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供關(guān)鍵詞優(yōu)化、企業(yè)網(wǎng)站制作、自適應(yīng)網(wǎng)站、品牌網(wǎng)站制作、小程序開發(fā)、網(wǎng)站制作
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)