使用RIP协议处理不连续的子网和VLSM(2)

http://network.51cto.com  2007-06-04 10:53  佚名  巧巧读书  我要评论(0)
  • 摘要:本文实验中演示使用RIP协议处理不连续的子网和VLSM的情况。
  • 标签:RIP  协议  子网  VLSM

配置清单5-3使用RIP协议处理不连续的子网

R3#cle ip route *
R3#sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
 D - EIGRP, EX - EIGRP external, 0 - 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, ia - IS-IS inter area
 * - candidate default, U - per-user static route, o - ODR
 P - periodic downloaded static route
Gateway of last resort is not set
172.16.0.0/24 is subnetted, 3 subnets
R 172.16.23.0 is directly connected. Serial 1
C 172.16.12.0 [120/1] via 172.16.13.1, 00:00:01, Serial0
C 172.16.13.0 is directly connected, Serial0
172.18.0,0/24 is subnetted, 1 subnets
C 172.18.3.0 is directly connected, Ethemet0
R3#conft
Enter configuration commands, one per line. End with CNTL/Z.
R3(config)#router rip
R3(config-router)#version 2
R3(config-router)#
Term_Server>2
[Resuming connection 2 to R2 ... ]
R2(config-router)#router rip
R2(config-router)#version 2
R2(config-router)#
Term_Server>1
[Resuming connection 1 to R1 ...]
R1(config-router)#router rip
R1(config-router)#version 2
R1(config-router)#
R1(config-router)#^Z
R1#cle lp route *
R1#debug ip rip
RIP protocol debugging is on
R1#
01:38:59: RIP: received v2 update from 172.16.12.2 on Serial0
01:38:59: 172.16.23.0/24 via 0.0.0.0 in 1 hops
01:38:59: 172.18.0.0/16 Via 0.0.0.0 in 1 hops
01:39:10: RIP: received v2 update from 172.16.13.3 on Serial1
01:39:10: 172.16.23.0/24 via 0.0.0.0 in 1 hops
01:39:10: 172.18.0/16 via 0.0.0.0 in 1 hops
01:39:12: RIP: sending v2 update to 224.0.0.9 Via Serial0 (172.16.12.1)
01:39:12: RIP: build update entries
01:39:12: 172.16.13.0/24 via0.0.0.0,metric 1,tag 0
01:39:12: RIP: rending v2 update to 224.0.0.9 via Serial1 (172.16.13.1)
01:39:12: RIP: build update eyries
01:39:12: 172.16.12.0/24 via 0.0.0.0, metric 1, tag.0
R1#undebug all
All possible debugging has been turned off
R1#sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
 D - EIGRP, EX - EIGRP external, 0 - 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, ia - IS-IS inter area
 * - candidate default, U - per-user static route, o - ODR
 P - periodic downloaded static route
Gateway of last resort is not set
172.16.0.0/24 is subnetted, 3 subnets
R 172.16.23.0 [120/1] via 172.16.12.2, 00:00:07, Serial0
[120/1] via 172.16.13.3, 00:00:23, Serial1
C 172.16.12.0 is directly connected, Serial0
C 172.16.13.0 is directly connected, Serial1
172.18.0.0/16 is variably subnetted, 2 subnets, 2 masks
C 172.18.1.0/24 is directly connected, Ethernet0
R1#ping 172.18.2.2
Type escape sequence to abort.
Sending 5,100-byte ICMP Echos to 172.18.2.2,timeout is 2 seconds:
!!!!!
Success rate is 100 percent(5/5),round-trip min/avg/max=8/23/48 ms

共5页: 上一页 [1] 2 [3] [4] [5] 下一页
【内容导航】
RIP路由协议专栏
SIP协议融合语音视频通信
IPv6协议--拓展网络无限空间
SIP协议---NGN网络的核心协议
TCP/IP协议专题
 
 验证码: (点击刷新验证码)   匿名发表
  • Visual C++ 完全自学宝典

  • 作者:强锋科技,朱洪波
  • Visual C++ 6.0是微软公司为程序人员提供的Visual Studio 6.0工具套件中的重要组成部分。本书由浅入深地介绍使用Visual C++ 6.0..
Copyright©2005-2008 51CTO.COM 版权所有