Some Basic Cisco Commands

hishanxp

Junior member
  • Nov 27, 2006
    57
    0
    6
    Nuwaraeliya
    Swtich Commands
    -------------------------------------
    enable -privilaged mode
    disable -to move back to user mode

    config t- configuration mode

    exit- to exit modes
    hostname- to change hostname

    to give an ip address to telnet
    -----------------------------

    con>interface vlan 1
    con>ip address xxx.xxx.xxx.xxx subnet mask

    to exit privilaged mode

    end ot ctrl+z

    to save information
    ---------------------
    copu run start

    Setting passwords
    ----------------------
    -->privilaged mode

    enable password - privilaged mode non encrypted(can be seen in show running config)
    enable secret -encrypted mode
    no enable password/secret - to remove password

    -->Protect Console

    #line console 0
    ------------------------------------------------------------------------------------------





    optimizing and torbleshooting switch netwroks
    --------------------------------------------
    #password cisco
    #login -requird password @ login
    #no login -no password required to login (guest)



    -->protecting telnet(vty virtual terminal)
    #line vty 0 15
    # password cisco
    #login



    -->Encrypting all apsswords
    #in global config
    #service password-encryption (one word)
    #exec-timeout 30 0 -idle time out value
    #no ip domain-lookup -turn off automatic look up


    Logon Banners
    -----------------------------

    login -onlin console vty
    motd -all times it shows up message of the day

    #banner motd + do not login +

    -->Configure swith with passowrd SSH


    1)username hishan password cisco
    2)ip domain-name cbtnuggets.com
    3)crypto key generate rsa (enter)
    4)1024
    5)ip ssh version 2
    6)l7)ine vty 0 4
    7)transprt input ssh -to enable only ssh to enable boath type telnet also

    --->port secutiry

    show ip interfaces brief -vieving port ip address
    teminal monitor -to see what hapening on switch
    show mac address table -ti view mac address

    -->configuring interface

    #interface fastethernet 0/5
    #switchport mode access
    #switchport port-security
    #switchport port-securtity maximum 1 ---maximum mac address is set to 1
    #switchport port-securtity violate shutdown/protect/restrict
    #switchport port-securtity mac-address --mac here-- /stickey:- auotmatical take coneevcted mac

    --->
    vieweing port security

    #show port-security -all interfaces
    #show port-security interface fa 0/5

    #interface range fastethernet 0/5 -24 --- to configure range of ports
     
    Last edited: