计算机网络课程设计实验报告
实验过程及步骤(可另附页、使用网络拓扑图等辅助说明):
1.实验拓扑图:
2.地址规划:
设备 端口 IP 地址
子网掩码 网关 PC0 fa
192.168.10.2
255.255.255.0
192.168.10.1 PC1 192.168.10.3 PC2 192.168.30.2
192.168.30.1 PC3 192.168.30.3
Lab_A fa0/0
192.168.10.1
Serial0/3/0 192.168.20.1
Lab_B
fa0/0
192.168.30.1 Serial0/3/0
192.168.20.2
Lab_B(config-if)#description Lab_B LAN Connection
Lab_B(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
Lab_B(config-if)#interface serial0/3/0
Lab_B(config-if)#ip address 192.168.20.2 255.255.255.0
Lab_B(config-if)#description WAN Connection to Lab_A
Lab_B(config-if)#exit
Lab_B(config)#exit
%SYS-5-CONFIG_I: Configured from console by console
Lab_B#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
4.根据地址规划设置默认网关和IP
以PC0为例:
5. 配置RIP协议并检测结果
(1)路由Lab_A:
Lab_A>enable
Password:
Lab_A#config t
Enter configuration commands, one per line. End with CNTL/Z.
Lab_A(config)#route rip
Lab_A(config-router)#network 192.168.10.0
Lab_A(config-router)#network 192.168.20.0
Lab_A(config-router)#exit
Lab_A(config)#exit
6. 配置OSPF协议并检测结果
(1)路由Lab_A:
Lab_B>enable
Password:
Lab_A#no debug all
All possible debugging has been turned off
Lab_A#clear ip route
% Incomplete command.
Lab_A#config t
Enter configuration commands, one per line. End with CNTL/Z. Lab_A(config)#no router rip
Lab_A(config)#router ospf 1
Lab_A(config-router)#network 192.168.10.0 0.0.255.255 area 0 Lab_A(config-router)#network 192.168.20.0 0.0.255.255 area 0 (2)路由Lab_B:
Lab_B>enable
Password:
Lab_B#no debug all
All possible debugging has been turned off
Lab_B#clear ip route
% Incomplete command.
Lab_B#config t
Enter configuration commands, one per line. End with CNTL/Z. Lab_B(config)#no router rip
Lab_B(config)#router ospf 1
Lab_B(config-router)#network 192.168.20.0 0.0.255.255 area 0 Lab_B(config-router)#network 192.168.30.0 0.0.255.255 area 0 (3)用show ip route 和show ip ospf rip 验证
实验总结(遇到的问题及解决办法、体会):。