CCNA常用命令.doc_第1页
CCNA常用命令.doc_第2页
CCNA常用命令.doc_第3页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

路由器: 用户模式和特权模式: Routerenable Routerexit (logout、quit) Router#disable Rouiter#exit (logout、quit) 接口模式: Router(config)#interface +接口名称-Router(config-if)# 子接口模式: Router(config)#interface +接口名称.子接口号码-Router(config-subif)# 链路模式: Router(config)#line console 0 -Router(config-line)# Router(config)#line vty 0 4 -Router(config-line)# 命令缓存: Routershow history Routerterminal history size +数字 Router的Setup模式: Router#setup Router的其他命令: Router#show version Router#show running-config Router#show startup-config Router的RAM和NVRAM: Router#copy running-config startup-config Router#copy startup-config running-config Router#write erase Router的Banner命令: Router(config)#banner motd # Router的特权模式密码: Router(config)#enable password +密码 Router(config)#enable secret +密码 Router的console密码: Router(config)#line console 0 Router(config-line)#login Router(config-line)#password +密码 Router的vty密码: Router(config)#line vty 0 4 Router(config-line)#login Router(config-line)#password +密码 接口标识: Router(config-if)#description +描述信息 配置console的其他参数: Router(config-line)#exec-timeout +分钟+秒 Router(config-line)#logging synchronous 配置串口参数: Router#show controller serial+编号 Router(config-if)#clock rate 64000 Router(config-if)#bandwidth 64 关闭接口: Router(config-if)#(no) shutdown CDP的配置: Router#show cdp neighbors Router#show cdp neighbors detail Router#show cdp entry * Router#show cdp interface Router#show cdp traffic Router#(no) cdp run Router(config)#(cdp) enable Telnet的配置: Router#telnet +ip地址 Router#exit Router#show sessions Router#show user Router# x Router#resume +编号(或者按两次Enter) Router#disconnect +编号 Router#clear +编号 Ping和Traceroute: Router#ping +ip地址 Router#Traceroute+ip地址 配置Config-register: Router(config)#config-register+寄存器地址 配置启动顺序: Router(config)#boot system flash +名称 Router(config)#boot system tftp +文件名+ip地址 Router(config)#boot system rom 备份和恢复IOS: Router#show flash Router#copy flash tftp Router#copy tftp flash 路由器的IP配置: Router(config-if)#ip address+ip地址+子网掩码 Router#terminal ip netmask-format (bit-count | decimal | hexadecimal) Router(config)#ip host +主机名+ip地址ip地址 Router(config)#ip domain-name +域名 Router(config)#ip name-server +DNSserver的IP地址 Router(config)#(no) IP domain-lookup Router(config)#show hosts 配置静态路由: Router(config)#ip route 目的网络+掩码下一跳address | 本地接口 distance permanent Router#show ip route 配置缺省路由: Router(config)#ip route 下一跳address | 本地接口 distance permanent Router(config)#ip classless Router(config)#no ip classless 配置VLAN间路由: Router(config-if)#interface fa0/0.1 Router(config-subif)#encapsulation isl +vlan编号 配置RIP: Router(config)#router rip Router(config-router)#network +自然网络号 Router#show ip protocols Router#show ip route Router#(no ) debug ip rip Router(config-router)#maximum-paths 配置IGRP: Router(config)#router igrp +自治系统编号 Router(config-router)#network +自然网络号 Router#(no ) debug ip igrp transactions Router#(no) debug ip igrp events Router(config-router)#traffic-share share | min Router(config-router)#variance +容差 Router(config-router)#maximum-paths 配置标准ACL: Router(config)#access-list +编号permint | deny 源地址 翻转掩码 Router(config-if)#ip access-group +编号in | out Router#show access-list 编号 Router#show ip interface +接口名称 配置扩展ACL: Router(config)#access-list 编号permit | deny protocol source source-mask operator port destination destination-mask operator port Router(config-if)#ip access-group 编号in |out 配置named ACL: Router(config)# ip access-list standard | extended name Router(config std-|ext-nacl)# (no) permit |deny +测试条件 Router(config-if)#ip access-group in | out 配置ACL控制VTY的访问: Router(config)#line vty 0 4 Router(config-line)#access-class access-list-number in | out PPP的配置: 1. 封装ppp Router(config-if)#encapsulation ppp 2. 配置主机明、用户名和密码 Router(config)#hostname +主机名 Router(conifg)#username +用户名password +密码 3. 选择一种验证方式: Router(config-if)#ppp authentication chap | chap pap | pap chap | pap ISDN的配置: Router(config)#isdn switch-type +交换机类型 Router(config)#interface bri0 +接口编号 Router(config-if)#isdn spid1 spid号码本地目录号码 Router(config-if)#isdn spid2 spid号码本地目录号码 DDR的配置: 1. 配置静态路由: 2. 定义敏感数据: ? 不使用ACL: Router(config)#dialer-list 编号protocol +某个协议permit | deny ? 使用ACL: Router(config)#dialer-list 编号protocol +某个协议list +ACL编号 3. 配置拨号信息: Router(config-if)#ip address +IP地址+子网掩码 Router(config-if)#dialer-list 编号 Router(config-if)#dialer map protocol 下一跳路由器地址name 远端路友器的主机名speed 56 | 64 broadcast +拨号字符串 4. 可选配置: ? 动态器用第二条链路: Router(config-if)#dialer load-threshold load outbound | inbound | either ? 配置超时: Router(config-if)#dialer idle-timeout seconds 配置帧中继: 1. 配置接口的地址、封装类型 Router(config-if)#encapsulation frame-relay cisco | ietf 2. 配置LMI类型:(可选) Router(config-if)#frame-relay lmi-type ansi | cisco | q933a 3. 配置逻辑带宽: Router(config-if)#bandwidth +带宽 4. 配置映射: ? 静态映射: Router(config-if)#frame-relay map protocol 地址dlci编号broadcast cisco | ietf ? 动态映射:(缺省) Router(config-if)#frame-relay inverse-arp protocol dici编号 帧中继的监控和管理: Router#show interface Router#show frame-relay lmi Router#show frame-relay pvc Router#show frame-relay map Router#clear frame-relay-inarp Router#debug frame-relay lmi 交换机的配置: Switch#show version Switch#show running-config Switch(config)#hostname +交换机主机名 Switch#show ip Switch#show spantree Switch#show interface 交换机的双工配置: Switch(config-if)#duplex+双工配置 交换机的IP配置: Switch(config)#ip address+ip地址+子网掩码 Switch(config)#ip default-gateway+ip地址 交换机MAC地址表的配置 Switch(config)#mac-address-table permanent +MAC地址+对应的端口 Switch(config)#mac-address-table restricted static +MAC地址+对应的端口+允许访问该端口的源端口 Switch(config)#show mac-address-table Switch(config-if)#port secure max-mac-count +该端口最大课学习的MAC地址数 Switc

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论