欢迎来到天天文库
浏览记录
ID:47106873
大小:105.12 KB
页数:7页
时间:2019-08-04
《交换机的Telnet远程登录》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、交换机的Telnet远程登录设置一、实验目标 掌握采用telnet方式配置交换机的方法 二、技术原理· 配置交换机的管理IP地址(计算机的IP地址与交换机管理IP地址在同一网段);· 为telnet用户配置用户名和登录口令: Switch(config)#enblepassword xxxx //设置进入特权模式的密码; Switch(config-line)#passwordxxxx //可以设置通过console端口连接设备及telnet远程登录时所需要的密码。
2、Switch(config)#lineconsole0Switch(config-line)#passwordxxxx //设置通过console端口连接设备的密码Switch(config-line)#loginSwitch(config)#linevty04Switch(config-line)#passwordxxxx //设置telnet远程登录密码Switch(config-line)#login三、实验步骤实验拓扑 Switch>e
3、nSwitch#conftEnterconfigurationcommands,oneperline. EndwithCNTL/Z.1、配置交换机的管理IP地址Switch(config)#interfacevlan1 //默认情况下交换机所有端口都处于vlan1当中Switch(config-if)#ipaddress192.168.1.1255.255.255.0 //配置交换机管理IP地址Switch(config-if)#noshutdow
4、n //开启InterfaceVlan1%LINK-5-CHANGED:InterfaceVlan1,changedstatetoupSwitch(config-if)#%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceVlan1,changedstatetoupSwitch(config-if)#exit2、设置进入特权模式的密码Switch(config)#enablepassword123456
5、 //设置进入特权模式的密码Switch(config)#lineconsole? <0-0> FirstLinenumber3、设置通过console端口连接设备的密码Switch(config)#lineconsole0Switch(config-line)#passwordasdf //设置通过console端口连接设备的密码Switch(config-line)#loginSwitch(config-line)#exitSwitch(config)#lin
6、evty? <0-15> FirstLinenumber4、设置telnet远程登录密码Switch(config)#linevty04Switch(config-line)#passwordabc123 //设置telnet远程登录密码Switch(config-line)#login Switch(config-line)#endSwitch#%SYS-5-CONFIG_I:Configuredfromconsolebyconsole 5、查看配置情况Switch#sh
7、owrunning-config Buildingconfiguration...Currentconfiguration:1064bytes!version12.2noservicetimestampslogdatetimemsecnoservicetimestampsdebugdatetimemsecnoservicepassword-encryption!hostnameSwitch!enablepassword123456!!!interfaceFastEthernet0/1!......!int
8、erfaceFastEthernet0/24!interfaceGigabitEthernet1/1!interfaceGigabitEthernet1/2!interfaceVlan1 ipaddress192.168.1.1255.255.255.0!!linecon0 passwordasdf login!linevty04 passwordabc123 loginlinevty515 login!!endSwitch#
此文档下载收益归作者所有