Switch_2960 1台
PC 1台
直连线
配置线
设置进入帽特特权模式的密码Switch(config)# enable password *******
设置通过console端口连接设备及Telnet远程登录时所需的密码
配置用户登录密码Switch(config)# enable password ******* 设置进入特权模式低温的密码Switch(config)# line vty 0 4Switch(config-line)# password 5ijsjSwitch(config-line)# login
配置交换机管理ip地址Switch(config)# int vlan 1Switch(config-if)# ip 救菊国address **IP** **submask***
配置PC的ip
配置用户登录密码
检测1 PC:ping 192.168.1.1
检测2PC:telnet 192.168.1.1
检测3:Show running
实验命令PC192.168.1.2255.255.255.0192.168.1.1 PC终端enconf tinter vlan 1(默认交换机的所有端口都在VLAN1中)ip address 192.168.1.1 255.255.255.0no shutdownexit enable password 123456line vty 0 4password 5ijsjloginendshow run PC CMDping 192.168.1.1telnet 192.168.1.1password:5ijsjenablepassword:123456show runing
技术原理配置交换机的管理IP地址(计算机的IP地址与交换机管理IP地址在同一个网段): 为telnet用户配置用户名和登录口令: 1) 交换机、路由器中有很多密码,设置对这些密码可以有效的提高设备的安全性。 2) switch(config)# enable password ****** 设置进入特权模式的密码 3) switch(config-line)可以设置通过console端口连接设备及Telnet远程登录时所需的密码;switch(config)# line console 0switch(config-line)# password 5ijsjswitch(config-line)# loginswitch(config)# line vty 0 4switch(config-line)# password 5ijsjswitch(config-line)# login
如果以上都没有问题,那么恭喜你配置成功了!
设置登录密码一定要记好不要混了,忘记了就多试几次。
使用PC的cmd登录交换机时,输入密码是不显示的,可以直接登录。