haihongyuan.com
海量文库 文档专家
全站搜索:
您现在的位置:首页 > 幼儿教育 > 少儿英语少儿英语

RIP路由

发布时间:2014-05-20 08:03:17  

Router>en

Router#conf t

Router(config)#ho R1 R1(config)#line con 0 R1(config-line)#exec-t 0 0 R1(config-line)#logg sy R1(config-line)#exit R1(config)#int fa 0/0

R1(config-if)#ip add 192.168.1.254 255.255.255.0

R1(config-if)#no sh

R1(config)#int se 0/0/0

R1(config-if)#clock rate 64000

R1(config-if)#ip add 12.12.12.1 255.255.255.0

R1(config-if)#no sh

R1(config-if)#end

R1#sh ip rout (查看路由表,发现有以“C”开头的直连路由 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, 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

12.0.0.0/24 is subnetted, 1 subnets

C 12.12.12.0 is directly connected, Serial0/0/0

C 192.168.1.0/24 is directly connected, FastEthernet0/0

R1#conf t

R1(config)#router rip (启用RIP路由协议

R1(config-router)#net 192.168.1.0 (宣告网络192.168.1.0

R1(config-router)#net 12.0.0.0

R1(config-router)#ver 2 (启用2号版本 R1(config-router)#

Router>

Router>en

Router#conf t

Router(config)#ho R2

R2(config)#line con 0

R2(config-line)#exec-t 0 0

R2(config-line)#logg sy

R2(config-line)#exit

R2(config)#no ip domain-lo

R2(config)#int se 0/0/1

R2(config-if)#ip add 12.12.12.2 255.255.255.0 R2(config-if)#no sh

R2(config-if)#int se 0/0/0

R2(config-if)#ip add 23.23.23.2 255.255.255.0 R2(config-if)#cl ra 64000

R2(config-if)#no sh

R2(config-if)#end

R2#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, 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

12.0.0.0/24 is subnetted, 1 subnets

C 12.12.12.0 is directly connected, Serial0/0/1

23.0.0.0/24 is subnetted, 1 subnets

C 23.23.23.0 is directly connected, Serial0/0/0

R2#conf t

R2(config)#router rip

R2(config-router)#net 12.0.0.0

R2(config-router)#net 23.0.0.0

R2(config-router)#ver 2

R2(config-router)#

Router>en

Router#conf t

Router(config)#ho R3

R3(config)#line con 0

R3(config-line)#exec-t 0 0

R3(config-line)#logg sy

R3(config-line)#exit

R3(config)#

R3(config)#

R3(config)#no ip domain-l

R3(config)#int se 0/0/1

R3(config-if)#ip add 23.23.23.3 255.255.255.0

R3(config-if)#no sh

R3(config-if)#int fa 0/0

R3(config-if)#ip add 172.16.1.254 255.255.255.0

R3(config-if)#no sh

R3(config-if)#end

R3#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, 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

23.0.0.0/24 is subnetted, 1 subnets

C 23.23.23.0 is directly connected, Serial0/0/1

172.16.0.0/24 is subnetted, 1 subnets

C 172.16.1.0 is directly connected, FastEthernet0/0

R3#conf t

Enter configuration commands, one per line. End with CNTL/Z.

R3(config)#router rip

R3(config-router)#net 23.0.0.0

R3(config-router)#net 172.16.0.0

R3(config-router)#ver 2

R3(config-router)#

1.在每个路由器上的特权模式,分别使用sh ip route命令,对比三个路由器的路由表

2.随意删除一条线路之后,再对比三个路由器的路由表

网站首页网站地图 站长统计
All rights reserved Powered by 海文库
copyright ©right 2010-2011。
文档资料库内容来自网络,如有侵犯请联系客服。zhit326@126.com