Basic Cisco Commands Basic Commands Config Modes Disabling the Cisco Discovery Protocol • User Exec Mode -if you want to show the devices neighbor • Default Configuration • view the settings on the device but not make any changes “>” • Privileged Exec Mode • To make changes to the device • Maybe required a password “ #” • Global Configuration Mode • to make global changes to the router such as the hostname. • type "configure terminal" or "conf t" “(config)#” • Sub Prompts • to modify settings on a specific interface • to modify the different ports on the device. //Add Hostname Router(config)# hostname CLSU// Creating Banners Router1#configure terminal Enter configuration commands, one per line. End with CNTL/Z Router1(config)#banner login # This is a login banner # Router1(config)#banner motd $ This is a motd banner $ Router1(config)#end Router1(config)#no banner motd Router(config)#cdp run Router#show cdp Router#show cdp neighbors #Reload- command to boot the default OS configuration of the devices #show ip arp-command to show the ip address of the devices/interface Disabling the Cisco Discovery Protocol -disable all CDP on the router Router1#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router1(config)#no cdp run Router1(config)#end Router1# Create password for Console R1(config)# line console 0 R1(config)# password cisco R1(config-line)# login R1(config-line)# exit R1(config)#service password-encryption User Access and Privilege Levels • Setting Up User IDs – Router1#configure terminal Enter configuration commands, one per line. End with CNTL/Z. – Router1(config)#username kdooley password cookbook Router1(config)#aaa new-model Router1(config)#aaa authentication login Save the Configuration default local – Router1#copy run start Router1(config)#end • Router1#copy running config startup config Enable Telnet and SSh Configure an interface • R1>enable Router1>enable R1#configure terminal Router1#configure terminal Enter configuration commands, one per line. End with CNTL/Z. R1(config)#line vty 0 Router1(config)#interface FastEthernet0/0 R1(config-line)#password Pass123 R1(config-line)#login Router1(config-if)#ip address 192.168.1.1 255.255.255.0 Router1(config-if)#no shutdown R1(config-line)#logging synchronous R1(config-line)#exec-timeout 40 R1(config-line)#motd-banner R1(config-line)#exit Encrypting Password Router1#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router1(config)#enable password oreilly Router1(config)#line vty 0 4 Router1(config-line)#password cookbook Router1(config-line)#line con 0 Router1(config-line)#password cookbook Router1(config-line)#line aux 0 Router1(config-line)#password cookbook Router1(config-line)#exit Router1(config)#service password-encryption Router1(config)#end Router1# END