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.
相关推荐
人月神话Lee4 小时前
一个iOS开发者对Flutter中Widget、Element和RenderObject的理解
前端·flutter·ios
2501_916007474 小时前
iOS 开发工具有哪些 按开发流程整理的工具清单
ide·vscode·ios·objective-c·个人开发·swift·敏捷流程
2501_915921435 小时前
2026 iOS 上架新趋势 iOS 发布流程模块化
android·ios·小程序·https·uni-app·iphone·webview
库奇噜啦呼6 小时前
【iOS】Effective Objective-C第四章
ios·objective-c·cocoa
开心就好202519 小时前
使用Wireshark进行TCP数据包抓包分析:三次握手与四次挥手详解
后端·ios
开心就好202520 小时前
Flutter iOS 包破解风险处理 可读信息抹除
后端·ios
报错小能手1 天前
ios开发方向——Swift语言学习 为啥要学Swift?
学习·ios·swift
哈__1 天前
ReactNative项目OpenHarmony三方库集成实战:react-native-push-notification-ios
react native·react.js·ios
2501_915909061 天前
iOS 抓包不越狱,代理抓包 和 数据线直连抓包两种实现方式
android·ios·小程序·https·uni-app·iphone·webview