您的位置:首页 > 职场人生

通过telnet访问路由器

2009-12-07 10:11 246 查看
实验2:通过telnet访问路由器
1、 实验目的
通过本次实验我们可以掌握以下技能
1) 配置路由器以太网接口地址。
2) 配置路由器的enable密码和vty密码。
3) telnet程序的使用。
2、 实验拓扑图



3、 实验步骤
(1) 配置路由器的以太网接口地址
RA>enable
RA#conft
RA#conf t
RA#conf terminal
Enter configuration commands, one per line. End with CNTL/Z.
RA(config)#int
RA(config)#interface f
RA(config)#interface fastEthernet 0/0
RA(config-if)#ip ad
RA(config-if)#ip address 172.16.1.1 255.255.0.0
RA(config-if)#no sh
RA(config-if)#no shutdown
RA(config-if)#end
%SYS-5-CONFIG_I: Configured from console by console
RA#
(2) 配置路由器的密码
RA>en
RA#conf t
Enter configuration commands, one per line. End with CNTL/Z.
RA(config)#line
RA(config)#line vt
RA(config)#line vty 0 4
RA(config-line)#pas
RA(config-line)#password 123
RA(config-line)#log
RA(config-line)#logi
RA(config-line)#login
RA(config-line)#exit
RA(config)#en
RA(config)#ena
RA(config)#enable pa
RA(config)#enable password 456
RA(config)#end
%SYS-5-CONFIG_I: Configured from console by console
RA#
(3) 通过telnet访问路由器
双击“pc机”进入如下界面:



选择“command prompt”进入,命令提示符,首先ping 172.16.1.1看能否ping通路由器,然后在通过telnet进行远程访问路由器。如下图:



OK了,出现如上图,表明我们可以成功的访问路由器!!实验成功。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息