怎样用telnet远程登录交换机?
首先你的交换机应该有一个管理地址,你通过telnet 管理地址就可以远程上去了

H3C交换机如何设置TELNET登陆?
h3c交换机设置telnet登陆流程: 进入console0口:[h3c]user-interfaceaux0(s)修改验证模式:[h3c-ui-aux0]authentication-modepassword设置aux0口密码:[h3c-ui-console0]setauthenticationpasswordcipher|simplewisdom进入vlan1接口视图:[h3c]interfacevlan-interface1为该接口设置ip:[h3c-vlan-interface1]ipaddress172.16.99.100255.255.255.0[h3c-vlan-interface1]ipaddress172.16.99.10024进入vty04接口:[h3c]user-interfacevty04设置密码模式:[h3c-ui-vty0-4]authentication-modepassword设置密码:[h3c-ui-vty0-4]setauthenticationpasswordcipher|simplewisdom设置登录级别:[h3c-ui-vty0-4]userprivilegelevel 3
进入console0口: [H3C]user-interfaceaux0(S)修改验证模式:[H3C-ui-aux0]authentication-modepassword设置aux0口密码:[H3C-ui-console0]setauthenticationpasswordcipher|simplewisdom进入VLAN1接口视图:[H3C]interfaceVlan-interface1为该接口设置IP:[H3C-Vlan-interface1]ipaddress172.16.99.100255.255.255.0[H3C-Vlan-interface1]ipaddress172.16.99.10024进入vty04接口:[H3C]user-interfacevty04设置密码模式:[H3C-ui-vty0-4]authentication-modepassword设置密码:[H3C-ui-vty0-4]setauthenticationpasswordcipher|simplewisdom设置登录级别:[H3C-ui-vty0-4]userprivilegelevel 3

给pc机设置ip地址,用telnet命令重新登录到交换机,pc地址要和管理地址在同一网?
不一定是同一网段,看你的网络结构。比如管理地址是单独的网段,网关在核心交换机上,用户端网段又在另一个网段,网关也在核心上,接入交换机只配置了管理地址,这样你获取到的用户地址和管理地址就是不同网段的,只要你能ping通管理地址就能telnet过去。

telnet远程登录交换机执行命令的批处理?
全部用批处理有点困难,用vbs脚本吧,最多就再写个批处理调用vbs脚本。。。 以下是vbs脚本,将下列内容粘贴到记事本,然后保存为"批处理.vbs"...dim wshshellset wshshell=createobject("wscript.shell")wshshell.run "cmd"wscript.sleep 1000 '延迟1秒(1000毫秒)wshshell.sendkeys "telnet "wscript.sleep 200wshshell.sendkeys "10.0.0.1" '这里写ipwscript.sleep 200wshshell.sendkeys "{ENTER}" '这是回车换行wscript.sleep 200wshshell.sendkeys "user" '这里写用户名wscript.sleep 200wshshell.sendkeys "{ENTER}"wscript.sleep 200wshshell.sendkeys "passwd" '这里写密码wscript.sleep 500wshshell.sendkeys "{ENTER}"wshshell.sendkeys "sysname" 'sysname命令wscript.sleep 300wshshell.sendkeys "{ENTER}"'其他的都仿照这个格式写吧wshshell.sendkeys "display configuration" '其他命令wscript.sleep 300wshshell.sendkeys "{ENTER}"若需使用特殊按键,可参考http://blog.csdn.net/haikesx/article/details/2896824

如何用telnet 命令远程登陆交换机
工具/原料 Switch_2960 1台PC 1台直连线配置线方法/步骤1建立实验拓扑图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)# login5配置交换机管理ip地址Switch(config)# int vlan 1Switch(config-if)# ip address **IP** **submask***6配置PC的ip7配置用户登录密码8检测1PC:ping 192.168.1.19检测2PC:telnet 192.168.1.110检测3:Show runningEND附加实验命令PC192.168.1.2255.255.255.0192.168.1.1PC终端enconf tinter vlan 1(默认交换机的所有端口都在VLAN1中)ip address 192.168.1.1 255.255.255.0no shutdownexitenable password 123456line vty 0 4password 5ijsjloginendshow runPC 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)# loginEND注意事项 如果以上都没有问题,那么恭喜你配置成功了!

本文由 在线网速测试 整理编辑,转载请注明出处。