Você está na página 1de 4

D&T team

Author : Dimitar Krstevski

Most used Cisco IOS commands


Cisco IOS is one big operating system and has a lots of commands. Depending on the IOS version not all commands are available in all Cisco IOS versions. In this document we will show the mostly used Cisco IOS commands that every network administrator should know and use in everyday situations.

Router Modes
Mode Router> Router# Router(config)# Router(config-if)# Router(config-subif)# Router(config-line)# Router(config-router)# Router(config-if)#exit Router(config)# Router(config-if)#end Router# User mode Privileged mode Global configuration mode Interface mode Subinterface mode Line mode Router configuration mode Exit interface mode, return you one mode before Exit interfacemode, return to global configuration mode, (CTRL+Z) Description

Global Configuration Mode


Command Router> Router# Router# conf t Router(config)# Router(config)#no ip domain-lookup Description Can see config but not change Can see config, and move to make changes Moves to global config mode Disable IP domain name system hostname translation

Router(config)#banner motd ^Hello^ Sets Hello like message of the day banner

Configure Router Name


Command Description

Router(config)#hostname vtyme Name can be any word you choose vtyme(config)# After change was made

D&T team

Author : Dimitar Krstevski

Configure Passwords
Command Router(config)#enable password cisco Router(config)#enable secret class Router(config)#line con 0 Router(config-line)#password console Router(config-line)#login Router(config-line)#loggin synchronous Router(config)#line vty 0 4 Router(config-line)#password telnet Router(config-line)#login Router(config-line)#loggin synchronous Router(config)#line aux 0 Router(config-line)#password nopass Router(config-line)#login Enters auxiliary line mode, sets auxiliary line mode password to nopass, enable password checking at login Enter vty mode for all 5 vty lines, sets vty password to telnet, enable password checking at login and enable synchronized message output Description Set enable password Set enable secret password Enter console line mode, sets consoleline mode password to console, enable password checking at login and enable synchronized message output

Router(config)#service password-encryption Applies a weak encryption to passwords

D&T team

Author : Dimitar Krstevski

Show Commands
Command Router#show startup-config Router#show running-config Router#show protocols Router#show ip route Router#show ip protocols Router#show vlan Router#show vtp Router#show spanning-tree Router#show mac-address-table Router#show ip interface brief Router#show cdp neghbors Router#show arp Router#show version Router#show flash Router#show history Router#show users Router#show clock Description Displays configuration saved in NVRAM Displays condiguration currently running in RAM Displays status of configured Layer 3 protocols Displays routing table Displays IP routing protocols process parameters and statistic Displays VLAN status Displays VTP information Displays spanning tree topology Displays MAC table Displays summary of interface IP status and configuration Displays neighbor entries Displays the ARP table Displays info about loaded software version Displays info about Flash memory Displays history of commands used Displays all users connected to device Displays time set on device

Displays statistics for interface hardware. Statistics Router#show controllers serial 0 display if the clock rate is set and if the cable is DCE or DTE or not attached Router#show sessions Displays all telnet connections to device

Saving Configuration
Command Description

Router#copy run start Saves the running-config to local NVRAM Router#copy run tftp Saves the running-config remotely to TFTP server

D&T team

Author : Dimitar Krstevski

Configure Interface
Command Router(config)#interface fa0/0 Description Moves to Fast Ethernet 0/0 interface mode Assigns address and subnet maks to interface Turn interface on Optional description of the link is locally significant Remove assign address from interface Moves to Serial 0/0 interface mode Configure serial interface clock speed

Router(config-if)#ip address 192.168.1.2 255.255.255.0 Router(config-if)#no shutdown Router(config-if)#description homeLan Router(config-if)#no ip address Router(config)#interface s0/0 Router(config-if)#clock rate 64000

Você também pode gostar