交换机telnet远程登陆配置

实验环境配置

Switch_2960 1台;PC(终端) 1台;直连线;配置线


实验步骤

  1. 新建拓扑图

    console线连接console

  2. 配置交换机管理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

在这里插入图片描述
提醒:输入的密码不会有显示