4.2配置RIP
步骤
1、  使用router rip 命令启动RIP进程
2、  使用network命令指定每一个需要运行RIP
注:net文件、配置文件、抓包文件都在附件里面有下载
Top
Barney# sh run | begin rip
router rip
 network 10.0.0.0
 network 192.168.83.0
 
Andy# sh run | be rip
router rip
 network 172.17.0.0
 network 192.168.12.0
 network 192.168.83.0
 
Goober#sh run | be rip
router rip
 network 172.17.0.0
 
Opie#
Opie#sh run | be rip
router rip
 network 172.17.0.0
 
debug信息要结合4.1.4有类别路由选择(Classful Routing)这个的规则来看,就非常的清晰
 
Andy#debug ip rip
RIP protocol debugging is on
*Apr 10 16:46:53.955: RIP: received v1 update from 172.17.1.2 on Serial1/0
*Apr 10 16:46:53.959:      172.17.3.0 in 1 hops
*Apr 10 16:47:00.351: RIP: received v1 update from 172.17.2.2 on Serial1/1
*Apr 10 16:47:00.355:      172.17.4.0 in 1 hops
*Apr 10 16:47:05.591: RIP: sending v1 update to 255.255.255.255 via Serial1/0 (172.17.1.1)
*Apr 10 16:47:05.591: RIP: build update entries
*Apr 10 16:47:05.591:   network 10.0.0.0 metric 2
*Apr 10 16:47:05.591:   subnet 172.17.2.0 metric 1
*Apr 10 16:47:05.591:   subnet 172.17.4.0 metric 2
*Apr 10 16:47:05.591:   network 192.168.12.0 metric 1
*Apr 10 16:47:05.591:   network 192.168.83.0 metric 1
*Apr 10 16:47:06.527: RIP: sending v1 update to 255.255.255.255 via Loopback1 (192.168.12.195)
*Apr 10 16:47:06.527: RIP: build update entries
*Apr 10 16:47:06.531:   network 10.0.0.0 metric 2
*Apr 10 16:47:06.531:   network 172.17.0.0 metric 1
*Apr 10 16:47:06.531:   subnet 192.168.12.64 metric 1
*Apr 10 16:47:06.535:   network 192.168.83.0 metric 1
*Apr 10 16:47:08.319: RIP: sending v1 update to 255.255.255.255 via FastEthernet0/0 (192.168.83.1)
*Apr 10 16:47:08.319: RIP: build update entries
*Apr 10 16:47:08.323:   network 172.17.0.0 metric 1
*Apr 10 16:47:08.323:   network 192.168.12.0 metric 1
*Apr 10 16:47:08.723: RIP: received v1 update from 192.168.83.244 on FastEthernet0/0
*Apr 10 16:47:08.727:      10.0.0.0 in 1 hops
*Apr 10 16:47:11.515: RIP: sending v1 update to 255.255.255.255 via Serial1/1 (172.17.2.1)
*Apr 10 16:47:11.515: RIP: build update entries
*Apr 10 16:47:11.519:   network 10.0.0.0 metric 2
*Apr 10 16:47:11.519:   subnet 172.17.1.0 metric 1
*Apr 10 16:47:11.519:   subnet 172.17.3.0 metric 2
*Apr 10 16:47:11.523:   network 192.168.12.0 metric 1
*Apr 10 16:47:11.523:   network 192.168.83.0 metric 1
*Apr 10 16:47:16.543: RIP: sending v1 update to 255.255.255.255 via Loopback0 (192.168.12.65)
*Apr 10 16:47:16.543: RIP: build update entries
*Apr 10 16:47:16.547:   network 10.0.0.0 metric 2
*Apr 10 16:47:16.547:   network 172.17.0.0 metric 1
*Apr 10 16:47:16.547:   subnet 192.168.12.192 metric 1
*Apr 10 16:47:16.551:   network 192.168.83.0 metric 1
Andy#un all
All possible debugging has been turned off