免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1653 | 回复: 0
打印 上一主题 下一主题

telnet 实验 [复制链接]

论坛徽章:
2
IT运维版块每日发帖之星
日期:2016-03-29 06:20:00IT运维版块每日发帖之星
日期:2016-03-30 06:20:00
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2016-03-26 16:45 |只看该作者 |倒序浏览
本帖最后由 anonym0us 于 2016-03-26 17:02 编辑

telnet:


主要的TCP 服务例如telnet:

R1配置:
Router>enable
Router#configure terminal

Router(config)#line console 0               //配置线路console 口
Router(config-line)#exec-timeout 0 0         //设置超时为永不超时
Router(config-line)#logging synchronous        //开启日志同步信息
Router(config-line)#exit
Router(config)#no ip domain-lookup                 //关闭域名解析
Router(config)#hostname Router0             //设置路由器的名称

Router0 (config)#interface f0/0
Router0 (config-if)#ip address 12.1.1.1 255.255.255.0
Router0 (config-if)#no shutdown
Router0 (config-if)#exit                   //在接口下配置IP地址


R2配置:
Router(config)#line console 0
Router(config-line)#exec-timeout 0 0
Router(config-line)#logging synchronous
Router(config-line)#exit
Router(config)#no ip domain-lookup
Router(config)#hostname Router2

Router2 (config)#interface f0/0
Router2 (config-if)#ip address 12.1.1.2 255.255.255.0
Router2 (config-if)#no shutdown
Router2(config-if)#exit

Router2 (config)#username 123 password 123    //设置用户名和密码
Router2 (config)#line vty 0 4               //设置登陆线路的接口
Router2 (config-line)#password 123              //设置线路密码
Router2 (config-line)#exit
Router2 (config)#enable password 123        //进入特权用户的密码
Router2 (config)#end


Router0#telnet 12.1.1.2                  //进行telnet 登陆
Trying 12.1.1.2 ... Open

User Access Verification
Password:
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP