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