思科(Cisco)IOS基本操作命令(一) |
您所在的位置:网站首页 › 3d体积光参数 › 思科(Cisco)IOS基本操作命令(一) |
一、简介 Cisco的网m际操作系统(IOS:Internetwork Operating Syste),IOS配置通常是通过基于文本的命令行接口(Command Line Interface,CLI)进行的。 二、路由其基本操作 1、基本操作模式 1)用户模式 Router> #通常可以查看统计信息 Router>logout #退出用户模式 2)特权模式 Router>enable Router# #进入特权模式,特权模式是从用户模式进入的;用于产看和修改路由器配置。 router#disable #退出特权模式 3)全局配置模式 Router#configure terminal #进入全局配置模式,全局配置模式从特权模式进入;在全局配置模式中,做的任何修改都会在路由器中生效。 Router#config t 或者 Router#congfigure #这两个简化命令都可以进入全局配置模式 Router(config)#exit #退出全局配置模式,也可以使用快捷键ctrl+z。 2、帮助命令与命令补全 在IOS中,可以使用tab键进行命令补全,用?获取命令帮助,如: Router#conf #在这里按tab键 Router#configure t #补全为configure,输入t,再按tab键 Router#configure terminal #补全为configure terminal
Router#c? #命令帮助 clear clock configure connect copy Router#clock ? set Set the time and date Router#clock set ? hh:mm:ss Current Time Router#clock set 11:44:59 ? Day of zhe month MONTH Month of the year Router#clock set 11:44:59 25 ? MONTH Month of the year Router#clock set 11:44:59 25 Apr ? (1993-2035) Year Router#clock set 11:44:59 25 Apr 2015 ? #表示按回车键enter Router#clock set 11:44:59 25 Apr 2015 Router#show clock #查看时间设置 *11:44:59.56 UTC Sat 25 Apr 2015 3、常用快捷键 ctrl+u #从光标所在位置删除到行尾 ctrl+a #光标移动到行首 ctrl+e #光标移动到行尾 4、历史命令 Router#show terminal #查看终端配置与历史命令保存条数 Router#show history #查看历史命令 ↑ ↓ 上下箭头 调用前一个或后一个命令 Router#terminal history size ? Size of history huffer Router#terminal history size 50 #修改历史命令保存条数 5、查看路由器基本信息 Router#show vesion 三、路由器和交换机的密码管理 1、设置主机名 Router>en Router#config t Enter configuration commands ,one per line.End with CNTL/Z Router(config)#hostname R0 R0(config)# 2、设置登录提示信息 1)定义日期信息表记 R0(config)#banner motd I Enter TEXT message.End with the character 'I' Warning:NO LOADI |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |