成都理工大学工程技术学院
172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
R 172.16.0.0/16 [120/2] via 10.1.1.2, 00:00:15, FastEthernet0/1 S 172.16.1.0/24 [1/0] via 10.1.1.2
C 192.168.1.0/24 is directly connected, FastEthernet0/0 (6) 步骤6:在路由器上观察debug调试信息 R1#debug ip rip
RIP protocol debugging is on
R1#RIP: received v1 update from 10.1.1.2 on FastEthernet0/1 12.0.0.0 in 1 hops 172.16.0.0 in 2 hops
R1#RIP: sending v1 update to 255.255.255.255 via FastEthernet0/0 (192.168.1.1)
RIP: build update entries
network 10.0.0.0 metric 1 network 12.0.0.0 metric 2 network 172.16.0.0 metric 3
RIP: sending v1 update to 255.255.255.255 via FastEthernet0/1 (10.1.1.1) RIP: build update entries
network 192.168.1.0 metric 1 观察和分析以上路由更新的内容。 B. 配置OSPF路由协议
(1) 步骤1:在3台路由器上删除RIPv1的配置,启用OSPF进程 在R1上:
R1(config)#no route rip R1(config)#router ospf 100 R1(config-router)#net
R1(config-router)#network 192.168.1.1 0.0.0.0
R1(config-router)#network 192.168.1.1 0.0.0.0 area 0 R1(config-router)#network 10.1.1.1 0.0.0.0 area 0 R1(config-router)#^Z 在R2上:
R2(config)#no route rip R2(config)#router ospf 200 R2(config-router)#net
R2(config-router)#network 10.1.1.2 0.0.0.0 a R2(config-router)#network 10.1.1.2 0.0.0.0 area 0
19
成都理工大学工程技术学院
R2(config-router)#network 12.1.1.1 0.0.0.0 area 0 R2(config-router)#
01:46:30: %OSPF-5-ADJCHG: Process 200, Nbr 192.168.1.1 on FastEthernet0/0 from LOADING to FULL, Loading Done 在R3上:
R3(config)#no route rip
R3(config)#router ospf 300 R3(config-router)#net
R3(config-router)#network 12.1.1.2 0.0.0.0 a R3(config-router)#network 12.1.1.2 0.0.0.0 area 0 R3(config-router)#network 172.16.1.1 0.0.0.0 area 0 R3(config-router)#^Z
%SYS-5-CONFIG_I: Configured from console by console R3#
00:43:49: %OSPF-5-ADJCHG: Process 300, Nbr 12.1.1.1 on FastEthernet0/0 from LOADING to FULL, Loading Done
图3.3
至此,OSPF路由协议已经配置成功!
(2) 步骤2:检查路由器上运行的路由协议及相关参数
R2#show ip protocols //查看R2上采用的路由协议 Routing Protocol is \
Outgoing update filter list for all interfaces is not set Incoming update filter list for all interfaces is not set Router ID 12.1.1.1
Number of areas in this router is 1. 1 normal 0 stub 0 nssa Maximum path: 4
20
成都理工大学工程技术学院
Routing for Networks: 10.1.1.2 0.0.0.0 area 0 12.1.1.1 0.0.0.0 area 0
Routing Information Sources:
Gateway Distance Last Update 10.1.1.1 110 00:02:54 12.1.1.2 110 00:02:59 Distance: (default is 110) (3) 步骤3:查看邻居表 R2#show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
192.168.1.1 1 FULL/DR 00:00:30 10.1.1.1 FastEthernet0/0 172.16.1.1 1 FULL/BDR 00:00:30 12.1.1.2 FastEthernet0/1 (4) 步骤4:查看R2的拓扑表(链路状态数据库) R2#show ip ospf database
OSPF Router with ID (12.1.1.1) (Process ID 200)
Router Link States (Area 0)
Link ID ADV Router Age Seq# Checksum Link count
192.168.1.1 192.168.1.1 601 0x80000003 0x004d99 2 12.1.1.1 12.1.1.1 532 0x80000004 0x00a248 2 172.16.1.1 172.16.1.1 532 0x80000003 0x008b5c 2
Net Link States (Area 0)
Link ID ADV Router Age Seq# Checksum 10.1.1.1 192.168.1.1 601 0x80000001 0x00cb9b 12.1.1.1 12.1.1.1 532 0x80000001 0x00a2ad 请分析3台路由器的链路状态数据库是否相同? (5) 步骤5:查看R2的路由表 R2#show ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
21
成都理工大学工程技术学院
* - candidate default, U - per-user static route, o - ODR P - periodic downloaded static route
Gateway of last resort is not set
10.0.0.0/24 is subnetted, 1 subnets
C 10.1.1.0 is directly connected, FastEthernet0/0 12.0.0.0/24 is subnetted, 1 subnets
C 12.1.1.0 is directly connected, FastEthernet0/1 172.16.0.0/24 is subnetted, 1 subnets
O 172.16.1.0 [110/2] via 12.1.1.2, 00:10:59, FastEthernet0/1 O 192.168.1.0/24 [110/2] via 10.1.1.1, 00:12:07, FastEthernet0/0 (6) 步骤6:关于OSPF的调试 R2#Debug ip ospf adj R2#Debug ip ospf events
五、 实验调试
在配置RIPv1路由协议时,如果路由表建立不起来,请查看下列项目:
1. 3台路由器的接口地址是否配置正确 2. 接口是否UP 3. 接口是否虚接 4. 线序是否正确
在配置OSPF路由协议时,如果不能建立邻居关系,请检查:
1. 双绞线线序
2. 接口地址和掩码是否正确 3. 接口是否“up” 4. 通配符掩码是否正确
六、 实验思考
1. 在使用debug命令能看到RIPv1通告路由条目时不携带掩码吗? 2. 3台路由器启动OSPF进程的先后顺序不同将会影响什么?
22
成都理工大学工程技术学院
实验四:交换技术与虚拟局域网
一、 实验目的
1. 熟练掌握交换机的基本配置命令 2. 熟练配置Vlan Trunk 3. 熟练配置跨Vlan间通信
二、 实验内容
1. Vlan Trunk 实验 2. 跨Vlan间通信 三、 实验设备
路由器:思科2611 2811 交换机:华为的2950 计算机两台
四、 实验步骤
A. VLAN Trunk 实验 实验Top图:
图4.1 Vlan Trunk 实验
拓扑说明:
在拓扑中,用了两台 2960的交换机,24口,分别在每个交换机的 FastEthernet0/1和 0/2接口上连接了两台 PC 机,现在。我们先做 VLAN 的实验。在交换机上,我们把每台交换机上的两个主机划分到不同的 VLAN 。
23
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说教育文库《网络工程》实验指导书(5)在线全文阅读。
相关推荐: