CCIE試驗備考之冗餘備份IRDP)

冗餘備份特性
能夠提供冗餘備份的機制:
1. IRDP,ICMP Router Discovery Protocol(ICMP路由發現協議)
2. HSRP,Hot Standby Router Potocol(熱備份路由協議)
3. VRRP,Virtual Router Redundancy Potocol(虛擬路由冗餘協議)
4. GLBP,Gateway Load Balancing Protocol(網關負載協議)
5. Cisco-SLB,Cisco Server Load Balancing
 
第一部分 IRDP
在ICMP路由器發現協議IRDP中,支持IRDP的主機會動態地發現用於訪問非本地網絡的路由器。IRDP支持主機發現路由器。路由器發現數據包會在主機(IRDP服務器)和cisco路由器(IRDP客戶端)之間交換。軟件還會竊聽RIP和IGRP路由更新,並從更新中推斷出路由器的位置,而主機並不會真正的檢查和存儲路由設備發出的完整的路由表,只是記錄下來哪些系統在發送這樣的數據而已。
在使用一組cisco路由器的LAN網段中,可以任意組合配置RIP、IGRP和IRDP3種協議。Cisco推薦儘可能地使用IRDP,以爲他支持設定每臺路由器的優先級和超時時間。
通過發現的每臺設備都會成爲候選的缺省網關,然後對候選表進行掃描,並在下列3種情況下選擇一個新的優先級最高的路由器:
1) 當發現了比當前缺省路由器優先級最高的路由器時(每5分鐘掃描一次候選路由表)
2) 認爲當前路由器出現了故障時
3) 由於大量的重傳,某個TCP連接操時,IRDP會清空ARP緩存和ICMP重定向緩存的內容,並在查找到達目的端的路由時使用新的缺省路由器
運行IRDP時,主機會加入“全部設備”IP組播組(224.0.0.1)並開始監聽IRDP客戶端(路由器)發送該組的路由器通告。爲了減少接口初始化的延遲時,主機也可以發送路由器請求消息到”全部路由器”IP組播地址(224.0.0.2),路由器會發出“路由器通告”進行響應,保證了主機能立即發現缺省網關。
通告每隔7-10分鐘發送一次,而默認的生命週期爲30分鐘。IRDP有兩個獨立的時間間隔:最小的和最大的通告間隔。所有主動提供的通告的發送間隔都在這兩個值指定的範圍之內。
配置方法:
第一步:接口模式下使能IRDP
        ip irdp
第二步:指定優先級別
        ip irdp preference 優先級別
        缺省的優先級別爲0,值越大優先級別越高
其他配置:
A) 通常情況下,對通告是進行廣播,要讓IRDP使用到224.0.0.1的組播來代替廣播,可以使用命令:接口模式下
    ip irdp multicast
B) 修改生命週期holdtime
    ip irdp holdtime 秒數
    秒數爲4-9000,默認爲1800秒,30分鐘
C) 修改最大通告時間
     ip irdp maxadvertinterval 秒數
     秒數爲4-1800秒,默認爲600秒
D) 修改最小通告時間
     ip irdp minadvertinterval 秒數
     秒數爲3-1800秒,默認爲450秒

案例:
R1#config termi
R1(config)#int e0
R1(config-if)#ip address 192.168.1.1 255.255.255.0
R1(config-if)#ip irdp preference 2147483647
R1(config-if)#no shut
R1#show ip irdp e0
Ethernet0 has router discovery enabled
Advertisements will occur between every 450 and 600 seconds.
Advertisements are sent with broadcasts.
Advertisements are valid for 1800 seconds.
Default preference will be 2147483647.
--------------------------------------------------------------------
R2(config)#inter e0
R2(config-if)#ip addr 192.168.1.2 255.255.255.0
R2(config-if)#ip irdp preference -2147483647
R2(config-if)#no shut
r2#show ip irdp e0
Ethernet0 has router discovery enabled
Advertisements will occur between every 450 and 600 seconds.
Advertisements are sent with broadcasts.
Advertisements are valid for 1800 seconds.
Default preference will be -2147483647.
---------------------------------------------------------------------
我們應用R3作爲一個dhcp服務器,配置兩個默認網關
r3(config)#ip dhcp pool cisco
r3(dhcp-config)#network 192.168.1.0 255.255.255.0
r3(dhcp-config)#default-router 192.l168.1.1 192.168.1.2
---------------------------------------------------------------------
路由器4作爲客戶端進行檢測
r4(config)#interface e0
r4(config-if)#ip address dhcp
---------------------------------------------------------------------
我們模擬將r1停止
r4檢測
*Mar  1 09:46:43.421: ICMP: rdp advert rcvd type 9, code 0, from 192.168.1.2
*Mar  1 09:47:01.421: ICMP: rdp advert rcvd type 9, code 0, from 192.168.1.2
*Mar  1 09:47:15.421: ICMP: rdp advert rcvd type 9, code 0, from 192.168.1.2
*Mar  1 09:47:34.421: ICMP: rdp advert rcvd type 9, code 0, from 192.168.1.2
r2上
*Mar  1 05:03:58.378: ICMP: src=192.168.1.2, dst=255.255.255.255, irdp advertisement sent
*Mar  1 05:03:58.382: IRDP: entries=1, size=2, lifetime=30, bytes=36
*Mar  1 05:03:58.382: IRDP: address=192.168.1.2 preference=0
案例:
CCIE-LAB(V142)
題目要求:
在VLANC上的主機不想配置第二個網關,不允許使用HSRP,使得VLANC的主機優選R6的E0端口地址爲首選網關,其次選R5的Fa0/0端口地址爲最後網關。
VLAN C   R5-F0/0    R6-EO
配置:
R6
   configure terminal
   interface e0
ip irdp
ip irdp preference 2147483647
R5
   configure terminal
   interface f0/0
ip irdp
ip irdp preference -2147483647
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章