实验2:CLI的使用与IOS基本命令

1、实验目的

通过本实验可以掌握:

  • CLI的各种工作模式个CLI各种编辑命令
  • "?" 和【Tab】键使用方法
  • IOS基本命令
  • 网络设备访问限制
  • 查看设备的相关信息

2、实验拓扑

CLI的使用与IOS基本命令使用拓扑如下图所示。

3、实验步骤

(1)CLI模式的切换

复制代码
Router>enable     //进入特权模式
Router#
Router#disable    //返回用户模式
Router>

(2)"?" 和【Tab】键的使用方法

以配置路由器系统时钟为例来说明"?" 和【Tab】键的作用。

复制代码
Router>enable 
Router#clok
Translating "clok"...domain server (255.255.255.255)
% Unknown command or computer name, or unable to find computer address
//输入了未知的命令或计算机名,或者不能找到计算机地址,也就是DNS解析失败

【提示】

如果在特权模式输入了错误的命令,路由器会认为是域名,将会查找 DNS服务器试图解析该域名,由于找不到 DNS服务器,会等很长时间,此时用【Ctrl】+【Shift】+6组合键可以立即退出。全局配置模式下可以通过no ip domain-lookup命令禁止路由器进行 DNS解析,

复制代码
Router#cl?
clear  clock  
Router#clock
% Incomplete command.
Router#clock ?
  set  Set the time and date
Router#clock set ?
  hh:mm:ss  Current Time
Router#clock set 15:00:00 ?
  <1-31>  Day of the month
  MONTH   Month of the year
Router#clock set 15:00:00 29 ?
  MONTH  Month of the year
Router#clock set 15:00:00 29 3 ?
% Unrecognized command
Router#clock set 15:00:00 29 3 
                             ^
% Invalid input detected at '^' marker.
相关推荐
Haha_bj21 小时前
Swift ——详解Any、AnyObject、 AnyClass
ios·swift
Haha_bj21 小时前
Swift 中的async和await
ios·swift
2501_915106321 天前
iOS 抓不到包怎么办?从 HTTPS 代理排查到 TCP 数据流捕获的全链路解决方案
android·tcp/ip·ios·小程序·https·uni-app·iphone
游戏开发爱好者81 天前
APP上架苹果应用商店经验教训与注意事项
android·ios·小程序·https·uni-app·iphone·webview
张飞签名上架1 天前
苹果TF签名:革新应用分发的解决方案
人工智能·安全·ios·苹果签名·企业签名·苹果超级签名
WXG10111 天前
【Flask-7】前后端数据交互
python·ios·flask
笑尘pyrotechnic1 天前
手势识别器内容
ios·objective-c
他们都不看好你,偏偏你最不争气1 天前
【iOS】SDWebImage解析
macos·ios·objective-c·cocoa·sdwebimage
Digitally1 天前
如何从iPhone切换到Android
android·ios·iphone
2501_916007471 天前
苹果应用商店上架的系统逻辑,从产品开发到使用 开心上架 上架IPA 交付审核流程
android·ios·小程序·https·uni-app·iphone·webview