Show Menu
Cheatography
  • Download This Cheat Sheet (PDF)
  • 1 Comment
  • Rating:

Cisco Command#1 BY kanisthaw Cheat Sheet by

thanks : https://boubakr92.wordpress.com/2013/09/16/ccna-cheat-sheet-part-1/

Router Modes

Router­>: User mode = Limited to basic monitoring commands
Router#: Privileged mode (exec-­level mode) = Provides access to all other router commands
Router­(co­nfig)#: global config­uration mode = Commands that affect the entire system
Router­(co­nfi­g-s­ubif)#: subint­erface mode = Commands that affect subint­erfaces
Router­(co­nfi­g-l­ine)#: line mode = Commands that affect in lines modes (console, vty, aux…)
Router­(co­nfi­g-r­out­er)#: router config­uration mode

Changing switch hostname

Switch­(co­nfig)# hostname SW1

Config­uring passwords

SW1(co­nfig)# enable secret nutty !MD5 hash
SW1(co­nfig)# enable password 1234

Encrypting passwords

SW1(co­nfig)# service passwo­rd-­enc­ryption

Working enviro­nment

SW1(co­nfig)# no ip domain­-lookup
SW1(co­nfig)# line vty 0 4
SW1(co­nfi­g-l­ine)# history size 15
SW1(co­nfi­g-l­ine)# exec-t­imeout 10 30
SW1(co­nfi­g-l­ine)# logging synchr­onous

Saving config­uration

SW1# copy runnin­g-c­onfig nutty
! Destin­ation filename [nutty]
SW1# wr

Descri­ption, speed and duplex

SW1(co­nfig)# interface fastEt­hernet 0/1
SW1(co­nfi­g-if)# descri­ption LINK TO INTERNET ROUTER
SW1(co­nfi­g-if)# speed 100 ! Options: 10, 100, auto
! The range keyword used to set a group of interfaces at once.
SW1(co­nfig)# interface range fastEt­hernet 0/5 – 10
SW1(co­nfi­g-i­f-r­ange)# duplex full (options: half, full, auto)
 

Setting the default gateway

SW1(co­nfig)# ip defaul­t-g­ateway 172.16.1.1

Securing console port

SW1(co­nfig)# line con 0
SW1(co­nfi­g-l­ine)# password cisco
SW1(co­nfi­g-l­ine)# login

Aliases

! Used to create shortcuts for long commands.
SW1(co­nfig)# alias exec c configure terminal

Securing terminal lines

SW1(co­nfig)# line vty 0 4
SW1(co­nfi­g-l­ine)# password cisco
SW1(co­nfi­g-l­ine)# login

Config­uring banners

SW1(co­nfig)# banner motd $

Giving the switch an IP address

SW1(co­nfig)# interface vlan 1
SW1(co­nfi­g-if)# ip address 172.16.1.11 255.25­5.255.0 ! or DHCP
SW1(co­nfi­g-if)# no shutdown

Config­uring switch to use SSH

Configure DNS domain name :
SW1(co­nfig)# ip domain­-name exampl­e.com

Configure a username and password :
SW1(co­nfig)# username admin password cisco

Generate encryption keys :
! The size of the key modulus in the range of 360 to 2048
SW1(co­nfig)# crypto key generate rsa
How many bits in the modulus [512]: 1024

Define SSH version to use :
SW1(co­nfig)# ip ssh version 2

Enable vty lines to use SSH :
SW1(co­nfig)# line vty 0 4
SW1(co­nfi­g-l­ine)# login local
! You can set vty lines to use only telnet or only ssh or both as in the example.
SW1(co­nfi­g-l­ine)# transport input telnet ssh
 

Verify Basic Config­uration

Shows inform­ation about the switch and its interf­aces, RAM, NVRAM, flash, IOS, etc
SW1# show version

Shows the current config­uration file stored in DRAM.
SW1# show runnin­g-c­onfig

Shows the config­uration file stored in NVRAM which is used at first boot process.
SW1# show startu­p-c­onfig

Lists the commands currently held in the history buffer.
SW1# show history

Shows an overview of all interf­aces, their physical status, protocol status and ip address if assigned.
SW1# show ip interface brief

Shows detailed inform­ation about the specified interface, its status, protocol, duplex, speed, encaps­ula­tion, last 5 min traffic.
SW1# show interface vlan 1

Shows the descri­ption of all interfaces
SW1# show interfaces descri­ption

Shows the status of all interfaces like connected or not, speed, duplex, trunk or access vlan.
SW1# show interfaces status

Shows the public encryption key used for SSH.
SW1# show crypto key mypubkey rsa

Shows inform­ation about the leased IP address (when an interface is configured to get IP address via a dhcp server)
SW1# show dhcp lease
 

Comments

14:42 6 Jan 19

thank you very much your sheet was really helpfull

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          Cisco to Junos Cheat Sheet
          TCP/IP Model Layers Cheat Sheet
          Basic Cisco IOS Commands Cheat Sheet
           

          PHP网站源码双龙网站定制大运企业网站改版光明网站优化按天收费坑梓网站搜索优化平湖关键词按天计费大浪SEO按天收费罗湖建网站松岗seo优化同乐营销型网站建设平湖seo排名宝安网站优化推广广州网站推广系统大运SEO按效果付费石岩网页制作惠州百度网站优化荷坳SEO按天扣费横岗百度竞价包年推广南澳建站大运网站建设设计平湖品牌网站设计龙岗网站推广方案大运企业网站改版龙华如何制作网站深圳网站关键词优化石岩推广网站坪山网页设计永湖外贸网站制作坪山建网站吉祥外贸网站设计西乡网站设计歼20紧急升空逼退外机英媒称团队夜以继日筹划王妃复出草木蔓发 春山在望成都发生巨响 当地回应60岁老人炒菠菜未焯水致肾病恶化男子涉嫌走私被判11年却一天牢没坐劳斯莱斯右转逼停直行车网传落水者说“没让你救”系谣言广东通报13岁男孩性侵女童不予立案贵州小伙回应在美国卖三蹦子火了淀粉肠小王子日销售额涨超10倍有个姐真把千机伞做出来了近3万元金手镯仅含足金十克呼北高速交通事故已致14人死亡杨洋拄拐现身医院国产伟哥去年销售近13亿男子给前妻转账 现任妻子起诉要回新基金只募集到26元还是员工自购男孩疑遭霸凌 家长讨说法被踢出群充个话费竟沦为间接洗钱工具新的一天从800个哈欠开始单亲妈妈陷入热恋 14岁儿子报警#春分立蛋大挑战#中国投资客涌入日本东京买房两大学生合买彩票中奖一人不认账新加坡主帅:唯一目标击败中国队月嫂回应掌掴婴儿是在赶虫子19岁小伙救下5人后溺亡 多方发声清明节放假3天调休1天张家界的山上“长”满了韩国人?开封王婆为何火了主播靠辱骂母亲走红被批捕封号代拍被何赛飞拿着魔杖追着打阿根廷将发行1万与2万面值的纸币库克现身上海为江西彩礼“减负”的“试婚人”因自嘲式简历走红的教授更新简介殡仪馆花卉高于市场价3倍还重复用网友称在豆瓣酱里吃出老鼠头315晚会后胖东来又人满为患了网友建议重庆地铁不准乘客携带菜筐特朗普谈“凯特王妃P图照”罗斯否认插足凯特王妃婚姻青海通报栏杆断裂小学生跌落住进ICU恒大被罚41.75亿到底怎么缴湖南一县政协主席疑涉刑案被控制茶百道就改标签日期致歉王树国3次鞠躬告别西交大师生张立群任西安交通大学校长杨倩无缘巴黎奥运

          PHP网站源码 XML地图 TXT地图 虚拟主机 SEO 网站制作 网站优化