实验报告
课程名称:计算机网络基础
学 院:计算机科学与工程
专 业:计算机科学与技术
学生姓名:郭小明
学 号:2011060100010
实验成绩:
日 期:2013 年 6 月 7 日
电 子 科 技 大 学
实 验 报 告
实验一:交换机的基本配置
一、实验室:软件工程实验室 实验日期:6月7日
二、实验目的:
掌握交换机命令行各种操作模式的区别,能够使用各种帮助信息,以及用命令进行基本的配置。
实验原理:
交换机的管理方式基本分为两种:带内管理和带外管理。通过交换机的Console口管理交换机属于带外管理,不占用交换机的网络接口,其特点是需要使用配置线缆,近距离配置。第一次配置交换机时必须利用Console端口进行配置。
交换机的命令行操作模式,主要包括:用户模式、特权模式、全局配置模式、端口模式等几种。
四、实验器材:
PC + Cisco Packet Tracer 5.3.1
五、实验步骤:
在模拟软件上建立交换机,然后进行配置操作。
(1)进入特权模式,配置主机名和每日提示信息,依次执行下面的操作
Switch>enable
Switch#configure terminal
Switch(config)#hostname 2011060100010-sw
2011060100010-sw(config)#banner motd $
Enter TEXT message. End with the character '$'.
Welcome to 2011060100010-sw. Please do your experiments
follow your teachers advice.Thank you!
$
(2)配置接口状态(配置的是接口5)
2011060100010-sw>enable
2011060100010-sw#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
2011060100010-sw(config-if)#interface fastEthernet 0/5
2011060100010-sw(config-if)#speed 10
2011060100010-sw(config-if)#duplex half
2011060100010-sw(config-if)#no shutdown
2011060100010-sw(config-if)#description "This is accessport,thank you"
2011060100010-sw(config-if)#end
(3)保存配置
2011060100010-sw#copy running-config startup-config
2011060100010-sw#write memory
2011060100010-sw#write
六、实验数据及结果分析:(配置的是接口5)
2011060100010-sw#show running-config
Building configuration...
Current configuration : 1197 bytes
!
version 12.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname 2011060100010-sw
!
!
!
interface FastEthernet0/1
!
interface FastEthernet0/2
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
description "This is accessport,thank you"
duplex half
speed 10
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEt