VTY远程操控

(1)

Router>enable

Router#config

Router(config)#interface f0/0

Router(config-if)#ip address 192.168.3.1 255.255.255.0

Router(config-if)#no shutdown

Router(config-if)#exit

Router(config)#enable password Cisco                  !设置明文密码

Router(config)#enable secret Cisco                         !设置MD5加密密码

Router(config)#line vty 0 4                                           !配置0~4号VTY线路,Cisco路由器可实现最多5 条

                                                                                        telnet逻辑连接同时登录系统

Router(config-line)#login                                            !开启VTY登录

Router(config-line)#password 123                            !设置登录密码,否则无法登录

wKiom1UQxo2z-fTRAAKwmtv40rw776.jpg

 

(2)配置VTY之后就可以在计算机的DOS模式,输入telnet 192.168.1.1登录到路由器,过程如下:

       telnet 192.168.3.1

       Trying 192.168.3.1...Open

       User Access Verification

       Password:

       Router>enable

       Password;

       Router#

wKiom1UQxzSDtdMGAAHOrNKjQH4500.jpg

wKioL1UQyGbzyF-LAAD2U_jCxAg317.jpg

你可能感兴趣的:(远程操控,vty)