【资料整理】cisco [shell, command]

Promot Mode
{
User Mode:
Router>(input: enable)

Privilege Mode:
Router#(input:conf t)

Global Config Mode:
Router(config)#

----Ctrl-Z -> PM, Exit -> GCM

Interface:
Router(config-if)#

Sub-interface:
Router(config-subif)#

Controller:
Router(config-controller)#

Line:
Router(config-line)#

Router:
Router(config-router)#

IPX router :
Router(config-ipx-router)#

}

Command
{ 
1)privilege
enable  //从用户模式进入特权模式 

configure terminal  //进入配置模式
hostname R1  //配置路由器的主机名为R1 
login  //用户要进入路由器,需要先进行登录 
enable password yourpassword  //配置进入特权模式的密码,密码不加密 
enable secret yourpassword  //配置进入特权模式的密码,密码加密 
exit  //退回到上一级模式 
end  //直接回到特权模式 
sh run | append\begin\exclude\include\redirect\section\tee...

2)interface
show interface f0/0  //显示f0/0接口信息  

interface f0/0  //进入f0/0接口 
ip  address  192.168.10.1 255.255.255.0 //配置接口的IP 地址 
no shutdown  //打开接口 

3)router
no ip domain-lookup  //路由器不使用DNS服务器解析主机的 IP 地址 

logging synchonous  //对路由器上的提示信息进行同步,防止信息干扰我们输入命令 
no ip routing  //关闭路由器的路由功能 
ip default-gateway 10.1.14.254  //配置路由器访问其他网段时所需的网关 

---Example:
R1>enable

R1#configure terminal
R1(config)#hostname AtoB
AtoB(config)#interface f0/0
AtoB(config-if)#ip address 192.168.10.1 255.255.255.0
AtoB(config-if)#no shutdown
AtoB(config-if)#end

R2>enable
R2#configure terminal
R2(config)#hostname BtoA
BtoA(config)#interface f0/0
BtoA(config-if)#ip address 192.168.10.2 255.255.255.0
BtoA(config-if)#no shutdown
BtoA(config-if)#end

---
PING
Sending 5, 100-byte ICMP Echos to 192.168.10.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/17/36 ms

4)IOS
show version  //IOS版本信息

config-regiser 0x2101 //修改配置寄存器
show flash
copy run start
erase start

}
时间: 2024-08-09 02:27:14

【资料整理】cisco [shell, command]的相关文章

linux资料整理之shell编程

博客:http://lijinhuan.blog.51cto.com/ 微博:http://weibo.com/lijinhuanexperience 微信:xiaoleetongxue 一.shell脚本执行方式 1.用sh命令执行脚本文件 vi hello.sh 按i进入插入模式 输入echo "hello world!" :输入wq保存退出 sh hello.sh 2.给脚本文件添加执行权限,用./命令执行 chmod 755 hello.sh ./hello.sh 二.vi编辑

3分钟带你了解PowerShell发展历程——PowerShell各版本资料整理

本文带你了解PowerShell发展历程,顺便整理了一点资料,方便大家查询. Windows PowerShell? 是基于任务的命令行管理程序和脚本语言,专为进行系统管理而设计. 在 .NET Framework 的基础上构建的 Windows PowerShell 可帮助 IT 专业人士和高级用户控制和自动执行 Windows 操作系统以及在 Windows 上运行的应用程序的管理. UNIX 系统一直有着功能强大的脚本(shell),Windows PowerShell 的诞生就是要提供功

Hadoop学习资料整理

hadoop 0.18文档(详细介绍Hadoop,MapReduce,FS Shell,Streaming等) hadoop资料汇总(XX搜集的,还没看) streaming(非java程序员的福音) Hadoop Streaming编程实例 Hadoop Streaming编程 Hadoop Streaming高级编程 Hadoop学习资料整理

Linux学习资料整理

Shell Linux Shell脚本教程:30分钟玩转Shell脚本编程 Bash Shell字符串操作小结 vi vim使用 vi.vim删除以及其他命令 Vim静态模板文件 打造自己的vim界面 命令 linux中grep命令的用法 linux之sort用法 gawk gawk手册 Common threads: Awk by example, Part 1 sed sed命令用法详解 Linux学习资料整理

不错的Nodejs或者JS资料整理

资料整理 Node.js官网 - 可以下载到Node.js以及查看官方文档 Node.js教程 - 菜鸟教程网 Javascript模块化编程(一):模块的写法 - 阮一峰老师的日志,很值得看 CommonJS官网 requireJS官网 - AMD规范在其中 seaJS官网 - CMD规范在其中 request模块 cheerio模块

iOS开发资料整理

Please help me contribute to this list, for non-experience iOS developers or someone who need a come-in-handy library list to refer or to use in their projects. Fork, edit and send a PR are all things you can do! Table of Contents UI Component// UI组件

Unix Shell_Oracle Erp和其他系统Interface资料传输通过Shell进行控制(案例)(架构)

2014-06-26 BaoXinjian 一.摘要 当不同的系统资料进行交换,可以很多种方式,如MQ,DBLink 当接触一些信息安全比较严的项目,很多公司都是采用unix shell直接进行抛转文件的方式进行 使用unix shell抛传文件的时,就必须区分哪些文件已被读取,哪些文件未被读取,读取成功之后文件如何处理,读取失败后的文件如何处理 之前做的一个保险项目,其处理不同系统之间所有的interface data资料,都是通过unix shell去控制,其安全性会比较高 Step1. 通

iOS 开发学习资料整理(持续更新)

"如果说我看得比别人远些,那是因为我站在巨人们的肩膀上." ---牛顿 iOS及Mac开源项目和学习资料[超级全面] http://www.kancloud.cn/digest/ios-mac-study/84557 iOS 学习资料整理 https://segmentfault.com/a/1190000002473595#articleHeader16 iOS.mac开源项目及库 https://github.com/Tim9Liu9/TimLiu-iOS Swift语言 http

mql4资料整理

mql4资料整理 开发工具和SDK相关 http://codebase.mql4.com/cn/在该页面的左边有MeteTrader 5 和 页面 MT4的开发工具下载 开发资料1. 参考文档http://docs.mql4.com/cn/ 2.其它相关bloghttp://www.cnblogs.com/niniwzw/category/212678.htmlhttp://www.cnblogs.com/niniwzw/tag/MQL4/3.其它相关资源学习列表http://search.do