当前位置:首页 > 神州数码实验手册 - 图文
神州数码网络实验室实验手册
Router_config_s0/2#no shutdown Router#show interface s0/3
显示结果Serial0/2 is up, line protocol is up (3)1702-2路由器接口配置(配置机com5口) Router_config#interface s0/2
Router_config_s0/2#ip address 192.168.30.2 255.255.255.0 Router_config_s0/2#no shutdown
Router#show interface s0/2
显示结果Serial0/2 is up, line protocol is up Router#ping 192.168.30.1 显示结果!!!!! Router_config#interface f 0/0
Router_config_f0/0#ip address 192.168.40.1 255.255.255.0 Router_config_f0/0#no shutdown Router#ping 192.168.40.2 显示结果!!!!! ? 配置各个路由器的静态路由
(1)1702-1路由器静态路由配置(配置机com4口) Router#show ip route 显示结果如下
C 192.168.10.0/24 is directly connected, FastEthernet0/0 C 192.168.20.0/24 is directly connected, Serial0/2 Router_config#ip route 192.168.30.0 255.255.255.0 192.168.20.2 Router_config#ip route 192.168.40.0 255.255.255.0 192.168.20.2 Router#show ip route 显示结果如下
C 192.168.10.0/24 is directly connected, FastEthernet0/0 C 192.168.20.0/24 is directly connected, Serial0/2 S 192.168.30.0/24 [1,0] via 192.168.20.2 S 192.168.40.0/24 [1,0] via 192.168.20.2 (2)2611路由器静态路由配置(配置机com3口) Router#show ip route 显示结果如下
C 192.168.20.0/24 is directly connected, Serial0/3 C 192.168.30.0/24 is directly connected, Serial0/2 Router_config#ip route 192.168.10.0 255.255.255.0 192.168.20.1 Router_config#ip route 192.168.40.0 255.255.255.0 192.168.30.2 Router#show ip route 显示结果如下
S 192.168.10.0/24 [1,0] via 192.168.20.1
C 192.168.20.0/24 is directly connected, Serial0/3 C 192.168.30.0/24 is directly connected, Serial0/2 S 192.168.40.0/24 [1,0] via 192.168.30.2 (3)1702-2路由器静态路由配置(配置机com5口) Router#show ip route 显示结果如下
24
神州数码网络实验室实验手册
C 192.168.30.0/24 is directly connected, Serial0/2
C 192.168.40.0/24 is directly connected, FastEthernet0/0 Router#config
Router_config#ip route 192.168.20.0 255.255.255.0 192.168.30.1 Router_config#ip route 192.168.10.0 255.255.255.0 192.168.30.1 Router#show ip route 显示结果如下
S 192.168.10.0/24 [1,0] via 192.168.30.1 S 192.168.20.0/24 [1,0] via 192.168.30.1
C 192.168.30.0/24 is directly connected, Serial0/2
C 192.168.40.0/24 is directly connected, FastEthernet0/0
? 静态路由配置完成,从测试机A192.168.10.2可以ping通测试机B192.168.40.2 ? 实验要求:
(1) 掌握路由器网络接口的IP地址配置封装指令。
(2) 对网络拓扑结构图详细了解,同时熟练掌握静态路由配置指令。 (3) 详细理解各台路由器的路由表,及路由表产生的方法。 (4) 完成实验报告书(见附录)。
实验6:路由器动态路由配置 ? 实验拓扑结构图:
? ? ? ?
实验内容:
设置测试机IP地址:如实验5
配置各个路由器的网络接口:如实验5 配置各个路由器的动态路由RIP
25
神州数码网络实验室实验手册
(1)1702-1路由器动态路由配置(配置机com4口):注意,no ip route为删除静态路由,如未配置静态路由可以不使用该指令。
Router_config#no ip route 192.168.30.0 255.255.255.0 192.168.20.2 Router_config#no ip route 192.168.40.0 255.255.255.0 192.168.20.2 Router_config#router rip
Router_config_rip#network 192.168.0.0 255.255.0.0 (2)2611路由器动态路由配置(配置机com3口)
Router_config#no ip route 192.168.10.0 255.255.255.0 192.168.20.1 Router_config#no ip route 192.168.40.0 255.255.255.0 192.168.30.2 Router_config#router rip
Router_config_rip#network 192.168.0.0 255.255.0.0 (3)1702-2路由器动态路由配置(配置机com5口)
Router_config#no ip route 192.168.10.0 255.255.255.0 192.168.30.1 Router_config#no ip route 192.168.20.0 255.255.255.0 192.168.30.1 Router_config#router rip
Router_config_rip#network 192.168.0.0 255.255.0.0 (4)在1702-2上运行(配置机com5口) Router#show ip route 显示结果
R 192.168.10.0/24 [120,2] via 192.168.30.1(on Serial0/2) R 192.168.20.0/24 [120,1] via 192.168.30.1(on Serial0/2) C 192.168.30.0/24 is directly connected, Serial0/2
C 192.168.40.0/24 is directly connected, FastEthernet0/0 (5)在2611上运行(配置机com3口) Router#show ip route 显示结果
R 192.168.10.0/24 [120,1] via 192.168.20.1(on Serial0/3) C 192.168.20.0/24 is directly connected, Serial0/3 C 192.168.30.0/24 is directly connected, Serial0/2
R 192.168.40.0/24 [120,1] via 192.168.30.2(on Serial0/2) (6)在1702-1上运行(配置机com4口) Router#show ip route 显示结果
C 192.168.10.0/24 is directly connected, FastEthernet0/0 C 192.168.20.0/24 is directly connected, Serial0/2
R 192.168.30.0/24 [120,1] via 192.168.20.2(on Serial0/2) R 192.168.40.0/24 [120,2] via 192.168.20.2(on Serial0/2) ? 配置各个路由器的动态路由OSPF (1)在1702-1上运行(配置机com4口) Router_config#no router rip Router_config#router ospf 100
Router_config_ospf_100#network 192.168.10.0 255.255.255.0 area 0 Router_config_ospf_100#network 192.168.20.0 255.255.255.0 area 0 (2)在2611上运行(配置机com3口)
26
神州数码网络实验室实验手册
Router_config#no router rip Router_config#router ospf 100
Router_config_ospf_100#network 192.168.20.0 255.255.255.0 area 0 Router_config_ospf_100#network 192.168.30.0 255.255.255.0 area 0 (3)在1702-2上运行(配置机com5口) Router_config#no router rip Router_config#router ospf 100
Router_config_ospf_100#network 192.168.40.0 255.255.255.0 area 0 Router_config_ospf_100#network 192.168.40.0 255.255.255.0 area 0 ? 分别在1702-1,1702-2,2611上运行show ip route 查看路由表情况,注意路由表与RIP动态路由时的变化。 ? 实验要求:
(1) 掌握路由器网络接口的IP地址配置指令 (2) 对网络拓扑结构图详细了解,同时熟练掌握动态路由RIP配置指令和OSPF配置指令。 (3) 了解rip的工作过程,了解ospf的工作过程。 (4) 完成实验报告书(见附录)。
27
共分享92篇相关文档