太原理工大学计算机网络实验报告

交换机1配置 Switch#sh run

Building configuration...

Current configuration : 1185 bytes !

version 12.1

no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption !

hostname Switch ! !

spanning-tree mode pvst !

interface FastEthernet0/1

switchport trunk allowed vlan 1-3 switchport mode trunk !

interface FastEthernet0/2 switchport access vlan 2 !

interface FastEthernet0/3 --More-- 交换机2配置

Building configuration...

Current configuration : 1185 bytes !

version 12.1

no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption !

hostname Switch ! !

spanning-tree mode pvst !

interface FastEthernet0/1

switchport trunk allowed vlan 1-3 switchport mode trunk !

interface FastEthernet0/2 switchport access vlan 2 !

interface FastEthernet0/3 --More-- 六、试验心得

PC之间的连通性受很多因素影响,网段是否相同,是否处于相同VLAN,位置问题。 此实验用到了上一个实验的VLAN分配,需注意。 电路连接时应该分清它们的接口,不要连接错误。

实验6静态路由配置

一、实验目的

掌握静态路由配置方法。 二、实验任务

置3台路由器上的静态路由,实现模拟远程网络互联。 三、实验设备

Cisco路由器3台,工作站PC两台,交叉线、V35线各两根。 四、拓扑结构

五,试验结果

1) 未设置静态路由。2)设置静态路由。

PC1到PC3不通。 PC1到PC3连通

2) 观察路由信息R1

路由信息R2

路由信息R3 R3>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 * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static route

Gateway of last resort is not set

S 192.168.1.0/24 [1/0] via 192.168.23.2

C 192.168.3.0/24 is directly connected, FastEthernet0/0 S 192.168.12.0/24 [1/0] via 192.168.23.2

C 192.168.23.0/24 is directly connected, Serial0/0/1 R3>

六、实验心得

试验时进行配置时配置命令过多容易输入错误。试验成功。

联系客服:779662525#qq.com(#替换为@) 苏ICP备20003344号-4