实验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.
相关推荐
叽哥7 小时前
Flutter Riverpod上手指南
android·flutter·ios
用户091 天前
SwiftUI Charts 函数绘图完全指南
ios·swiftui·swift
YungFan1 天前
iOS26适配指南之UIColor
ios·swift
权咚2 天前
阿权的开发经验小集
git·ios·xcode
用户092 天前
TipKit与CloudKit同步完全指南
ios·swift
法的空间2 天前
Flutter JsonToDart 支持 JsonSchema
android·flutter·ios
2501_915918412 天前
iOS 上架全流程指南 iOS 应用发布步骤、App Store 上架流程、uni-app 打包上传 ipa 与审核实战经验分享
android·ios·小程序·uni-app·cocoa·iphone·webview
00后程序员张2 天前
iOS App 混淆与加固对比 源码混淆与ipa文件混淆的区别、iOS代码保护与应用安全场景最佳实践
android·安全·ios·小程序·uni-app·iphone·webview
Magnetic_h3 天前
【iOS】设计模式复习
笔记·学习·ios·设计模式·objective-c·cocoa
00后程序员张3 天前
详细解析苹果iOS应用上架到App Store的完整步骤与指南
android·ios·小程序·https·uni-app·iphone·webview