预览加载中,请您耐心等待几秒...
1/6
2/6
3/6
4/6
5/6
6/6

在线预览结束,喜欢就下载吧,查找使用更方便

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

一、实验目标 掌握采用telnet方式配置交换机的方法 二、技术原理 配置交换机的管理IP地址(计算机的IP地址与交换机管理IP地址在同一网段); 为telnet用户配置用户名和登录口令: Switch(config)#enblepasswordxxxx//设置进入特权模式的密码; Switch(config-line)#passwordxxxx//可以设置通过console端口连接设备及telnet远程登录时所需要的密码。 Switch(config)#lineconsole0Switch(config-line)#passwordxxxx//设置通过console端口连接设备的密码Switch(config-line)#loginSwitch(config)#linevty04Switch(config-line)#passwordxxxx//设置telnet远程登录密码Switch(config-line)#login 三、实验步骤 实验拓扑 Switch>enSwitch#conftEnterconfigurationcommands,oneperline.EndwithCNTL/Z. 1、配置交换机的管理IP地址 Switch(config)#interfacevlan1//默认情况下交换机所有端口都处于vlan1当中Switch(config-if)#ipaddress192.168.1.1255.255.255.0//配置交换机管理IP地址Switch(config-if)#noshutdown//开启InterfaceVlan1%LINK-5-CHANGED:InterfaceVlan1,changedstatetoupSwitch(config-if)#%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceVlan1,changedstatetoupSwitch(config-if)#exit 2、设置进入特权模式的密码 Switch(config)#enablepassword123456//设置进入特权模式的密码Switch(config)#lineconsole?<0-0>FirstLinenumber 3、设置通过console端口连接设备的密码 Switch(config)#lineconsole0Switch(config-line)#passwordasdf//设置通过console端口连接设备的密码Switch(config-line)#loginSwitch(config-line)#exitSwitch(config)#linevty?<0-15>FirstLinenumber 4、设置telnet远程登录密码 Switch(config)#linevty04Switch(config-line)#passwordabc123//设置telnet远程登录密码Switch(config-line)#loginSwitch(config-line)#endSwitch#%SYS-5-CONFIG_I:Configuredfromconsolebyconsole 5、查看配置情况 Switch#showrunning-configBuildingconfiguration...Currentconfiguration:1064bytes!version12.2noservicetimestampslogdatetimemsecnoservicetimestampsdebugdatetimemsecnoservicepassword-encryption!hostnameSwitch!enablepassword123456!!!interfaceFastEthernet0/1!......!interfaceFastEthernet0/24!interfaceGigabitEthernet1/1!interfaceGigabitEthernet1/2!interfaceVlan1ipaddress192.168.1.1255.255.255.0!!linecon0 passwordasdflogin !linevty04passwordabc123loginlinevty515login!!endSwitch# 四、验证 1、验证通过console端口连接设备的密码 PressRETURNtogetstarted.UserAccessVerificationPassword://这里输入asdf Switch> 2、验证进入特权模式的密码 Switch>enPassword://这里输入123456 Switch# 3、验证telnet远程登录密码 a.给PC机