试验31 IGRP试验



R1配置

r1(config)#int lo0
r1(config-if)#ip add 1.1.1.1 255.255.255.0
r1(config-if)#int s1/2
r1(config-if)#ip add 10.1.1.1 255.255.255.0
r1(config-if)#no sh
r1(config-if)#int lo3
r1(config-if)#int s1/3
r1(config-if)#ip add 10.1.2.1 255.255.255.0
r1(config-if)#no sh

配置路由协议

r1(config)#router igrp 100
r1(config-router)#net 10.1.1.1
r1(config-router)#net 10.1.2.1
r1(config-router)#^Z

R2配置

r2(config)#int lo0
r2(config-if)#ip add 2.2.2.2 255.255.255.0
r2(config-if)#int lo1
r2(config-if)#ip add 172.16.1.2 255.255.255.0
r2(config-if)#int s2/1
r2(config-if)#ip add 10.1.1.2 255.255.255.0
r2(config-if)#no sh
r2(config-if)#exit

配置路由协议

r2(config)#router igrp 100
r2(config-router)#net 10.1.1.2
r2(config-router)#net 172.16.1.2
r2(config-router)#exit

R3配置

r3(config)#int lo0
r3(config-if)#ip add 3.3.3.3 255.255.255.0
r3(config-if)#int lo1
r3(config-if)#ip add 192.168.1.3 255.255.255.0
r3(config-if)#int s3/1
r3(config-if)#ip add 10.1.2.3 255.255.255.0
r3(config-if)#no sh
r3(config-if)#exit

配置路由协议

r3(config)#router igrp 100
r3(config-router)#net 192.168.1.3
r3(config-router)#net 10.1.2.3
r3(config-router)#exit

在R1上看试验现象

r1#sh ip protocols
Routing Protocol is “igrp 100″
Sending updates every 90 seconds, next due in 51 seconds
Invalid after 270 seconds, hold down 280, flushed after 630
Outgoing update filter list for all interfaces is
Incoming update filter list for all interfaces is
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:
10.0.0.0
Routing Information Sources:
Gateway         Distance      Last Update
10.1.1.2             100      00:00:10
10.1.2.3             100      00:00:10
Distance: (default is 100)
r1#debug ip packet detail
IP packet debugging is on (detailed)
r1#clear ip route *
r1#
00:15:31: IP: s=10.1.1.1 (local), d=255.255.255.255 (Serial1/2), len 32, sending broad/multicast, proto=9
00:15:31: IP: s=10.1.2.1 (local), d=255.255.255.255 (Serial1/3), len 32, sending broad/multicast, proto=9
00:15:31: IP: s=10.1.1.2 (Serial1/2), d=10.1.1.1 (Serial1/2), len 46, rcvd 3, proto=9
00:15:31: IP: s=10.1.2.3 (Serial1/3), d=10.1.2.1 (Serial1/3), len 46, rcvd 3, proto=9
00:15:31: IP: s=10.1.1.1 (local), d=255.255.255.255 (Serial1/2), len 60, sending broad/multicast, proto=9
00:15:31: IP: s=10.1.2.1 (local), d=255.255.255.255 (Serial1/3), len 60, sending broad/multicast, proto=9
r1#
00:15:40: IP: s=10.1.1.2 (Serial1/2), d=255.255.255.255, len 46, rcvd 2, proto=9
r1#debug ip igrp events
IGRP event debugging is on
r1#clear ip route *
r1#
00:16:06: IGRP: broadcasting request on Serial1/2
00:16:06: IP: s=10.1.1.1 (local), d=255.255.255.255 (Serial1/2), len 32, sending broad/multicast, proto=9
00:16:06: IGRP: broadcasting request on Serial1/3
00:16:06: IP: s=10.1.2.1 (local), d=255.255.255.255 (Serial1/3), len 32, sending broad/multicast, proto=9
00:16:06: IP: s=10.1.1.2 (Serial1/2), d=10.1.1.1 (Serial1/2), len 46, rcvd 3, proto=9
00:16:06: IP: s=10.1.2.3 (Serial1/3), d=10.1.2.1 (Serial1/3), len 46, rcvd 3, proto=9
00:16:06: IGRP: received update from 10.1.1.2 on Serial1/2
00:16:06: IGRP: Update contains 0 interior, 1 system, and 0 exterior routes.
00:16:06: IGRP: Total routes in update: 1
00:16:06: IGRP: received update from 10.1.2.3 on Serial1/3
00:16:06: IGRP: Update contains 0 interior, 1 system, and 0 exterior routes.
00:16:06: IGRP: Total routes in update: 1
00:16:06: IGRP: edition is now 4
00:16:06: IGRP: sending update to 255.255.255.255 via Serial1/2 (10.1.1.1)
00:16:06: IGRP: Update contains 1 interior, 1 system, and 0 exterior routes.
00:16:06: IGRP: Total routes in update: 2
00:16:06: IP: s=10.1.1.1 (local), d=255.255.255.255 (Serial1/2), len 60, sending broad/multicast, proto=9
00:16:06: IGRP: sending update to 255.255.255.255 via Serial1/3 (10.1.2.1)
00:16:06: IGRP: Update contains 1 interior, 1 system, and 0 exterior routes.
00:16:06: IGRP: Total routes in update: 2
00:16:06: IP: s=10.1.2.1 (local), d=255.255.255.255 (Serial1/3), len 60, sending broad/multicast, proto=9
r1#ua
00:16:13: IP: s=10.1.2.3 (Serial1/3), d=255.255.255.255, len 46, rcvd 2, proto=9
00:16:13: IGRP: received update from 10.1.2.3 on Serial1/3
00:16:13: IGRP: Update contains 0 interior, 1 system, and 0 exterior routes.
00:16:13: IGRP: Total routes in update: 1
IGRP是发送广播255.255.255.255去更新路由信息
r1#debug ip igrp transactions
IGRP protocol debugging is on
r1#clear ip route *
r1#
00:16:31: IGRP: broadcasting request on Serial1/2
00:16:31: IGRP: broadcasting request on Serial1/3
00:16:31: IGRP: received update from 10.1.1.2 on Serial1/2
00:16:31:       network 172.16.0.0, metric 8976 (neighbor 501)
00:16:31: IGRP: received update from 10.1.2.3 on Serial1/3
00:16:31:       network 192.168.1.0, metric 8976 (neighbor 501)
00:16:31: IGRP: edition is now 5
00:16:31: IGRP: sending update to 255.255.255.255 via Serial1/2 (10.1.1.1)
00:16:31:       subnet 10.1.2.0, metric=8476
00:16:31:       network 192.168.1.0, metric=8976
00:16:31: IGRP: sending update to 255.255.255.255 via Serial1/3 (10.1.2.1)
00:16:31:       subnet 10.1.1.0, metric=8476
00:16:31:       network 172.16.0.0, metric=8976
r1#u all

查看路由表

r1#sh ip route
Codes: C �C connected, S �C static, I �C IGRP, R �C RIP, M �C mobile, B �C BGP
D �C EIGRP, EX �C EIGRP external, O �C OSPF, IA �C OSPF inter area
N1 �C OSPF NSSA external type 1, N2 �C OSPF NSSA external type 2
E1 �C OSPF external type 1, E2 �C OSPF external type 2, E �C EGP
i �C IS-IS, L1 �C IS-IS level-1, L2 �C IS-IS level-2, * �C candidate default
U �C per-user static route, o �C ODR
T �C traffic engineered route
Gateway of last resort is not set
1.0.0.0/24 is subnetted, 1 subnets
C       1.1.1.0 is directly connected, Loopback0
I    172.16.0.0/16 [100/8976] via 10.1.1.2, 00:00:16, Serial1/2
10.0.0.0/24 is subnetted, 2 subnets
C       10.1.2.0 is directly connected, Serial1/3
C       10.1.1.0 is directly connected, Serial1/2
I    192.168.1.0/24 [100/8976] via 10.1.2.3, 00:00:16, Serial1/3

你可能感兴趣的:(职场,休闲,实验,IGRP)