ccna IOS命令

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

储著华pcweb.jnsms.com-1-CCNA相关知识CiscoIOS基本命令集一、基本路由器的检验命令showversionshowprocessesshowprotocolsshowmemshowiprouteshowstartup-configshowrunning-configshowflashshowinterfaces二、基本路由配置命令进入:configterminal/memory/network配置网络时常采用的命令:copy和load1.标识:hostname标识名2.启动标识:banner启动标识3.接口:interface端口号4.密码:line06loginpasswd口令enablepassword/secret口令5.接口:1)配置端口interface端口号clockrate时钟速率(64000)/*在串口中配置*/bandwidth带宽(缺省56)/*在串口中配置*/media-type介质类型/*在以太网口上*/early-tokenrelease/*在令牌环网口上*/ring-speed16/*在令牌环网口上*/noshutdownwritememory2)检验端口showinterfacesshowcontrollers6.配置环境1)引导方式bootsystemflashIOS-filenamebootsystemtftpIOS-filenametftp-addressbootsystemrom2)配置Register值config-register0x21027.查看邻居路由showcdpinterface储著华pcweb.jnsms.com-2-showcdpneighbors[detail]showcdpentryrouterA8.IPAddress配置Ipaddress网络地址掩码Iphost主机名addressIpname-server服务器地址1服务器地址2。。。Ipdomain-lookupnsapShowhostsPing主机名/IP地址Trace主机名/IP地址三、IP路由1.静态路由iproutingiproute目标网络号掩码端口号[permanent]2.缺省路由ipdefault-network网络号3.动态路由1)RIP配置RouterripNetwork网络号ShowiprouteShowipprotocolDebugip2)OSPF配置Routerospf进程号Redistribute其它路由协议Network端口网络反掩码area区域号Area区域号range网络号掩码Area区域号default-cost花销值IpospfprioritynumberIpospfcost花销值Showipospfdatabase3)BGP配置Routerbgp自治域号Redistribute其它路由协议Network网络号/*自治域内*/Aggregate-address网络号掩码summary-only汇总网络Neighbor相邻网络号remote-as自治域号/*自治域间的网络*/四、流量控制1)被动端口passiveinterface端口号2)缺省路由ipdefault网络号/端口网络3)静态路由iproute目标网络号掩码端口号4)ACL过滤表储著华pcweb.jnsms.com-3-(全局上)access-list访问号1{permit|deny}反掩码号[established]access-list访问号2{permit|deny}IP/TCP协议源网络目的网络操作符参数(端口上)access-group访问号in|outdistribute-list访问号in|out端口号4)Null0interfaceIprouteaddressmasknull0五、广义网配置1)PPPPpppapsent-usename封装PppchaphostnamePppchappassword2)X.25encapsulationx25[dce]x25addressx25map协议地址/*SVC*/x25pvcpvc号ip地址x25地址/*PVC*/ipswitchingx25routex.121地址接口x.121映射地址2)FrameRelayFrame-relaylocal-dlciIP网络号Frame-relaymap协议地址Frame-relaylmi-typeansiswitch命令大全1.在基于IOS的交换机上设置主机名/系统名:switch(config)#hostnamehostname在基于CLI的交换机上设置主机名/系统名:switch(enable)setsystemnamename-string2.在基于IOS的交换机上设置登录口令:switch(config)#enablepasswordlevel1password在基于CLI的交换机上设置登录口令:switch(enable)setpasswordswitch(enable)setenalbepass3.在基于IOS的交换机上设置远程访问:switch(config)#interfacevlan1switch(config-if)#ipaddressip-addressnetmaskswitch(config-if)#ipdefault-gatewayip-address在基于CLI的交换机上设置远程访问:switch(enable)setinterfacesc0ip-addressnetmaskbroadcast-addressswitch(enable)setinterfacesc0vlanswitch(enable)setiproutedefaultgateway4.在基于IOS的交换机上启用和浏览CDP信息:switch(config-if)#cdpenableswitch(config-if)#nocdpenable储著华pcweb.jnsms.com-4-为了查看Cisco邻接设备的CDP通告信息:switch#showcdpinterface[typemodle/port]switch#showcdpneighbors[typemodule/port][detail]在基于CLI的交换机上启用和浏览CDP信息:switch(enable)setcdp{enable|disable}module/port为了查看Cisco邻接设备的CDP通告信息:switch(enable)showcdpneighbors[module/port][vlan|duplex|capabilities|detail]5.基于IOS的交换机的端口描述:switch(config-if)#descriptiondescription-string基于CLI的交换机的端口描述:switch(enable)setportnamemodule/numberdescription-string6.在基于IOS的交换机上设置端口速度:switch(config-if)#speed{10|100|auto}在基于CLI的交换机上设置端口速度:switch(enable)setportspeedmoudle/number{10|100|auto}switch(enable)setportspeedmoudle/number{4|16|auto}7.在基于IOS的交换机上设置以太网的链路模式:switch(config-if)#duplex{auto|full|half}在基于CLI的交换机上设置以太网的链路模式:switch(enable)setportduplexmodule/number{full|half}8.在基于IOS的交换机上配置静态VLAN:switch#vlandatabaseswitch(vlan)#vlanvlan-numnamevlaswitch(vlan)#exitswitch#configureteriminalswitch(config)#interfaceinterfacemodule/numberswitch(config-if)#switchportmodeaccessswitch(config-if)#switchportaccessvlanvlan-numswitch(config-if)#end在基于CLI的交换机上配置静态VLAN:switch(enable)setvlanvlan-num[namename]switch(enable)setvlanvlan-nummod-num/port-list9.在基于IOS的交换机上配置VLAN中继线:switch(config)#interfaceinterfacemod/portswitch(config-if)#switchportmodetrunkswitch(config-if)#switchporttrunkencapsulation{isl|dotlq}switch(config-if)#switchporttrunkallowedvlanremovevlan-listswitch(config-if)#switchporttrunkallowedvlanaddvlan-list在基于CLI的交换机上配置VLAN中继线:switch(enable)settrunkmodule/port[on|off|desirable|auto|nonegotiate]Vlan-range[isl|dotlq|dotl0|lane|negotiate]10.在基于IOS的交换机上配置VTP管理域:switch#vlandatabaseswitch(vlan)#vtpdomaindomain-name在基于CLI的交换机上配置VTP管理域:switch(enable)setvtp[domaindomain-name]储著华pcweb.jnsms.com-5-11.在基于IOS的交换机上配置VTP模式:switch#vlandatabaseswitch(vlan)#vtpdomaindomain-nameswitch(vlan)#vtp{sever|cilent|transparent}switch(vlan)#vtppasswordpassword在基于CLI的交换机上配置VTP模式:switch(enable)setvtp[domaindomain-name][mode{sever|cilent|transparent}][passwordpassword]12.在基于IOS的交换机上配置VTP版本:switch#vlandatabaseswitch(vlan)#vtpv2-mode在基于CLI的交换机上配置VTP版本:switch(enable)setvtpv2enable13.在基于IOS的交换机上启动VTP剪裁:switch#vlandatabaseswitch(vlan)#vtppruning在基于CLI的交换机上启动VTP剪裁:switch(enable)setvtppruningenable14.在基于IOS的交换机上配置以太信道:switch(config-if)#portgroupgroup-number[distribution{source|destination}]在基于CLI的交换机上配置以太信道:switch(enable)setportchannelmoudle/port-rangemode{on|off|desirable|auto}15.在基于IOS的交换机上调整根路径成本:switch(config-if)#spanning-tree[vlanvlan-list]costcost在基于CLI的交换机上调整根路径成本:switch(enable)setspantreeportcostmoudle/portcostswitch(enable)setspantreeportvlancostm

1 / 66
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功