CCNA命令配置大全.doc_第1页
CCNA命令配置大全.doc_第2页
CCNA命令配置大全.doc_第3页
CCNA命令配置大全.doc_第4页
CCNA命令配置大全.doc_第5页
已阅读5页,还剩5页未读 继续免费阅读

下载本文档

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

文档简介

ram/dramcacheramnvramflashromiosiosromiosinterfacesinterfaces1 setuprouter#setup2 router#clock set hh:mm:ss date moth year3 routershow historyrouterterminal history size lines4 router#show version5 router#show running-config6 router#show starup-config7 router(config)#hostname name8 router(config)#banner motd # message #9 router(config)#enable password password 10 router(config)#no enable password11 router(config)#enable secret password 12 router(config)#no enable secret13 router(config)#service password-encryptionenable secret14 router(config)#line console15 router(config-line)#login16 router(config-line)#password password17 router(config-line)#exec-timeout mm ss 18 router(config-line)#logging synchronousrouter(config)#no ip domain-lookup 19 router(config)#line vty 0 420 router(config-line)#login21 router(config-line)#password password22 router(config)#interface type number(slot/port)23 router(config-if)#ip address ip summast24 router(config-if)#clock rate 64000bpsdce25 router(config-if)#bandwith 64(kb)26 router(config-if)#no shutdown(shutdown)27 router(config-if )#media-type type(10base) 28 router(config-if )#ctrl+z29 router#30 routerenablerouter#config terminalrouter(config)#31interface router(config-if)#subinterface router(config-subif)# controller router(config-controller)# line router(config-line)# router router(config-router)# ipx router router(config-ipx-router)#ipx32 router#show interface33 router#show interface ethernet 034 router#show interface serial 035 router#show running-config36 router#show starup-config37 router#show flash38 router#show controller39 router#show controller interface type40 router#show running-configrouter#copy running-config starup-configrouter#copy running-config tftprouter#copy starup-config tftprouter#copy flash tftprouter#copy tftp star-configrouter#copy tftp flashserial1 is up, line protocol is upserial1 is up, line protocol is downserial1 is down, line protocol is downserial1 is administratively down, line protocol is down1 ctrl+break2 3 o/r 0x2142(nvarm)4 i5 setupn6 router7 routerenable8 router#90x2100rom monitor0x2101setup0x210210 router#copy running-config starup-config11 router#reload12 router#setupsetuprouter(config)#ip route network submask()ip address(ip)router(config)#ip route s0ipriprouter(config)#router riprouter(config-router)#network network-numberrouter#show ip protocolriprouter#show ip route router#debug ip ripriprouter(config-router)#passive-interface e0()router(config-router)#ip rip receive version 1 212ripigrprouter(config)#router igrp as numberrouter(config-router)#network network numberrouter#show ip routerouter#debug ip igrp eventsigrprouter#debug ip igrp transactionigrprouter(config-router)#variance multiplier igrp load balancingrouter(config-router)#traffic-share balanced | minload-balanced traffic eigrprouter(config)#router eigrp as numberrouter(config-router)#network network numberrouter(config)#no auto-summry router(config)# auto-summry router#show ip route eigrp eigrprouter#show ip protocol router#show ip eigrp neighbors eigrprouter#show ip eigrp traffic ip eigrp router#show ip eigrp topology ip eigrp router#debug ip eigrpospf1. router(config)#router ospf process-idrouter(config-router)#network address(ip mask area area-idrouter(config-if)# ip ospf priority numbe ospfrouter#show ip protocols ospfrouter#show ip route router#show ip ospf interface type number area-id router#show ip ospf neighbor ospfrouter#debug ip ospf eventsrouter#debug ip ospf packet2. router(config)# interface loopback numberlookbackrouter(config-if)# ip address ip-address subnet-maskrouter(config-if)# ip ospf cost cost-numbe ospf costrouter(config-if)# ip ospf authentication-key key router(config-if)# ip ospf messge-digest-key keyid md5 key md5(keyidkey)router(config-route)# area area-id authentication message-digestmessage-digest ospf3. router(config-if)# ip ospf hello-interval seconds hellorouter(config-if)# ip ospf dead-interval secondsdown1. (standard access lists):iprouter(config)#access-list 10 deny 55router(config)#access-list 10 permit anyrouter(config)#int e1router(config-if)#ip access-group 10 outipaclvty.router(config)#access-list 50 permit router(config)#line vty 0 4router(config-line)#access-class 50 inipaclrouter(config-line)#no ip access-class 50 inrouter(config)#no access-list 502. (extended access lists):ipip,3,4 router(config)#access-list 110 deny tcp any host eq 21router(config)#access-list 110 deny tcp any host eq 23router(config)#access-list 110 permit ip any anyrouter(config)#int e1router(config-if)#ip access-group 110 out3. router(config)#access-list 12 permit 55router(config)#line vty 0 4outer(config-line)#access-class 12 in3.show ip interface:ip4.show ip interface:acl5.show ip interface :acl6.show running-config:dramacl,acl.switch(config)# enable password level level passwordswitch(config)# no enable password level level passwordhostname1900/2900(config)#hostname hostnameip address1900(config)#ip address ip address mask1900(config)#ip address 1 2950(config#interface vlan 12950(config-if)#ip address ip_address mask2950(config)#interface vlan 12950(config-if)#ip address 1 default gateway1900/2950(config)#ip default-gateway ip address1900/2950(config)#ip default-gateway ip1900#show ipip address: 1subnet mask: default gateway: management vlan: 12950#show interface vlan 1vlan1 is up, line protocol is uphardware is cat5k virtual ethernet, address is 0010.f6a9.9800 (bia 0010.f6a9.9800)internet address is 9/24broadcast address is 551900(config)#interface e0/11900(config-if)#duplex auto | full |full-flow-control | half2950(config)#interface fe0/12950(config-if)#duplex auto | full | halfswitch(config-if)# speed 10|100|autoswitch#show interfaces fastethernet0/3mac1900/2950#show mac-address-tablemac1900(config)#mac-address-table permanent mac-address type module/port1900(config)#mac-address-table permanent 2222.2222.2222 ethernet 0/31900#show mac-address-table2950(config)#mac-address-table static mac_addr vlan vlan_id interface int1 int2 . int15mac1900(config)#mac-address-table restricted static mac-address type module/port src-if-list1900(config)#mac-address-table restricted static 1111.1111.1111 e0/4 e0/11900#show mac-address-table2950(config)#mac-address-table secure mac-addr interface vlan vlan-id2950(config)#mac-address-table secure 0003.3333.3333 fa 0/1 vlan 12950#show mac-address-table1900(config-if)#port secure max-mac-count count1900(config)#interface e0/41900(config-if)#port secure1900(config-if)#port secure max-mac-count 11900(config)#address-violation suspend | disable | ignore1900# show mac-address-table security2950(config-if)#port security max-mac-count count2950(config)#interface fa0/12950(config-if)#port security2950(config-if)#port security max-mac-count 102950(config-if)#port security action shutdown | trap2950#show mac-address-table secure2950#show port-security1900#copy nvram tftp:/host/dst_file1900#copy tftp:/host/src_file nvram1950#copy nvram t/wgswd.cfg2950#copy startup-config tftp:/host/dst_file nvram1900#delete nvram2950#erase startup-configvlan1900 vlan1900,vlan vlan# name name vlan#, :en#config t(config)#hostname 19001900(config)#vlan 2 name sales1900(config)#vlan 3 name marketing1900(config)#vlan 4 name mis1900(config)#exit1900(config)#int e0/21900(config-if)#vlan-membership static 21900(config)#int e0/41900(config-if)#vlan-membership static 31900(config)#int e0/51900(config-if)#vlan-membership static 41900(config-if)#exit1900(config)#exitvlan1900#sh vlan2900 vlan2950vlan,vlan database2950#vlan database2950(vlan)#vlan 2 name marketing vlan 2 modified: name: marketing2950(vlan)#vlan 3 name accounting vlan 3 added: name: accounting2950(vlan)#apply apply complete2950(vlan)#ctrl+c2950#2950,switchport access vlan vlan#,2950(config-if)#int f0/22950(config-if)#switchport access vlan 22950(config-if)#int f0/32950(config-if)#switchport access vlan 32950(config-if)#int f0/42950(config-if)#switchport access vlan 42950(config-if)#exit2950(config)#exit,:2950#sh vlan 2950#sh vlan brieftrunk1900trunk1900(config)#int f0/261900(config-if)#trunk on2950,switchport,:2950(config)#int f0/122950(config-if)#switchport mode trunk2950(config-if)# switchport trunk encapsulation isl|dot1q2950(config-if)#zvlan2950(config-if)# switchport trunk allowed vlan remove vlan-listvlan2950(config-if)# switchport trunk allowed vlan add vlan-listconfiguring inter-vlan routing1900trunk,encapsulation isl vlan#,:2600router(config)#int f0/0.12600router(config-subif)#encapsulation isl vlan#2600router(config-subif)#ip add ip add submask2950,:2600router(config)#int f0/0.12600router(config-subif)#encapsulation dot1q vlan#2600router(config-subif)#ip add ip add submaskvtp1900(config)#vtp server1900(config)#vtp domain noco1900(config)#vtp password nokoshow vtp,:1900#sh vtp vtp version: 1 configuration revision: 0 maximum vlans supported locally: 1005 number of existing vlans: 5 vtp domain name: noco vtp password: noko vtp operating mode: server 2950: 2950(config)#vtp mode server 2950(

温馨提示

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

评论

0/150

提交评论