SlideShare a Scribd company logo
1 of 27
第 8 讲   RIP 和 IGRP
[object Object],[object Object],[object Object],RIP  概 述 19.2 kbps T1 T1 T1
[object Object],[object Object],[object Object],IP 路由的配置任务 Network 160.89.0.0 Network 172.30.0.0 IGRP, RIP Network 172.16.0.0 RIP RIP IGRP
[object Object],动态路由配置 Router(config)#router  protocol  [ keyword ]   ,[object Object],Router(config-router)#network  network-number
[object Object],RIP  配  置 Router(config)#router rip Router(config-router)#network  network-number ,[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object]
RIP  配置举例 2.3.0.0 2.3.0.0 172.16.1.1 S2 E0 S3 192.168.1.1 10.1.1.1 10.2.2.2 10.1.1.2 S2 S3 10.2.2.3 172.16.1.0 A B C 192.168.1.0  E0 router rip network 172.16.0.0 network 10.0.0.0 router rip network 10.0.0.0 router rip network 192.168.1.0 network 10.0.0.0
查看 RIP 信息 RouterA#sh ip protocols Routing Protocol is "rip" Sending updates every 30 seconds, next due in 0 seconds Invalid after 180 seconds, hold down 180, flushed after 240 Outgoing update filter list for all interfaces is Incoming update filter list for all interfaces is Redistributing: rip Default version control: send version 1, receive any version Interface  Send  Recv  Key-chain Ethernet0  1  1 2 Serial2  1  1 2 Routing for Networks: 10.0.0.0 172.16.0.0 Routing Information Sources: Gateway  Distance  Last Update 10.1.1.2  120  00:00:10 Distance: (default is 120) 172.16.1.1 S2 E0 S3 192.168.1.1 10.1.1.1 10.2.2.2 10.1.1.2 S2 S3 10.2.2.3 172.16.1.0 A B C 192.168.1.0  E0
查看路由表 RouterA#sh ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default U - per-user static route, o - ODR T - traffic engineered route Gateway of last resort is not set 172.16.0.0/24 is subnetted, 1 subnets C  172.16.1.0 is directly connected, Ethernet0 10.0.0.0/24 is subnetted, 2 subnets R  10.2.2.0 [120/1] via 10.1.1.2, 00:00:07, Serial2 C  10.1.1.0 is directly connected, Serial2 R  192.168.1.0/24 [120/2] via 10.1.1.2, 00:00:07, Serial2 172.16.1.1 S2 E0 S3 192.168.1.1 10.1.1.1 10.2.2.2 10.1.1.2 S2 S3 10.2.2.3 172.16.1.0 A B C 192.168.1.0  E0
debug ip rip   命令 RouterA#debug ip rip RIP protocol debugging is on RouterA# 00:06:24: RIP: received v1 update from 10.1.1.2 on Serial2 00:06:24:  10.2.2.0 in 1 hops 00:06:24:  192.168.1.0 in 2 hops 00:06:33: RIP: sending v1 update to 255.255.255.255 via Ethernet0 (172.16.1.1) 00:06:34:  network 10.0.0.0, metric 1 00:06:34:  network 192.168.1.0, metric 3 00:06:34: RIP: sending v1 update to 255.255.255.255 via Serial2 (10.1.1.1) 00:06:34:  network 172.16.0.0, metric 1 172.16.1.1 S2 E0 S3 192.168.1.1 10.1.1.1 10.2.2.2 10.1.1.2 S2 S3 10.2.2.3 172.16.1.0 A B C 192.168.1.0  E0
[object Object],[object Object],[object Object],IGRP  介  绍 IGRP
[object Object],[object Object],[object Object],[object Object],[object Object],IGRP  路径选择 19.2 kbps 19.2 kbps Source Destination
[object Object],[object Object],[object Object],IGRP  的不平衡路径 New Route Initial  Route Source Destination
配  置  IGRP Router(config-router)#network  network-number ,[object Object],Router(config)#router igrp  autonomous-system ,[object Object]
配置  IGRP ( 续 ) Router(config-router)#traffic-share  { balanced | min } ,[object Object],Router(config-router)#variance  multiplier ,[object Object]
IGRP  配置举例 router igrp 100 network 172.16.0.0 network 10.0.0.0 router igrp 100 network 10.0.0.0 router igrp 100 network 192.168.1.0 network 10.0.0.0 Autonomous System = 100 172.16.1.1 S2 E0 S3 192.168.1.1 10.1.1.1 10.2.2.2 10.1.1.2 S2 S3 10.2.2.3 172.16.1.0 A B C 192.168.1.0  E0
查看  IGRP  信息 RouterA#sh ip protocols Routing Protocol is "igrp 100" Sending updates every 90 seconds, next due in 21 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 172.16.0.0 Routing Information Sources: Gateway  Distance  Last Update 10.1.1.2  100  00:01:01 Distance: (default is 100) 172.16.1.1 S2 E0 S3 192.168.1.1 10.1.1.1 10.2.2.2 10.1.1.2 S2 S3 10.2.2.3 172.16.1.0 A B C 192.168.1.0  E0
查看 IP 路由表 RouterA#sh ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default U - per-user static route, o - ODR T - traffic engineered route Gateway of last resort is not set 172.16.0.0/24 is subnetted, 1 subnets C  172.16.1.0 is directly connected, Ethernet0 10.0.0.0/24 is subnetted, 2 subnets I  10.2.2.0 [100/90956] via 10.1.1.2, 00:00:23, Serial2 C  10.1.1.0 is directly connected, Serial2 I  192.168.1.0/24 [100/91056] via 10.1.1.2, 00:00:23, Serial2 172.16.1.1 S2 E0 S3 192.168.1.1 10.1.1.1 10.2.2.2 10.1.1.2 S2 S3 10.2.2.3 172.16.1.0 A B C 192.168.1.0  E0
debug ip igrp transaction   命令 RouterA#debug ip igrp transactions IGRP protocol debugging is on RouterA# 00:21:06: IGRP: sending update to 255.255.255.255 via Ethernet0 (172.16.1.1) 00:21:06:  network 10.0.0.0, metric=88956 00:21:06:  network 192.168.1.0, metric=91056 00:21:07: IGRP: sending update to 255.255.255.255 via Serial2 (10.1.1.1) 00:21:07:  network 172.16.0.0, metric=1100 00:21:16: IGRP: received update from 10.1.1.2 on Serial2 00:21:16:  subnet 10.2.2.0, metric 90956 (neighbor 88956) 00:21:16:  network 192.168.1.0, metric 91056 (neighbor 89056) 172.16.1.1 S2 E0 S3 192.168.1.1 10.1.1.1 10.2.2.2 10.1.1.2 S2 S3 10.2.2.3 172.16.1.0 A B C 192.168.1.0  E0
debug ip igrp events   命令 RouterA#debug ip igrp events IGRP event debugging is on RouterA# 00:23:44: IGRP: sending update to 255.255.255.255 via Ethernet0 (172.16.1.1) 00:23:44: IGRP: Update contains 0 interior, 2 system, and 0 exterior routes. 00:23:44: IGRP: Total routes in update: 2 00:23:44: IGRP: sending update to 255.255.255.255 via Serial2 (10.1.1.1) 00:23:45: IGRP: Update contains 0 interior, 1 system, and 0 exterior routes. 00:23:45: IGRP: Total routes in update: 1 00:23:48: IGRP: received update from 10.1.1.2 on Serial2 00:23:48: IGRP: Update contains 1 interior, 1 system, and 0 exterior routes. 00:23:48: IGRP: Total routes in update: 2 172.16.1.1 S2 E0 S3 192.168.1.1 10.1.1.1 10.2.2.2 10.1.1.2 S2 S3 10.2.2.3 172.16.1.0 A B C 192.168.1.0  E0
路由信息更新举例 RouterA# debug ip igrp trans 00:31:15: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0, changed state to down 00:31:15: IGRP: edition is now 3 00:31:15: IGRP: sending update to 255.255.255.255 via Serial2 (10.1.1.1) 00:31:15:  network 172.16.0.0, metric=4294967295 00:31:16: IGRP: Update contains 0 interior, 1 system, and 0 exterior routes. 00:31:16: IGRP: Total routes in update: 1 00:31:16: IGRP: broadcasting request on Serial2 00:31:16: IGRP: received update from 10.1.1.2 on Serial2 00:31:16:  subnet 10.2.2.0, metric 90956 (neighbor 88956) 00:31:16:  network 172.16.0.0, metric 4294967295 (inaccessible) 00:31:16:  network 192.168.1.0, metric 91056 (neighbor 89056) 00:31:16: IGRP: Update contains 1 interior, 2 system, and 0 exterior routes. 00:31:16: IGRP: Total routes in update: 3 172.16.1.1 S2 E0 S3 192.168.1.1 10.1.1.1 10.2.2.2 10.1.1.2 S2 S3 10.2.2.3 172.16.1.0 A B C 192.168.1.0  E0 X
路由信息更新举例 RouterB#debug ip igrp trans IGRP protocol debugging is on RouterB# 1d19h: IGRP: sending update to 255.255.255.255 via Serial2 (10.1.1.2) 1d19h:  subnet 10.2.2.0, metric=88956 1d19h:  network 192.168.1.0, metric=89056 1d19h: IGRP: sending update to 255.255.255.255 via Serial3 (10.2.2.2) 1d19h:  subnet 10.1.1.0, metric=88956 1d19h:  network 172.16.0.0, metric=89056 1d19h: IGRP: received update from 10.1.1.1 on Serial2 1d19h:  network 172.16.0.0, metric 4294967295 (inaccessible) 1d19h: IGRP: edition is now 10 1d19h: IGRP: sending update to 255.255.255.255 via Serial2 (10.1.1.2) 1d19h:  subnet 10.2.2.0, metric=88956 1d19h:  network 172.16.0.0, metric=4294967295 1d19h:  network 192.168.1.0, metric=89056 1d19h: IGRP: sending update to 255.255.255.255 via Serial3 (10.2.2.2) 1d19h:  subnet 10.1.1.0, metric=88956 1d19h:  network 172.16.0.0, metric=4294967295 172.16.1.1 S2 E0 S3 192.168.1.1 10.1.1.1 10.2.2.2 10.1.1.2 S2 S3 10.2.2.3 172.16.1.0 A B C 192.168.1.0  E0
路由信息更新举例 RouterB#sh ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default U - per-user static route, o - ODR T - traffic engineered route Gateway of last resort is not set I  172.16.0.0/16 is possibly down, routing via 10.1.1.1, Serial2 10.0.0.0/24 is subnetted, 2 subnets C  10.1.1.0 is directly connected, Serial2 C  10.2.2.0 is directly connected, Serial3 I  192.168.1.0/24 [100/89056] via 10.2.2.3, 00:00:14, Serial3 RouterB#ping 172.16.1.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 172.16.1.1, timeout is 2 seconds: ..... Success rate is 0 percent (0/5) RouterB# 172.16.1.1 S2 E0 S3 192.168.1.1 10.1.1.1 10.2.2.2 10.1.1.2 S2 S3 10.2.2.3 172.16.1.0 A B C 192.168.1.0  E0 X
路由信息更新举例 172.16.1.1 S2 E0 S3 192.168.1.1 10.1.1.1 10.2.2.2 10.1.1.2 S2 S3 10.2.2.3 172.16.1.0 A B C 192.168.1.0  E0 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],ip classless   命令 Router(config)#ip classless S0 Default route 172.16.0.0 E0 10.1.0.0 Network Protocol Destination Network C C RIP 10.1.0.0  10.2.0.0 172.16.0.0 via 0.0.0.0 Exit Interface E0 S0 S0 E0 10.2.0.0 To get to 10.7.1.1:
本章总结 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
问题回顾 ,[object Object],[object Object]

More Related Content

What's hot (20)

Eigrp authentication
Eigrp authenticationEigrp authentication
Eigrp authentication
 
Eigrp
EigrpEigrp
Eigrp
 
Ccna 2 chapter 11 v4.0 answers 2011
Ccna 2 chapter 11 v4.0 answers 2011Ccna 2 chapter 11 v4.0 answers 2011
Ccna 2 chapter 11 v4.0 answers 2011
 
Icnd210 s04l03
Icnd210 s04l03Icnd210 s04l03
Icnd210 s04l03
 
Route Redistribution
Route RedistributionRoute Redistribution
Route Redistribution
 
Icnd210 s06l02
Icnd210 s06l02Icnd210 s06l02
Icnd210 s06l02
 
Icnd210 s04l01
Icnd210 s04l01Icnd210 s04l01
Icnd210 s04l01
 
BGP Next-hop-self
BGP Next-hop-selfBGP Next-hop-self
BGP Next-hop-self
 
Open Shortest Path First
Open Shortest Path FirstOpen Shortest Path First
Open Shortest Path First
 
HSRP (hot standby router protocol)
HSRP (hot standby router protocol)HSRP (hot standby router protocol)
HSRP (hot standby router protocol)
 
CCNA Icnd110 s05l03
CCNA Icnd110 s05l03CCNA Icnd110 s05l03
CCNA Icnd110 s05l03
 
OSPF
OSPFOSPF
OSPF
 
CCNAS :Multi Area OSPF
CCNAS :Multi Area OSPFCCNAS :Multi Area OSPF
CCNAS :Multi Area OSPF
 
Vrrp
VrrpVrrp
Vrrp
 
Icnd210 s08l03
Icnd210 s08l03Icnd210 s08l03
Icnd210 s08l03
 
Migrating from OSPF to IS-IS by Philip Smith
Migrating from OSPF to IS-IS by Philip SmithMigrating from OSPF to IS-IS by Philip Smith
Migrating from OSPF to IS-IS by Philip Smith
 
Icnd210 s03l03
Icnd210 s03l03Icnd210 s03l03
Icnd210 s03l03
 
CCIE Lab - IGP Routing
CCIE Lab -  IGP Routing  CCIE Lab -  IGP Routing
CCIE Lab - IGP Routing
 
INTRODUCTION TO IOS AND CISCO ROUTERS
INTRODUCTION TO IOS AND CISCO ROUTERSINTRODUCTION TO IOS AND CISCO ROUTERS
INTRODUCTION TO IOS AND CISCO ROUTERS
 
Ospf
OspfOspf
Ospf
 

Similar to 第8讲 Rip和Igrp

Lab routing protocols eigrp
Lab routing protocols eigrpLab routing protocols eigrp
Lab routing protocols eigrpzafar85
 
Dynamic routing EIGRP
Dynamic routing EIGRPDynamic routing EIGRP
Dynamic routing EIGRPKishore Kumar
 
Chapter6ccna
Chapter6ccnaChapter6ccna
Chapter6ccnarobertoxe
 
Cisco Router EIGRP Config
Cisco Router EIGRP ConfigCisco Router EIGRP Config
Cisco Router EIGRP ConfigKadir CIKIS
 
How to configure Default Routing
How to configure Default RoutingHow to configure Default Routing
How to configure Default Routingtcpipguru
 
Chapter 2-IP Routing.pdf
Chapter 2-IP Routing.pdfChapter 2-IP Routing.pdf
Chapter 2-IP Routing.pdfBuntha Chhay
 
Routing Information Protocol (RIP)
Routing Information Protocol (RIP)Routing Information Protocol (RIP)
Routing Information Protocol (RIP)Tharindu Sankalpa
 
Rip version1 configuration on Cisco router
Rip version1 configuration on Cisco routerRip version1 configuration on Cisco router
Rip version1 configuration on Cisco routertcpipguru
 
Eigrp on a cisco asa firewall configuration
Eigrp on a cisco asa firewall configurationEigrp on a cisco asa firewall configuration
Eigrp on a cisco asa firewall configuration3Anetwork com
 
Cisco CCNA GRE Tunnel Configuration
Cisco CCNA GRE Tunnel ConfigurationCisco CCNA GRE Tunnel Configuration
Cisco CCNA GRE Tunnel ConfigurationHamed Moghaddam
 
How to configure Rip version2 on a Cisco router
How to configure Rip version2 on a Cisco routerHow to configure Rip version2 on a Cisco router
How to configure Rip version2 on a Cisco routertcpipguru
 
Dynamic Routing IGRP
Dynamic Routing IGRPDynamic Routing IGRP
Dynamic Routing IGRPKishore Kumar
 

Similar to 第8讲 Rip和Igrp (20)

Lab routing protocols eigrp
Lab routing protocols eigrpLab routing protocols eigrp
Lab routing protocols eigrp
 
Dynamic routing EIGRP
Dynamic routing EIGRPDynamic routing EIGRP
Dynamic routing EIGRP
 
Chapter6ccna
Chapter6ccnaChapter6ccna
Chapter6ccna
 
Chapter6ccna
Chapter6ccnaChapter6ccna
Chapter6ccna
 
Cisco Router EIGRP Config
Cisco Router EIGRP ConfigCisco Router EIGRP Config
Cisco Router EIGRP Config
 
How to configure Default Routing
How to configure Default RoutingHow to configure Default Routing
How to configure Default Routing
 
OSPF 3
OSPF 3OSPF 3
OSPF 3
 
OSPF 3
OSPF 3OSPF 3
OSPF 3
 
Chapter 2-IP Routing.pdf
Chapter 2-IP Routing.pdfChapter 2-IP Routing.pdf
Chapter 2-IP Routing.pdf
 
EIGRP CCNA
EIGRP CCNAEIGRP CCNA
EIGRP CCNA
 
Routing Information Protocol (RIP)
Routing Information Protocol (RIP)Routing Information Protocol (RIP)
Routing Information Protocol (RIP)
 
Rip version1 configuration on Cisco router
Rip version1 configuration on Cisco routerRip version1 configuration on Cisco router
Rip version1 configuration on Cisco router
 
Eigrp on a cisco asa firewall configuration
Eigrp on a cisco asa firewall configurationEigrp on a cisco asa firewall configuration
Eigrp on a cisco asa firewall configuration
 
Cisco CCNA GRE Tunnel Configuration
Cisco CCNA GRE Tunnel ConfigurationCisco CCNA GRE Tunnel Configuration
Cisco CCNA GRE Tunnel Configuration
 
How to configure Rip version2 on a Cisco router
How to configure Rip version2 on a Cisco routerHow to configure Rip version2 on a Cisco router
How to configure Rip version2 on a Cisco router
 
Dynamic Routing IGRP
Dynamic Routing IGRPDynamic Routing IGRP
Dynamic Routing IGRP
 
Static Routing
Static RoutingStatic Routing
Static Routing
 
Chapter6ccna
Chapter6ccnaChapter6ccna
Chapter6ccna
 
Chapter6ccna
Chapter6ccnaChapter6ccna
Chapter6ccna
 
acit mumbai - ospf rouitng
acit mumbai - ospf rouitng acit mumbai - ospf rouitng
acit mumbai - ospf rouitng
 

More from F.l. Yu

第8章 账户的分类
第8章 账户的分类第8章 账户的分类
第8章 账户的分类F.l. Yu
 
第一章 总论 完
第一章 总论  完第一章 总论  完
第一章 总论 完F.l. Yu
 
第四章 工业企业主要经济业务的核算
第四章 工业企业主要经济业务的核算第四章 工业企业主要经济业务的核算
第四章 工业企业主要经济业务的核算F.l. Yu
 
第三章 复式记账 完
第三章 复式记账  完第三章 复式记账  完
第三章 复式记账 完F.l. Yu
 
第二章 会计科目与账户 完
第二章  会计科目与账户  完第二章  会计科目与账户  完
第二章 会计科目与账户 完F.l. Yu
 
Sect14 2
Sect14 2Sect14 2
Sect14 2F.l. Yu
 
Sect14 1
Sect14 1Sect14 1
Sect14 1F.l. Yu
 
Sect01 1
Sect01 1Sect01 1
Sect01 1F.l. Yu
 
第3讲 Tcpip协议栈
第3讲 Tcpip协议栈第3讲 Tcpip协议栈
第3讲 Tcpip协议栈F.l. Yu
 
第19讲 Isdn
第19讲 Isdn第19讲 Isdn
第19讲 IsdnF.l. Yu
 
第20讲 帧中继
第20讲 帧中继第20讲 帧中继
第20讲 帧中继F.l. Yu
 
第9讲 Eigrp
第9讲 Eigrp第9讲 Eigrp
第9讲 EigrpF.l. Yu
 
第18讲 Hdlc和Ppp
第18讲 Hdlc和Ppp第18讲 Hdlc和Ppp
第18讲 Hdlc和PppF.l. Yu
 
第17讲 广域网基础
第17讲 广域网基础第17讲 广域网基础
第17讲 广域网基础F.l. Yu
 
第16讲 Vlan和Vtp
第16讲 Vlan和Vtp第16讲 Vlan和Vtp
第16讲 Vlan和VtpF.l. Yu
 
第14讲 交换机基本操作
第14讲 交换机基本操作第14讲 交换机基本操作
第14讲 交换机基本操作F.l. Yu
 
第15讲 Stp
第15讲 Stp第15讲 Stp
第15讲 StpF.l. Yu
 
第12讲 Acl
第12讲 Acl第12讲 Acl
第12讲 AclF.l. Yu
 
第11讲 管理Cisco互联网络
第11讲 管理Cisco互联网络第11讲 管理Cisco互联网络
第11讲 管理Cisco互联网络F.l. Yu
 
第6讲 操作与配置Cisco Ios
第6讲 操作与配置Cisco Ios第6讲 操作与配置Cisco Ios
第6讲 操作与配置Cisco IosF.l. Yu
 

More from F.l. Yu (20)

第8章 账户的分类
第8章 账户的分类第8章 账户的分类
第8章 账户的分类
 
第一章 总论 完
第一章 总论  完第一章 总论  完
第一章 总论 完
 
第四章 工业企业主要经济业务的核算
第四章 工业企业主要经济业务的核算第四章 工业企业主要经济业务的核算
第四章 工业企业主要经济业务的核算
 
第三章 复式记账 完
第三章 复式记账  完第三章 复式记账  完
第三章 复式记账 完
 
第二章 会计科目与账户 完
第二章  会计科目与账户  完第二章  会计科目与账户  完
第二章 会计科目与账户 完
 
Sect14 2
Sect14 2Sect14 2
Sect14 2
 
Sect14 1
Sect14 1Sect14 1
Sect14 1
 
Sect01 1
Sect01 1Sect01 1
Sect01 1
 
第3讲 Tcpip协议栈
第3讲 Tcpip协议栈第3讲 Tcpip协议栈
第3讲 Tcpip协议栈
 
第19讲 Isdn
第19讲 Isdn第19讲 Isdn
第19讲 Isdn
 
第20讲 帧中继
第20讲 帧中继第20讲 帧中继
第20讲 帧中继
 
第9讲 Eigrp
第9讲 Eigrp第9讲 Eigrp
第9讲 Eigrp
 
第18讲 Hdlc和Ppp
第18讲 Hdlc和Ppp第18讲 Hdlc和Ppp
第18讲 Hdlc和Ppp
 
第17讲 广域网基础
第17讲 广域网基础第17讲 广域网基础
第17讲 广域网基础
 
第16讲 Vlan和Vtp
第16讲 Vlan和Vtp第16讲 Vlan和Vtp
第16讲 Vlan和Vtp
 
第14讲 交换机基本操作
第14讲 交换机基本操作第14讲 交换机基本操作
第14讲 交换机基本操作
 
第15讲 Stp
第15讲 Stp第15讲 Stp
第15讲 Stp
 
第12讲 Acl
第12讲 Acl第12讲 Acl
第12讲 Acl
 
第11讲 管理Cisco互联网络
第11讲 管理Cisco互联网络第11讲 管理Cisco互联网络
第11讲 管理Cisco互联网络
 
第6讲 操作与配置Cisco Ios
第6讲 操作与配置Cisco Ios第6讲 操作与配置Cisco Ios
第6讲 操作与配置Cisco Ios
 

第8讲 Rip和Igrp

  • 1. 第 8 讲 RIP 和 IGRP
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7. RIP 配置举例 2.3.0.0 2.3.0.0 172.16.1.1 S2 E0 S3 192.168.1.1 10.1.1.1 10.2.2.2 10.1.1.2 S2 S3 10.2.2.3 172.16.1.0 A B C 192.168.1.0 E0 router rip network 172.16.0.0 network 10.0.0.0 router rip network 10.0.0.0 router rip network 192.168.1.0 network 10.0.0.0
  • 8. 查看 RIP 信息 RouterA#sh ip protocols Routing Protocol is "rip" Sending updates every 30 seconds, next due in 0 seconds Invalid after 180 seconds, hold down 180, flushed after 240 Outgoing update filter list for all interfaces is Incoming update filter list for all interfaces is Redistributing: rip Default version control: send version 1, receive any version Interface Send Recv Key-chain Ethernet0 1 1 2 Serial2 1 1 2 Routing for Networks: 10.0.0.0 172.16.0.0 Routing Information Sources: Gateway Distance Last Update 10.1.1.2 120 00:00:10 Distance: (default is 120) 172.16.1.1 S2 E0 S3 192.168.1.1 10.1.1.1 10.2.2.2 10.1.1.2 S2 S3 10.2.2.3 172.16.1.0 A B C 192.168.1.0 E0
  • 9. 查看路由表 RouterA#sh ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default U - per-user static route, o - ODR T - traffic engineered route Gateway of last resort is not set 172.16.0.0/24 is subnetted, 1 subnets C 172.16.1.0 is directly connected, Ethernet0 10.0.0.0/24 is subnetted, 2 subnets R 10.2.2.0 [120/1] via 10.1.1.2, 00:00:07, Serial2 C 10.1.1.0 is directly connected, Serial2 R 192.168.1.0/24 [120/2] via 10.1.1.2, 00:00:07, Serial2 172.16.1.1 S2 E0 S3 192.168.1.1 10.1.1.1 10.2.2.2 10.1.1.2 S2 S3 10.2.2.3 172.16.1.0 A B C 192.168.1.0 E0
  • 10. debug ip rip 命令 RouterA#debug ip rip RIP protocol debugging is on RouterA# 00:06:24: RIP: received v1 update from 10.1.1.2 on Serial2 00:06:24: 10.2.2.0 in 1 hops 00:06:24: 192.168.1.0 in 2 hops 00:06:33: RIP: sending v1 update to 255.255.255.255 via Ethernet0 (172.16.1.1) 00:06:34: network 10.0.0.0, metric 1 00:06:34: network 192.168.1.0, metric 3 00:06:34: RIP: sending v1 update to 255.255.255.255 via Serial2 (10.1.1.1) 00:06:34: network 172.16.0.0, metric 1 172.16.1.1 S2 E0 S3 192.168.1.1 10.1.1.1 10.2.2.2 10.1.1.2 S2 S3 10.2.2.3 172.16.1.0 A B C 192.168.1.0 E0
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16. IGRP 配置举例 router igrp 100 network 172.16.0.0 network 10.0.0.0 router igrp 100 network 10.0.0.0 router igrp 100 network 192.168.1.0 network 10.0.0.0 Autonomous System = 100 172.16.1.1 S2 E0 S3 192.168.1.1 10.1.1.1 10.2.2.2 10.1.1.2 S2 S3 10.2.2.3 172.16.1.0 A B C 192.168.1.0 E0
  • 17. 查看 IGRP 信息 RouterA#sh ip protocols Routing Protocol is "igrp 100" Sending updates every 90 seconds, next due in 21 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 172.16.0.0 Routing Information Sources: Gateway Distance Last Update 10.1.1.2 100 00:01:01 Distance: (default is 100) 172.16.1.1 S2 E0 S3 192.168.1.1 10.1.1.1 10.2.2.2 10.1.1.2 S2 S3 10.2.2.3 172.16.1.0 A B C 192.168.1.0 E0
  • 18. 查看 IP 路由表 RouterA#sh ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default U - per-user static route, o - ODR T - traffic engineered route Gateway of last resort is not set 172.16.0.0/24 is subnetted, 1 subnets C 172.16.1.0 is directly connected, Ethernet0 10.0.0.0/24 is subnetted, 2 subnets I 10.2.2.0 [100/90956] via 10.1.1.2, 00:00:23, Serial2 C 10.1.1.0 is directly connected, Serial2 I 192.168.1.0/24 [100/91056] via 10.1.1.2, 00:00:23, Serial2 172.16.1.1 S2 E0 S3 192.168.1.1 10.1.1.1 10.2.2.2 10.1.1.2 S2 S3 10.2.2.3 172.16.1.0 A B C 192.168.1.0 E0
  • 19. debug ip igrp transaction 命令 RouterA#debug ip igrp transactions IGRP protocol debugging is on RouterA# 00:21:06: IGRP: sending update to 255.255.255.255 via Ethernet0 (172.16.1.1) 00:21:06: network 10.0.0.0, metric=88956 00:21:06: network 192.168.1.0, metric=91056 00:21:07: IGRP: sending update to 255.255.255.255 via Serial2 (10.1.1.1) 00:21:07: network 172.16.0.0, metric=1100 00:21:16: IGRP: received update from 10.1.1.2 on Serial2 00:21:16: subnet 10.2.2.0, metric 90956 (neighbor 88956) 00:21:16: network 192.168.1.0, metric 91056 (neighbor 89056) 172.16.1.1 S2 E0 S3 192.168.1.1 10.1.1.1 10.2.2.2 10.1.1.2 S2 S3 10.2.2.3 172.16.1.0 A B C 192.168.1.0 E0
  • 20. debug ip igrp events 命令 RouterA#debug ip igrp events IGRP event debugging is on RouterA# 00:23:44: IGRP: sending update to 255.255.255.255 via Ethernet0 (172.16.1.1) 00:23:44: IGRP: Update contains 0 interior, 2 system, and 0 exterior routes. 00:23:44: IGRP: Total routes in update: 2 00:23:44: IGRP: sending update to 255.255.255.255 via Serial2 (10.1.1.1) 00:23:45: IGRP: Update contains 0 interior, 1 system, and 0 exterior routes. 00:23:45: IGRP: Total routes in update: 1 00:23:48: IGRP: received update from 10.1.1.2 on Serial2 00:23:48: IGRP: Update contains 1 interior, 1 system, and 0 exterior routes. 00:23:48: IGRP: Total routes in update: 2 172.16.1.1 S2 E0 S3 192.168.1.1 10.1.1.1 10.2.2.2 10.1.1.2 S2 S3 10.2.2.3 172.16.1.0 A B C 192.168.1.0 E0
  • 21. 路由信息更新举例 RouterA# debug ip igrp trans 00:31:15: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0, changed state to down 00:31:15: IGRP: edition is now 3 00:31:15: IGRP: sending update to 255.255.255.255 via Serial2 (10.1.1.1) 00:31:15: network 172.16.0.0, metric=4294967295 00:31:16: IGRP: Update contains 0 interior, 1 system, and 0 exterior routes. 00:31:16: IGRP: Total routes in update: 1 00:31:16: IGRP: broadcasting request on Serial2 00:31:16: IGRP: received update from 10.1.1.2 on Serial2 00:31:16: subnet 10.2.2.0, metric 90956 (neighbor 88956) 00:31:16: network 172.16.0.0, metric 4294967295 (inaccessible) 00:31:16: network 192.168.1.0, metric 91056 (neighbor 89056) 00:31:16: IGRP: Update contains 1 interior, 2 system, and 0 exterior routes. 00:31:16: IGRP: Total routes in update: 3 172.16.1.1 S2 E0 S3 192.168.1.1 10.1.1.1 10.2.2.2 10.1.1.2 S2 S3 10.2.2.3 172.16.1.0 A B C 192.168.1.0 E0 X
  • 22. 路由信息更新举例 RouterB#debug ip igrp trans IGRP protocol debugging is on RouterB# 1d19h: IGRP: sending update to 255.255.255.255 via Serial2 (10.1.1.2) 1d19h: subnet 10.2.2.0, metric=88956 1d19h: network 192.168.1.0, metric=89056 1d19h: IGRP: sending update to 255.255.255.255 via Serial3 (10.2.2.2) 1d19h: subnet 10.1.1.0, metric=88956 1d19h: network 172.16.0.0, metric=89056 1d19h: IGRP: received update from 10.1.1.1 on Serial2 1d19h: network 172.16.0.0, metric 4294967295 (inaccessible) 1d19h: IGRP: edition is now 10 1d19h: IGRP: sending update to 255.255.255.255 via Serial2 (10.1.1.2) 1d19h: subnet 10.2.2.0, metric=88956 1d19h: network 172.16.0.0, metric=4294967295 1d19h: network 192.168.1.0, metric=89056 1d19h: IGRP: sending update to 255.255.255.255 via Serial3 (10.2.2.2) 1d19h: subnet 10.1.1.0, metric=88956 1d19h: network 172.16.0.0, metric=4294967295 172.16.1.1 S2 E0 S3 192.168.1.1 10.1.1.1 10.2.2.2 10.1.1.2 S2 S3 10.2.2.3 172.16.1.0 A B C 192.168.1.0 E0
  • 23. 路由信息更新举例 RouterB#sh ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default U - per-user static route, o - ODR T - traffic engineered route Gateway of last resort is not set I 172.16.0.0/16 is possibly down, routing via 10.1.1.1, Serial2 10.0.0.0/24 is subnetted, 2 subnets C 10.1.1.0 is directly connected, Serial2 C 10.2.2.0 is directly connected, Serial3 I 192.168.1.0/24 [100/89056] via 10.2.2.3, 00:00:14, Serial3 RouterB#ping 172.16.1.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 172.16.1.1, timeout is 2 seconds: ..... Success rate is 0 percent (0/5) RouterB# 172.16.1.1 S2 E0 S3 192.168.1.1 10.1.1.1 10.2.2.2 10.1.1.2 S2 S3 10.2.2.3 172.16.1.0 A B C 192.168.1.0 E0 X
  • 24.
  • 25.
  • 26.
  • 27.