多语言展示
当前在线:1810今日阅读:27今日分享:41

如何配置交换机的Telnet远程登陆

第一次在设备机房对交换机进行了初次配置后,你希望以后在办公室或出差时也可以对设备进行远程管理。现要在交换机上做适当配置。通过本经验,可以掌握采用Telnet方式配置交换机的方法。
工具/原料
1

Switch_2960 1台

2

PC 1台

3

直连线

4

配置线

方法/步骤
2

设置进入帽特特权模式的密码Switch(config)# enable password *******

3

设置通过console端口连接设备及Telnet远程登录时所需的密码

4

配置用户登录密码Switch(config)# enable password ******* 设置进入特权模式低温的密码Switch(config)# line vty 0 4Switch(config-line)# password 5ijsjSwitch(config-line)# login

5

配置交换机管理ip地址Switch(config)# int vlan 1Switch(config-if)# ip 救菊国address **IP** **submask***

6

配置PC的ip

7

配置用户登录密码

8

检测1 PC:ping 192.168.1.1

9

检测2PC:telnet 192.168.1.1

10

检测3:Show running

附加
1

实验命令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

2

技术原理配置交换机的管理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

注意事项
1

如果以上都没有问题,那么恭喜你配置成功了!

2

设置登录密码一定要记好不要混了,忘记了就多试几次。

3

使用PC的cmd登录交换机时,输入密码是不显示的,可以直接登录。

推荐信息