实验目的:
熟悉
RIPV1
的基本配置
,
理解
RIPV1
的工作原理过程
,
以及
RIPV1
的路由表的学习的过程
,
理解
RIPV1
的几大特性
.
实验拓扑图:
实验内容:
路由器的基本配置
R1
的配置
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
粘贴上基本的命令
Router(config)#enable password cisco
Router(config)#no ip domain-lookup
Router(config)#line con 0
Router(config-line)# exec-timeout 0 0
Router(config-line)# logging synchronous
Router(config-line)#
Router(config-line)#line aux 0
Router(config-line)# exec-timeout 0 0
Router(config-line)# logging synchronous
Router(config-line)#line vty 0 4
Router(config-line)#
Router(config-line)#
Router(config-line)# exec-timeout 0 0
Router(config-line)# password cisco
Router(config-line)#
Router(config-line)# login
Router(config-line)#
Router(config-line)#
Router(config-line)#alias exec a sh ip int bri
Router(config)#alias exec b sh ip route
Router(config)#alias exec c sh ip route rip
Router(config)#alias exec d sh run
配置好名称
,
接口
IP
地址
Router(config)#hostname R1
R1(config)#interface loopback 1
R1(config-if)#ip address <?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" />1.1.1.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface s1/0
R1(config-if)#ip address 192.168.2.1 255.255.255.0
R1(config-if)#clock rate 64000
R1(config-if)#no shutdown
R2
的配置
outer(config)#hostname R2
R2(config)#interface s1/0
R2(config-if)#ip address 192.168.2.2 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#interface s1/1
R2(config-if)#ip address 192.168.3.1
*Mar 1 00:02:48.603: %LINK-3-UPDOWN: Interface Serial1/0, changed state to up
*Mar 1 00:02:49.603: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to up
R2(config-if)#ip address 192.168.3.1 255.255.255.0
R2(config-if)#clock rate 64000
R2(config-if)#no shutdown
R3
的配置
Router(config)#hostname R3
R3(config)#interface loopback 0
R3(config-if)#ip address 3.3.3.3 255.255.255.0
R3(config-if)#exit
R3(config)#interface s1/1
R3(config-if)#ip address 192.168.3.2 255.255.255.0
R3(config-if)#no shutdown
好了
,
现在开始
RIPV1
的配置
R1
上的
,
R1(config)#router rip
把想要发布的网段在
RIP
中宣告即可
R1(config-router)#network 1.0.0.0
R1(config-router)#network 192.168.2.0
R2
上的
R2(config)#router rip
R2(config-router)#network 192.168.2.0
R2(config-router)#network 192.168.3.0
R3
上的
R3(config)#router rip
R3(config-router)#network 3.0.0.0
R3(config-router)#network 192.168.3.0
接下来当然是验证我们的配置有没有起作用了
R
上的
R1#show ip route
Codes: C - connected, S - static, 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
i - IS-IS, su - IS-IS summary, 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
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
Gateway of last resort is not set
1.0.0.0/24 is subnetted, 1 subnets
C 1.1.1.0 is directly connected, Loopback1
R 3.0.0.0/8 [120/2] via 192.168.2.2, 00:00:05, Serial1/0
C 192.168.2.0/24 is directly connected, Serial1/0
R 192.168.3.0/24 [120/1] via 192.168.2.2, 00:00:11, Serial1/0
留意上面的第二条
: R 3.0.0.0/8 [120/2] via 192.168.2.2, 00:00:05, Serial1/0,
我们可以看到
,
开始我们并没有宣告网段
3.0.0.0,
但
R1
可以学习到
3.0.0.0
的路由
.RIP
的管理距离是
120,
它的学习跳数是
2
跳
.
下一跳的地址是
192.168.2.2.
R2
上的
R2#show ip route
Codes: C - connected, S - static, 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
i - IS-IS, su - IS-IS summary, 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
R 1.0.0.0/8 [120/1] via 192.168.2.1, 00:00:18, Serial1/0
R 3.0.0.0/8 [120/1] via 192.168.3.2, 00:00:00, Serial1/1
C 192.168.2.0/24 is directly connected, Serial1/0
C 192.168.3.0/24 is directly connected, Serial1/1
显然已经一目了然
.
R3
上的
R3#show ip route
Codes: C - connected, S - static, 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
i - IS-IS, su - IS-IS summary, 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
R 1.0.0.0/8 [120/2] via 192.168.3.1, 00:00:14, Serial1/1
3.0.0.0/24 is subnetted, 1 subnets
C 3.3.3.0 is directly connected, Loopback0
R 192.168.2.0/24 [120/1] via 192.168.3.1, 00:00:14, Serial1/1
C 192.168.3.0/24 is directly connected, Serial1/1
R3#
RIP
实验作为
CCNA
考察的最基本标准
,
在这里只是个简单的开始的介绍
.
转载于:https://blog.51cto.com/bennie/100879