神州数码路由器实例配置

更新时间:2024-02-02 08:24:01 阅读量: 教育文库 文档下载

说明:文章内容仅供预览,部分内容可能不全。下载后的文档,内容与下面显示的完全一致。下载之前请确认下面内容是否您想要的,是否完整无缺。

本地局域网互联(路由协议配置)

任务一 实验目的:

1 掌握路由协议的配置方法;

2 理解路由协议的工作过程和使用环境; 3 掌握利用路由器连接本地局域网的方法; 试验设备:

1. DCR-1700或者DCR-2600 路由器一台 2. DCRS-3926S交换机一台 3. PC机,网线,CONSOLE 线 实验拓扑:

实验步骤:

1.Router#delete

this file will be erased,are you sure?(y/n)y no such file Router#write

Saving current configuration... OK!

Router#reboot

Do you want to reboot the router(y/n)?y

Please wait.. //恢复出厂设置

2.Router#show ip route //查看IP路由表

Codes: C - connected, S - static, R - RIP, B - BGP, BC - BGP connected D - DEIGRP, DEX - external DEIGRP, O - OSPF, OIA - OSPF inter area ON1 - OSPF NSSA external type 1, ON2 - OSPF NSSA external type 2 OE1 - OSPF external type 1, OE2 - OSPF external type 2 DHCP - DHCP type

VRF ID: 0 //没有路由表项 3.Router#config

Router_config#interface f

Router_config#interface fastEthernet 0/0

Router_config_f0/0#ip address 192.168.2.1 255.255.255.0 Router_config_f0/0#exit Router_config#interface e Router_config#interface ethernet 0/1

Router_config_e0/1#ip address 192.168.1.1 255.255.255.0

//设置路由器两个以太网接口IP地址 4.VRF ID: 0

C 192.168.1.0/24 is directly connected, Ethernet0/1 C 192.168.2.0/24 is directly connected, FastEthernet0/0 //直通路由 5. 测试PC1与测试计算机的连同性。

任务二

实验目的:

认识路由协议和路由表 实验设备: 1. 两台DCR-1700路由器 2. PC机 DCRS-3926交换机

4. Console 线,交叉双绞线,直通双绞线 实验拓扑结构

实验步骤:

1.Route_config#hostname Route-A

Route-A_config# //将路由器改名,Route-B同 2.Route-A_config#interface ethernet 0/1

Route-A_config_e0/1#ip address 192.168.1.1 255.255.255.0 Route-A_config_e0/1#interface fastEthernet 0/0

Route-A_config_f0/0#ip address 192.168.2.1 255.255.255.0

//设置route-A 接口IP地址 Route-B_config#interface ethernet 0/1 Route-B_config_e0/1#ip address 192.168.3.1 255.255.255.0 Route-B_config_e0/1#interface fastEthernet 0/0

Route-B_config_f0/0#ip address 192.168.2.2 255.255.255.0

//设置route-B接口IP地址 3.Route-A_config#show ip route C 192.168.1.0/24 is directly connected, Ethernet0/1

C 192.168.2.0/24 is directly connected, FastEthernet0/0

//查看route-A的路由表 Route-B_config#show ip route

C 192.168.2.0/24 is directly connected, Ethernet0/1 C 192.168.3.0/24 is directly connected, FastEthernet0/0 4.测试连通性

在pc1上分别ping 以下IP地址,请回答是否通? 192.168.1.1 192.168.2.1 192.168.2.2 192.168.3.1 192.168.3.10

在pc2上分别ping 以下IP地址,请问是否通? 192.168.3.1 192.168.2.2 192.168.2.1 192.168.1.1 192.168.1.10

5.Route-A_config#ip route 192.168.3.0 255.255.255.0 fastEthernet 0/0 Route-A_config#show ip route VRF ID: 0

C 192.168.1.0/24 is directly connected, Ethernet0/1 C 192.168.2.0/24 is directly connected, FastEthernet0/0 S 192.168.3.0/24 is directly connected, FastEthernet0/0

//在route-A添加一条通向192.168.3.0网络的路由表 Route-B_config#ip route 192.168.1.0 255.255.255.0 fastEthernet 0/0 Route-B_config#show ip route VRF ID: 0

C 192.168.2.0/24 is directly connected, Ethernet0/1

C 192.168.3.0/24 is directly connected, FastEthernet0/0 S 192.168.1.0/24 is directly connected, FastEthernet0/0

//在route-B添加一条通向192.168.1.0网络的路由表 6.测试连通性 在pc1上分别ping 以下IP地址,请回答是否通? 192.168.1.1 192.168.2.1 192.168.2.2 192.168.3.1 192.168.3.10

在pc2上分别ping 以下IP地址,请问是否通? 192.168.3.1 192.168.2.2 192.168.2.1 192.168.1.1

192.168.1.10

7.Route-A_config#no ip route 192.168.3.0 255.255.255.0 Show ip route VRF ID: 0

C 192.168.1.0/24 is directly connected, Ethernet0/1

C 192.168.2.0/24 is directly connected, FastEthernet0/0 //在route-A上删除静态路由 Route-B_config#no ip route 192.168.1.0 255.255.255.0 Show ip route VRF ID: 0

C 192.168.2.0/24 is directly connected, Ethernet0/1

C 192.168.3.0/24 is directly connected, FastEthernet0/0 //在route-B上删除静态路由 8.Route-A_config#router rip //起用RIP协议

Route-A_config_rip#network 192.168.2.0 //宣告网段

Route-A_config_rip#redistribute connect //设置转发路由 Route-B 相同设置 9.Route-A_config#show ip route VRF ID: 0

C 192.168.1.0/24 is directly connected, Ethernet0/1 C 192.168.2.0/24 is directly connected, FastEthernet0/0

R 192.168.3.0/24 [120,1] via 192.168.2.2(on FastEthernet0/0)

//发现route-A自动学习到到达192.168.3.0网段的路由表 Route-B_config#show ip route VRF ID: 0

C 192.168.2.0/24 is directly connected, Ethernet0/1 C 192.168.3.0/24 is directly connected, FastEthernet0/0

R 192.168.1.0/24 [120,1] via 192.168.2.2(on FastEthernet0/0)

//发现route-B自动学习到到达192.168.1.0网段的路由表 10.测试连通性

在pc1上分别ping 以下IP地址,请回答是否通? 192.168.1.1 192.168.2.1 192.168.2.2 192.168.3.1 192.168.3.10

在pc2上分别ping 以下IP地址,请问是否通? 192.168.3.1 192.168.2.2 192.168.2.1 192.168.1.1 192.168.1.10

思考:请问如何起用OSPF 动态路由协议。

本文来源:https://www.bwwdw.com/article/2j2w.html

Top