RIPV2实验报告
一:实验要求
1.用v2做vlsm,设计正确的ip地址,不等长的子网掩码。
2.设计三个路由器构成的4个子网接口。
3.正确配置RIPV2,实现网络互联让每一个路由器学习的完整的路由表。
二:实验的目标
1.设计出每一个子网的ip地址。
2.每个子网之间可一相互通信。
3.每一个路由器之间相互学习到路由表。
三:实验拓扑结构图
四:实验过程
1.ip地址的设计
pc0 192.168.1.2/26
routera :
fa0/0 192.168.1.1/26
s1/0192.168.1.117/29
routerb:
fa0/0 192.168.1.67/27
s1/0 192.168.1.126/30
pc1 192.168.1.68/27
routerc :
fa0/0 192.168.1.100/28
s1/0 192.168.1.125/30
pc2 192.168.1.102/28
2.routera的配置
接口fa0/0的配置
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#host routera
routera(config)#int fa0/0
routera(config-if)#ip add 192.168.1.1 255.255.255.192
routera(config-if)#no shut
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
检测routera是否与pc0之间的正常通信
routera#ping 192.168.1.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 33/51/63 ms
接口s1/0的配置
Routera(confing)#int s1/0
routera(config-if)#clock rate 64000
routera(config-if)#ip add 192.168.1.117 255.255.255.248
routera(config-if)#no shut
%LINK-5-CHANGED: Interface Serial1/0, changed state to down
routera(config-if)#end
检测routera与routerb之间的通信
routera#ping 192.168.1.118
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.118, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 31/31/32 ms
3.routerb的配置
接口s1/1的配置
Router#conf t
Enter configuration commands, one per line.End with CNTL/Z.
Router(config)#host routerb
routerb(config)#int s1/1
routerb(config-if)#ip add 192.168.1.118 255.255.255.248
routerb(config-if)#no shut
检测routerb与routera之间是否能够正常的通信
routerb#ping 192.168.1.117
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.117, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 31/31/32 ms
接口fa0/0的配置
routerb#conf t
Enter configuration commands, one per line.End with CNTL/Z.
routerb(config)#int fa0/0
routerb(config-if)#ip add 192.168.1.68 255.255.255.224
routerb(config-if)#no shut
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
routerb(config-if)#end
%SYS-5-CONFIG_I: Configured from console by console
检测routerb与pc1是否正常通信
routerb#ping 192.168.1.69
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.69, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 31/50/63 ms
接口s1/2的配置
routerb#conf t
Enter configuration commands, one per line.End with CNTL/Z.
routerb(config)#int s1/2
routerb(config-if)#ip add 192.168.1.126 255.255.255.252
routerb(config-if)#no shut
检测routerb与routerc之间的通信
routerb#ping 192.168.1.125
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.125, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 21/29/32 ms
4.routerc的配置
接口s1/0的配置
routerc#conf t
Enter configuration commands, one per line.End with CNTL/Z.
routerc(config)#int s1/0
routerc(config-if)#ip add 192.168.1.125 255.255.255.252
routerc(config-if)#no shut
routerc(config-if)#end
检测routerc与routerb之间的通信
routerc#ping 192.168.1.126
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.126, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 15/28/47 ms
接口fa0/0的配置
routerc#conf t
Enter configuration commands, one per line.End with CNTL/Z.
routerc(config)#int fa0/0
routerc(config-if)#ip add 192.168.1.100 255.255.255.240
routerc(config-if)#no shut
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
routerc(config-if)#end
%SYS-5-CONFIG_I: Configured from console by console
检测routerc与pc2的通信
routerc#ping 192.168.1.101
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.101, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 62/62/63 ms
检测pc2与pc1之间是否正常通信
PC>ping 192.168.1.69
Pinging 192.168.1.69 with 32 bytes of data:
Reply from 192.168.1.100: Destination host unreachable.
Reply from 192.168.1.100: Destination host unreachable.
Reply from 192.168.1.100: Destination host unreachable.
Reply from 192.168.1.100: Destination host unreachable.
Ping statistics for 192.168.1.69:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
检测pc2与pc0之间是否正常通信
PC>ping 192.168.1.101
Pinging 192.168.1.101 with 32 bytes of data:
Reply from 192.168.1.1: Destination host unreachable.
Reply from 192.168.1.1: Destination host unreachable.
Reply from 192.168.1.1: Destination host unreachable.
Reply from 192.168.1.1: Destination host unreachable.
Ping statistics for 192.168.1.101:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),