Advertisement

计算机网络实验报告西南科技大学,西南科技大学计算机网络-实验二.docx

阅读量:

计算机网络实验报告

实验二

实验名称:

基本交换机配置

学 号:

学生姓名:

班 级:

指导教师:

实验地点:

评 分:

一、实验目的

创建基本的交换机配置,包括名称和?IP?地址

配置口令以确保对?CLI?的访问受到保护

配置交换机端口速度和接口的双工属性

配置基本的交换机端口安全

管理?MAC?地址表

分配静态?MAC?地址

在交换机上添加和移动主机

二、实验拓扑图及编址表

设备

接口

IP?地址

子网掩码

默认网关

PC1

网卡

172.17.99.21

255.255.255.0

172.17.99.11

PC2

网卡

172.17.99.32

255.255.255.0

172.17.99.11

S1

VLAN99

172.17.99.11

255.255.255.0

172.17.99.1

实验内容

任务?1:创建基本交换机配置

步骤?1:为交换机指定名称。

配置了主机名。

S1#configure???terminal

S1(config)#hostname???S1

S1(config)#exit

步骤?2:设置访问口令。

进入控制台的配置行模式。将登录口令设置为?cisco。另请使用口令?cisco?配置?vty?线路?0?到?15。

S1#configure???terminal

Enter???the???configuration???commands,???one???for???each???line.???When???you???are???finished,

return???to???global???configuration???mode???by???entering???the???exit???command???or???pressing

Ctrl-Z.

S1(config)#line???console???0

S1(config-line)#password???cisco

S1(config-line)#login

S1(config-line)#line???vty???0???15

S1(config-line)#password???cisco

S1(config-line)#login

S1(config-line)#exit

步骤3:设置命令模式口令。

将使能加密口令设置为?class。此口令用于保护对特权执行模式的访问。

S1(config)#enable???secret???class

步骤?4:配置交换机的第?3?层地址。

首先需要在交换机上创建新的?VLAN?99。然后将交换机的?IP?地址设置为?172.17.99.11,在内部虚拟接口

VLAN?99?上使用子网掩码?255.255.255.0。

S1(config)#vlan???99

S1(config-vlan)#exit

S1(config)#interface???vlan99

%LINEPROTO-5-UPDOWN:???Line???protocol???on???Interface???Vlan99,???changed???state???to???down

S1(config-if)#ip???address???172.17.99.11???255.255.255.0

S1(config-if)#no???shutdown

将所有用户端口分配到?VLAN?99。

S1#configure???terminal

S1(config)#interface???range???fa0/1???-???24

S1(config-if-range)#switchport???access???vlan???99

S1(config-if-range)#exit

S1(config-if-range)#

步骤?5:设置交换机的默认网关。

S1(config)#ip???default-gateway???172.17.99.1

S1(config)#exit

步骤?6:配置?PC1?的?IP?地址和默认网关。

将?PC1?的?IP?地址设置为?172.17.99.21,使用子网掩码?255.255.255.0。将默认网关配置为

172.17.99.11。(如果需要,请参照实验?1.3.1?配置?PC?的网卡。)

步骤?8:配置快速以太网接口的端口速度和双工设置。

Configure?the?duplex?and?speed?settings?on?Fast?Ethernet?0/18.?完成时用?end?命令返回特权执行模式。

S1#configure???terminal

S1(config)#interface???fastethernet???0/18

S1(c

全部评论 (0)

还没有任何评论哟~