实验环境配置
Switch_2960 1台;PC(终端) 1台;直连线;配置线
实验步骤
新建拓扑图
配置交换机管理ip地址(进入VLAN1接口,设置IP地址)
//进入特权模式switch>en//进入全局配置模式switch#conf t//进入vlan 1 接口switch(config)#int vlan 1//配置IP地址switch(config-if)#ip address 192.168.1.254 255.255.255.0//开启vlan 地址栏switch(config-if)#no shutdown
结果演示:
3.配置进入特权模式的密码、连接console端口的密码及telnet的登录密码
//在全局配置模式下设置进入特权模式的密码switch(config)#enable password 123456(自定义密码)//进入console口switch(config)#line console 0//设置进入端口的密码switch(config-line)#password 123456(和上面的密码不一定要一样)//开启密码登录switch(config-line)#login//进入telnet口switch(config)#line vty 0 4//设置密码switch(config-line)#password 123456(和上面的密码不一定要一样)//开启密码登录switch(config-line)#login
结果演示:
提醒: PC(终端机)同样需要配置同网段的IP地址
验证
在pc端使用telnet的方式登录交换机(需验证telnet的登录密码)
对交换机进行管理,并验证进入特权模式的密码。
//telnet远程登录交换机PC>telnet 192.168.1.254
提醒:输入的密码不会有显示