![](https://iknow-base.cdn.bcebos.com/lxb/notice.png)
如何用telnet 命令远程登陆交换机
1个回答
展开全部
工具/原料
Switch_2960 1台
PC 1台
直连线
配置线
方法/步骤
1
建立实验拓扑图
2
设置进入特权模式的密码
Switch(config)# enable password *******
3
设置通过console端口连接设备及Telnet远程登录时所需的密码
4
配置用户登录密码
Switch(config)# enable password ******* 设置进入特权模式的密码
Switch(config)# line vty 0 4
Switch(config-line)# password 5ijsj
Switch(config-line)# login
5
配置交换机管理ip地址
Switch(config)# int vlan 1
Switch(config-if)# ip address **IP** **submask***
6
配置PC的ip
7
配置用户登录密码
8
检测1
PC:ping 192.168.1.1
9
检测2
PC:telnet 192.168.1.1
10
检测3:
Show running
END
附加
实验命令
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
技术原理
配置交换机的管理IP地址(计算机的IP地址与交换机管理IP地址在同一个网段):
为telnet用户配置用户名和登录口令:
1) 交换机、路由器中有很多密码,设置对这些密码可以有效的提高设备的安全性。
2) switch(config)# enable password ****** 设置进入特权模式的密码
3) switch(config-line)可以设置通过console端口连接设备及Telnet远程登录时所需的密码;
switch(config)# line console 0
switch(config-line)# password 5ijsj
switch(config-line)# login
switch(config)# line vty 0 4
switch(config-line)# password 5ijsj
switch(config-line)# login
END
注意事项
如果以上都没有问题,那么恭喜你配置成功了!
Switch_2960 1台
PC 1台
直连线
配置线
方法/步骤
1
建立实验拓扑图
2
设置进入特权模式的密码
Switch(config)# enable password *******
3
设置通过console端口连接设备及Telnet远程登录时所需的密码
4
配置用户登录密码
Switch(config)# enable password ******* 设置进入特权模式的密码
Switch(config)# line vty 0 4
Switch(config-line)# password 5ijsj
Switch(config-line)# login
5
配置交换机管理ip地址
Switch(config)# int vlan 1
Switch(config-if)# ip address **IP** **submask***
6
配置PC的ip
7
配置用户登录密码
8
检测1
PC:ping 192.168.1.1
9
检测2
PC:telnet 192.168.1.1
10
检测3:
Show running
END
附加
实验命令
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
技术原理
配置交换机的管理IP地址(计算机的IP地址与交换机管理IP地址在同一个网段):
为telnet用户配置用户名和登录口令:
1) 交换机、路由器中有很多密码,设置对这些密码可以有效的提高设备的安全性。
2) switch(config)# enable password ****** 设置进入特权模式的密码
3) switch(config-line)可以设置通过console端口连接设备及Telnet远程登录时所需的密码;
switch(config)# line console 0
switch(config-line)# password 5ijsj
switch(config-line)# login
switch(config)# line vty 0 4
switch(config-line)# password 5ijsj
switch(config-line)# login
END
注意事项
如果以上都没有问题,那么恭喜你配置成功了!
![](https://ecmc.bdimg.com/public03/b4cb859ca634443212c22993b0c87088.png)
2023-05-30 广告
StormProxies是全球大数据IP资源服务商,其住宅代理网络由真实的家庭住宅IP组成,可为企业或个人提供满足各种场景的代理产品。点击免费测试(注册即送1G流量)StormProxies有哪些优势?1、IP+端口提取形式,不限带宽,IP...
点击进入详情页
本回答由Storm代理提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询