计算机网络实验

实验四 交换机的Telnet远程登陆配置

一、实验目标

        掌握采用Telnet方式配置交换机的方法。

二、实验背景

       第一次在设备机房对交换机进行了初次配置后,你希望以后在办公室或出差时也可以对设备进行远程管理。现要在交换机上做适当配置。

三、技术原理

       配置交换机的管理IP地址(计算机的IP地址与交换机管理IP地址在同一个网段):

   1.为telnet用户配置用户名和登录口令:

       1) 交换机、路由器中有很多密码,设置对这些密码可以有效的提高设备的安全性。

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

  3) switch(config-line)可以设置通过console端口连接设备及Telnet远程登录时所需的密码;

    1. switch(config)# line console 0
    2. switch(config-line)# password 5ijsj
    3. switch(config-line)# login
    4. switch(config)# line vty 0 4
    5. switch(config-line)# password 5ijsj
    6. switch(config-line)# login

四、实验步骤

  1. 新建Packet Tracer拓扑图
  2. 配置交换机管理ip地址
    1. Switch(config)# int vlan 1
    2. Switch(config-if)# ip address **IP** **submask***

  3.  配置用户登录密码

    1. Switch(config)# enable password ******* 设置进入特权模式的密码
    2. Switch(config)# line vty 0 4
    3. Switch(config-line)# password 5ijsj
    4. Switch(config-line)# login

五、实验设备

    Switch_2960 1台;PC 1台;直连线;配置线

六、实验拓扑图

 实验拓扑图

七、实验命令

PC

192.168.1.2

255.255.255.0

192.168.1.1

PC终端

en

conf t

inter vlan 1(默认交换机的所有端口都在VLAN1中)

ip address 192.168.1.1 255.255.255.0

no shutdown

exit

enable password 123456

line vty 0 4

password 5ijsj

login

end

show run

PC CMD

ping 192.168.1.1

telnet 192.168.1.1

password:5ijsj

enable

password:123456

show runing

猜你喜欢

转载自blog.csdn.net/vi1988/article/details/89632919