CISCO_常用命令解释

CISCO_常用命令解释
CISCO_常用命令解释

CISCO_常用命令解释

视图模式介绍:普通视图router>特权视图router#/在普通模式下输入enable

全局视图router(config)#/在特权模式下输入configt

接口视图router(config-if)#/在全局模式下输入int接口名称例如ints0或inte0路由协议视图router(config-route)#/在全局模式下输入router动态路由协议名称1、基本配置:router>enable/进入特权模式

router#conft/进入全局配置模式

router(config)#hostnamexxx/设置设备名称就好像给我们的计算机起个名字router(config)#enablepassword/设置特权口令

router(config)#noipdomainlookup/不允许路由器缺省使用DNS解析命令

router(config)#Servicepassword-encrypt/对所有在路由器上输入的口令进行暗文加密router(config)#linevty04/进入设置telnet服务模式router(config-line)#passwordxxx/设置telnet 的密码router(config-line)#login/使能可以登陆

router(config)#linecon0/进入控制口的服务模式

router(config-line)#passwordxxx/要设置console的密码router(config-line)#login/使能可以登陆

2、接口配置:

router(config)#ints0/进入接口配置模式serial0端口配置(如果是模块化的路由器前面加上槽位编号,例如serial0/0代表这个路由器的0槽位上的第一个接口)

router(config-if)#ipaddxxx.xxx.xxx.xxxxxx.xxx.xxx.xxx/添加ip地址和掩码

router(config-if)#encahdlc/ppp捆绑链路协议hdlc或者ppp思科缺省串口封装的链路层协议是HDLC所以在showrun配置的时候接口上的配置没有,如果要封装为别的链路层协议例如PPP/FR/X25就是看到接口下的encappp或者encafr

router(config)#intloopback/建立环回口(逻辑接口)模拟不同的本机网段

router(config-if)#ipaddxxx.xxx.xxx.xxxxxx.xxx.xxx.xxx/添加ip地址和掩码给环回口在物理接口上配置了ip地址后用noshut启用这个物理接口反之可以用shutdown管理性的关闭接口

3、路由配置:(1)静态路由

router(config)#iproutexxx.xxx.xxx.xxxxxx.xxx.xxx.xxx下一条或自己的接口router(config)#iproute0.0.0.00.0.0.0s0添加缺省路由(2)动态路由rip协议

router(config)#routerrip/启动rip协议

router(config-router)#networkxxx.xxx.xxx.xxx/宣告自己的网段router(config-router)#version2转换为rip2版本

router(config-router)#noauto-summary/关闭自动汇总功能,ripV2才有作用router(config-router)#passive-int接口名/启动本路由器的那个接口为被动接口router(config-router)#neixxx.xxx.xxx.xxx/广播转单播报文,指定邻居的接ipigrp协议

router(config)#routerigrpxxx/启动igrp协议

router(config-router)#networkxxx.xxx.xxx.xxx/宣告自己的网段

router(config-router)#variancexxx/调整倍数因子,使用不等价的负载均衡eigrp协议

router(config)routereigrpxxx/启动协议

router(config-router)#networkxxx.xxx.xxx.xxx/宣告自己的网段

router(config-router)#variancexxx/调整倍数因子,使用不等价的负载均衡

router(config-router)#noauto-summary/关闭自动汇总功能ospf协议

router(config)routerospfxxx/启动协议

router(config-router)networkxxx.xxx.xxx.xxxxxx.xxx.xxx.xxx(反掩码)areaxxx/宣告自己的接口或网段在ospf的区域中可以把不同接口宣告在不同区域中

4、保存当前修改/运行的配置:

router#write/将RAM中的当前配置存储到NVRAM中,下次路由器启动就是执行保存的配置router#Copyrunning-configstartup-config/命令与write效果一样5、一般的常用命令

router(config-if)#exitrouter(config)#

router(config-router)#exitrouter(config)#

router(config-line)#exitrouter(config)#

router(config)#exitrouter#

exit命令/从接口、协议、line等视图模式下退回到全局配置模式,或从全局配置模式退回到特权模式router(config-if)#end

router(config-router)#endrouter(config-line)#endrouter#

end命令/从任何视图直接回到特权模式

router#Logout/退出当前路由器登陆模式相对与windows的注销

router#reload/重新启动路由器(热启动)冷启动就是关闭路由器再打开电源开关特权模式下:router#showiproute/查看当前的路由表router#cleariproute*/清楚当前的路由表

router#showipprotocol/查看当前路由器运行的动态路由协议情况router#showipintbrief/查看当前的路由器的接口ip地址启用情况router#showrunning-config/查看当前运行配置router#showstartup-config/查看启动配置router#debugippack/打开ip报文的调试

router#terminalmonitor/输出到终端上显示调试信息

router#showipeigrpneighbors/查看eigrp协议的邻居表router#showipeigrptop//查看eigrp协议的拓朴表

router#showipeigrpinterface/查看当然路由器运行eigrp协议的接口情况router#showipospfneighbor/查看当前路由器的ospf协议的邻居表

router#showipospfinterface/查看当然路由器运行ospf协议的接口情况router#clearipospfprocess/清楚当然路由器ospf协议的进程

router#Showinterfaces/显示设置在路由器和访问服务器上所有接口的统计信息.显示路由器上配置的所有接口的状态

router#Showinterfacesserial/显示关于一个串口的信息

router#Showipinterface/列出一个接口的IP信息和状态的小结,列出接口的状态和全局参数

CISCO命令全集-思科命令汇总

Access-enable允许路由器在动态访问列表中创建临时访问列表入口Access-group把访问控制列表(ACL)应用到接口上Access-list定义一个标准的IPACL

Access-template在连接的路由器上手动替换临时访问列表入口Appn向APPN子系统发送命令Atmsig执行ATM信令命令B手动引导操作系统

Bandwidth设置接口的带宽

Bannermotd指定日期信息标语Bfe设置突发事件手册模式

Bootsystem指定路由器启动时加载的系统映像Calendar设置硬件日历Cd更改路径Cdpenable允许接口运行CDP协议Clear复位功能

Clearcounters清除接口计数器

Clearinterface重新启动接口上的硬件逻辑

Clockrate设置串口硬件连接的时钟速率,如网络接口模块和接口处理器能接受的速率Cmt 开启/关闭FDDI连接管理功能

Config-register修改配置寄存器设置

Configure允许进入存在的配置模式,在中心站点上维护并保存配置信息Configurememory 从NVRAM加载配置信息Configureterminal从终端进行手动配置Connect打开一个终端连接Copy复制配置或映像数据

Copyflashtftp备份系统映像文件到TFTP服务器

Copyrunning-configstartup-config将RAM中的当前配置存储到NVRAMCopyrunning-configtftp 将RAM中的当前配置存储到网络TFTP服务器上Copytftpflash从TFTP服务器上下载新映像到FlashCopytftprunning-config从TFTP服务器上下载配置文件Debug使用调试功能Debugdialer显示接口在拨什么号及诸如此类的信息Debugiprip显示RIP路由选择更新数据Debugipxroutingactivity显示关于路由选择协议(RIP)更新数据包的信息Debugipxsap显示关于SAP(业务通告协议)更新数据包信息

Debugisdnq921显示在路由器D通道ISDN接口上发生的数据链路层(第2层)的访问过程Debugppp显示在实施PPP中发生的业务和交换信息Delete删除文件

Deny为一个已命名的IPACL设置条件

Dialeridle-timeout规定线路断开前的空闲时间的长度Dialermap设置一个串行接口来呼叫一个或多个地点

Dialerwait-for-carrier-time规定花多长时间等待一个载体

Dialer-group通过对属于一个特定拨号组的接口进行配置来访问控制

Dialer-listprotocol定义一个数字数据接受器(DDR)拨号表以通过协议或ACL与协议的组合来控制控制拨号Dir显示给定设备上的文件

Disable关闭特许模式

Disconnect断开已建立的连接Enable打开特许模式

Enablepassword确定一个密码以防止对路由器非授权的访问Enablepassword设置本地口令控制不同特权级别的访问

Enablesecret为enablepassword命令定义额外一层安全性Encapsulationframe-relay启动帧中继封装

Encapsulationnovell-ether规定在网络段上使用的Novell独一无二的格式EncapsulationPPP把PPP设置为由串口或ISDN接口使用的封装方法

Encapsulationsap规定在网络段上使用的以太网802.2格式Cisco的密码是sapEnd退出配置模式

Erase删除闪存或配置缓存

Erasestartup-config删除NVRAM中的内容

Exec-timeout配置EXEC命令解释器在检测到用户输入前所等待的时间Exit退出所有配置模式或者关闭一个激活的终端会话和终止一个EXECExit终止任何配置模式或关闭一个活动的对话和结束EXECformat格式化设备

Frame-relaylocal-dlci为使用帧中继封装的串行线路启动本地管理接口(LMI)Help获得交互式帮助系统History查看历史记录

Hostname使用一个主机名来配置路由器,该主机名以提示符或者缺省文件名的方式使用Interface设置接口类型并且输入接口配置模式Interface配置接口类型和进入接口配置模式

Interfaceserial选择接口并且输入接口配置模式Ipaccess-group控制对一个接口的访问Ipaddress设定接口的网络逻辑地址

Ipaddress设置一个接口地址和子网掩码并开始IP处理Ipdefault-network建立一条缺省路由Ipdomain-lookup允许路由器缺省使用DNSIphost定义静态主机名到IP地址映射

Ipname-server指定至多6个进行名字-地址解析的服务器地址Iproute建立一条静态路由Ipunnumbered在为给一个接口分配一个明确的IP地址情况下,在串口上启动互联网协议(IP)的处理过程Ipxdelay设置点计数

Ipxipxwan在串口上启动IPXWAN协议

Ipxmaximum-paths当转发数据包时设置CiscoIOS软件使用的等价路径数量

Ipxnetwork在一个特定接口上启动互联网数据包交换(IPX)的路由选择并且选择封装的类型(用帧封装)Ipxrouter规定使用的路由选择协议Ipxrouting启动IPX路由选择

Ipxsap-interval在较慢的链路上设置较不频繁的SAP(业务广告协议)更新Ipxtype-20-input-checks限制对IPX20类数据包广播的传播的接受

Isdnspid1在路由器上规定已经由ISDN业务供应商为B1信道分配的业务简介号(SPID)Isdnspid2在路由器上规定已经由ISDN业务供应商为B2信道分配的业务简介号(SPID)Isdnswitch-type规定了在ISDN接口上的中央办公区的交换机的类型Keeplive为使用帧中继封装的串行线路LMI(本地管理接口)机制Lat打开LAT连接

Line确定一个特定的线路和开始线路配置Lineconcole设置控制台端口线路

Linevty为远程控制台访问规定了一个虚拟终端Lock锁住终端控制台

Login在终端会话登录过程中启动了密码检查Login以某用户身份登录,登录时允许口令验证

Mbranch向下跟踪组播地址路由至终端Media-type定义介质类型

Metricholddown把新的IGRP路由选择信息与正在使用的IGRP路由选择信息隔离一段时间Mrbranch向上解析组播地址路由至枝端

Mrinfo从组播路由器上获取邻居和版本信息Mstat对组播地址多次路由跟踪后显示统计数字Mtrace由源向目标跟踪解析组播地址路径Name-connection命名已存在的网络连接Ncia开启/关闭NCIA服务器

Network把一个基于NIC的地址分配给一个与它直接相连的路由器把网络与一个IGRP的路由选择的过程联系起来在IPX路由器配置模式下,在网络上启动加强的IGRPNetwork指定一个和路由器直接相连的网络地址段Network-number对一个直接连接的网络进行规定Noshutdown打开一个关闭的接口Pad开启一个X.29PAD连接

Permit为一个已命名的IPACL设置条件

Ping把ICMP响应请求的数据包发送网络上的另一个节点检查主机的可达性和网络的连通性对网络的基本连通性进行诊断

Ping发送回声请求,诊断基本的网络连通性Ppp开始IETF点到点协议Pppauthentication启动Challenge握手鉴权协议(CHAP)或者密码验证协议(PAP)或者将两者都启动,并且对在接口上选择的CHAP和PAP验证的顺序进行规定Pppchaphostname当用CHAP进行身份验证时,创建一批好像是同一台主机的拨号路由器Pppchappassword设置一个密码,该密码被发送到对路由器进行身份验证的主机命令对进入路由器的用户名/密码的数量进行了限制

Ppppapsent-username对一个接口启动远程PAP支持,并且在PAP对同等层请求数据包验证过程中使用sent-username和password

Protocol对一个IP路由选择协议进行定义,该协议可以是RIP,内部网关路由选择协议(IGRP),

开放最短路径优先(OSPF),还可以是加强的IGRPPwd显示当前设备名

Reload关闭并执行冷启动;重启操作系统Rlogin打开一个活动的网络连接

Router由第一项定义的IP路由协议作为路由进程,例如:routerrip选择RIP作为路由协议Routerigrp启动一个IGRP的路由选择过程Routerrip选择RIP作为路由选择协议Rsh执行一个远程命令Sdlc发送SDLC测试帧

Send在tty线路上发送消息

Servicepassword-encryption对口令进行加密Setup运行Setup命令Show显示运行系统信息Showaccess-lists显示当前所有ACL的内容Showbuffers显示缓存器统计信息Showcdpentry显示CDP表中所列相邻设备的信息Showcdpinterface显示打开的CDP接口信息Showcdpneighbors显示CDP查找进程的结果

Showdialer显示为DDR(数字数据接受器)设置的串行接口的一般诊断信息

Showflash显示闪存的布局和内容信息

Showframe-relaylmi显示关于本地管理接口(LMI)的统计信息Showframe-relaymap显示关于连接的当前映射入口和信息

Showframe-relaypvc显示关于帧中继接口的永久虚电路(pvc)的统计信息Showhosts显示主机名和地址的缓存列表

Showipprotocols显示活动路由协议进程的参数和当前状态Showiproute显示路由选择表的当前状态Showiprouter显示IP路由表信息

Showipxinterface显示CiscoIOS软件设置的IPX接口的状态以及每个接口中的参数Showipxroute显示IPX路由选择表的内容Showipxservers显示IPX服务器列表Showipxtraffic显示数据包的数量和类型

Showisdnactive显示当前呼叫的信息,包括被叫号码、建立连接前所花费的时间、在呼叫期间使用的自动化操作控制(AOC)收费单元以及是否在呼叫期间和呼叫结束时提供AOC信息Showisdnststus显示所有isdn接口的状态、或者一个特定的数字信号链路(DSL)的状态或者一个特定isdn接口的状态

Showmemory显示路由器内存的大小,包括空闲内存的大小Showprocesses显示路由器的进程Showprotocols显示设置的协议

Showprotocols显示配置的协议。这条命令显示任何配置了的第3层协议的状态Showrunning-config显示RAM中的当前配置信息

Showspantree显示关于虚拟局域网(VLAN)的生成树信息

Showstacks监控和中断程序对堆栈的使用,并显示系统上一次重启的原因Showstartup-config 显示NVRAM中的启动配置文件Showststus显示ISDN线路和两个B信道的当前状态Showversion显示系统硬件的配置,软件的版本,配置文件的名称和来源及引导映像Shutdown 关闭一个接口

Telnet开启一个telect连接

Termip指定当前会话的网络掩码的格式

Termipnetmask-format规定了在show命令输出中网络掩码显示的格式Timersbasic控制着IGRP以多少时间间隔发送更新信息Trace跟踪IP路由

Usernamepassword规定了在CHAP和PAP呼叫者身份验证过程中使用的密码Verify检验flash 文件Where显示活动连接

Which-routeOSI路由表查找和显示结果

Write运行的配置信息写入内存,网络或终端

Writeerase现在由copystartup-config命令替换

思科交换机命令大全

思科交换机命令大全集团文件发布号:(9816-UATWW-MWUB-WUNN-INNUL-DQQTY-

思科交换机常用命令大全 1.1 用户模式与特权模式 用户模式:可以使用一些基本的查询命令 特权模式:可以对交换机进行相关的配置 进入特权模式命令:Switch>enable 退出特权模式命令:Switch#exit 启用命令查询: 时间设置:Switch#clock set 时间(自选参数,参数必须符合交换机要求) 显示信息命令:Switch#show 可选参数 注意:可以用TAB键补齐命令,自选参数为用户自定义参数,可选参数为交换机设定参数 查看交换机配置: Switch#show running-config 保存交换机配置:Switch#copy running-config startup-config Switch#wr

查看端口信息:Switch#show interface 查看MAC地址表:Switch#show mac-address-table 查看交换机CPU的状态信息:Switch#show processes 1.2 全局配置模式 进入全局配置模式:Switch#configure terminal 主机名修改:Switch(config)#hostname 主机名(自选参数) 特权模式进入密码: Switch(config)#enable secret 密码(自选参数) 取消特权模式密码:Switch(config)#no enable secret 取消主机名设置: Switch(config)#no hostname 退出配置模式: Switch(config)#exit 需要特别注意的是在配置模式中无法使用show命令,如果要使用 的话show前必须加do和空格,例如:do show * 指定根交换机命令:Switch(config)#spanning-tree vlan 自选参数(VLAN号) root primary 例如: Switch(config)#spanning-tree vlan 1 root primary

思科命令汇总

Cisco配置命令汇总 第一章 命令作用简便拼法 show version 检验路由器启动过程①sh ve enable 进入特权执行模式en conf t 进入全局配置模式conf (enter两次)在全局配置模式下Router(config)# hostname name 命名路由器ho +name enable secret password 设置使能密码ena s line console 0 进入console配置模式li co (config-line)#password password 配置console口密码pa +name config-line)#login 登陆logi line vty 0 4 设置远程控制接口限制li v config-line)#password 设置远程控制登陆密码pa +password (config-line)#login 登陆logi interface type number (such as f0/0 se0/0/0) 进入接口配置模式int + (such as f0/0 se0/0/0) config-if)# ip address address mask 设置接口ip地址和子网掩码ip add(删除前面加no)config-if)#description 设置描述内容de config-if)#no shutdown 开启no sh(关闭shutdown)在特权模式下(Router#) copy running-config startup-config 保存路由器更改cop run sta show running-config 查看路由器运行文件sh run show ip route 查看路由表sh ip rou show ip interface brief 查看各个接口状态sh ip int br show interfaces 查看各个接口的详细信息sh int clock rate+number 配置串行接口上的时钟信号cl ra+number show controllers+接口 (s0/0/0) 确定路由器接口连接的电缆sh co debug ip routing 启动调试功能de ip rou

CISCO命令全集

CISCO命令全集-思科命令汇总 视图模式介绍: 普通视图router> 特权视图router# /在普通模式下输入enable 全局视图router(config)# /在特权模式下输入config t 接口视图router(config-if)# /在全局模式下输入int 接口名称例如int s0或int e0 路由协议视图router(config-route)# /在全局模式下输入router 动态路由协议名称 1、基本配置: router>enable /进入特权模式 router#conf t /进入全局配置模式 router(config)# hostname xxx /设置设备名称就好像给我们的计算机起个名字 router(config)#enable password /设置特权口令 router(config)#no ip domain lookup /不允许路由器缺省使用DNS解析命令 router(config)# Service password-encrypt /对所有在路由器上输入的口令进行暗文加密 router(config)#line vty 0 4 /进入设置telnet服务模式 router(config-line)#password xxx /设置telnet的密码 router(config-line)#login /使能可以登陆 router(config)#line con 0 /进入控制口的服务模式 router(config-line)#password xxx /要设置console的密码 router(config-line)#login /使能可以登陆 2、接口配置: router(config)#int s0 /进入接口配置模式serial 0 端口配置(如果是模块化的路由器前面加上槽位编号,例如serial0/0 代表这个路由器的0槽位上的第一个接口) router(config-if)#ip add xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx /添加ip 地址和掩码

Cisco IOS 基本命令

Cisco IOS 基本命令一、基本路由器的检验命令 show version show processes show protocols show mem show ip route show startup-config show running-config show flash show interfaces 二、基本路由配置命令 进入:config terminal/memory/network 配置网络时常采用的命令:copy和load 1.标识:hostname 标识名 2.启动标识:banner 启动标识 3.接口:interface 端口号 4.密码:line 0 6 login passwd 口令 enable password/secret 口令 5.接口:

1)配置端口 interface 端口号 clock rate 时钟速率(64000)/* 在串口中配置*/ bandwidth 带宽(缺省56)/* 在串口中配置*/ media-type 介质类型/* 在以太网口上*/ early-token release /* 在令牌环网口上*/ ring-speed 16 /* 在令牌环网口上*/ no shutdown write memory 2)检验端口 show interfaces show controllers 6.配置环境 1)引导方式 boot system flash IOS-filename boot system tftp IOS-filename tftp-address boot system rom 2)配置Register值 config-register 0x2102 7.查看邻居路由 show cdp interface show cdp neighbors [detail]

思科命令解释大全

CISCO 命令 1:进入特权模式 enable switch> enable switch# 2:进入全局配置模式 configure terminal switch> enable switch#c onfigure terminal switch(conf)# 3:交换机命名 hostname aptech2950 以aptech2950为例 switch> enable switch#c onfigure terminal switch(conf)#hostname aptch-2950 aptech2950(conf)# 4:配置使能口令 enable password cisco 以cisco为例 switch> enable switch#c onfigure terminal switch(conf)#hostname aptch2950 aptech2950(conf)# enable password cisco 5:配置使能密码 enable secret ciscolab 以cicsolab为例 switch> enable switch#c onfigure terminal switch(conf)#hostname aptch2950 aptech2950(conf)# enable secret ciscolab 6:设置虚拟局域网vlan 1 interface vlan 1 switch> enable switch#c onfigure terminal switch(conf)#hostname aptch2950 aptech2950(conf)# interface vlan 1 aptech2950(conf-if)#ip address 192.168.1.1 255.255.255.0 配置交换机端口ip和子网掩码aptech2950(conf-if)#no shut 是配置处于运行中 aptech2950(conf-if)#exit aptech2950(conf)#ip default-gateway 192.168.254 设置网关地址 7:进入交换机某一端口 interface fastehernet 0/17 以17端口为例 switch> enable switch#c onfigure terminal switch(conf)#hostname aptch2950 aptech2950(conf)# interface fastehernet 0/17 aptech2950(conf-if)#

思科交换机命令大全

思科交换机常用命令大全 1.1 用户模式与特权模式 用户模式:可以使用一些基本的查询命令 特权模式:可以对交换机进行相关的配置 进入特权模式命令:Switch>enable 退出特权模式命令:Switch#exit 启用命令查询:? 时间设置:Switch#clock set 时间(自选参数,参数必须符合交换机要求) 显示信息命令:Switch#show 可选参数 注意:可以用TAB键补齐命令,自选参数为用户自定义参数,可选参数为交换机设定参数 查看交换机配置: Switch#show running-config 保存交换机配置:Switch#copy running-config startup-config Switch#wr 查看端口信息:Switch#show interface 查看MAC地址表:Switch#show mac-address-table 查看交换机CPU的状态信息:Switch#show processes 1.2 全局配置模式 进入全局配置模式:Switch#configure terminal

主机名修改:Switch(config)#hostname 主机名(自选参数) 特权模式进入密码: Switch(config)#enable secret 密码(自选参数) 取消特权模式密码:Switch(config)#no enable secret 取消主机名设置: Switch(config)#no hostname 退出配置模式: Switch(config)#exit 需要特别注意的是在配置模式中无法使用show命令,如果要使用 的话show前必须加do和空格,例如:do show * 指定根交换机命令:Switch(config)#spanning-tree vlan 自选参数(VLAN号)root primary 例如: Switch(config)#spanning-tree vlan 1 root primary 需要注意的是:设置根交换机是基于VLAN的 关闭生成树协议命令:Switch(config)#no spanning-tree vlan 自选参数(VLAN 号) 例如: Switch(config)#no spanning-tree vlan 1 1.3 接口配置模式 进入接口配置模式:Switch(config)#interface 端口名称(可选参数) 启用端口:Switch(config-if)#no shutdown 停用端口:Switch(config-if)#shutdown 进入同种类型多端口配置:Switch(config)# interface range fastethernet 0/1-5 进入不同类型多端口配置:Switch(config)#interface range fastethernet 0/1-5,gigabitethernet 0/1-2

CISCO常用命令解释汇总

视图模式介绍: 普通视图ro u ter>特权视图router#/ 在普通模式下输入en abl e 全局视图rou ter(con fi g)#/ 在特权模式下输入con figt 接口视图rou ter(con fi g-i f)#/在全局模式下输入in t 接口名称例如in ts0或 in te0路由协议视图 ro uter(con fi g-rou te )#/ 在全局模式下输入ro u ter动态路由协议名称 1、基本配置: ro uter>en abl e/进入特权模式 ro uter#con ft/ 进入全局配置模式 ro uter(con fi g)#ho stn a mex xx/设置设备名称就好像给我们的计算机起个名字 ro uter(con fi g)#en abl epasswo rd/设置特权口令ro uter(con fi g)#n oi pdo ma inl ook up/不允许路由器缺省使用DN S解析命令 ro uter(con fi g)#Serv icepa sswo rd-en crypt/对所有在路由器上输入的口令进行暗文加密

ro uter(con fi g)#li n ev ty04/进入设置teln et服务模式ro uter(con fi g-l in e)#passwo rdx xx/设置teln et 的密码ro uter(con fi g-l in e)#lo gi n/使能可以登陆 ro uter(con fi g)#li n econ0/进入控制口的服务模式 ro uter(con fi g-l in e)#passwo rdx xx/要设置con so l e 的密码rou ter(con fi g-lin e)#lo gi n/使能可以登陆 2、接口配置: ro uter(con fi g)#in ts0/ 进入接口配置模式seria l0 端口配置(如果是模块化的路由器前面加上槽位编号,例如seria l0/0代表这个路由器的0 槽位上的第一个接口) ro uter(con fi g-i f)#ipa ddxx x.xxx.x xx.x xxx xx.x xx.xx x.xx x/添加ip地址和掩码 ro uter(con fi g-i f)#enca hdl c/ppp捆绑链路协议hdlc或者ppp思科缺省串口封装的链路层协议是 H DLC所以在sho wru n配置的时候接口上的配置没有,如果要封装为别的链路层协议例如 PPP/FR/X25就是看到接口下的en cappp 或者en ca fr ro uter(con fi g)#in tl oo pba ck/建立环回口(逻辑接口)模拟不同的本机网段

思科路由器命令大全详解

一 switch> 用户模式 1:进入特权模式enable switch> enable switch# 2:进入全局配置模式configure terminal switch> enable switch#c onfigure terminal switch(conf)# 3:交换机命名hostname aptech2950 以aptech2950为例 switch> enable switch#c onfigure terminal switch(conf)#hostname aptch-2950 aptech2950(conf)# 4:配置使能口令enable password cisco 以cisco为例 switch> enable switch#c onfigure terminal switch(conf)#hostname aptch2950 aptech2950(conf)# enable password cisco 5:配置使能密码enable secret ciscolab 以cicsolab为例 switch> enable switch#c onfigure terminal switch(conf)#hostname aptch2950 aptech2950(conf)# enable secret ciscolab 6:设置虚拟局域网vlan 1 interface vlan 1 switch> enable switch#c onfigure terminal switch(conf)#hostname aptch2950 aptech2950(conf)# interface vlan 1 aptech2950(conf-if)#ip address 配置交换机端口ip和子网掩码 aptech2950(conf-if)#no shut 是配置处于运行中aptech2950(conf-if)#exit aptech2950(conf)#ip default-gateway 设置网关地址 7:进入交换机某一端口interface fastehernet 0/17 以17端口为例switch> enable switch#c onfigure terminal switch(conf)#hostname aptch2950 aptech2950(conf)# interface fastehernet 0/17 aptech2950(conf-if)# 8:查看命令show switch> enable

思科交换机命令大全 + Cisco IOS 基本命令

思科交换机命令大全 (一) 序号/类别基于ios的交换机命令基于CLI的交换机命令 1.设置主机名/系统名switch(config)# hostname "hostname" switch(enable) set system name name-string 2.设置登录口令switch(config)# enable password level 1 password switch(enable) set password switch(enable) set enalbepass 3.设置远程访问switch(config)# inte***ce vlan 1 switch(config-if)# ip address ip-address netmask switch(config-if)# ip default-gateway ip-address switch(enable) set inte***ce sc0 ip-address netmask broadcast-address switch(enable) set inte***ce sc0 vlan switch(enable) set ip route default gateway 4.启用和浏览CDP信息switch(config-if)# cdp enable switch(config-if)# no cdp enable switch(enable) set cdp {enable|disable} module/port 5.查看Cisco邻接设备的CDP通告switch# show cdp inte***ce [type modle/port] switch# show cdp neighbors [type module/port] [detail] switch(enable) show cdp neighbors[module/port] [vlan|duplex|capabilities|detail] 6.端口描述switch(config-if)#description escription-string switch(enable)set port name module/number description-string 7.设置端口速度switch(config-if)# speed{10|100|auto} switch(enable) set port speed moudle/number {10|100|auto} switch(enable) set port speed moudle/number {4|16|auto} 8.设置以太网的链路模式switch(config-if)# duplex {auto|full|half} switch(enable) set port duplex module/number {full|half 9.配置静态VLAN switch# vlan database switch(vlan)# vlan vlan-num name vla switch(vlan)# exit switch# configure teriminal switch(config)#inte***ce inte***ce module/number switch(config-if)# switchport mode access switch(config-if)# switchport access vlan vlan-num switch(config-if)# end switch(enable) set vlan vlan-num [name name] switch(enable) set vlan vlan-num mod-num/port-list 10.配置VLAN中继线switch(config)# inte***ce inte***ce mod/port switch(config-if)# switchport mode trunk switch(config-if)#switchport trunk encapsulation {isl|dotlq} switch(config-if)# switchport trunk allowed vlan remove vlan-list switch(config-if)# switchport trunk allowed vlan add vlan-list switch(enable)set trunk module/port [on|off|desirable|auto|nonegotiate] Vlan-range [isl|dotlq|dotl0|lane|negotiate] 11.配置VTP管理域switch# vlan database

思科交换机配置常用命令(精编文档).doc

【最新整理,下载后即可编辑】 Cisco三层交换机配置命令及解释 (2011-07-11 08:54:50) 分类:IT资讯 标签: cisco 杂谈 基本配置 S> enable 进入特权模式 S# configure terminal 进入全局配置模式 S(config)# hostname name 改变交换机名称 S(config)# enable password level level_# password 设置用户口令(level_#=1)或特权口令(level_#=15) S(config)# line console 0 进入控制台接口 S(config-line)# password console_password 接上一条命令,设置控制台口令 S(config)# line vty 0 15 进入虚拟终端 S(config-line)# password telnet_password 接上一条命令,设置Telnet口令 S(config-line)# login 允许Telnet登录 S(config)# enable password|secret privilege_password 配置特权口令(加密或不加密) S(config)# interface ethernet|fastethernet|gigabitethernet slot_#/port_# 进入接口子配置模式 S(config-if)# [no] shutdown 关闭或启用该接口(默认启用) S(config)# ip address IP_address sunbet_mask 指定IP地址 S(config)# ip default-gateway router's_IP_address 指定哪台路由器地址为默认网关 S# show running-config 查看当前的配置 S# copy running-config startup-config 将RAM中的当前配置保存到NVRAM中

CISCO基本命令

端口速度:设置端口速度为:100Mbps/s 半双工模式 Switch# configure terminal Switch(config)# interface range gigabitethernet0/1 - 2 Switch(config-if-range)# speed 100 Switch(config-if)# duplex half 定义端口聚合并存储到NVRAM:定义名称为enet_list的端口组。 Switch# configure terminal Switch(config)# define interface-range enet_list gigabitethernet0/1 - 2 Switch(config)# end Switch# show running-config | include define Switch# define interface-range enet_list gigabitethernet0/1 – 2 Switch# configure terminal Switch(config)# no define interface-range enet_list Switch(config)# end Switch# show run | include define Switch# 设置端口类型: Switch(config-if)media-type auto-select | rj45 | sfp Switch#show interfaces interface-id transceiver properties

CISCO 常用命令解释

视图模式介绍: 普通视图 router> 特权视图 router# /在普通模式下输入enable 全局视图 router(config)# /在特权模式下输入config t 接口视图 router(config-if)# /在全局模式下输入int 接口名称例如int s0或int e0 路由协议视图 router(config-route)# /在全局模式下输入router 动态路由协议名称 1、基本配置: router>enable /进入特权模式 router#conf t /进入全局配置模式 router(config)# hostname xxx /设置设备名称就好像给我们的计算机起个名字 router(config)#enable password /设置特权口令 router(config)#no ip domain lookup /不允许路由器缺省使用DNS解析命令 router(config)# Service password-encrypt /对所有在路由器上输入的口令进行暗文加密router(config)#line vty 0 4 /进入设置telnet服务模式 router(config-line)#password xxx /设置telnet的密码 router(config-line)#login /使能可以登陆 router(config)#line con 0 /进入控制口的服务模式 router(config-line)#password xxx /要设置console的密码 router(config-line)#login /使能可以登陆 2、接口配置: router(config)#int s0 /进入接口配置模式 serial 0 端口配置(如果是模块化的路由器前面加上槽位编号,例如serial0/0 代表这个路由器的0槽位上的第一个接口) router(config-if)#ip add xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx /添加ip 地址和掩码router(config-if)#enca hdlc/ppp 捆绑链路协议 hdlc 或者 ppp 思科缺省串口封装的链路层协议是HDLC所以在show run配置的时候接口上的配置没有,如果要封装为别的链路层协议例如PPP/FR/X25就是看到接口下的enca ppp或者enca fr router(config)#int loopback /建立环回口(逻辑接口)模拟不同的本机网段 router(config-if)#ip add xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx /添加ip 地址和掩码给环回口 在物理接口上配置了ip地址后用no shut启用这个物理接口反之可以用shutdown管理性的关闭接口 3、路由配置: (1)静态路由 router(config)#ip route xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx 下一条或自己的接口router(config)#ip route 0.0.0.0 0.0.0.0 s 0 添加缺省路由 (2)动态路由 rip协议 router(config)#router rip /启动rip协议 router(config-router)#network xxx.xxx.xxx.xxx /宣告自己的网段 router(config-router)#version 2 转换为rip 2版本 router(config-router)#no auto-summary /关闭自动汇总功能,rip V2才有作用 router(config-router)# passive-int 接口名 /启动本路由器的那个接口为被动接口

思科命令大全

1.设置主机名/系统名 IOS:switch(config)# hostname "hostname" CLI:switch(enable) set system name name-string 2.设置登录口令 IOS:switch(config)# enable password level 1 password CLI:switch(enable) set password switch(enable) set enalbepass 3.设置远程访问 IOS:switch(config)# interface vlan 1 switch(config-if)# ip address ip-address netmask switch(config-if)# ip default-gateway ip-address CLI:switch(enable) set interface sc0 ip-address netmask broadcast-address switch(enable) set interface sc0 vlan switch(enable) set ip route default gateway 4.启用和浏览CDP信息 IOS:switch(config-if)# cdp enable switch(config-if)# no cdp enable CLI:switch(enable) set cdp {enable|disable} module/port 5.查看Cisco邻接设备的CDP通告 IOS:switch# show cdp interface [type modle/port] switch# show cdp neighbors [type module/port] [detail] CLI:switch(enable) show cdp neighbors[module/port] [vlan|duplex|capabilities|detail]

Cisco常用命令

路由器实验: router> enable 从用户模式进入特权模式 router# disable or exit 从特权模式退出到用户模式 router# show sessions 查看本机上的TELNET会话router# disconnect 关闭所有的TELNET会话 router# show users 查看本机上的用户 router# erase startupconfig 删除NVRAM中的配置 router# reload 重启路由器 router# config terminal 从用户模式进入特权模式 router(config)# hostname rl 配置用户名为rl router(config)# #banner welcome# 配置开机话语

router# show controllers serial0 查看串口0的物理层信息(主要是查看DTE/DCE)router# show ip interface 查看端口的IP配置信息 router# show hosts 查看主机表 end or ctrl+z 从各种配置模式退到特权模式 rl(config)# no ipdomainlookup 关闭动态域名解析 rl(config)# ipdomainlookup 打开动态域名解析 rl(config)# ipnameserver 202.106.0.20 打开动态域名解析之后便可以指定DNS服务rl(config)# interface serial 0 进入serial 0的接口配置模式 rl(configif)# no shutdown 路由器出厂默认所有端口关闭,使用此命令使它们打开rl(configif)# encapsulation ppp 封装ppp rl(configif)# clockrate 64000 如果是DCE使需要设置时钟速率,如果是DTE使不必设置

Cisco 路由器常用命令

Cisco 路由器常用命令 1 Exec commands: <1-99> 恢复一个会话 bfe 手工应急模式设置 clear 复位功能 clock 管理系统时钟 configure 进入设置模式 connect 打开一个终端 copy 从tftp服务器拷贝设置文件或把设置文件拷贝到tftp服务器上debug 调试功能 disable 退出优先命令状态 disconnect 断开一个网络连接 enable 进入优先命令状态 erase 擦除快闪内存 exit 退出exce模式 help 交互帮助系统的描述 lat 打开一个本地传输连接 lock 锁定终端 login 以一个用户名登录 logout 退出终端 mbranch 向树形下端分支跟踪多路由广播 mrbranch 向树形上端分支跟踪反向多路由广播 name-connection 给一个存在的网络连接命名 no 关闭调试功能 pad 打开X.29 PAD连接 ping 发送回显信息 ppp 开始点到点的连接协议 reload 停机并执行冷启动 resume 恢复一个活动的网络连接 rlogin 打开远程注册连接 rsh 执行一个远端命令 send 发送信息到另外的终端行 setup 运行setup命令 show 显示正在运行系统信息 slip 开始SLIP协议 start-chat 在命令行上执行对话描述 systat 显示终端行的信息 telnet 远程登录 terminal 终端行参数 test 测试子系统内存和端口 tn3270 打开一个tin3270连接 trace 跟踪路由到目的地 undebug 退出调试功能 verify 验证检查闪烁文件的总数 where 显示活动的连接 which-route 执行OSI路由表查找并显示结果 write 把正在运行的设置写入内存、网络、或终端 x3 在PAD上设置X.3参数

(完整版)cisco命令大全解释、注释

cisco命令大全解释、注释 Dynamips作为一款十分优秀的Cisco路由器模拟软件,实验模拟效果远比Boson NetSim更加真实可信。Boson NetSim是对IOS命令行的模拟,而Dynamips是通过在计算机中构建运行IOS的虚拟机来真正运行IOS实现对Cisco路由器的模拟。 收录最常用的Cisco命令分类如下: cisco命令大全 1. switch配置命令 (1)模式转换命令 用户模式----特权模式,使用命令"enable" 特权模式----全局配置模式,使用命令"config t" 全局配置模式----接口模式,使用命令"interface+接口类型+接口号" 全局配置模式----线控模式,使用命令"line+接口类型+接口号" 注: 用户模式:查看初始化的信息. 特权模式:查看所有信息、调试、保存配置信息 全局模式:配置所有信息、针对整个路由器或交换机的所有接口 接口模式:针对某一个接口的配置 线控模式:对路由器进行控制的接口配置 (2)配置命令 show running config 显示所有的配置 show versin 显示版本号和寄存器值 shut down 关闭接口 no shutdown 打开接口 ip add +ip地址配置IP地址 secondary+IP地址为接口配置第二个IP地址 show interface+接口类型+接口号查看接口管理性 show controllers interface 查看接口是否有DCE电缆 show history 查看历史记录

show terminal 查看终端记录大小 hostname+主机名配置路由器或交换机的标识 config memory 修改保存在NVRAM中的启动配置 exec timeout 0 0 设置控制台会话超时为0 service password-encryptin 手工加密所有密码 enable password +密码配置明文密码 ena sec +密码配置密文密码 line vty 0 4/15 进入telnet接口 password +密码配置telnet密码 line aux 0 进入AUX接口 password +密码配置密码 line con 0 进入CON接口 password +密码配置密码 bandwidth+数字配置带宽 no ip address 删除已配置的IP地址 show startup config 查看NVRAM中的配置信息 copy run-config atartup config 保存信息到NVRAM write 保存信息到NVRAM erase startup-config 清除NVRAM中的配置信息 show ip interface brief 查看接口的谪要信息 banner motd # +信息+ # 配置路由器或交换机的描素信息description+信息配置接口听描素信息 vlan database 进入VLAN数据库模式 vlan +vlan号+ 名称创建VLAN switchport access vlan +vlan号为VLAN为配接口interface vlan +vlan号进入VLAN接口模式 ip add +ip地址为VLAN配置管理IP地址 vtp+service/tracsparent/client 配置SW的VTP工作模式vtp +domain+域名配置SW的VTP域名 vtp +password +密码配置SW的密码

Cisco Pix日常维护常用命令

一、Cisco Pix日常维护常用命令 1、Pix模式介绍 “>”用户模式 firewall>enable 由用户模式进入到特权模式 password: “#”特权模式 firewall#config t 由特权模式进入全局配置模式 “(config)#”全局配置模式 firewall(config)# 防火墙的配置只要在全局模式下完成就可以了。 1、 基本配置介绍 1、端口命名、设备命名、IP地址配置及端口激活 nameif ethernet0 outside security0 端口命名 nameif gb-ethernet0 inside security100 定义端口的名字以及安全级别,“outside”的安全级别默认为0,“inside”安全级别默认为100,及高安全级别的可以访问低安全级别的,但低安全级别不能主动地到高安全级别。firewall(config)#hostname firewall 设备名称 firewall(config)#ip address outside 1.1.1.1 255.255.255.0 内外口地址设置 firewall(config)#ip address inside 172.16.1.1 255.255.255.0 firewall(config)# interface ethernet0 100full 激活外端口 firewall(config)# interface gb-ethernet0 1000auto 激活内端口 2、telnet、ssh、web登陆配置及密码配置 防火墙默认是不允许内/外网用户通过远程登陆或WEB访问的,需要相应得开启功能。firewall(config)#telnet 192.168.10.0 255.255.255.0 inside 允许内网此网断内的机器Telnet 到防火墙 配置从外网远程登陆到防火墙 Firewall(config)#domain-name https://www.360docs.net/doc/f77827506.html, firewall(config)# crypto key generate rsa firewall(config)#ssh 0.0.0.0 0.0.0.0 outside 允许外网所有地址可以远程登录防火墙,也可以定义一格具体的地址可以从外网登陆到防火墙上,如: firewall(config)#ssh 218.240.6.81 255.255.255.255 outside firewall(config)#enable password cisco 由用户模式进入特权模式的口令 firewall(config)#passrd cisco ssh远程登陆时用的口令

相关文档
最新文档