CCNA必须会的命令--每次配置前都必须刷上去的命令
enable
configure terminal
enable password cisco
no ip domain lookup
line console 0
password cisco
logging synchronous
exec-timeout 0 0
exit
line vty 0 4
password cisco
logging synchronous
hostname R1
exit
Router> //默认模式---->用户模式(>)
Router>enable //用户模式---->特权模式(#)
Router#configure terminal //特权模式---->全局模式(config)
Router(config)#enable password cisco //从特权模式进入全局模式设置一个明文密码
Router(config)#no ip domain lookup //关闭路由器命令解析功能
Router(config)#line console 0 //进入console接口模式
Router(config-line)#password cisco //为console接口接口模式配置一个密码
Router(config-line)#logging synchronous //光标跟随,在输入命令的时候,不会被一些日 志信息打断
Router(config-line)#exec-timeout 0 0 //设置路由器几分几秒弹出到用户模式。0 0表 示永不超时
Router(config-line)#exit //退出当前模式
Router(config)#line vty 0 4 //进入vty接口模式
Router(config-line)#password cisco //为telnet用户设置一个进入的密码
Router(config-line)#logging synchronous
Router(config)#hostname R1 //配置主机名
R1(config)#exit
R1#
浙公网安备 33010602011771号