1、 1999, Cisco Systems, Inc. 2-1IP 路由配置ICND2- 2本章目标通过本章的学习,您应该掌握以下内容 : 配置 RIP路由协议 配置 IGRP路由协议 配置 EIGRP路由协议 配置 OSPF路由协议 配置 VLAN间路由ICND2- 319.2 kbpsT1T1 T1 Hop 计算 路由器每隔 30秒更新 最多支持相同 hop数的 6条路径RIP 概 述ICND2- 4 激活 RIP协议Router(config)# router ripRouter(config-router)# network network-number 选择参与路由的网络 必须是有类的
2、网络号RIP 配 置ICND2- 52.3.0.0router ripnetwork 172.16.0.0network 10.0.0.0RIP 配置举例router ripnetwork 10.0.0.02.3.0.0router ripnetwork 192.168.1.0network 10.0.0.0172.16.1.1S2E0 S3192.168.1.110.1.1.1 10.2.2.210.1.1.2S2 S310.2.2.3172.16.1.0 A B C 192.168.1.0 E0ICND2- 6查看 RIP信息RouterA#sh ip protocolsRouting P
3、rotocol is “rip“Sending updates every 30 seconds, next due in 0 secondsInvalid after 180 seconds, hold down 180, flushed after 240Outgoing update filter list for all interfaces isIncoming update filter list for all interfaces isRedistributing: ripDefault version control: send version 1, receive any
4、versionInterface Send Recv Key-chainEthernet0 1 1 2Serial2 1 1 2Routing for Networks:10.0.0.0172.16.0.0Routing Information Sources:Gateway Distance Last Update10.1.1.2 120 00:00:10Distance: (default is 120)172.16.1.1S2E0 S3192.168.1.110.1.1.1 10.2.2.210.1.1.2S2 S310.2.2.3172.16.1.0 A B C 192.168.1.0
5、 E0ICND2- 7查看路由表RouterA#sh ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-I
6、S, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate defaultU - per-user static route, o - ODRT - traffic engineered routeGateway of last resort is not set172.16.0.0/24 is subnetted, 1 subnetsC 172.16.1.0 is directly connected, Ethernet010.0.0.0/24 is subnetted, 2 subnetsR 10.2.2.0 120/1 via 10.
7、1.1.2, 00:00:07, Serial2C 10.1.1.0 is directly connected, Serial2R 192.168.1.0/24 120/2 via 10.1.1.2, 00:00:07, Serial2172.16.1.1S2E0 S3192.168.1.110.1.1.1 10.2.2.210.1.1.2S2 S310.2.2.3172.16.1.0 A B C 192.168.1.0 E0ICND2- 8debug ip rip 命令RouterA#debug ip ripRIP protocol debugging is onRouterA#00:06
8、:24: RIP: received v1 update from 10.1.1.2 on Serial200:06:24: 10.2.2.0 in 1 hops00:06:24: 192.168.1.0 in 2 hops00: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 100:06:34: network 192.168.1.0, metric 300:06:34: RIP: sending v1 update to
9、 255.255.255.255 via Serial2 (10.1.1.1)00:06:34: network 172.16.0.0, metric 1172.16.1.1S2E0 S3192.168.1.110.1.1.1 10.2.2.210.1.1.2S2 S310.2.2.3172.16.1.0 A B C 192.168.1.0 E0ICND2- 9 使用 IGRP的网络较大 缺省 100hops, 最大 255hops 支持多路径IGRP 介 绍IGRPICND2- 10带宽延迟时间可靠性负载最大传输单元19.2 kbps19.2 kbpsIGRP 路径选择SourceDestination