Cisco IGRP Route

使用igrp
(config)#router igrp < as> //as可自訂,用在igrp網域
(config-router)#network < ip>
ex:讓192.168.1.0與192.168.100.0使用igrp,並設as為100
(config)#router igrp 100
(config-router)#network 192.168.1.0
(config-router)#network 192.168.100.0
ps:各路由器上的as設相同才可互動

設定igrp平衡幾條路徑負載的能力
(config-router)#maximum-paths < maximum>
maximum值為1-6,通常系統預設為4
各路徑可不同成本

設定igrp的hop count
(config-router)#metric maximum-hops < value>
預設hop count為100

設定igrp metric參數
(config-router)#metric weights < option>

ps:
(config-router)#?
exit   Exit from routing protocol configuration mode
network   Enable routing on an IP network
redistribute   Redistribute information from another routing protocol
default-metric   Set metric of redistributed routes
distribute-list   Filter networks in routing updates
default-information   Control distribution of default information
distance   Control distribution of default information
passive-interface   Suppress routing updates on an interface

…………………

開啟igrp偵錯模式
#debug ip igrp < events|transactions>
transactions是顯示來自鄰近路由器要求新之訊息,並從原始路由器廣播傳送至鄰近的路由器
使用transaction畫面大致如下
IGRP protocol debugging is on
IGRP: sending update to 255.255.255.255 via Ethernet0 (24.17.2.2) – suppressing null update //送出更新
IGRP: received update from 24.17.2.1 on Ethernet0
network 24.17.2.16, metric 273 (neighbor 1)
events是顯示在網路上所執行的igrp路由資訊
使用events畫面大致如下
IGRP event debugging is on
IGRP: sending update to 255.255.255.255 via Ethernet0 (24.17.2.2)
IGRP: Update contains 0 interior, 0 system, and 0 exterior routes.
IGRP: Total routes in update: 0 – suppressing null update
IGRP: received update from 24.17.2.1 on Ethernet0
IGRP: Update contains 0 interior, 1 system, and 0 exterior routes.
IGRP: Total routes in update: 1

顯示igrp相關資訊
#show ip protocols
畫面大致如下
Routing Protocol is “igrp 100” //目前使用igrp,as為100
Sending updates every 90 seconds, next due in 27 seconds //每90秒更新
Invalid after 270 seconds, hold down 280, flushed after 630
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Default networks flagged in outgoing updates
Default networks accepted from incoming updates
IGRP metric weight K1=1, K2=0, K3=1, K4=0, K5=0
IGRP maximum hopcount 100
IGRP maximum metric variance 1
Redistributing: igrp 100
Routing for Networks:
 192.168.1.0
 192.168.100.0
Routing Information Sources:
Distance: (default is 100)  //ad為100

顯示igrp路由表
#show ip route
畫面大致如下
…省略
C 192.168.100.0 is directly connected, Ethernet0
C 192.168.1.0 is directly connected, Ethernet1
I 192.168.2.0 [100/273] via 192.168.100.1, 00:04:44, Ethernet0