思科设备工作模式简介

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
命令
保存在RAM中
保存在NVRAM中
wg_ro_c#show running-config Building configuration...
Current configuration: ! version 12.0 !
-- More --
wg_ro_c#show startup-config Using 1359 out of 32762 bytes ! version 12.0 !
其他的设置状态 在特权执行状态输入相应的命
令时进入 例如:interface serial 2/0 router(config-mode)#
CISCO网络工程师
内部讲义
各种模式间的转换*
configure terminal
全局配置模式 Router(config)#
用户模式 Router>
-- CMISoCrOe网-络- 工程师
Create a temporary Access-List entry Apply user-profile to interface Create a temporary Access-List entry For manual emergency modes setting Change current directory Reset functions Manage the system clock Enter configuration mode Open a terminal connection Copy from one file to another Debugging functions (see also 'undebug') Delete a file List files on a filesystem Turn off privileged commands Disconnect an existing network connection Turn on privileged commands Erase a filesystem Exit from the EXEC Description of the interactive help system
• Administratively turns off an interface管理性关闭
Router#configure term Router(config)#interface serial 0 Router(config-if)#no shutdown %LINK-3-UPDOWN: Interface Seria0, changed state to up %LINEPROTO-5-UPDOWN: Line Protocol on Interface Serial0, changed state to up
Ctrl-Z (end) Exit
配置模式
Interface Subinterface Controller controller)# Line Router IPX router
模式提示
Router(config-if)# Router(config-subif)#
Router(config-wenku.baidu.com
Router(config-line)# Router(config-router)# Router(config-ipx-router)#
Carrier Detect
Keepalives
Operational.................S.erial1 is up, line protocol is up Connection problem..S. erial1 is up, line protocol is down Interface problem......S..erial1 is down, line protocol is down Disabled .....................S.erial1 is administratively down, line protocol is down
CISCO网络工程师
内部讲义
给接口配置IP地址*
Because IP address is interface specific, you need to go to interface
Router>enable Router#config t Router(config)#int s0/0 Router(config-if)#ip address 172.16.20.2 255.255.255.0 Router(config-if)#int f0/0 Router(config-if)#ip address 172.16.10.1 255.255.255.0 Router(config-if)#^Z
CISCO网络工程师
内部讲义
查看配置情况*
RAM
NVRAM
Config
Config
IOS show
running-config
控制台
show startup-config
Setup utility
将配置参数保存到NVRAM中
CISCO网络工程师
内部讲义
show running 和 show startup
CISCO网络工程师
内部讲义
使用 ping和 trace 命令
Router#ping 10.1.1.10
Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 10.1.1.10, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/4 ms
路由器特权模式命令列表
wg_ro_c#?
Exec commands: access-enable access-profile access-template bfe cd clear clock configure connect copy debug delete dir disable disconnect enable erase exit help
设置时钟频率 (只在DCE端)
Router(config-if)#clock rate 64000 Router(config-if)#
调协波特率 (建议)
Router(config-if)#bandwidth 64000 Router(config-if)#exit Router(config)#exit Router#
% Incomplete command.
Router# clock ?
set
Set the time and date
• 字符解析 • 命令提示 • 命令回调
Router# clock set
% Incomplete command.
<Ctrl-P>clock set ?
Router# hh:mm:ss Current Time
进入全局配置模式
指定某个端口
Router(config)#interface Router(config-if)#
serial 0/0
配置串口
进入全局配置模式 指定某个端口
Router#configure term Router(config)#
Router(config)#interface serial 0/0 Router(config-if)#
内部讲义
路由器上下文相关帮助
Router# clok
Translating "CLOK" % Unknown command or computer name, or unable to find computer address
Router# cl?
clear clock
Router# clock
接口的状态
Router#show interfaces serial 1
Serial1 is up, line protocol is up
Hardware is HD64570 Description: 64Kb Line to San Jose :: :: :: :: :: :: :: :: ::
• number 用来识别具体的单个端口
Router(config)#interface type slot/port Router(config-if)#
• 模块化端口的表示法
Router(config-if)#exit
• 从当前端口配置模式退出
配置串口
Router#configure term Router(config)#
enable exit
特权模式 Router#
exit end ctrl+z
exit
具体命令
CISCO网络工程师
end ctrl+z
内部讲义
子配置模式 Router(config-mode)#
路由器模式一览
用户模式 特权模式 全局配置模式
Router>enable Router#config term Router(config)#
禁用或启用一个接口
Router#configure term Router(config)#interface serial 0 Router(config-if)#shutdown %LINK-5-CHANGED: Interface Serial0, changed state to administratively down %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to down
Conversations 0/1/256 (active/max active/max total) Reserved Conversations 0/0 (allocated/max allocated) 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec (output omitted)
• Enables an interface that is administratively shut down启用
CISCO网络工程师
内部讲义
确认参数修改情况
Router#show interface serial 0/0 Serial0 is up, line protocol is up
Hardware is HD64570 Internet address is 10.140.4.2/24 MTU 1500 bytes, BW 64 Kbit, DLY 20000 usec, rely 255/255, load 1/255 Encapsulation HDLC, loopback not set, keepalive set (10 sec) Last input 00:00:09, output 00:00:04, output hang never Last clearing of "show interface" counters never Input queue: 0/75/0 (size/max/drops); Total output drops: 0 Queueing strategy: weighted fair Output queue: 0/1000/64/0 (size/max total/threshold/drops)
Cisco 路由器配置模式 *
一般用户模式
特权模式
只限于路由器的某一些有 有检查,配置,调试等所有
限的权限登录到机器的缺省
权限
状态
通过enable可进入此状态
router>
router#
全局设置状态 在特权执行态输入config
terminal 则进入该态 router(config)#
-- More --
显示当前运行的和保存的配置情况
CISCO网络工程师
内部讲义
端口配置
Router(config)#interface type number Router(config-if)#
• type 包括 serial, ethernet, token ring, fddi, hssi, loopback, dialer, null, async, atm, bri, and tunnel
相关文档
最新文档