当前位置:首页 > CCNA中文笔记第5章IP路由
配置RouterA,注意AS号的范围为1到65535,如下:
RouterA(config)#router igrp ?
<1-65535> Autonomous system number RouterA(config)#router igrp 10
RouterA(config-router)#netw 192.168.10.0 RouterA(config-router)#netw 192.168.20.0 RouterA(config-router)#^Z RouterA#
记住IGRP也是classful routing,而且配置网络号是与它直接相连的网络 配置RouterB,如下:
RouterB(config)#router igrp 10
RouterB(config-router)#netw 192.168.20.0 RouterB(config-router)#netw 192.168.30.0 RouterB(config-router)#netw 192.168.40.0 RouterB(config-router)#^Z RouterB#
配置RouterC,如下:
RouterC(config)#router igrp 10
RouterC(config-router)#netw 192.168.40.0 RouterC(config-router)#netw 192.168.50.0 RouterC(config-router)#^Z RouterC#
注意RouterA,RouterB和RouterC使用相同的AS号 Verifying the IGRP Routing Tables
我们来验证下: RouterA#sh ip route (略)
I 192.168.50.0 [100/170420] via 192.168.20.2, Serial0/0 (略)
I代表IGRP[100/170420]为AD和复合度,度越低越好
Verifying Your Configurations
一些验证性的命令:
show protocols:显示所有的可路由协议和查看接口及其相关协议,如下: RouterB#sh protocols Gloabal values:
Internet Protocol routing is enabled FastEthernet0 is up, line protocol is up Internet Address is 192.168.30.1/24 Serial0/0 is up, line protocol is up Internet Address is 192.168.20.2/24 Serial0/1 is up, line protocol is up Internet Address is 192.168.40.1/24 RouterB#
show ip protocols:显示router上配置好了的路由协议,如下: RouterB#sh ip protocols Routing Protocols is “rip” (略)
debug ip rip:发送控制台消息显示有关在router接口上收发RIP数据包的信息,关闭debug,使用undebug all或者no debug all命令,如下: RouterB#debug ip rip
RIP protocol debugging is on RouterB#
07:12:56: RIP: received v1 update from 192.168.40.2 on Serial0/1 07:12:56: 192.168.50.0 in 1 hops (略)
RouterB#undebug all
All possible debugging has been turned off RouterB#
debug ip igrp events:提供在网络中运行的IGRP路由选择信息的概要,关闭使用undebug ip igrp events或undebug all命令,如下:
RouterB#debug ip igrp events IGRP event debugging is on
07:13:50: IGRP: received request from 192.168.40.2 on Serial0/1
07:13:50: IGRP: sending update to 192.168.40.2 via Serial1(192.168.40.1) 07:13:51: IGRP: Update contains 3 interior, 0 system, and 0 exterior routes 07:13:51: IGRP: Total route in update: 3 (略)
RouterB#un all
All possible debugging has been turned off
debug ip igrp transactions:显示来自相邻router要求更新的请求消息和由router发到相邻router的广播消息,关闭使用undebug all,如下:
RouterB#debug ip igrp transactions
07:14:05: IGRP: received request from 192.168.40.2 on Serial1
07:14:05: IGRP: sending update to 192.168.40.2 via Serial1(192.168.40.1) 07:14:05: subnet 192.168.30.0, metric=1100 07:14:05: subnet 192.168.20.0, metric=158250 (略)
RouterB#un all
All possible debugging has been turned off RouterB#。(Written by 红头发,ChinaITLab BBS)
共分享92篇相关文档